diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -1,10 +1,11 @@ # gridcal - compute great-circle distance between two grid locators .POSIX: -SRC = gridcal.c +SRC = gridcal.c getgrid.c OBJ = ${SRC:.c=.o} +PROG= gridcal getgrid -all: options gridcal +all: options gridcal getgrid options: @echo "-+- build options -+-" @@ -15,11 +16,15 @@ options: @echo "-+-+-+-+-+-+-+-+-+-+-" gridcal: ${OBJ} - $(CC) $(LDFLAGS) -o $@ $(OBJ) -lm + $(CC) $(LDFLAGS) -o $@ gridcal.o -lm + +getgrid: ${OBJ} + $(CC) $(LDFLAGS) -o $@ getgrid.o -lm + debug: clean ${MAKE} CFLAGS="${DEBUG}" all clean: - rm -f gridcal ${OBJ} + rm -f ${PROG} ${OBJ} |