blob: 2988e08e2bc22b90b1ad160d1b0a67db08b98768 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
NULL=
BUILT_SOURCES = $(VPHACK) info_trimble.c $(VPHACK_AFTER)
CLEANFILES =
noinst_LIBRARIES = @MAKE_LIBPARSE@ @MAKE_LIBPARSE_KERNEL@
EXTRA_LIBRARIES = libparse.a libparse_kernel.a
EXTRA_PROGRAMS = parsestreams parsesolaris
noinst_PROGRAMS = @MAKE_PARSEKMODULE@
K_CFLAGS = -DPARSESTREAM -DNTP_NEED_BOPS
# info_trimble.c was mistakenly created in the build directory
# previously. It is located in $(srcdir) and any updates must
# end up there.
#
# VPHACK and VPHACK_AFTER are enabled on non-GNU makes (such as
# BSD make) to work around build/dependency issues where we want
# built source files to live in srcdir, as opposed to builddir.
#
if VPATH_HACK
VPHACK= vphack
VPHACK_AFTER= vphack_after
else
VPHACK=
VPHACK_AFTER=
endif
vphack:
test -e info_trimble.c || ln -s $(srcdir)/info_trimble.c .
vphack_after:
test -L info_trimble.c || ( \
mv info_trimble.c $(srcdir)/info_trimble.c && \
ln -s $(srcdir)/info_trimble.c . \
)
libparse_a_SOURCES = parse.c \
parse_conf.c \
clk_meinberg.c \
clk_schmid.c \
clk_rawdcf.c \
clk_trimtsip.c \
clk_dcf7000.c \
clk_trimtaip.c \
clk_rcc8000.c \
clk_hopf6021.c \
clk_computime.c \
clk_wharton.c \
clk_varitext.c \
clk_sel240x.c \
data_mbg.c \
info_trimble.c \
trim_info.c \
binio.c \
ieee754io.c \
mfp_mul.c \
gpstolfp.c \
$(NULL)
libparse_kernel_a_SOURCES =
libparse_kernel_a_LIBADD = \
kparse.o \
kparse_conf.o \
kclk_computime.o \
kclk_dcf7000.o \
kclk_hopf6021.o \
kclk_meinberg.o \
kclk_rawdcf.o \
kclk_rcc8000.o \
kclk_schmid.o \
kclk_trimtaip.o \
kclk_trimtsip.o \
kclk_varitext.o \
kclk_wharton.o \
kclk_sel240x.o \
kbinio.o \
kieee754io.o \
kmfp_mul.o \
kgpstolfp.o \
$(NULL)
AM_CFLAGS = $(CFLAGS_NTP)
AM_CPPFLAGS = $(NTP_INCS)
AM_CPPFLAGS += -I$(top_srcdir)/kernel
AM_CPPFLAGS += $(CPPFLAGS_NTP)
EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c
info_trimble.c: $(top_srcdir)/include/trimble.h $(srcdir)/Makefile.am $(srcdir)/mkinfo_scmd.sed $(srcdir)/mkinfo_rcmd.sed
sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.new
sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.new
mv -f info_trimble.new $@
#$(srcdir)/info_trimble.c: $(top_srcdir)/include/trimble.h $(srcdir)/Makefile.am $(srcdir)/mkinfo_scmd.sed $(srcdir)/mkinfo_rcmd.sed
# sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.new
# sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.new
# mv -f info_trimble.new $@
kieee754io.o: $(srcdir)/ieee754io.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/ieee754io.c -o $@
kmfp_mul.o: $(srcdir)/mfp_mul.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/mfp_mul.c -o $@
kgpstolfp.o: $(srcdir)/gpstolfp.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/gpstolfp.c -o $@
kbinio.o: $(srcdir)/binio.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/binio.c -o $@
kclk_computime.o: $(srcdir)/clk_computime.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_computime.c -o $@
kclk_dcf7000.o: $(srcdir)/clk_dcf7000.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_dcf7000.c -o $@
kclk_hopf6021.o: $(srcdir)/clk_hopf6021.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_hopf6021.c -o $@
kclk_meinberg.o: $(srcdir)/clk_meinberg.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_meinberg.c -o $@
kclk_rawdcf.o: $(srcdir)/clk_rawdcf.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rawdcf.c -o $@
kclk_rcc8000.o: $(srcdir)/clk_rcc8000.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rcc8000.c -o $@
kclk_schmid.o: $(srcdir)/clk_schmid.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_schmid.c -o $@
kclk_trimtaip.o: $(srcdir)/clk_trimtaip.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtaip.c -o $@
kclk_trimtsip.o: $(srcdir)/clk_trimtsip.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtsip.c -o $@
kclk_varitext.o: $(srcdir)/clk_varitext.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_varitext.c -o $@
kclk_wharton.o: $(srcdir)/clk_wharton.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_wharton.c -o $@
kclk_sel240x.o: $(srcdir)/clk_sel240x.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_sel240x.c -o $@
kparse.o: $(srcdir)/parse.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse.c -o $@
kparse_conf.o: $(srcdir)/parse_conf.c
$(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse_conf.c -o $@
parsestreams.loadable_module.o: $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a
$(LD) -r -o $@ $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a
parse: $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a
$(LD) -r -o $@ $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a
parsesolaris.o: sys/systm.h
sys/systm.h:
-mkdir sys
sed -e '/ffs(.*)/d' < /usr/include/sys/systm.h > sys/systm.h
## check-libparse is invoked by ntpd/Makefile.am
check-libparse: $(noinst_LIBRARIES)
@: do-nothing action to avoid default SCCS get
include $(top_srcdir)/sntp/check-libntp.mf
include $(top_srcdir)/depsver.mf
include $(top_srcdir)/includes.mf
|