2 #AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
5 noinst_LIBRARIES = @MAKE_LIBPARSE@ @MAKE_LIBPARSE_KERNEL@
6 EXTRA_LIBRARIES = libparse.a libparse_kernel.a
7 EXTRA_PROGRAMS = parsestreams parsesolaris
8 noinst_PROGRAMS = @MAKE_PARSEKMODULE@
9 CLEANFILES = libparse.a libparse_kernel.a
11 K_CFLAGS = -DPARSESTREAM -DNTP_NEED_BOPS
13 libparse_a_SOURCES = parse.c \
35 libparse_kernel_a_SOURCES =
36 libparse_kernel_a_LIBADD = kparse$U.o \
56 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/lib/isc/include \
57 -I$(top_srcdir)/lib/isc/nothreads/include \
58 -I$(top_srcdir)/lib/isc/unix/include -I$(top_srcdir)/kernel
60 ETAGS_ARGS = Makefile.am
62 EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c
65 # create info_trimble.c
67 info_trimble.c: $(top_srcdir)/include/trimble.h mkinfo_rcmd.sed mkinfo_scmd.sed
69 sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.c || rm -f info_trimble.c
70 sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.c || rm -f info_trimble.c
72 kieee754io.o: ieee754io.c
73 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/ieee754io.c -o $@
76 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/mfp_mul.c -o $@
78 kgpstolfp.o: gpstolfp.c
79 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/gpstolfp.c -o $@
82 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/binio.c -o $@
84 kclk_computime.o: clk_computime.c
85 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_computime.c -o $@
87 kclk_computime_.o: clk_computime_.c
88 $(COMPILE) $(K_CFLAGS) -c clk_computime_.c -o $@
90 kclk_dcf7000.o: clk_dcf7000.c
91 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_dcf7000.c -o $@
93 kclk_dcf7000_.o: clk_dcf7000_.c
94 $(COMPILE) $(K_CFLAGS) -c clk_dcf7000_.c -o $@
96 kclk_hopf6021.o: clk_hopf6021.c
97 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_hopf6021.c -o $@
99 kclk_hopf6021_.o: clk_hopf6021_.c
100 $(COMPILE) $(K_CFLAGS) -c clk_hopf6021_.c -o $@
102 kclk_meinberg.o: clk_meinberg.c
103 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_meinberg.c -o $@
105 kclk_meinberg_.o: clk_meinberg_.c
106 $(COMPILE) $(K_CFLAGS) -c clk_meinberg_.c -o $@
108 kclk_rawdcf.o: clk_rawdcf.c
109 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rawdcf.c -o $@
111 kclk_rawdcf_.o: clk_rawdcf_.c
112 $(COMPILE) $(K_CFLAGS) -c clk_rawdcf_.c -o $@
114 kclk_rcc8000.o: clk_rcc8000.c
115 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rcc8000.c -o $@
117 kclk_rcc8000_.o: clk_rcc8000_.c
118 $(COMPILE) $(K_CFLAGS) -c clk_rcc8000_.c -o $@
120 kclk_schmid.o: clk_schmid.c
121 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_schmid.c -o $@
123 kclk_schmid_.o: clk_schmid_.c
124 $(COMPILE) $(K_CFLAGS) -c clk_schmid_.c -o $@
126 kclk_trimtaip.o: clk_trimtaip.c
127 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtaip.c -o $@
129 kclk_trimtaip_.o: clk_trimtaip_.c
130 $(COMPILE) $(K_CFLAGS) -c clk_trimtaip_.c -o $@
132 kclk_trimtsip.o: clk_trimtsip.c
133 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtsip.c -o $@
135 kclk_trimtsip_.o: clk_trimtsip_.c
136 $(COMPILE) $(K_CFLAGS) -c clk_trimtsip_.c -o $@
138 kclk_varitext.o: clk_varitext.c
139 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_varitext.c -o $@
141 kclk_varitext_.o: clk_varitext_.c
142 $(COMPILE) $(K_CFLAGS) -c clk_varitext_.c -o $@
144 kclk_wharton.o: clk_wharton.c
145 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_wharton.c -o $@
147 kclk_wharton_.o: clk_wharton_.c
148 $(COMPILE) $(K_CFLAGS) -c clk_wharton_.c -o $@
151 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse.c -o $@
154 $(COMPILE) $(K_CFLAGS) -c parse_.c -o $@
156 kparse_conf.o: parse_conf.c
157 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse_conf.c -o $@
159 kparse_conf_.o: parse_conf_.c
160 $(COMPILE) $(K_CFLAGS) -c parse_conf_.c -o $@
162 parsestreams.loadable_module.o: $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a
163 $(LD) -r -o $@ $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a
165 parse: $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a
166 $(LD) -r -o $@ $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a
169 cd ../libntp && $(MAKE)
171 parsesolaris.o: sys/systm.h
175 sed -e '/ffs(.*)/d' < /usr/include/sys/systm.h > sys/systm.h
177 include $(top_srcdir)/depsver.mf