blob: 2df6ebe3ad84edf01150eaa33a0e6fffb3127341 (
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
|
CXX=g++
CXXFLAGS= -I.. -I../FbTk -DDEBUG -DUSE_XFT -Wall -g -O2 ../FbTk/libFbTk.a
LIBS=
XFLAGS= -I/usr/X11R6/include
XLIBS= -L/usr/X11R6/lib -lX11 -lXft
COMPILEFILE=$(CXX) -c $(CXXFLAGS)
FONT_OBJ = ../BaseDisplay.o ../FbTk/Font.o ../FbTk/XFontImp.o ../FbTk/XftFontImp.o ../FbTk/XmbFontImp.o \
../FbTk/Timer.o ../StringUtil.o ../i18n.o
all: testLayers testStringUtil testKeys testResource testSignal
.cc.o:
$(CXX) -c $(CXXFLAGS) $< -o $@
../FbTk/XftFontImp.o: ../FbTk/XftFontImp.hh ../FbTk/XftFontImp.cc
../FbTk/XmbFontImp.o: ../FbTk/XmbFontImp.hh ../FbTk/XmbFontImp.cc
../FbTk/XFontImp.o: ../FbTk/XFontImp.hh ../FbTk/XFontImp.cc
../FbTk/Font.o: ../FbTk/XFontImp.hh ../FbTk/XftFontImp.hh ../FbTk/XmbFontImp.hh ../FbTk/Font.hh ../FbTk/Font.cc
StringUtil.o: ../StringUtil.cc ../StringUtil.hh
$(CXX) -c $(CXXFLAGS) ../StringUtil.cc -o StringUtil.o
Keys.o: ../Keys.cc ../Keys.hh
$(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Keys.cc -o Keys.o
Resource.o: ../Resource.cc ../Resource.hh
$(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Resource.cc -o Resource.o
../FbTk/SignalHandler.o:
${COMPILEFILE} ../FbTk/SignalHandler.cc -o ../FbTk/SignalHandler.o
testStringUtil: StringUtiltest.o StringUtil.o
$(CXX) $(LIBS) StringUtiltest.o StringUtil.o -o testStringUtil
testKeys: Keys.o testKeys.o StringUtil.o
$(CXX) $(LIBS) $(XLIBS) StringUtil.o Keys.o testKeys.o -o testKeys
testResource: Resourcetest.o Resource.o
${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource
testSignal: signaltest.cc ../FbTk/SignalHandler.o
${CXX} ${LIBS} signaltest.cc ../FbTk/SignalHandler.o -o testSignal
testFont: testFont.cc ${FONT_OBJ}
${CXX} ${CXXFLAGS} ${XLIBS} testFont.cc ${FONT_OBJ} -o testFont
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
run: testLayers testResource testKeys testStringUtil testFont
./testLayers
./testKeys
./testStringUtil
./testResource
./testSignal
./testFont
clean:
rm -f *.o
|