From e2a1fac9d016fb835446135ba1d6f439b6dc0fff Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Fri, 7 Oct 2022 12:31:03 +0100 Subject: add getgrid.c and amend README.md accordingly --- Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fa58aa4..f9d958d 100644 --- a/Makefile +++ b/Makefile @@ -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} -- cgit v1.2.3