summaryrefslogtreecommitdiff
path: root/src/tests/Makefile
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-02-04 23:48:31 (GMT)
committerfluxgen <fluxgen>2002-02-04 23:48:31 (GMT)
commitccb2beb0e1e078a33a8603ec591adadf78ff148a (patch)
tree7ce7268d6262feda35d4ce395656098cc784681f /src/tests/Makefile
parent26754cd47722ac36380a7a2f8bd56e8a40b951ce (diff)
downloadfluxbox_lack-ccb2beb0e1e078a33a8603ec591adadf78ff148a.zip
fluxbox_lack-ccb2beb0e1e078a33a8603ec591adadf78ff148a.tar.bz2
initial import
Diffstat (limited to 'src/tests/Makefile')
-rw-r--r--src/tests/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/tests/Makefile b/src/tests/Makefile
new file mode 100644
index 0000000..ac8fdb0
--- /dev/null
+++ b/src/tests/Makefile
@@ -0,0 +1,33 @@
1OBJ=StringUtiltest.o ../StringUtil.o
2CXX=g++
3CXXFLAGS= -I.. -DDEBUG -Wall -g -O2
4LIBS=
5XFLAGS= -I/usr/X11R6/include
6XLIBS= -L/usr/X11R6/lib -lX11
7all: testStringUtil testKeys testResource
8
9.cc.o:
10 $(CXX) -c $(CXXFLAGS) $<
11
12StringUtil.o: ../StringUtil.cc ../StringUtil.hh
13 $(CXX) -c $(CXXFLAGS) ../StringUtil.cc -o StringUtil.o
14
15Keys.o: ../Keys.cc ../Keys.hh
16 $(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Keys.cc -o Keys.o
17
18Resource.o: ../Resource.cc ../Resource.hh
19 $(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Resource.cc -o Resource.o
20
21testStringUtil: StringUtiltest.o StringUtil.o
22 $(CXX) $(LIBS) StringUtiltest.o StringUtil.o -o testStringUtil
23testKeys: Keys.o testKeys.o StringUtil.o
24 $(CXX) $(LIBS) $(XLIBS) StringUtil.o Keys.o testKeys.o -o testKeys
25testResource: Resourcetest.o Resource.o
26 ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource
27
28run: testResource testKeys testStringUtil
29 ./testKeys
30 ./testStringUtil
31 ./testResource
32clean:
33 rm -f *.o