head 1.9; access; symbols last-version-before-change-to-ossp-style:1.1.1.1 VAR_0_0_0:1.1.1.1 VENDOR:1.1.1; locks; strict; comment @# @; 1.9 date 2001.11.20.20.02.21; author rse; state dead; branches; next 1.8; 1.8 date 2001.11.13.19.37.26; author rse; state Exp; branches; next 1.7; 1.7 date 2001.11.13.14.46.55; author simons; state Exp; branches; next 1.6; 1.6 date 2001.11.13.14.36.30; author simons; state Exp; branches; next 1.5; 1.5 date 2001.11.13.13.34.26; author simons; state Exp; branches; next 1.4; 1.4 date 2001.11.13.12.47.41; author simons; state Exp; branches; next 1.3; 1.3 date 2001.11.13.12.15.19; author simons; state Exp; branches; next 1.2; 1.2 date 2001.11.13.12.08.30; author simons; state Exp; branches; next 1.1; 1.1 date 2001.11.09.17.01.37; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.11.09.17.01.37; author rse; state Exp; branches; next ; desc @@ 1.9 log @Apply standard environment for OSSP libraries. @ text @# Build the OSSP var library. CC = gcc AR = ar RANLIB = ranlib POD2MAN = pod2man WARNFLAGS = -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Winline \ -Wmissing-prototypes -Wmissing-declarations -Wnested-externs OPTFLAGS = -pipe -O4 CPPFLAGS = #-DDEBUG CFLAGS = LDFLAGS = OBJS = var.o .c.o: $(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) -c $< all: libvar.a var.3 libvar.a: $(OBJS) @@rm -f $@@ $(AR) cr $@@ $(OBJS) $(RANLIB) $@@ var_test: var_test.o libvar.a $(CC) $(LDFLAGS) -o $@@ var_test.o libvar.a var.3: var.pod $(POD2MAN) var.pod >$@@ check: var_test @@./var_test && echo "All tests succeeed." clean:: rm -f $(OBJS) libvar.a var_test.o var_test var.3 # Dependencies var.o: var.h var_test.o: var.h @ 1.8 log @we decided that the beast is named just 'var' @ text @@ 1.7 log @Made the execution of the test program at the 'check' target silent. @ text @d20 1 a20 1 all: libvarexp.a var.3 d22 1 a22 1 libvarexp.a: $(OBJS) d27 2 a28 2 var_test: var_test.o libvarexp.a $(CC) $(LDFLAGS) -o $@@ var_test.o libvarexp.a d37 1 a37 1 rm -f $(OBJS) libvarexp.a var_test.o var_test var.3 @ 1.6 log @Edited Makefile for production compilation. @ text @d34 1 a34 1 ./var_test && echo "All tests succeeed." @ 1.5 log @Changed compile flags for debugging purposes. @ text @d8 4 a11 3 WARNFLAGS = -Wall -pedantic OPTFLAGS = -g -pipe CPPFLAGS = -DDEBUG d32 3 @ 1.4 log @Added the man page to the build process. @ text @d9 2 a10 3 OPTFLAGS = -O3 -pipe CPPFLAGS = @ 1.3 log @- Updated clean target. - Updated dependencies. @ text @d6 1 d20 1 a20 1 all: libvarexp.a d30 3 d34 1 a34 1 rm -f $(OBJS) libvarexp.a var_test.o var_test @ 1.2 log @- Moved all routines into a single source file var.c. - Renamed varexp.h to var.h. - Removed odin-based build system. - Moved test cases into var_test.c. - Adapted build system. @ text @d1 1 a1 1 # Build libvarexp. d30 1 a30 1 rm -f $(OBJS) libvarexp.a var_test d33 3 @ 1.1 log @Initial revision @ text @d14 1 a14 3 OBJS = expand-named-characters.o expand-character-class.o command.o \ expression.o variable.o text.o expand.o input.o tokenbuf.o \ search-and-replace.o cut-out-offset.o transpose.o padding.o d26 3 d30 1 a30 6 @@(cd regression-tests && $(MAKE) clean) rm -f $(OBJS) rm -f libvarexp.a check:: (cd regression-tests && $(MAKE) check) a32 14 command.o: internal.h varexp.h cut-out-offset.o: internal.h varexp.h expand-character-class.o: internal.h varexp.h expand-named-characters.o: internal.h varexp.h expand.o: internal.h varexp.h expression.o: internal.h varexp.h input.o: internal.h varexp.h padding.o: internal.h varexp.h search-and-replace.o: internal.h varexp.h text.o: internal.h varexp.h tokenbuf.o: internal.h varexp.h transpose.o: internal.h varexp.h variable.o: internal.h varexp.h @ 1.1.1.1 log @import first cut of OSSP var @ text @@