diff options
Diffstat (limited to 'src/tests/Makefile')
-rw-r--r-- | src/tests/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/tests/Makefile b/src/tests/Makefile new file mode 100644 index 0000000..3b4b7e7 --- /dev/null +++ b/src/tests/Makefile | |||
@@ -0,0 +1,49 @@ | |||
1 | CXX=g++ | ||
2 | CXXFLAGS= -I.. -I../FbTk -DDEBUG -DUSE_XFT -Wall -g -O2 ../FbTk/libFbTk.a | ||
3 | LIBS= | ||
4 | XFLAGS= -I/usr/X11R6/include | ||
5 | XLIBS= -L/usr/X11R6/lib -lX11 -lXft | ||
6 | COMPILEFILE=$(CXX) -c $(CXXFLAGS) | ||
7 | FONT_OBJ = ../FbTk/libFbTk.a | ||
8 | |||
9 | all: testStringUtil testFont | ||
10 | |||
11 | .cc.o: | ||
12 | $(CXX) -c $(CXXFLAGS) $< | ||
13 | |||
14 | glxtest: ../FbTk/App.hh glxtest.cc | ||
15 | ${CXX} glxtest.cc ${CXXFLAGS} ${XLIBS} -lGL -lGLU -lXpm -o glxtest | ||
16 | |||
17 | testStringUtil: StringUtiltest.o | ||
18 | $(CXX) $(LIBS) StringUtiltest.o -o testStringUtil | ||
19 | |||
20 | testKeys: testKeys.o | ||
21 | $(CXX) $(LIBS) $(XLIBS) testKeys.o -o testKeys | ||
22 | |||
23 | testResource: Resourcetest.o Resource.o | ||
24 | ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource | ||
25 | |||
26 | testSignal: signaltest.cc | ||
27 | ${CXX} ${LIBS} signaltest.cc -o testSignal | ||
28 | |||
29 | testFont: testFont.cc ${FONT_OBJ} | ||
30 | ${CXX} testFont.cc -o testFont ${CXXFLAGS} ${XLIBS} | ||
31 | |||
32 | testLayers: testLayers.cc | ||
33 | ${CXX} ${CXXFLAGS} ${XLIBS} testLayers.cc ../FbTk/libFbTk.a -o testLayers | ||
34 | |||
35 | testTransp: transpTest.cc | ||
36 | ${CXX} ${CXXFLAGS} ${XLIBS} transpTest.cc ../FbTk/libFbTk.a -o testTransp | ||
37 | |||
38 | testScale: scaleTest.cc | ||
39 | ${CXX} ${CXXFLAGS} ${XLIBS} scaleTest.cc ../FbTk/libFbTk.a -lXpm -o testScale | ||
40 | |||
41 | run: testLayers testResource testKeys testStringUtil testFont | ||
42 | ./testLayers | ||
43 | ./testKeys | ||
44 | ./testStringUtil | ||
45 | ./testResource | ||
46 | ./testSignal | ||
47 | ./testFont | ||
48 | clean: | ||
49 | rm -f *.o | ||