diff options
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
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 | |||
4 | LIBS= | 4 | LIBS= |
5 | XFLAGS= -I/usr/X11R6/include | 5 | XFLAGS= -I/usr/X11R6/include |
6 | XLIBS= -L/usr/X11R6/lib -lX11 | 6 | XLIBS= -L/usr/X11R6/lib -lX11 |
7 | all: testStringUtil testKeys testResource | 7 | COMPILEFILE=$(CXX) -c $(CXXFLAGS) |
8 | |||
9 | all: testStringUtil testKeys testResource testSignal | ||
8 | 10 | ||
9 | .cc.o: | 11 | .cc.o: |
10 | $(CXX) -c $(CXXFLAGS) $< | 12 | $(CXX) -c $(CXXFLAGS) $< |
@@ -18,16 +20,26 @@ Keys.o: ../Keys.cc ../Keys.hh | |||
18 | Resource.o: ../Resource.cc ../Resource.hh | 20 | Resource.o: ../Resource.cc ../Resource.hh |
19 | $(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Resource.cc -o Resource.o | 21 | $(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Resource.cc -o Resource.o |
20 | 22 | ||
23 | ../SignalHandler.o: | ||
24 | ${COMPILEFILE} ../SignalHandler.cc -o ../SignalHandler.o | ||
25 | |||
21 | testStringUtil: StringUtiltest.o StringUtil.o | 26 | testStringUtil: StringUtiltest.o StringUtil.o |
22 | $(CXX) $(LIBS) StringUtiltest.o StringUtil.o -o testStringUtil | 27 | $(CXX) $(LIBS) StringUtiltest.o StringUtil.o -o testStringUtil |
28 | |||
23 | testKeys: Keys.o testKeys.o StringUtil.o | 29 | testKeys: Keys.o testKeys.o StringUtil.o |
24 | $(CXX) $(LIBS) $(XLIBS) StringUtil.o Keys.o testKeys.o -o testKeys | 30 | $(CXX) $(LIBS) $(XLIBS) StringUtil.o Keys.o testKeys.o -o testKeys |
31 | |||
25 | testResource: Resourcetest.o Resource.o | 32 | testResource: Resourcetest.o Resource.o |
26 | ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource | 33 | ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource |
27 | 34 | ||
35 | testSignal: signaltest.cc ../SignalHandler.o | ||
36 | ${CXX} ${LIBS} signaltest.cc ../SignalHandler.o -o testSignal | ||
37 | |||
38 | |||
28 | run: testResource testKeys testStringUtil | 39 | run: testResource testKeys testStringUtil |
29 | ./testKeys | 40 | ./testKeys |
30 | ./testStringUtil | 41 | ./testStringUtil |
31 | ./testResource | 42 | ./testResource |
43 | ./testSignal | ||
32 | clean: | 44 | clean: |
33 | rm -f *.o | 45 | rm -f *.o |