annotate MakefileLSH @ 497:9d8aee621afb api-inversion

More libtests fixups. Include audiodb_close() calls everywhere (whoops). Add the facility to run tests under valgrind. Unfortunately the error-exitcode flag doesn't actually cause an error exit if the only thing wrong is memory leaks, but it will if there are actual memory errors, which is a start.
author mas01cr
date Sat, 10 Jan 2009 16:07:43 +0000
parents 071a108580a4
children
rev   line source
mas01mc@294 1 #CFLAGS= -O3 -g
mas01mc@294 2 CFLAGS= -ggdb --save-temps
mas01mc@292 3 MTSOURCES=mt19937/mt19937ar.c
mas01mc@292 4 CFLAGS+=-DMT19937
mas01mc@292 5 GENGETOPT=gengetopt
mas01mc@292 6 SOAPCPP2=soapcpp2
mas01mc@292 7 GSOAP_CPP=-lgsoap++
mas01mc@292 8 GSOAP_INCLUDE=
mas01mc@292 9
mas01mc@294 10 TARGET=UNIT_TEST_LSH
mas01mc@294 11 LSHOBS=UNIT_TEST_LSH.cpp lshlib.cpp
mas01mc@294 12 LSHHDRS=lshlib.h
mas01mc@292 13
mas01mc@292 14 ifeq ($(shell uname),Linux)
mas01mc@292 15 override CFLAGS+=-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
mas01mc@292 16 endif
mas01mc@292 17
mas01mc@292 18 all: ${TARGET}
mas01mc@292 19
mas01mc@292 20 ${TARGET}: ${LSHOBS} ${LSHHDRS} ${MTSOURCES} MakefileLSH
mas01mc@292 21 ${GENGETOPT} -e <gengetopt.in
mas01mc@292 22 ${SOAPCPP2} audioDBws.h
mas01mc@292 23 g++ -o ${TARGET} ${CFLAGS} ${LSHOBS} ${MTSOURCES}
mas01mc@292 24