blob: c0f838b798a3fc0bd28cc3701f55c59f8722dae0 (
plain)
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
|
#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
#
# this is sick - i want the source to be compile with
# two time with different flags resulting different
# objects - still need to find a way to communicate
# that to automake/autoconf
#
# Frank Kardel
#
AUTOMAKE_OPTIONS = ../util/ansi2knr
noinst_LIBRARIES = @MAKE_LIBPARSE@ @MAKE_LIBPARSE_KERNEL@
EXTRA_LIBRARIES = libparse.a libparse_kernel.a
EXTRA_PROGRAMS = parsestreams parsesolaris
noinst_PROGRAMS = @MAKE_PARSEKMODULE@
CLEANFILES = libparse.a libparse_kernel.a
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 \
data_mbg.c \
info_trimble.c \
trim_info.c
libparse_kernel_a_SOURCES = kparse.c \
kparse_conf.c \
kclk_meinberg.c \
kclk_schmid.c \
kclk_rawdcf.c \
kclk_trimtsip.c \
kclk_dcf7000.c \
kclk_trimtaip.c \
kclk_rcc8000.c \
kclk_hopf6021.c \
kclk_computime.c \
kclk_wharton.c \
kclk_varitext.c
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/kernel
ETAGS_ARGS = Makefile.am
EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c
#
# create info_trimble.c
#
info_trimble.c: $(top_srcdir)/include/trimble.h mkinfo_rcmd.sed mkinfo_scmd.sed
@rm -f info_trimble.c
sed -n -f mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.c || rm -f info_trimble.c
sed -n -f mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.c || rm -f info_trimble.c
#
# HACK following below...
#
kparse_conf.o: parse_conf.c
kparse.o: parse.c
kclk_rawdcf.o: clk_rawdcf.c
kclk_trimtsip.o: clk_trimtsip.c
kclk_meinberg.o: clk_meinberg.c
kclk_schmid.o: clk_schmid.c
kclk_rawdcf.o: clk_rawdcf.c
kclk_trimtsip.o: clk_trimtsip.c
kclk_dcf7000.o: clk_dcf7000.c
kclk_trimtaip.o: clk_trimtaip.c
kclk_rcc8000.o: clk_rcc8000.c
kclk_hopf6021.o: clk_hopf6021.c
kclk_computime.o: clk_computime.c
kclk_wharton.o: clk_wharton.c
kclk_varitext.o: clk_varitext.c
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
../libntp/libntp.a:
cd ../libntp && $(MAKE)
parsesolaris.o: sys/systm.h
sys/systm.h:
mkdir sys && \
sed -e 's/ffs(long)/ffs(int)/' < /usr/include/sys/systm.h > sys/systm.h
|