Change the default for ntpd back to -s, the bug which triggered this
[dragonfly.git] / contrib / ntp / libparse / Makefile.am
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
8
9 K_CFLAGS = -DPARSESTREAM -DNTP_NEED_BOPS
10
11 libparse_a_SOURCES = parse.c \
12                      parse_conf.c \
13                      clk_meinberg.c \
14                      clk_schmid.c \
15                      clk_rawdcf.c \
16                      clk_trimtsip.c \
17                      clk_dcf7000.c \
18                      clk_trimtaip.c \
19                      clk_rcc8000.c \
20                      clk_hopf6021.c \
21                      clk_computime.c \
22                      clk_wharton.c \
23                      clk_varitext.c \
24                      data_mbg.c \
25                      info_trimble.c \
26                      trim_info.c
27
28 libparse_kernel_a_SOURCES = 
29 libparse_kernel_a_LIBADD = kparse$U.o \
30                             kparse_conf$U.o \
31                             kclk_computime$U.o \
32                             kclk_dcf7000$U.o \
33                             kclk_hopf6021$U.o \
34                             kclk_meinberg$U.o \
35                             kclk_rawdcf$U.o \
36                             kclk_rcc8000$U.o \
37                             kclk_schmid$U.o \
38                             kclk_trimtaip$U.o \
39                             kclk_trimtsip$U.o \
40                             kclk_varitext$U.o \
41                             kclk_wharton$U.o
42
43 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/kernel
44 ETAGS_ARGS = Makefile.am
45
46 EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c
47
48 #
49 # create info_trimble.c
50 #
51 info_trimble.c: $(top_srcdir)/include/trimble.h mkinfo_rcmd.sed mkinfo_scmd.sed
52         @rm -f info_trimble.c
53         sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h  > info_trimble.c || rm -f info_trimble.c
54         sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.c || rm -f info_trimble.c
55
56 kclk_computime.o: clk_computime.c
57         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_computime.c -o $@
58
59 kclk_computime_.o: clk_computime_.c
60         $(COMPILE) $(K_CFLAGS) -c clk_computime_.c -o $@
61
62 kclk_dcf7000.o: clk_dcf7000.c
63         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_dcf7000.c -o $@
64
65 kclk_dcf7000_.o: clk_dcf7000_.c
66         $(COMPILE) $(K_CFLAGS) -c clk_dcf7000_.c -o $@
67
68 kclk_hopf6021.o: clk_hopf6021.c
69         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_hopf6021.c -o $@
70
71 kclk_hopf6021_.o: clk_hopf6021_.c
72         $(COMPILE) $(K_CFLAGS) -c clk_hopf6021_.c -o $@
73
74 kclk_meinberg.o: clk_meinberg.c
75         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_meinberg.c -o $@
76
77 kclk_meinberg_.o: clk_meinberg_.c
78         $(COMPILE) $(K_CFLAGS) -c clk_meinberg_.c -o $@
79
80 kclk_rawdcf.o: clk_rawdcf.c
81         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rawdcf.c -o $@
82
83 kclk_rawdcf_.o: clk_rawdcf_.c
84         $(COMPILE) $(K_CFLAGS) -c clk_rawdcf_.c -o $@
85
86 kclk_rcc8000.o: clk_rcc8000.c
87         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rcc8000.c -o $@
88
89 kclk_rcc8000_.o: clk_rcc8000_.c
90         $(COMPILE) $(K_CFLAGS) -c clk_rcc8000_.c -o $@
91
92 kclk_schmid.o: clk_schmid.c
93         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_schmid.c -o $@
94
95 kclk_schmid_.o: clk_schmid_.c
96         $(COMPILE) $(K_CFLAGS) -c clk_schmid_.c -o $@
97
98 kclk_trimtaip.o: clk_trimtaip.c
99         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtaip.c -o $@
100
101 kclk_trimtaip_.o: clk_trimtaip_.c
102         $(COMPILE) $(K_CFLAGS) -c clk_trimtaip_.c -o $@
103
104 kclk_trimtsip.o: clk_trimtsip.c
105         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtsip.c -o $@
106
107 kclk_trimtsip_.o: clk_trimtsip_.c
108         $(COMPILE) $(K_CFLAGS) -c clk_trimtsip_.c -o $@
109
110 kclk_varitext.o: clk_varitext.c
111         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_varitext.c -o $@
112
113 kclk_varitext_.o: clk_varitext_.c
114         $(COMPILE) $(K_CFLAGS) -c clk_varitext_.c -o $@
115
116 kclk_wharton.o: clk_wharton.c
117         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_wharton.c -o $@
118
119 kclk_wharton_.o: clk_wharton_.c
120         $(COMPILE) $(K_CFLAGS) -c clk_wharton_.c -o $@
121
122 kparse.o: parse.c
123         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse.c -o $@
124
125 kparse_.o: parse_.c
126         $(COMPILE) $(K_CFLAGS) -c parse_.c -o $@
127
128 kparse_conf.o: parse_conf.c
129         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse_conf.c -o $@
130
131 kparse_conf_.o: parse_conf_.c
132         $(COMPILE) $(K_CFLAGS) -c parse_conf_.c -o $@
133
134 parsestreams.loadable_module.o: $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a
135         $(LD) -r -o $@ $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a
136
137 parse: $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a
138         $(LD) -r -o $@ $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a
139
140 ../libntp/libntp.a:
141         cd ../libntp && $(MAKE)
142
143 parsesolaris.o: sys/systm.h
144
145 sys/systm.h:
146         mkdir sys && \
147         sed -e 's/ffs(long)/ffs(int)/' < /usr/include/sys/systm.h > sys/systm.h