view Makefile @ 111:43722a0ba717

Attempt to make audioDB files 32/64 neutral. Doing so by turning all the (logically) size_t and off_t elements into unsigneds is a hack, it has to be admitted. There will still be endian dependencies too, but maybe this is enough to make audioDB files portable between x86 and x86-64.
author mas01cr
date Fri, 05 Oct 2007 15:38:34 +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"