1 TARGETS = ppstest ppsctl ppswatch
3 CFLAGS += -Wall -O2 -D_GNU_SOURCE -m32 -static
8 # -- Actions section --
10 .PHONY : all depend dep
12 all : .depend $(TARGETS)
15 $(CC) $(CFLAGS) -M $(TARGETS:=.c) > .depend
17 ifeq (.depend,$(wildcard .depend))
22 install -m 755 -t $(DESTDIR)/usr/bin ppsfind $(TARGETS)
23 install -m 644 -t $(DESTDIR)/usr/include/sys timepps.h
26 for f in $(TARGETS); do rm $(DESTDIR)/usr/bin/$$f; done
27 rm $(DESTDIR)/usr/include/sys/timepps.h
34 rm -f *.o *~ core .depend