]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ntp/libparse/Makefile.am
This commit was generated by cvs2svn to compensate for changes in r55360,
[FreeBSD/FreeBSD.git] / contrib / ntp / libparse / Makefile.am
1 #AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
2 #
3 # this is sick - i want the source to be compile with
4 # two time with different flags resulting different
5 # objects - still need to find a way to communicate
6 # that to automake/autoconf
7 #
8 # Frank Kardel
9 #
10 AUTOMAKE_OPTIONS = ../util/ansi2knr
11 noinst_LIBRARIES = @MAKE_LIBPARSE@ @MAKE_LIBPARSE_KERNEL@
12 EXTRA_LIBRARIES = libparse.a libparse_kernel.a
13 EXTRA_PROGRAMS = parsestreams parsesolaris
14 noinst_PROGRAMS = @MAKE_PARSEKMODULE@
15 CLEANFILES = libparse.a libparse_kernel.a
16
17 libparse_a_SOURCES = parse.c \
18                      parse_conf.c \
19                      clk_meinberg.c \
20                      clk_schmid.c \
21                      clk_rawdcf.c \
22                      clk_trimtsip.c \
23                      clk_dcf7000.c \
24                      clk_trimtaip.c \
25                      clk_rcc8000.c \
26                      clk_hopf6021.c \
27                      clk_computime.c \
28                      clk_wharton.c \
29                      clk_varitext.c \
30                      data_mbg.c \
31                      info_trimble.c \
32                      trim_info.c
33
34 libparse_kernel_a_SOURCES = kparse.c \
35                             kparse_conf.c \
36                             kclk_meinberg.c \
37                             kclk_schmid.c \
38                             kclk_rawdcf.c \
39                             kclk_trimtsip.c \
40                             kclk_dcf7000.c \
41                             kclk_trimtaip.c \
42                             kclk_rcc8000.c \
43                             kclk_hopf6021.c \
44                             kclk_computime.c \
45                             kclk_wharton.c \
46                             kclk_varitext.c
47
48 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/kernel
49 ETAGS_ARGS = Makefile.am
50
51 EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c
52
53 #
54 # create info_trimble.c
55 #
56 info_trimble.c: $(top_srcdir)/include/trimble.h mkinfo_rcmd.sed mkinfo_scmd.sed
57         @rm -f info_trimble.c
58         sed -n -f mkinfo_scmd.sed $(top_srcdir)/include/trimble.h  > info_trimble.c || rm -f info_trimble.c
59         sed -n -f mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.c || rm -f info_trimble.c
60
61 #
62 # HACK following below...
63 #
64 kparse_conf.o: parse_conf.c
65 kparse.o: parse.c
66 kclk_rawdcf.o: clk_rawdcf.c
67 kclk_trimtsip.o: clk_trimtsip.c
68 kclk_meinberg.o: clk_meinberg.c
69 kclk_schmid.o: clk_schmid.c
70 kclk_rawdcf.o: clk_rawdcf.c
71 kclk_trimtsip.o: clk_trimtsip.c
72 kclk_dcf7000.o: clk_dcf7000.c
73 kclk_trimtaip.o: clk_trimtaip.c
74 kclk_rcc8000.o: clk_rcc8000.c
75 kclk_hopf6021.o: clk_hopf6021.c
76 kclk_computime.o: clk_computime.c
77 kclk_wharton.o: clk_wharton.c
78 kclk_varitext.o: clk_varitext.c
79
80 parsestreams.loadable_module.o: $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a
81         $(LD) -r -o $@ $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a
82
83 parse: $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a
84         $(LD) -r -o $@ $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a
85
86 ../libntp/libntp.a:
87         cd ../libntp && $(MAKE)
88
89 parsesolaris.o: sys/systm.h
90
91 sys/systm.h:
92         mkdir sys && \
93         sed -e 's/ffs(long)/ffs(int)/' < /usr/include/sys/systm.h > sys/systm.h