blob: 74fd97be40c0af4fe4fa48f3d801cec209727c68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
CXX=g++
CXXFLAGS= -I.. -I../FbTk -I../.. -DDEBUG -DUSE_XFT -Wall -g -O2 ../FbTk/libFbTk.a
LIBS=
XFLAGS= -I/usr/X11R6/include
XLIBS= -L/usr/X11R6/lib -lX11 -lXft -lXpm -lImlib2
COMPILEFILE=$(CXX) -c $(CXXFLAGS)
FONT_OBJ = ../FbTk/libFbTk.a
COMPILE = ${CXX} ${CXXFLAGS} ${XLIBS}
all: testMenu testFont testTexture movetest
.cc.o:
$(CXX) -c $(CXXFLAGS) $<
glxtest: ../FbTk/App.hh glxtest.cc
${CXX} glxtest.cc ${CXXFLAGS} ${XLIBS} -lGL -lGLU -lXpm -o glxtest
testStringUtil: StringUtiltest.o
$(CXX) $(LIBS) StringUtiltest.o ../FbTk/libFbTk.a -o testStringUtil
testKeys: testKeys.o
$(CXX) $(LIBS) $(XLIBS) testKeys.o -o testKeys
testResource: Resourcetest.o Resource.o
${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource
testTitle: titletest.cc
${CXX} ${CXXFLAGS} ${LIBS} ${XLIBS} titletest.cc ../FbTk/libFbTk.a -o testTitle
signaltest:
${COMPILE} ../FbTk/SignalHandler.o signaltest.cc -o signaltest
testFont: testFont.cc ${FONT_OBJ}
${CXX} testFont.cc -o testFont ${CXXFLAGS} ${XLIBS}
testMenu: menutest.cc
${CXX} menutest.cc -o testMenu ${CXXFLAGS} ${XLIBS} ../FbMenuParser.o ../FbTk/libFbTk.a -lXpm -lImlib2 ../Parser.o
testLayers: testLayers.cc
${CXX} ${CXXFLAGS} ${XLIBS} testLayers.cc ../FbTk/libFbTk.a -o testLayers
testTransp: transpTest.cc
${CXX} ${CXXFLAGS} ${XLIBS} transpTest.cc ../FbTk/libFbTk.a -o testTransp
testScale: scaleTest.cc
${CXX} ${CXXFLAGS} ${XLIBS} scaleTest.cc ../FbTk/libFbTk.a -lXpm -o testScale
testTexture: texturetest.cc
${COMPILE} texturetest.cc ../FbTk/libFbTk.a -lXpm -o testTexture
testDemandAttention: testDemandAttention.cc
${COMPILE} testDemandAttention.cc ../FbTk/libFbTk.a -lXpm -o testDemandAttention
Parser.o: ../Parser.hh ../Parser.cc
${COMPILE} ${CXXFLAGS} -c ../Parser.cc
FbMenuParser.o: ../FbMenuParser.hh ../FbMenuParser.cc ../Parser.hh
${COMPILE} ${CXXFLAGS} -c ../FbMenuParser.cc
parsertest: parsertest.cc ../Parser.hh FbMenuParser.o Parser.o
${COMPILE} parsertest.cc FbMenuParser.o Parser.o ../FbTk/StringUtil.o -o parsertest
movetest: movetest.cc
${COMPILE} movetest.cc ../FbTk/libFbTk.a -lXpm -o movetest
run: testLayers testResource testKeys testStringUtil testFont
./testLayers
./testKeys
./testStringUtil
./testResource
./testSignal
./testFont
clean:
rm -f *.o
|