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.

36 lines
657B

  1. TARGETS = ppstest ppsctl ppswatch ppsldisc
  2. CFLAGS += -Wall -O2 -D_GNU_SOURCE
  3. CFLAGS += -ggdb
  4. CFLAGS += -fPIC
  5. LDLIBS += -lm
  6. # -- Actions section --
  7. .PHONY : all depend dep
  8. all : .depend $(TARGETS)
  9. .depend depend dep :
  10. $(CC) $(CFLAGS) -M $(TARGETS:=.c) > .depend
  11. ifeq (.depend,$(wildcard .depend))
  12. include .depend
  13. endif
  14. install : all
  15. install -m 755 -t $(DESTDIR)/usr/bin ppsfind $(TARGETS)
  16. install -m 644 -t $(DESTDIR)/usr/include/sys timepps.h
  17. uninstall :
  18. for f in $(TARGETS); do rm $(DESTDIR)/usr/bin/$$f; done
  19. rm $(DESTDIR)/usr/include/sys/timepps.h
  20. # -- Clean section --
  21. .PHONY : clean
  22. clean :
  23. rm -f *.o *~ core .depend
  24. rm -f ${TARGETS}