head 1.21; access; symbols; locks; strict; comment @# @; 1.21 date 2001.07.20.09.53.37; author simons; state dead; branches; next 1.20; 1.20 date 2001.07.20.09.22.25; author simons; state Exp; branches; next 1.19; 1.19 date 2001.07.19.15.13.39; author simons; state Exp; branches; next 1.18; 1.18 date 2001.07.19.14.58.27; author simons; state Exp; branches; next 1.17; 1.17 date 2001.07.19.12.28.57; author simons; state Exp; branches; next 1.16; 1.16 date 2001.07.19.12.28.15; author simons; state Exp; branches; next 1.15; 1.15 date 2001.07.18.18.26.32; author simons; state Exp; branches; next 1.14; 1.14 date 2001.07.18.11.30.19; author simons; state Exp; branches; next 1.13; 1.13 date 2001.07.09.17.44.47; author simons; state Exp; branches; next 1.12; 1.12 date 2001.07.08.15.36.29; author simons; state Exp; branches; next 1.11; 1.11 date 2001.07.08.15.20.34; author simons; state Exp; branches; next 1.10; 1.10 date 2001.07.08.14.07.35; author simons; state Exp; branches; next 1.9; 1.9 date 2001.07.04.16.13.56; author simons; state Exp; branches; next 1.8; 1.8 date 2001.07.04.16.06.08; author simons; state Exp; branches; next 1.7; 1.7 date 2001.07.04.15.58.13; author simons; state Exp; branches; next 1.6; 1.6 date 2001.07.04.15.09.55; author simons; state Exp; branches; next 1.5; 1.5 date 2001.07.03.11.15.39; author simons; state Exp; branches; next 1.4; 1.4 date 2001.07.03.08.25.24; author simons; state Exp; branches; next 1.3; 1.3 date 2001.07.02.12.19.37; author simons; state Exp; branches; next 1.2; 1.2 date 2001.06.28.22.42.12; author simons; state Exp; branches; next 1.1; 1.1 date 2001.06.28.12.32.04; author simons; state Exp; branches; next ; desc @@ 1.21 log @Added skeleton autoconf support. @ text @# Build libxds and support/test programs. CC = gcc CXX = g++ AR = ar RANLIB = ranlib WARNFLAGS = -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wcast-align -Winline -Wmissing-prototypes \ -Wmissing-declarations -Wnested-externs OPTFLAGS = -O3 -pipe CPPFLAGS = -D_GNU_SOURCE CFLAGS = CXXFLAGS = LDFLAGS = OBJS = decode.o destroy.o encode.o getbuffer.o init.o register.o \ setbuffer.o unregister.o vdecode.o vencode.o find-engine.o \ set-capacity.o xdr-encode-int32.o xdr-encode-int64.o \ xdr-encode-uint32.o xdr-encode-uint64.o xdr-decode-int32.o \ xdr-decode-int64.o xdr-decode-uint32.o xdr-decode-uint64.o \ xdr-encode-octetstream.o xdr-decode-octetstream.o \ xdr-encode-string.o xdr-decode-string.o .c.o: $(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) -c $< .cpp.o: $(CXX) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CXXFLAGS) -c $< all: libxds.a xds.3 libxds.a: $(OBJS) @@rm -f $@@ $(AR) cr $@@ $(OBJS) $(RANLIB) $@@ xds.3: xds.pod pod2man --section=3 --center="XDS Library Programmer API " xds.pod >xds.3 clean:: @@(cd regression-tests && $(MAKE) clean) rm -f $(OBJS) rm -f libxds.a test.o test xds.3 check: libxds.a (cd regression-tests && $(MAKE) check) # Dependencies decode.o: internal.h xds.h destroy.o: internal.h xds.h encode.o: internal.h xds.h find-engine.o: internal.h xds.h getbuffer.o: internal.h xds.h init.o: internal.h xds.h register.o: internal.h xds.h set-capacity.o: internal.h xds.h setbuffer.o: internal.h xds.h unregister.o: internal.h xds.h vdecode.o: internal.h xds.h vencode.o: internal.h xds.h xdr-decode-int32.o: internal.h xds.h xdr-decode-int64.o: internal.h xds.h xdr-decode-uint32.o: internal.h xds.h xdr-decode-uint64.o: internal.h xds.h xdr-encode-int32.o: internal.h xds.h xdr-encode-int64.o: internal.h xds.h xdr-encode-uint32.o: internal.h xds.h xdr-encode-uint64.o: internal.h xds.h @ 1.20 log @People who know how to spell clearly have an advantage. @ text @@ 1.19 log @Implemented XDR encoding and decoding of strings. @ text @d22 1 a22 1 xdr-encode-octedstream.o xdr-decode-octedstream.o \ @ 1.18 log @Implemented encoding and decoding of variable length octed streams. @ text @d22 2 a23 1 xdr-encode-octedstream.o xdr-decode-octedstream.o @ 1.17 log @Updated dependencies. @ text @d21 2 a22 1 xdr-decode-int64.o xdr-decode-uint32.o xdr-decode-uint64.o @ 1.16 log @Split the various encoding and decoding routines into separate files so that the linker may pull them in separately. @ text @d60 8 @ 1.15 log @Implemented decoding engines for the integer data types and extended the existing test suites to verify them. @ text @d19 3 a21 2 set-capacity.o xdr-encode-int.o xdr-decode-int.o @ 1.14 log @Added XDR encoding engines for int32 and uint32. @ text @d8 2 a9 1 WARNFLAGS = -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wcast-align -Winline -Wmissing-prototypes -Wmissing-declarations -Wnested-externs d19 1 a19 1 set-capacity.o xdr-encode-int.o @ 1.13 log @Added more aggressive warning flags. @ text @d18 1 a18 1 set-capacity.o @ 1.12 log @Removed test.c -- this won't be needed anymore now that we have regression testing. @ text @d8 1 a8 1 WARNFLAGS = -Wall -ansi -pedantic @ 1.11 log @Added generic xds_set_capacity() function that will handle the enlarging of dynamic buffers for the rest of the code. @ text @d26 1 a26 1 all: libxds.a xds.3 test a32 3 test: test.o libxds.a $(CC) $(LDFLAGS) -o $@@ test.o -L. -lxds d49 1 d53 1 a54 1 test.o: xds.h @ 1.10 log @- Added _GNU_SOURCE define to CPPFLAGS so those stupid Linux boxes find routines not included in the ANSI-C standard. - Added find-engine.o module to build. @ text @d17 2 a18 1 setbuffer.o unregister.o vdecode.o vencode.o find-engine.o @ 1.9 log @Fixed clean target. @ text @d11 1 a11 1 CPPFLAGS = d17 1 a17 1 setbuffer.o unregister.o vdecode.o vencode.o @ 1.8 log @Updated dependencies. @ text @d40 2 a41 2 rm -f test.o test rm -f xds.3 @ 1.7 log @Make sure libxds.a is built before starting the regression tests. @ text @d48 11 a58 1 test.o: test.c xds.h @ 1.6 log @Added regression test suite. @ text @d5 2 d16 3 d25 6 a30 1 all: test xds.3 d32 2 a33 2 test: test.o $(CC) $(LDFLAGS) -o $@@ test.o d39 1 d43 1 a43 1 check: @ 1.5 log @Removed automatic variable use from xds.3 target because non-GNU make won't understand these reliably. @ text @d32 3 @ 1.4 log @Added target for xds.3. @ text @d26 1 a26 1 pod2man --section=3 --center="XDS Library Programmer API " $< >$@@ @ 1.3 log @Remove the -s flag at LDFLAGS. Debugging output might actually be useful during development. @ text @d20 2 d25 3 d30 1 d34 1 a34 1 test.o: test.c xds.h @ 1.2 log @Link test binary with CC, not CXX. @ text @d12 1 a12 1 LDFLAGS = -s @ 1.1 log @The build infrastructure for the libarary. Currently does not more than compile an empty test program in order to check the syntax of xds.h. @ text @d21 1 a21 1 $(CXX) $(LDFLAGS) -o $@@ test.o @