1NULL= 2BUILT_SOURCES = $(VPHACK) info_trimble.c $(VPHACK_AFTER) 3CLEANFILES = 4noinst_LIBRARIES = @MAKE_LIBPARSE@ @MAKE_LIBPARSE_KERNEL@ 5EXTRA_LIBRARIES = libparse.a libparse_kernel.a 6EXTRA_PROGRAMS = parsestreams parsesolaris 7noinst_PROGRAMS = @MAKE_PARSEKMODULE@ 8 9K_CFLAGS = -DPARSESTREAM -DNTP_NEED_BOPS 10 11# info_trimble.c was mistakenly created in the build directory 12# previously. It is located in $(srcdir) and any updates must 13# end up there. 14 15# 16# VPHACK and VPHACK_AFTER are enabled on non-GNU makes (such as 17# BSD make) to work around build/dependency issues where we want 18# built source files to live in srcdir, as opposed to builddir. 19# 20 21if VPATH_HACK 22VPHACK= vphack 23VPHACK_AFTER= vphack_after 24else 25VPHACK= 26VPHACK_AFTER= 27endif 28 29vphack: 30 test -e info_trimble.c || ln -s $(srcdir)/info_trimble.c . 31 32vphack_after: 33 test -L info_trimble.c || ( \ 34 mv info_trimble.c $(srcdir)/info_trimble.c && \ 35 ln -s $(srcdir)/info_trimble.c . \ 36 ) 37 38libparse_a_SOURCES = parse.c \ 39 parse_conf.c \ 40 clk_meinberg.c \ 41 clk_schmid.c \ 42 clk_rawdcf.c \ 43 clk_trimtsip.c \ 44 clk_dcf7000.c \ 45 clk_trimtaip.c \ 46 clk_rcc8000.c \ 47 clk_hopf6021.c \ 48 clk_computime.c \ 49 clk_wharton.c \ 50 clk_varitext.c \ 51 clk_sel240x.c \ 52 data_mbg.c \ 53 info_trimble.c \ 54 trim_info.c \ 55 binio.c \ 56 ieee754io.c \ 57 mfp_mul.c \ 58 gpstolfp.c \ 59 $(NULL) 60 61libparse_kernel_a_SOURCES = 62libparse_kernel_a_LIBADD = \ 63 kparse.o \ 64 kparse_conf.o \ 65 kclk_computime.o \ 66 kclk_dcf7000.o \ 67 kclk_hopf6021.o \ 68 kclk_meinberg.o \ 69 kclk_rawdcf.o \ 70 kclk_rcc8000.o \ 71 kclk_schmid.o \ 72 kclk_trimtaip.o \ 73 kclk_trimtsip.o \ 74 kclk_varitext.o \ 75 kclk_wharton.o \ 76 kclk_sel240x.o \ 77 kbinio.o \ 78 kieee754io.o \ 79 kmfp_mul.o \ 80 kgpstolfp.o \ 81 $(NULL) 82 83AM_CFLAGS = $(CFLAGS_NTP) 84 85AM_CPPFLAGS = $(NTP_INCS) 86AM_CPPFLAGS += -I$(top_srcdir)/kernel 87AM_CPPFLAGS += $(CPPFLAGS_NTP) 88 89EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c 90 91info_trimble.c: $(top_srcdir)/include/trimble.h $(srcdir)/Makefile.am $(srcdir)/mkinfo_scmd.sed $(srcdir)/mkinfo_rcmd.sed 92 sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.new 93 sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.new 94 mv -f info_trimble.new $@ 95 96#$(srcdir)/info_trimble.c: $(top_srcdir)/include/trimble.h $(srcdir)/Makefile.am $(srcdir)/mkinfo_scmd.sed $(srcdir)/mkinfo_rcmd.sed 97# sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.new 98# sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.new 99# mv -f info_trimble.new $@ 100 101kieee754io.o: $(srcdir)/ieee754io.c 102 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/ieee754io.c -o $@ 103 104kmfp_mul.o: $(srcdir)/mfp_mul.c 105 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/mfp_mul.c -o $@ 106 107kgpstolfp.o: $(srcdir)/gpstolfp.c 108 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/gpstolfp.c -o $@ 109 110kbinio.o: $(srcdir)/binio.c 111 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/binio.c -o $@ 112 113kclk_computime.o: $(srcdir)/clk_computime.c 114 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_computime.c -o $@ 115 116kclk_dcf7000.o: $(srcdir)/clk_dcf7000.c 117 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_dcf7000.c -o $@ 118 119kclk_hopf6021.o: $(srcdir)/clk_hopf6021.c 120 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_hopf6021.c -o $@ 121 122kclk_meinberg.o: $(srcdir)/clk_meinberg.c 123 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_meinberg.c -o $@ 124 125kclk_rawdcf.o: $(srcdir)/clk_rawdcf.c 126 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rawdcf.c -o $@ 127 128kclk_rcc8000.o: $(srcdir)/clk_rcc8000.c 129 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rcc8000.c -o $@ 130 131kclk_schmid.o: $(srcdir)/clk_schmid.c 132 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_schmid.c -o $@ 133 134kclk_trimtaip.o: $(srcdir)/clk_trimtaip.c 135 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtaip.c -o $@ 136 137kclk_trimtsip.o: $(srcdir)/clk_trimtsip.c 138 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtsip.c -o $@ 139 140kclk_varitext.o: $(srcdir)/clk_varitext.c 141 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_varitext.c -o $@ 142 143kclk_wharton.o: $(srcdir)/clk_wharton.c 144 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_wharton.c -o $@ 145 146kclk_sel240x.o: $(srcdir)/clk_sel240x.c 147 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_sel240x.c -o $@ 148 149kparse.o: $(srcdir)/parse.c 150 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse.c -o $@ 151 152kparse_conf.o: $(srcdir)/parse_conf.c 153 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse_conf.c -o $@ 154 155parsestreams.loadable_module.o: $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a 156 $(LD) -r -o $@ $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a 157 158parse: $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a 159 $(LD) -r -o $@ $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a 160 161parsesolaris.o: sys/systm.h 162 163sys/systm.h: 164 -mkdir sys 165 sed -e '/ffs(.*)/d' < /usr/include/sys/systm.h > sys/systm.h 166 167## check-libparse is invoked by ntpd/Makefile.am 168check-libparse: $(noinst_LIBRARIES) 169 @: do-nothing action to avoid default SCCS get 170 171include $(top_srcdir)/sntp/check-libntp.mf 172include $(top_srcdir)/depsver.mf 173include $(top_srcdir)/includes.mf 174