1 #AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
2 AUTOMAKE_OPTIONS = ../util/ansi2knr
3 noinst_LIBRARIES = @MAKE_LIBPARSE@ @MAKE_LIBPARSE_KERNEL@
4 EXTRA_LIBRARIES = libparse.a libparse_kernel.a
5 EXTRA_PROGRAMS = parsestreams parsesolaris
6 noinst_PROGRAMS = @MAKE_PARSEKMODULE@
7 CLEANFILES = libparse.a libparse_kernel.a
9 K_CFLAGS = -DPARSESTREAM -DNTP_NEED_BOPS
11 libparse_a_SOURCES = parse.c \
32 libparse_kernel_a_SOURCES =
33 libparse_kernel_a_LIBADD = kparse$U.o \
52 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/kernel
53 ETAGS_ARGS = Makefile.am
55 EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c
58 # create info_trimble.c
60 info_trimble.c: $(top_srcdir)/include/trimble.h mkinfo_rcmd.sed mkinfo_scmd.sed
62 sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.c || rm -f info_trimble.c
63 sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.c || rm -f info_trimble.c
65 kieee754io.o: ieee754io.c
66 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/ieee754io.c -o $@
69 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/mfp_mul.c -o $@
71 kgpstolfp.o: gpstolfp.c
72 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/gpstolfp.c -o $@
75 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/binio.c -o $@
77 kclk_computime.o: clk_computime.c
78 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_computime.c -o $@
80 kclk_computime_.o: clk_computime_.c
81 $(COMPILE) $(K_CFLAGS) -c clk_computime_.c -o $@
83 kclk_dcf7000.o: clk_dcf7000.c
84 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_dcf7000.c -o $@
86 kclk_dcf7000_.o: clk_dcf7000_.c
87 $(COMPILE) $(K_CFLAGS) -c clk_dcf7000_.c -o $@
89 kclk_hopf6021.o: clk_hopf6021.c
90 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_hopf6021.c -o $@
92 kclk_hopf6021_.o: clk_hopf6021_.c
93 $(COMPILE) $(K_CFLAGS) -c clk_hopf6021_.c -o $@
95 kclk_meinberg.o: clk_meinberg.c
96 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_meinberg.c -o $@
98 kclk_meinberg_.o: clk_meinberg_.c
99 $(COMPILE) $(K_CFLAGS) -c clk_meinberg_.c -o $@
101 kclk_rawdcf.o: clk_rawdcf.c
102 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rawdcf.c -o $@
104 kclk_rawdcf_.o: clk_rawdcf_.c
105 $(COMPILE) $(K_CFLAGS) -c clk_rawdcf_.c -o $@
107 kclk_rcc8000.o: clk_rcc8000.c
108 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rcc8000.c -o $@
110 kclk_rcc8000_.o: clk_rcc8000_.c
111 $(COMPILE) $(K_CFLAGS) -c clk_rcc8000_.c -o $@
113 kclk_schmid.o: clk_schmid.c
114 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_schmid.c -o $@
116 kclk_schmid_.o: clk_schmid_.c
117 $(COMPILE) $(K_CFLAGS) -c clk_schmid_.c -o $@
119 kclk_trimtaip.o: clk_trimtaip.c
120 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtaip.c -o $@
122 kclk_trimtaip_.o: clk_trimtaip_.c
123 $(COMPILE) $(K_CFLAGS) -c clk_trimtaip_.c -o $@
125 kclk_trimtsip.o: clk_trimtsip.c
126 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtsip.c -o $@
128 kclk_trimtsip_.o: clk_trimtsip_.c
129 $(COMPILE) $(K_CFLAGS) -c clk_trimtsip_.c -o $@
131 kclk_varitext.o: clk_varitext.c
132 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_varitext.c -o $@
134 kclk_varitext_.o: clk_varitext_.c
135 $(COMPILE) $(K_CFLAGS) -c clk_varitext_.c -o $@
137 kclk_wharton.o: clk_wharton.c
138 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_wharton.c -o $@
140 kclk_wharton_.o: clk_wharton_.c
141 $(COMPILE) $(K_CFLAGS) -c clk_wharton_.c -o $@
144 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse.c -o $@
147 $(COMPILE) $(K_CFLAGS) -c parse_.c -o $@
149 kparse_conf.o: parse_conf.c
150 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse_conf.c -o $@
152 kparse_conf_.o: parse_conf_.c
153 $(COMPILE) $(K_CFLAGS) -c parse_conf_.c -o $@
155 parsestreams.loadable_module.o: $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a
156 $(LD) -r -o $@ $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a
158 parse: $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a
159 $(LD) -r -o $@ $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a
162 cd ../libntp && $(MAKE)
164 parsesolaris.o: sys/systm.h
168 sed -e '/ffs(.*)/d' < /usr/include/sys/systm.h > sys/systm.h