summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2022-10-07 12:31:03 +0100
committerKatolaZ <katolaz@freaknet.org>2022-10-07 12:31:03 +0100
commite2a1fac9d016fb835446135ba1d6f439b6dc0fff (patch)
treeb5f14bc0c51e6a38d38ffba376b2b7749ed4a542 /Makefile
parent3d7b4bbb3362533f1506b0948364b35eeb1b305b (diff)
add getgrid.c and amend README.md accordinglyHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
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}