signaltest target
This commit is contained in:
parent
c87d64e19a
commit
6d6d13f8ce
1 changed files with 13 additions and 1 deletions
|
@ -4,7 +4,9 @@ CXXFLAGS= -I.. -DDEBUG -Wall -g -O2
|
||||||
LIBS=
|
LIBS=
|
||||||
XFLAGS= -I/usr/X11R6/include
|
XFLAGS= -I/usr/X11R6/include
|
||||||
XLIBS= -L/usr/X11R6/lib -lX11
|
XLIBS= -L/usr/X11R6/lib -lX11
|
||||||
all: testStringUtil testKeys testResource
|
COMPILEFILE=$(CXX) -c $(CXXFLAGS)
|
||||||
|
|
||||||
|
all: testStringUtil testKeys testResource testSignal
|
||||||
|
|
||||||
.cc.o:
|
.cc.o:
|
||||||
$(CXX) -c $(CXXFLAGS) $<
|
$(CXX) -c $(CXXFLAGS) $<
|
||||||
|
@ -18,16 +20,26 @@ Keys.o: ../Keys.cc ../Keys.hh
|
||||||
Resource.o: ../Resource.cc ../Resource.hh
|
Resource.o: ../Resource.cc ../Resource.hh
|
||||||
$(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Resource.cc -o Resource.o
|
$(CXX) -c $(CXXFLAGS) $(XFLAGS) ../Resource.cc -o Resource.o
|
||||||
|
|
||||||
|
../SignalHandler.o:
|
||||||
|
${COMPILEFILE} ../SignalHandler.cc -o ../SignalHandler.o
|
||||||
|
|
||||||
testStringUtil: StringUtiltest.o StringUtil.o
|
testStringUtil: StringUtiltest.o StringUtil.o
|
||||||
$(CXX) $(LIBS) StringUtiltest.o StringUtil.o -o testStringUtil
|
$(CXX) $(LIBS) StringUtiltest.o StringUtil.o -o testStringUtil
|
||||||
|
|
||||||
testKeys: Keys.o testKeys.o StringUtil.o
|
testKeys: Keys.o testKeys.o StringUtil.o
|
||||||
$(CXX) $(LIBS) $(XLIBS) StringUtil.o Keys.o testKeys.o -o testKeys
|
$(CXX) $(LIBS) $(XLIBS) StringUtil.o Keys.o testKeys.o -o testKeys
|
||||||
|
|
||||||
testResource: Resourcetest.o Resource.o
|
testResource: Resourcetest.o Resource.o
|
||||||
${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource
|
${CXX} ${LIBS} ${XLIBS} Resourcetest.o Resource.o -o testResource
|
||||||
|
|
||||||
|
testSignal: signaltest.cc ../SignalHandler.o
|
||||||
|
${CXX} ${LIBS} signaltest.cc ../SignalHandler.o -o testSignal
|
||||||
|
|
||||||
|
|
||||||
run: testResource testKeys testStringUtil
|
run: testResource testKeys testStringUtil
|
||||||
./testKeys
|
./testKeys
|
||||||
./testStringUtil
|
./testStringUtil
|
||||||
./testResource
|
./testResource
|
||||||
|
./testSignal
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
|
|
Loading…
Reference in a new issue