Mercurial > hg > audiodb
view Makefile @ 204:2ea1908707c7 refactoring
Filewise refactor.
Break apart huge monolithic audioDB.cpp file into seven broadly
independent portions:
* SOAP
* DB creation
* insertion
* query
* dump
* common functionality
* constructor functions
Remove the "using namespace std" from the header file, though that
wasn't actually a problem: the problem in question is solved by
including adb.nsmap in only soap.cpp.
Makefile improvements.
author | mas01cr |
---|---|
date | Wed, 28 Nov 2007 15:10:28 +0000 |
parents | 324699d56429 |
children | 9fcc8e97c86f |
line wrap: on
line source
HELP2MAN=help2man GENGETOPT=gengetopt SOAPCPP2=soapcpp2 GSOAP_CPP=-lgsoap++ GSOAP_INCLUDE= CFLAGS=-O3 -g EXECUTABLE=audioDB .PHONY: all clean test all: ${EXECUTABLE} ${EXECUTABLE}.1: ${EXECUTABLE} ${HELP2MAN} ./${EXECUTABLE} > ${EXECUTABLE}.1 HELP.txt: ${EXECUTABLE} ./${EXECUTABLE} --help > HELP.txt cmdline.c cmdline.h: gengetopt.in ${GENGETOPT} -e <gengetopt.in soapServer.cpp soapClient.cpp soapC.cpp adb.nsmap: audioDBws.h ${SOAPCPP2} audioDBws.h %.o: %.cpp audioDB.h adb.nsmap cmdline.h g++ -c ${CFLAGS} ${GSOAP_INCLUDE} -Wall -Werror $< ${EXECUTABLE}: insert.o create.o common.o dump.o query.o soap.o audioDB.o soapServer.cpp soapClient.cpp soapC.cpp cmdline.c g++ -o ${EXECUTABLE} ${CFLAGS} ${GSOAP_INCLUDE} $^ ${GSOAP_CPP} 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.*.req.xml adb.*.res.xml -rm HELP.txt -rm ${EXECUTABLE} ${EXECUTABLE}.1 audioDB.o insert.o create.o common.o dump.o query.o soap.o -sh -c "cd tests && sh ./clean.sh" test: ${EXECUTABLE} -sh -c "cd tests && sh ./run-tests.sh"