From 6d6d13f8ce65c23996748efcd0983ad5a656aa96 Mon Sep 17 00:00:00 2001 From: fluxgen <fluxgen> Date: Wed, 14 Aug 2002 00:02:17 +0000 Subject: signaltest target --- src/tests/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/tests/Makefile b/src/tests/Makefile index ac8fdb0..978167f 100644 --- a/src/tests/Makefile +++ b/src/tests/Makefile @@ -4,7 +4,9 @@ CXXFLAGS= -I.. -DDEBUG -Wall -g -O2 LIBS= XFLAGS= -I/usr/X11R6/include XLIBS= -L/usr/X11R6/lib -lX11 -all: testStringUtil testKeys testResource +COMPILEFILE=$(CXX) -c $(CXXFLAGS) + +all: testStringUtil testKeys testResource testSignal .cc.o: $(CXX) -c $(CXXFLAGS) $< @@ -18,16 +20,26 @@ Keys.o: ../Keys.cc ../Keys.hh Resource.o: ../Resource.cc ../Resource.hh $(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Resource.cc -o Resource.o +../SignalHandler.o: + ${COMPILEFILE} ../SignalHandler.cc -o ../SignalHandler.o + testStringUtil: StringUtiltest.o StringUtil.o $(CXX) $(LIBS) StringUtiltest.o StringUtil.o -o testStringUtil + testKeys: Keys.o testKeys.o StringUtil.o $(CXX) $(LIBS) $(XLIBS) StringUtil.o Keys.o testKeys.o -o testKeys + testResource: Resourcetest.o Resource.o ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource +testSignal: signaltest.cc ../SignalHandler.o + ${CXX} ${LIBS} signaltest.cc ../SignalHandler.o -o testSignal + + run: testResource testKeys testStringUtil ./testKeys ./testStringUtil ./testResource + ./testSignal clean: rm -f *.o -- cgit v0.11.2