Mercurial > hg > audiodb
view Makefile @ 104:97107ee61dba
Temporary signal handling.
"Temporary" because it will not work on platforms which don't have real
signals (Hello, Win32) but nevertheless useful, as otherwise gcov (the
code coverage tool) will not count executions of processes that are
killed by signals (in particular, the server processes started in the
tests).
A brief experiment suggests that we're up to about 80% statement
coverage from our 20 tests.
author | mas01cr |
---|---|
date | Thu, 04 Oct 2007 15:02:29 +0000 |
parents | 1fc7f47b422b |
children | 6735281de562 |
line wrap: on
line source
CFLAGS=-O3 LIBS=-lgsoap++ EXECUTABLE=audioDB .PHONY: all clean test all: ${EXECUTABLE} ${EXECUTABLE}.1: ${EXECUTABLE} help2man ./${EXECUTABLE} > ${EXECUTABLE}.1 README.txt: ${EXECUTABLE} ./${EXECUTABLE} --help > README.txt cmdline.c cmdline.h: gengetopt.in gengetopt <gengetopt.in soapServer.cpp soapClient.cpp soapC.cpp: audioDBws.h soapcpp2 audioDBws.h ${EXECUTABLE}: audioDB.cpp soapServer.cpp soapClient.cpp soapC.cpp cmdline.c cmdline.h g++ -c ${CFLAGS} -Wall -Werror audioDB.cpp g++ -o ${EXECUTABLE} ${CFLAGS} audioDB.o soapServer.cpp soapClient.cpp soapC.cpp cmdline.c ${LIBS} clean: -rm cmdline.c cmdline.h -rm soapServer.cpp soapClient.cpp soapC.cpp soapObject.h soapStub.h soapProxy.h soapH.h soapServerLib.cpp soapClientLib.cpp -rm adb.nsmap adb.xsd adb.wsdl adb.query.req.xml adb.query.res.xml adb.status.req.xml adb.status.res.xml -rm README.txt -rm ${EXECUTABLE} ${EXECUTABLE}.1 audioDB.o -sh -c "cd tests && sh ./clean.sh" test: ${EXECUTABLE} -sh -c "cd tests && sh ./run-tests.sh"