diff options
author | fluxgen <fluxgen> | 2002-02-04 23:48:31 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-02-04 23:48:31 (GMT) |
commit | ccb2beb0e1e078a33a8603ec591adadf78ff148a (patch) | |
tree | 7ce7268d6262feda35d4ce395656098cc784681f /src/tests/Makefile | |
parent | 26754cd47722ac36380a7a2f8bd56e8a40b951ce (diff) | |
download | fluxbox_pavel-ccb2beb0e1e078a33a8603ec591adadf78ff148a.zip fluxbox_pavel-ccb2beb0e1e078a33a8603ec591adadf78ff148a.tar.bz2 |
initial import
Diffstat (limited to 'src/tests/Makefile')
-rw-r--r-- | src/tests/Makefile | 33 |
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 @@ | |||
1 | OBJ=StringUtiltest.o ../StringUtil.o | ||
2 | CXX=g++ | ||
3 | CXXFLAGS= -I.. -DDEBUG -Wall -g -O2 | ||
4 | LIBS= | ||
5 | XFLAGS= -I/usr/X11R6/include | ||
6 | XLIBS= -L/usr/X11R6/lib -lX11 | ||
7 | all: testStringUtil testKeys testResource | ||
8 | |||
9 | .cc.o: | ||
10 | $(CXX) -c $(CXXFLAGS) $< | ||
11 | |||
12 | StringUtil.o: ../StringUtil.cc ../StringUtil.hh | ||
13 | $(CXX) -c $(CXXFLAGS) ../StringUtil.cc -o StringUtil.o | ||
14 | |||
15 | Keys.o: ../Keys.cc ../Keys.hh | ||
16 | $(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Keys.cc -o Keys.o | ||
17 | |||
18 | Resource.o: ../Resource.cc ../Resource.hh | ||
19 | $(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Resource.cc -o Resource.o | ||
20 | |||
21 | testStringUtil: StringUtiltest.o StringUtil.o | ||
22 | $(CXX) $(LIBS) StringUtiltest.o StringUtil.o -o testStringUtil | ||
23 | testKeys: Keys.o testKeys.o StringUtil.o | ||
24 | $(CXX) $(LIBS) $(XLIBS) StringUtil.o Keys.o testKeys.o -o testKeys | ||
25 | testResource: Resourcetest.o Resource.o | ||
26 | ${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource | ||
27 | |||
28 | run: testResource testKeys testStringUtil | ||
29 | ./testKeys | ||
30 | ./testStringUtil | ||
31 | ./testResource | ||
32 | clean: | ||
33 | rm -f *.o | ||