diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2011-03-18 14:51:17 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2011-03-18 14:51:17 (GMT) |
commit | 253f13d46ed96dd9a4ed8619820d14098d547fc8 (patch) | |
tree | b0d485fab64182be446d764d8adc211e8804eb55 /src/tests/Makefile | |
parent | 81b240e9762acde7e3682a6cec02932564d122f6 (diff) | |
download | fluxbox-253f13d46ed96dd9a4ed8619820d14098d547fc8.zip fluxbox-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/Makefile | 82 |
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 @@ | |||
1 | CXX=g++ | ||
2 | CXXFLAGS= -I.. -I../FbTk -I../.. -DDEBUG -DUSE_XFT -Wall -g -O2 -fno-inline | ||
3 | LIBS= | ||
4 | XFLAGS= -I/usr/X11R6/include | ||
5 | XLIBS= -L/usr/X11R6/lib -lX11 -lXft -lXpm -lImlib2 | ||
6 | COMPILEFILE=$(CXX) -c $(CXXFLAGS) | ||
7 | FONT_OBJ = ../FbTk/libFbTk.a | ||
8 | COMPILE = ${CXX} ${CXXFLAGS} ${XLIBS} | ||
9 | |||
10 | all: testMenu testFont testTexture movetest testSignals | ||
11 | |||
12 | |||
13 | .cc.o: | ||
14 | $(CXX) -c $(CXXFLAGS) $< | ||
15 | |||
16 | glxtest: ../FbTk/App.hh glxtest.cc | ||
17 | ${CXX} glxtest.cc ${CXXFLAGS} ${XLIBS} -lGL -lGLU -lXpm -o glxtest | ||
18 | |||
19 | testSignals: testSignals.o ../FbTk/Signal.hh ../FbTk/MemFun.hh | ||
20 | $(CXX) $(LIBS) testSignals.o -o testSignals ../FbTk/libFbTk.a | ||
21 | |||
22 | testStringUtil: StringUtiltest.o | ||
23 | $(CXX) $(LIBS) StringUtiltest.o ../FbTk/libFbTk.a -o testStringUtil | ||
24 | |||
25 | testKeys: testKeys.o | ||
26 | $(CXX) $(LIBS) $(XLIBS) testKeys.o -o testKeys | ||
27 | |||
28 | testResource: Resourcetest.o Resource.o | ||
29 | ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource | ||
30 | |||
31 | testTitle: titletest.cc | ||
32 | ${CXX} ${CXXFLAGS} ${LIBS} ${XLIBS} titletest.cc ../FbTk/libFbTk.a -o testTitle | ||
33 | |||
34 | signaltest: | ||
35 | ${COMPILE} ../FbTk/SignalHandler.o signaltest.cc -o signaltest | ||
36 | |||
37 | testFont: testFont.cc ${FONT_OBJ} | ||
38 | ${CXX} testFont.cc -o testFont ${CXXFLAGS} ${XLIBS} | ||
39 | |||
40 | testMenu: menutest.cc | ||
41 | ${CXX} menutest.cc -o testMenu ${CXXFLAGS} ${XLIBS} ../FbMenuParser.o ../FbTk/libFbTk.a -lXpm -lImlib2 ../Parser.o | ||
42 | |||
43 | testLayers: testLayers.cc | ||
44 | ${CXX} ${CXXFLAGS} ${XLIBS} testLayers.cc ../FbTk/libFbTk.a -o testLayers | ||
45 | |||
46 | testTransp: transpTest.cc | ||
47 | ${CXX} ${CXXFLAGS} ${XLIBS} transpTest.cc ../FbTk/libFbTk.a -o testTransp | ||
48 | |||
49 | testScale: scaleTest.cc | ||
50 | ${CXX} ${CXXFLAGS} ${XLIBS} scaleTest.cc ../FbTk/libFbTk.a -lXpm -o testScale | ||
51 | |||
52 | testTexture: texturetest.cc | ||
53 | ${COMPILE} texturetest.cc ../FbTk/libFbTk.a -lXpm -o testTexture | ||
54 | |||
55 | testDemandAttention: testDemandAttention.cc | ||
56 | ${COMPILE} testDemandAttention.cc ../FbTk/libFbTk.a -lXpm -o testDemandAttention | ||
57 | |||
58 | testFullscreen: fullscreentest.cc | ||
59 | ${COMPILE} fullscreentest.cc ../FbTk/libFbTk.a -o testFullscreen | ||
60 | |||
61 | Parser.o: ../Parser.hh ../Parser.cc | ||
62 | ${COMPILE} ${CXXFLAGS} -c ../Parser.cc | ||
63 | |||
64 | FbMenuParser.o: ../FbMenuParser.hh ../FbMenuParser.cc ../Parser.hh | ||
65 | ${COMPILE} ${CXXFLAGS} -c ../FbMenuParser.cc | ||
66 | |||
67 | parsertest: parsertest.cc ../Parser.hh FbMenuParser.o Parser.o | ||
68 | ${COMPILE} parsertest.cc FbMenuParser.o Parser.o ../FbTk/StringUtil.o -o parsertest | ||
69 | |||
70 | movetest: movetest.cc | ||
71 | ${COMPILE} movetest.cc ../FbTk/libFbTk.a -lXpm -o movetest | ||
72 | |||
73 | |||
74 | run: testLayers testResource testKeys testStringUtil testFont | ||
75 | ./testLayers | ||
76 | ./testKeys | ||
77 | ./testStringUtil | ||
78 | ./testResource | ||
79 | ./testSignal | ||
80 | ./testFont | ||
81 | clean: | ||
82 | rm -f *.o | ||