aboutsummaryrefslogtreecommitdiff
path: root/src/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/Makefile')
-rw-r--r--src/tests/Makefile54
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 @@
1CXX=g++
2CXXFLAGS= -I.. -I../FbTk -DDEBUG -DUSE_XFT -Wall -g -O2 ../FbTk/libFbTk.a
3LIBS=
4XFLAGS= -I/usr/X11R6/include
5XLIBS= -L/usr/X11R6/lib -lX11 -lXft
6COMPILEFILE=$(CXX) -c $(CXXFLAGS)
7FONT_OBJ = ../FbTk/libFbTk.a
8COMPILE = ${CXX} ${CXXFLAGS} ${XLIBS}
9
10all: testFont testTexture
11
12.cc.o:
13 $(CXX) -c $(CXXFLAGS) $<
14
15glxtest: ../FbTk/App.hh glxtest.cc
16 ${CXX} glxtest.cc ${CXXFLAGS} ${XLIBS} -lGL -lGLU -lXpm -o glxtest
17
18testStringUtil: StringUtiltest.o
19 $(CXX) $(LIBS) StringUtiltest.o ../FbTk/libFbTk.a -o testStringUtil
20
21testKeys: testKeys.o
22 $(CXX) $(LIBS) $(XLIBS) testKeys.o -o testKeys
23
24testResource: Resourcetest.o Resource.o
25 ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource
26
27testSignal: signaltest.cc
28 ${CXX} ${LIBS} signaltest.cc -o testSignal
29
30testFont: testFont.cc ${FONT_OBJ}
31 ${CXX} testFont.cc -o testFont ${CXXFLAGS} ${XLIBS}
32
33testLayers: testLayers.cc
34 ${CXX} ${CXXFLAGS} ${XLIBS} testLayers.cc ../FbTk/libFbTk.a -o testLayers
35
36testTransp: transpTest.cc
37 ${CXX} ${CXXFLAGS} ${XLIBS} transpTest.cc ../FbTk/libFbTk.a -o testTransp
38
39testScale: scaleTest.cc
40 ${CXX} ${CXXFLAGS} ${XLIBS} scaleTest.cc ../FbTk/libFbTk.a -lXpm -o testScale
41
42testTexture: texturetest.cc
43 ${COMPILE} texturetest.cc ../FbTk/libFbTk.a -lXpm -o testTexture
44
45
46run: testLayers testResource testKeys testStringUtil testFont
47 ./testLayers
48 ./testKeys
49 ./testStringUtil
50 ./testResource
51 ./testSignal
52 ./testFont
53clean:
54 rm -f *.o