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 9K_CFLAGS = -DPARSESTREAM -DNTP_NEED_BOPS 10 11libparse_a_SOURCES = parse.c \ 12 parse_conf.c \ 13 clk_meinberg.c \ 14 clk_schmid.c \ 15 clk_rawdcf.c \ 16 clk_trimtsip.c \ 17 clk_dcf7000.c \ 18 clk_trimtaip.c \ 19 clk_rcc8000.c \ 20 clk_hopf6021.c \ 21 clk_computime.c \ 22 clk_wharton.c \ 23 clk_varitext.c \ 24 data_mbg.c \ 25 info_trimble.c \ 26 trim_info.c 27 28libparse_kernel_a_SOURCES = 29libparse_kernel_a_LIBADD = kparse$U.o \ 30 kparse_conf$U.o \ 31 kclk_computime$U.o \ 32 kclk_dcf7000$U.o \ 33 kclk_hopf6021$U.o \ 34 kclk_meinberg$U.o \ 35 kclk_rawdcf$U.o \ 36 kclk_rcc8000$U.o \ 37 kclk_schmid$U.o \ 38 kclk_trimtaip$U.o \ 39 kclk_trimtsip$U.o \ 40 kclk_varitext$U.o \ 41 kclk_wharton$U.o 42 43INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/kernel 44ETAGS_ARGS = Makefile.am 45 46EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c 47 48# 49# create info_trimble.c 50# 51info_trimble.c: $(top_srcdir)/include/trimble.h mkinfo_rcmd.sed mkinfo_scmd.sed 52 @rm -f info_trimble.c 53 sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.c || rm -f info_trimble.c 54 sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.c || rm -f info_trimble.c 55 56kclk_computime.o: clk_computime.c 57 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_computime.c -o $@ 58 59kclk_computime_.o: clk_computime_.c 60 $(COMPILE) $(K_CFLAGS) -c clk_computime_.c -o $@ 61 62kclk_dcf7000.o: clk_dcf7000.c 63 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_dcf7000.c -o $@ 64 65kclk_dcf7000_.o: clk_dcf7000_.c 66 $(COMPILE) $(K_CFLAGS) -c clk_dcf7000_.c -o $@ 67 68kclk_hopf6021.o: clk_hopf6021.c 69 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_hopf6021.c -o $@ 70 71kclk_hopf6021_.o: clk_hopf6021_.c 72 $(COMPILE) $(K_CFLAGS) -c clk_hopf6021_.c -o $@ 73 74kclk_meinberg.o: clk_meinberg.c 75 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_meinberg.c -o $@ 76 77kclk_meinberg_.o: clk_meinberg_.c 78 $(COMPILE) $(K_CFLAGS) -c clk_meinberg_.c -o $@ 79 80kclk_rawdcf.o: clk_rawdcf.c 81 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rawdcf.c -o $@ 82 83kclk_rawdcf_.o: clk_rawdcf_.c 84 $(COMPILE) $(K_CFLAGS) -c clk_rawdcf_.c -o $@ 85 86kclk_rcc8000.o: clk_rcc8000.c 87 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_rcc8000.c -o $@ 88 89kclk_rcc8000_.o: clk_rcc8000_.c 90 $(COMPILE) $(K_CFLAGS) -c clk_rcc8000_.c -o $@ 91 92kclk_schmid.o: clk_schmid.c 93 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_schmid.c -o $@ 94 95kclk_schmid_.o: clk_schmid_.c 96 $(COMPILE) $(K_CFLAGS) -c clk_schmid_.c -o $@ 97 98kclk_trimtaip.o: clk_trimtaip.c 99 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtaip.c -o $@ 100 101kclk_trimtaip_.o: clk_trimtaip_.c 102 $(COMPILE) $(K_CFLAGS) -c clk_trimtaip_.c -o $@ 103 104kclk_trimtsip.o: clk_trimtsip.c 105 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_trimtsip.c -o $@ 106 107kclk_trimtsip_.o: clk_trimtsip_.c 108 $(COMPILE) $(K_CFLAGS) -c clk_trimtsip_.c -o $@ 109 110kclk_varitext.o: clk_varitext.c 111 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_varitext.c -o $@ 112 113kclk_varitext_.o: clk_varitext_.c 114 $(COMPILE) $(K_CFLAGS) -c clk_varitext_.c -o $@ 115 116kclk_wharton.o: clk_wharton.c 117 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/clk_wharton.c -o $@ 118 119kclk_wharton_.o: clk_wharton_.c 120 $(COMPILE) $(K_CFLAGS) -c clk_wharton_.c -o $@ 121 122kparse.o: parse.c 123 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse.c -o $@ 124 125kparse_.o: parse_.c 126 $(COMPILE) $(K_CFLAGS) -c parse_.c -o $@ 127 128kparse_conf.o: parse_conf.c 129 $(COMPILE) $(K_CFLAGS) -c $(srcdir)/parse_conf.c -o $@ 130 131kparse_conf_.o: parse_conf_.c 132 $(COMPILE) $(K_CFLAGS) -c parse_conf_.c -o $@ 133 134parsestreams.loadable_module.o: $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a 135 $(LD) -r -o $@ $(parsestreams_OBJECTS) libparse_kernel.a ../libntp/libntp.a 136 137parse: $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a 138 $(LD) -r -o $@ $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a 139 140../libntp/libntp.a: 141 cd ../libntp && $(MAKE) 142 143parsesolaris.o: sys/systm.h 144 145sys/systm.h: 146 mkdir sys && \ 147 sed -e 's/ffs(long)/ffs(int)/' < /usr/include/sys/systm.h > sys/systm.h 148