aboutsummaryrefslogtreecommitdiff
path: root/src/tests/Makefile
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2011-03-18 14:51:17 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2011-03-18 14:51:17 (GMT)
commit253f13d46ed96dd9a4ed8619820d14098d547fc8 (patch)
treeb0d485fab64182be446d764d8adc211e8804eb55 /src/tests/Makefile
parent81b240e9762acde7e3682a6cec02932564d122f6 (diff)
downloadfluxbox_paul-253f13d46ed96dd9a4ed8619820d14098d547fc8.zip
fluxbox_paul-253f13d46ed96dd9a4ed8619820d14098d547fc8.tar.bz2
some love to src/tests, use automake to use the same build environment as the rest of fluxbox
Diffstat (limited to 'src/tests/Makefile')
-rw-r--r--src/tests/Makefile82
1 files changed, 0 insertions, 82 deletions
diff --git a/src/tests/Makefile b/src/tests/Makefile
deleted file mode 100644
index dd329e6..0000000
--- a/src/tests/Makefile
+++ /dev/null
@@ -1,82 +0,0 @@
1CXX=g++
2CXXFLAGS= -I.. -I../FbTk -I../.. -DDEBUG -DUSE_XFT -Wall -g -O2 -fno-inline
3LIBS=
4XFLAGS= -I/usr/X11R6/include
5XLIBS= -L/usr/X11R6/lib -lX11 -lXft -lXpm -lImlib2
6COMPILEFILE=$(CXX) -c $(CXXFLAGS)
7FONT_OBJ = ../FbTk/libFbTk.a
8COMPILE = ${CXX} ${CXXFLAGS} ${XLIBS}
9
10all: testMenu testFont testTexture movetest testSignals
11
12
13.cc.o:
14 $(CXX) -c $(CXXFLAGS) $<
15
16glxtest: ../FbTk/App.hh glxtest.cc
17 ${CXX} glxtest.cc ${CXXFLAGS} ${XLIBS} -lGL -lGLU -lXpm -o glxtest
18
19testSignals: testSignals.o ../FbTk/Signal.hh ../FbTk/MemFun.hh
20 $(CXX) $(LIBS) testSignals.o -o testSignals ../FbTk/libFbTk.a
21
22testStringUtil: StringUtiltest.o
23 $(CXX) $(LIBS) StringUtiltest.o ../FbTk/libFbTk.a -o testStringUtil
24
25testKeys: testKeys.o
26 $(CXX) $(LIBS) $(XLIBS) testKeys.o -o testKeys
27
28testResource: Resourcetest.o Resource.o
29 ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource
30
31testTitle: titletest.cc
32 ${CXX} ${CXXFLAGS} ${LIBS} ${XLIBS} titletest.cc ../FbTk/libFbTk.a -o testTitle
33
34signaltest:
35 ${COMPILE} ../FbTk/SignalHandler.o signaltest.cc -o signaltest
36
37testFont: testFont.cc ${FONT_OBJ}
38 ${CXX} testFont.cc -o testFont ${CXXFLAGS} ${XLIBS}
39
40testMenu: menutest.cc
41 ${CXX} menutest.cc -o testMenu ${CXXFLAGS} ${XLIBS} ../FbMenuParser.o ../FbTk/libFbTk.a -lXpm -lImlib2 ../Parser.o
42
43testLayers: testLayers.cc
44 ${CXX} ${CXXFLAGS} ${XLIBS} testLayers.cc ../FbTk/libFbTk.a -o testLayers
45
46testTransp: transpTest.cc
47 ${CXX} ${CXXFLAGS} ${XLIBS} transpTest.cc ../FbTk/libFbTk.a -o testTransp
48
49testScale: scaleTest.cc
50 ${CXX} ${CXXFLAGS} ${XLIBS} scaleTest.cc ../FbTk/libFbTk.a -lXpm -o testScale
51
52testTexture: texturetest.cc
53 ${COMPILE} texturetest.cc ../FbTk/libFbTk.a -lXpm -o testTexture
54
55testDemandAttention: testDemandAttention.cc
56 ${COMPILE} testDemandAttention.cc ../FbTk/libFbTk.a -lXpm -o testDemandAttention
57
58testFullscreen: fullscreentest.cc
59 ${COMPILE} fullscreentest.cc ../FbTk/libFbTk.a -o testFullscreen
60
61Parser.o: ../Parser.hh ../Parser.cc
62 ${COMPILE} ${CXXFLAGS} -c ../Parser.cc
63
64FbMenuParser.o: ../FbMenuParser.hh ../FbMenuParser.cc ../Parser.hh
65 ${COMPILE} ${CXXFLAGS} -c ../FbMenuParser.cc
66
67parsertest: parsertest.cc ../Parser.hh FbMenuParser.o Parser.o
68 ${COMPILE} parsertest.cc FbMenuParser.o Parser.o ../FbTk/StringUtil.o -o parsertest
69
70movetest: movetest.cc
71 ${COMPILE} movetest.cc ../FbTk/libFbTk.a -lXpm -o movetest
72
73
74run: testLayers testResource testKeys testStringUtil testFont
75 ./testLayers
76 ./testKeys
77 ./testStringUtil
78 ./testResource
79 ./testSignal
80 ./testFont
81clean:
82 rm -f *.o