1#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies 2AUTOMAKE_OPTIONS = ../util/ansi2knr 3noinst_LIBRARIES = @MAKE_LIBPARSE@ @MAKE_LIBPARSE_KERNEL@ 4EXTRA_LIBRARIES = libparse.a libparse_kernel.a 5EXTRA_PROGRAMS = parsestreams parsesolaris 6noinst_PROGRAMS = @MAKE_PARSEKMODULE@ 7CLEANFILES = libparse.a libparse_kernel.a 8 9libparse_a_SOURCES = parse.c \ 10 parse_conf.c \ 11 clk_meinberg.c \ 12 clk_schmid.c \ 13 clk_rawdcf.c \ 14 clk_trimtsip.c \ 15 clk_dcf7000.c \ 16 clk_trimtaip.c \ 17 clk_rcc8000.c \ 18 clk_hopf6021.c \ 19 clk_computime.c \ 20 clk_wharton.c \ 21 clk_varitext.c \ 22 data_mbg.c \ 23 info_trimble.c \ 24 trim_info.c 25 26libparse_kernel_a_SOURCES = 27libparse_kernel_a_LIBADD = kparse$U.o \ 28 kparse_conf$U.o \ 29 kclk_computime$U.o \ 30 kclk_dcf7000$U.o \ 31 kclk_hopf6021$U.o \ 32 kclk_meinberg$U.o \ 33 kclk_rawdcf$U.o \ 34 kclk_rcc8000$U.o \ 35 kclk_schmid$U.o \ 36 kclk_trimtaip$U.o \ 37 kclk_trimtsip$U.o \ 38 kclk_varitext$U.o \ 39 kclk_wharton$U.o 40 41INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/kernel 42ETAGS_ARGS = Makefile.am 43 44EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c 45 46# 47# create info_trimble.c 48# 49info_trimble.c: $(top_srcdir)/include/trimble.h mkinfo_rcmd.sed mkinfo_scmd.sed 50 @rm -f info_trimble.c 51 sed -n -f mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.c || rm -f info_trimble.c 52 sed -n -f mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.c || rm -f info_trimble.c 53 54kclk_computime$U.o: clk_computime$U.c 55 $(COMPILE) -DPARSESTREAM -c $< -o $@ 56 57kclk_dcf7000$U.o: clk_dcf7000$U.c 58 $(COMPILE) -DPARSESTREAM -c $< -o $@ 59 60kclk_hopf6021$U.o: clk_hopf6021$U.c 61 $(COMPILE) -DPARSESTREAM -c $< -o $@ 62 63kclk_meinberg$U.o: clk_meinberg$U.c 64 $(COMPILE) -DPARSESTREAM -c $< -o $@ 65 66kclk_rawdcf$U.o: clk_rawdcf$U.c 67 $(COMPILE) -DPARSESTREAM -c $< -o $@ 68 69kclk_rcc8000$U.o: clk_rcc8000$U.c 70 $(COMPILE) -DPARSESTREAM -c $< -o $@ 71 72kclk_schmid$U.o: clk_schmid$U.c 73 $(COMPILE) -DPARSESTREAM -c $< -o $@ 74 75kclk_trimtaip$U.o: clk_trimtaip$U.c 76 $(COMPILE) -DPARSESTREAM -c $< -o $@ 77 78kclk_trimtsip$U.o: clk_trimtsip$U.c 79 $(COMPILE) -DPARSESTREAM -c $< -o $@ 80 81kclk_varitext$U.o: clk_varitext$U.c 82 $(COMPILE) -DPARSESTREAM -c $< -o $@ 83 84kclk_wharton$U.o: clk_wharton$U.c 85 $(COMPILE) -DPARSESTREAM -c $< -o $@ 86 87kparse$U.o: parse$U.c 88 $(COMPILE) -DPARSESTREAM -c $< -o $@ 89 90kparse_conf$U.o: parse_conf$U.c 91 $(COMPILE) -DPARSESTREAM -c $< -o $@ 92 93parsestreams.loadable_module.o: $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a 94 $(LD) -r -o $@ $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a 95 96parse: $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a 97 $(LD) -r -o $@ $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a 98 99../libntp/libntp.a: 100 cd ../libntp && $(MAKE) 101 102parsesolaris.o: sys/systm.h 103 104sys/systm.h: 105 mkdir sys && \ 106 sed -e 's/ffs(long)/ffs(int)/' < /usr/include/sys/systm.h > sys/systm.h 107