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