Date: Monday, November 14, 2005 @ 19:42:04
Author: marc
Path: /cvsroot/carob/carob/test
Modified: GNUmakefile (1.3 -> 1.4)
Now computing the list of tests automatically.
-------------+
GNUmakefile | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
Index: carob/test/GNUmakefile
diff -u carob/test/GNUmakefile:1.3 carob/test/GNUmakefile:1.4
--- carob/test/GNUmakefile:1.3 Mon Nov 14 19:14:30 2005
+++ carob/test/GNUmakefile Mon Nov 14 19:42:04 2005
@@ -30,20 +30,25 @@
LIB_CPPUNIT = cppunit
-OBJS = TestOnValidConnection.o\
- TestBeginCommitRollback.o\
- TestConnect.o\
- TestExecWriteRequest.o\
- TestExecReadRequest.o\
- TestStatement.o\
- CarobTestLauncher.o
+
+# TESTSRCS
+include testslist
+
+TESTOBJS = ${TESTSRCS:%.cpp=%.o}
+
CXXFLAGS = -g3 -Wall -I${INCDIR}
LDFLAGS = -Wl,-rpath,. -L${CAROB_ROOT} -l${LIB_CAROB} -ldl
-l${LIB_CPPUNIT}
EXE = carobTestLauncher
-${EXE}: ${OBJS}
- ${CXX} ${LDFLAGS} -o ${EXE} ${OBJS}
+${EXE}: ${TESTOBJS} CarobTestLauncher.o
+ ${CXX} ${LDFLAGS} -o $@ $^
clean:
${RM} *.o ${EXE}
+
+testslist:
+ { printf "TESTSRCS = " ; for i in Test*cpp; do printf "$$i "; done ; }
> $@
+
+distclean: clean
+ ${RM} testslist
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits