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# 10AUTOMAKE_OPTIONS = ../util/ansi2knr 11noinst_LIBRARIES = @MAKE_LIBPARSE@ @MAKE_LIBPARSE_KERNEL@ 12EXTRA_LIBRARIES = libparse.a libparse_kernel.a 13EXTRA_PROGRAMS = parsestreams parsesolaris 14noinst_PROGRAMS = @MAKE_PARSEKMODULE@ 15CLEANFILES = libparse.a libparse_kernel.a 16 17libparse_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 34libparse_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 48INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/kernel 49ETAGS_ARGS = Makefile.am 50 51EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c 52 53# 54# create info_trimble.c 55# 56info_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# 64kparse_conf.o: parse_conf.c 65kparse.o: parse.c 66kclk_rawdcf.o: clk_rawdcf.c 67kclk_trimtsip.o: clk_trimtsip.c 68kclk_meinberg.o: clk_meinberg.c 69kclk_schmid.o: clk_schmid.c 70kclk_rawdcf.o: clk_rawdcf.c 71kclk_trimtsip.o: clk_trimtsip.c 72kclk_dcf7000.o: clk_dcf7000.c 73kclk_trimtaip.o: clk_trimtaip.c 74kclk_rcc8000.o: clk_rcc8000.c 75kclk_hopf6021.o: clk_hopf6021.c 76kclk_computime.o: clk_computime.c 77kclk_wharton.o: clk_wharton.c 78kclk_varitext.o: clk_varitext.c 79 80parsestreams.loadable_module.o: $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a 81 $(LD) -r -o $@ $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a 82 83parse: $(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 89parsesolaris.o: sys/systm.h 90 91sys/systm.h: 92 mkdir sys && \ 93 sed -e 's/ffs(long)/ffs(int)/' < /usr/include/sys/systm.h > sys/systm.h 94