/contrib/ntp/util/Makefile.am

https://bitbucket.org/freebsd/freebsd-head/ · Makefile · 46 lines · 33 code · 10 blank · 3 comment · 2 complexity · 6298d593ac9559efb65b2ce751a99dcf MD5 · raw file

  1. #AUTOMAKE_OPTIONS = ../ansi2knr no-dependencies
  2. AUTOMAKE_OPTIONS= ansi2knr
  3. bin_PROGRAMS= @MAKE_NTPTIME@ @MAKE_TICKADJ@ @MAKE_TIMETRIM@ \
  4. ntp-keygen
  5. EXTRA_PROGRAMS= audio-pcm byteorder hist jitter kern longsize \
  6. ntptime pps-api precision sht testrs6000 tg tickadj timetrim
  7. AM_CPPFLAGS= -I$(top_srcdir)/include $(LIBOPTS_CFLAGS)
  8. # LDADD might need RESLIB and ADJLIB
  9. LDADD= ../libntp/libntp.a
  10. ntp_keygen_SOURCES = ntp-keygen.c ntp-keygen-opts.c ntp-keygen-opts.h
  11. ntp_keygen_LDADD= @LCRYPTO@ $(LIBOPTS_LDADD) ../libntp/libntp.a
  12. ETAGS_ARGS= Makefile.am
  13. #EXTRA_DIST= README TAGS
  14. EXTRA_DIST= ntp-keygen-opts.def ntp-keygen.1 ntp-keygen-opts.texi ntp-keygen-opts.menu
  15. BUILT_SOURCES= ntp-keygen-opts.c ntp-keygen-opts.h ntp-keygen.1 \
  16. ntp-keygen-opts.texi ntp-keygen-opts.menu
  17. man_MANS= ntp-keygen.1
  18. run_ag= cd $(srcdir) && autogen -L ../include --writable
  19. std_def_list= $(top_srcdir)/include/debug-opt.def \
  20. $(top_srcdir)/include/autogen-version.def \
  21. $(top_srcdir)/include/copyright.def \
  22. $(top_srcdir)/include/homerc.def \
  23. $(top_srcdir)/include/version.def
  24. $(srcdir)/ntp-keygen-opts.h: $(srcdir)/ntp-keygen-opts.c
  25. $(srcdir)/ntp-keygen-opts.c: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
  26. $(run_ag) ntp-keygen-opts.def
  27. $(srcdir)/ntp-keygen.1: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
  28. $(run_ag) -Tagman1.tpl -bntp-keygen ntp-keygen-opts.def
  29. $(srcdir)/ntp-keygen-opts.texi $(srcdir)/ntp-keygen-opts.menu: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
  30. $(run_ag) -Taginfo.tpl -DLEVEL=section ntp-keygen-opts.def
  31. jitter_SOURCES= jitter.c jitter.h
  32. jitter_LDADD=
  33. ../libntp/libntp.a:
  34. cd ../libntp && $(MAKE)
  35. kern.o: kern.c
  36. $(COMPILE) -DHAVE_TIMEX_H -c kern.c