Makefile.am revision 358659
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) 84AM_CFLAGS += $(NTP_HARD_CFLAGS) 85 86AM_CPPFLAGS = $(NTP_INCS) 87AM_CPPFLAGS += -I$(top_srcdir)/kernel 88AM_CPPFLAGS += $(CPPFLAGS_NTP) 89AM_CPPFLAGS += $(NTP_HARD_CPPFLAGS) 90 91AM_LDFLAGS = $(NTP_HARD_LDFLAGS) 92 93EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c 94 95info_trimble.c: $(top_srcdir)/include/trimble.h $(srcdir)/Makefile.am $(srcdir)/mkinfo_scmd.sed $(srcdir)/mkinfo_rcmd.sed 96 sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.new 97 sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.new 98 mv -f info_trimble.new $@ 99 100#$(srcdir)/info_trimble.c: $(top_srcdir)/include/trimble.h $(srcdir)/Makefile.am $(srcdir)/mkinfo_scmd.sed $(srcdir)/mkinfo_rcmd.sed 101# sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.new 102# sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.new 103# mv -f info_trimble.new $@ 104 105kieee754io.o: $(srcdir)/ieee754io.c 106 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/ieee754io.c -o $@ 107 108kmfp_mul.o: $(srcdir)/mfp_mul.c 109 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/mfp_mul.c -o $@ 110 111kgpstolfp.o: $(srcdir)/gpstolfp.c 112 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/gpstolfp.c -o $@ 113 114kbinio.o: $(srcdir)/binio.c 115 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/binio.c -o $@ 116 117kclk_computime.o: $(srcdir)/clk_computime.c 118 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_computime.c -o $@ 119 120kclk_dcf7000.o: $(srcdir)/clk_dcf7000.c 121 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_dcf7000.c -o $@ 122 123kclk_hopf6021.o: $(srcdir)/clk_hopf6021.c 124 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_hopf6021.c -o $@ 125 126kclk_meinberg.o: $(srcdir)/clk_meinberg.c 127 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_meinberg.c -o $@ 128 129kclk_rawdcf.o: $(srcdir)/clk_rawdcf.c 130 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rawdcf.c -o $@ 131 132kclk_rcc8000.o: $(srcdir)/clk_rcc8000.c 133 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rcc8000.c -o $@ 134 135kclk_schmid.o: $(srcdir)/clk_schmid.c 136 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_schmid.c -o $@ 137 138kclk_trimtaip.o: $(srcdir)/clk_trimtaip.c 139 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtaip.c -o $@ 140 141kclk_trimtsip.o: $(srcdir)/clk_trimtsip.c 142 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtsip.c -o $@ 143 144kclk_varitext.o: $(srcdir)/clk_varitext.c 145 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_varitext.c -o $@ 146 147kclk_wharton.o: $(srcdir)/clk_wharton.c 148 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_wharton.c -o $@ 149 150kclk_sel240x.o: $(srcdir)/clk_sel240x.c 151 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_sel240x.c -o $@ 152 153kparse.o: $(srcdir)/parse.c 154 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse.c -o $@ 155 156kparse_conf.o: $(srcdir)/parse_conf.c 157 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse_conf.c -o $@ 158 159parsestreams.loadable_module.o: $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a 160 $(LD) -r -o $@ $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a 161 162parse: $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a 163 $(LD) -r -o $@ $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a 164 165parsesolaris.o: sys/systm.h 166 167# [Bug3608] Solaris has inconsistent definitions of ffs() and fls(). Drop the 168# ones from 'systm.h'. 169sys/systm.h: 170 -mkdir sys 171 sed -e '/f[fl]s(.*)/d' < /usr/include/sys/systm.h > sys/systm.h 172 173## check-libparse is invoked by ntpd/Makefile.am 174check-libparse: $(noinst_LIBRARIES) 175 @: do-nothing action to avoid default SCCS get 176 177include $(top_srcdir)/sntp/check-libntp.mf 178include $(top_srcdir)/depsver.mf 179include $(top_srcdir)/includes.mf 180