Utility for setting RTC based on gpsd time
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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 gps-watchdog *.o
|
|
|