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