Mercurial > hg > audiodb
view Makefile @ 87:e64a2e7f543c
Initial web services startup / shutdown test.
The test framework could definitely do with work here; the server
process must run in the background, so there are race conditions both on
startup and shutdown. The current workaround is "sleep 1", which is
both inelegant and slow.
author | mas01cr |
---|---|
date | Tue, 02 Oct 2007 15:28:11 +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"