diff options
Diffstat (limited to 'src/tests/Makefile')
-rw-r--r-- | src/tests/Makefile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/tests/Makefile b/src/tests/Makefile new file mode 100644 index 0000000..3c6c634 --- /dev/null +++ b/src/tests/Makefile | |||
@@ -0,0 +1,54 @@ | |||
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 | COMPILE = ${CXX} ${CXXFLAGS} ${XLIBS} | ||
9 | |||
10 | all: testFont testTexture | ||
11 | |||
12 | .cc.o: | ||
13 | $(CXX) -c $(CXXFLAGS) $< | ||
14 | |||
15 | glxtest: ../FbTk/App.hh glxtest.cc | ||
16 | ${CXX} glxtest.cc ${CXXFLAGS} ${XLIBS} -lGL -lGLU -lXpm -o glxtest | ||
17 | |||
18 | testStringUtil: StringUtiltest.o | ||
19 | $(CXX) $(LIBS) StringUtiltest.o ../FbTk/libFbTk.a -o testStringUtil | ||
20 | |||
21 | testKeys: testKeys.o | ||
22 | $(CXX) $(LIBS) $(XLIBS) testKeys.o -o testKeys | ||
23 | |||
24 | testResource: Resourcetest.o Resource.o | ||
25 | ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource | ||
26 | |||
27 | testSignal: signaltest.cc | ||
28 | ${CXX} ${LIBS} signaltest.cc -o testSignal | ||
29 | |||
30 | testFont: testFont.cc ${FONT_OBJ} | ||
31 | ${CXX} testFont.cc -o testFont ${CXXFLAGS} ${XLIBS} | ||
32 | |||
33 | testLayers: testLayers.cc | ||
34 | ${CXX} ${CXXFLAGS} ${XLIBS} testLayers.cc ../FbTk/libFbTk.a -o testLayers | ||
35 | |||
36 | testTransp: transpTest.cc | ||
37 | ${CXX} ${CXXFLAGS} ${XLIBS} transpTest.cc ../FbTk/libFbTk.a -o testTransp | ||
38 | |||
39 | testScale: scaleTest.cc | ||
40 | ${CXX} ${CXXFLAGS} ${XLIBS} scaleTest.cc ../FbTk/libFbTk.a -lXpm -o testScale | ||
41 | |||
42 | testTexture: texturetest.cc | ||
43 | ${COMPILE} texturetest.cc ../FbTk/libFbTk.a -lXpm -o testTexture | ||
44 | |||
45 | |||
46 | run: testLayers testResource testKeys testStringUtil testFont | ||
47 | ./testLayers | ||
48 | ./testKeys | ||
49 | ./testStringUtil | ||
50 | ./testResource | ||
51 | ./testSignal | ||
52 | ./testFont | ||
53 | clean: | ||
54 | rm -f *.o | ||