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 $(AM_V_at)$(SED) -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.new 98 $(AM_V_at)$(SED) -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.new 99 $(AM_V_at)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 163# [Bug 3608] Solaris has inconsistent definitions of ffs() and fls(). Drop the 164# ones from 'systm.h'. 165sys/systm.h: 166 -mkdir sys 167 $(SED) -e '/f[fl]s(.*)/d' < /usr/include/sys/systm.h > sys/systm.h 168 169## check-libparse is invoked by ntpd/Makefile.am 170check-libparse: $(noinst_LIBRARIES) 171 @: do-nothing action to avoid default SCCS get 172 173include $(top_srcdir)/check-libntp.mf 174include $(top_srcdir)/depsver.mf 175include $(top_srcdir)/includes.mf 176