diff options
author | KatolaZ <katolaz@freaknet.org> | 2022-10-07 12:31:03 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2022-10-07 12:31:03 +0100 |
commit | e2a1fac9d016fb835446135ba1d6f439b6dc0fff (patch) | |
tree | b5f14bc0c51e6a38d38ffba376b2b7749ed4a542 /Makefile | |
parent | 3d7b4bbb3362533f1506b0948364b35eeb1b305b (diff) |
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} |