summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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}