summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1e72cbc..5c29479 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,16 @@
CFLAGS=-Wall -O2
+all: gpsdate gps-watchdog
+
gpsdate: gpsdate.o
$(CC) $(LDFLAGS) -o $@ $^ -lgps
+gps-watchdog: gps-watchdog.o
+ $(CC) $(LDFLAGS) -o $@ $^ -lgps
+
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $^
clean:
- @rm -f gpsdate *.o
+ @rm -f gpsdate gps-watchdog *.o