From 4a11b530c517538918459c0df5842f8d9afa7607 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Thu, 6 Oct 2022 13:55:55 +0100 Subject: add LICENSE and Makefile --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fa58aa4 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +# gridcal - compute great-circle distance between two grid locators +.POSIX: + +SRC = gridcal.c +OBJ = ${SRC:.c=.o} + +all: options gridcal + +options: + @echo "-+- build options -+-" + @echo "PREFIX = ${PREFIX}" + @echo "CFLAGS = ${CFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" + @echo "CC = ${CC}" + @echo "-+-+-+-+-+-+-+-+-+-+-" + +gridcal: ${OBJ} + $(CC) $(LDFLAGS) -o $@ $(OBJ) -lm + +debug: clean + ${MAKE} CFLAGS="${DEBUG}" all + +clean: + rm -f gridcal ${OBJ} + -- cgit v1.2.3