annotate Makefile @ 196:8c81cacf5aab

Merge -r228:254 from no-big-mmap branch. Although the last log message from that branch only mentioned working create and status (-N and -S), it turned out that I seemed to have done everything right for dump and search on huge DBs to work too. Additionally: * bump the DB format version; * CHECKED_MMAP() for the powerTable; * move the powerTable above the timesTable, so that all the code everywhere which computes the length of the data buffer assuming that the timesTable is the next thing on the disk still works.
author mas01cr
date Fri, 23 Nov 2007 11:08:15 +0000
parents 324699d56429
children 2ea1908707c7 2cc06e5b05a5
rev   line source
mas01cr@137 1 HELP2MAN=help2man
mas01cr@137 2 GENGETOPT=gengetopt
mas01cr@137 3 SOAPCPP2=soapcpp2
mas01cr@138 4 GSOAP_CPP=-lgsoap++
mas01cr@138 5 GSOAP_INCLUDE=
mas01cr@137 6
mas01cr@127 7 CFLAGS=-O3 -g
mas01cr@137 8
mas01cr@2 9 EXECUTABLE=audioDB
mas01cr@2 10
mas01cr@72 11 .PHONY: all clean test
mas01cr@72 12
mas01cr@2 13 all: ${EXECUTABLE}
mas01cr@2 14
mas01cr@2 15 ${EXECUTABLE}.1: ${EXECUTABLE}
mas01cr@137 16 ${HELP2MAN} ./${EXECUTABLE} > ${EXECUTABLE}.1
mas01cr@0 17
mas01cr@134 18 HELP.txt: ${EXECUTABLE}
mas01cr@134 19 ./${EXECUTABLE} --help > HELP.txt
mas01cr@3 20
mas01cr@1 21 cmdline.c cmdline.h: gengetopt.in
mas01cr@165 22 ${GENGETOPT} -e <gengetopt.in
mas01cr@1 23
mas01cr@1 24 soapServer.cpp soapClient.cpp soapC.cpp: audioDBws.h
mas01cr@137 25 ${SOAPCPP2} audioDBws.h
mas01cr@1 26
mas01cr@113 27 ${EXECUTABLE}: audioDB.cpp audioDB.h soapServer.cpp soapClient.cpp soapC.cpp cmdline.c cmdline.h
mas01cr@138 28 g++ -c ${CFLAGS} ${GSOAP_INCLUDE} -Wall -Werror audioDB.cpp
mas01cr@138 29 g++ -o ${EXECUTABLE} ${CFLAGS} ${GSOAP_INCLUDE} audioDB.o soapServer.cpp soapClient.cpp soapC.cpp cmdline.c ${GSOAP_CPP}
mas01cr@2 30
mas01cr@2 31 clean:
mas01cr@2 32 -rm cmdline.c cmdline.h
mas01cr@2 33 -rm soapServer.cpp soapClient.cpp soapC.cpp soapObject.h soapStub.h soapProxy.h soapH.h soapServerLib.cpp soapClientLib.cpp
mas01cr@2 34 -rm adb.nsmap adb.xsd adb.wsdl adb.query.req.xml adb.query.res.xml adb.status.req.xml adb.status.res.xml
mas01cr@135 35 -rm HELP.txt
mas01cr@59 36 -rm ${EXECUTABLE} ${EXECUTABLE}.1 audioDB.o
mas01cr@59 37 -sh -c "cd tests && sh ./clean.sh"
mas01cr@72 38
mas01cr@73 39 test: ${EXECUTABLE}
mas01cr@72 40 -sh -c "cd tests && sh ./run-tests.sh"