summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2022-10-06 13:55:55 +0100
committerKatolaZ <katolaz@freaknet.org>2022-10-06 13:55:55 +0100
commit4a11b530c517538918459c0df5842f8d9afa7607 (patch)
tree7cc7bf46d450dfb64e01c36d292486be47e5b044 /Makefile
parent304656477bb4f6c68b5a24a5cd8bbb49d1403cdf (diff)
add LICENSE and Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
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}
+