aboutsummaryrefslogtreecommitdiff
path: root/src/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/Makefile')
-rw-r--r--src/tests/Makefile49
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 @@
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
8
9all: testStringUtil testFont
10
11.cc.o:
12 $(CXX) -c $(CXXFLAGS) $<
13
14glxtest: ../FbTk/App.hh glxtest.cc
15 ${CXX} glxtest.cc ${CXXFLAGS} ${XLIBS} -lGL -lGLU -lXpm -o glxtest
16
17testStringUtil: StringUtiltest.o
18 $(CXX) $(LIBS) StringUtiltest.o -o testStringUtil
19
20testKeys: testKeys.o
21 $(CXX) $(LIBS) $(XLIBS) testKeys.o -o testKeys
22
23testResource: Resourcetest.o Resource.o
24 ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource
25
26testSignal: signaltest.cc
27 ${CXX} ${LIBS} signaltest.cc -o testSignal
28
29testFont: testFont.cc ${FONT_OBJ}
30 ${CXX} testFont.cc -o testFont ${CXXFLAGS} ${XLIBS}
31
32testLayers: testLayers.cc
33 ${CXX} ${CXXFLAGS} ${XLIBS} testLayers.cc ../FbTk/libFbTk.a -o testLayers
34
35testTransp: transpTest.cc
36 ${CXX} ${CXXFLAGS} ${XLIBS} transpTest.cc ../FbTk/libFbTk.a -o testTransp
37
38testScale: scaleTest.cc
39 ${CXX} ${CXXFLAGS} ${XLIBS} scaleTest.cc ../FbTk/libFbTk.a -lXpm -o testScale
40
41run: testLayers testResource testKeys testStringUtil testFont
42 ./testLayers
43 ./testKeys
44 ./testStringUtil
45 ./testResource
46 ./testSignal
47 ./testFont
48clean:
49 rm -f *.o