aboutsummaryrefslogtreecommitdiff
path: root/src/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/Makefile')
-rw-r--r--src/tests/Makefile57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/tests/Makefile b/src/tests/Makefile
new file mode 100644
index 0000000..4e1d80c
--- /dev/null
+++ b/src/tests/Makefile
@@ -0,0 +1,57 @@
1CXX=g++
2CXXFLAGS= -I.. -DDEBUG -DUSE_XFT -Wall -g -O2
3LIBS=
4XFLAGS= -I/usr/X11R6/include
5XLIBS= -L/usr/X11R6/lib -lX11 -lXft
6COMPILEFILE=$(CXX) -c $(CXXFLAGS)
7FONT_OBJ = ../BaseDisplay.o ../Font.o ../XFontImp.o ../XftFontImp.o ../XmbFontImp.o \
8 ../Timer.o ../StringUtil.o ../i18n.o
9
10all: testStringUtil testKeys testResource testSignal
11
12.cc.o:
13 $(CXX) -c $(CXXFLAGS) $< -o $@
14
15../XftFontImp.o: ../XftFontImp.hh ../XftFontImp.cc
16
17../XmbFontImp.o: ../XmbFontImp.hh ../XmbFontImp.cc
18
19../XFontImp.o: ../XFontImp.hh ../XFontImp.cc
20
21../Font.o: ../XFontImp.hh ../XftFontImp.hh ../XmbFontImp.hh ../Font.hh ../Font.cc
22
23StringUtil.o: ../StringUtil.cc ../StringUtil.hh
24 $(CXX) -c $(CXXFLAGS) ../StringUtil.cc -o StringUtil.o
25
26Keys.o: ../Keys.cc ../Keys.hh
27 $(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Keys.cc -o Keys.o
28
29Resource.o: ../Resource.cc ../Resource.hh
30 $(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Resource.cc -o Resource.o
31
32../SignalHandler.o:
33 ${COMPILEFILE} ../SignalHandler.cc -o ../SignalHandler.o
34
35testStringUtil: StringUtiltest.o StringUtil.o
36 $(CXX) $(LIBS) StringUtiltest.o StringUtil.o -o testStringUtil
37
38testKeys: Keys.o testKeys.o StringUtil.o
39 $(CXX) $(LIBS) $(XLIBS) StringUtil.o Keys.o testKeys.o -o testKeys
40
41testResource: Resourcetest.o Resource.o
42 ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource
43
44testSignal: signaltest.cc ../SignalHandler.o
45 ${CXX} ${LIBS} signaltest.cc ../SignalHandler.o -o testSignal
46
47testFont: testFont.cc ${FONT_OBJ}
48 ${CXX} ${CXXFLAGS} ${XLIBS} testFont.cc ${FONT_OBJ} -o testFont
49
50run: testResource testKeys testStringUtil testFont
51 ./testKeys
52 ./testStringUtil
53 ./testResource
54 ./testSignal
55 ./testFont
56clean:
57 rm -f *.o