annotate Makefile @ 340:a6edbe97fddf

Added LSH_CORE_ARRAY structure for hashtables instead of linked lists. Maintained Backwards Compatibiliity with indexes build for linked list format. Added tests for indexing and merging. Tested backwards compatibility OK.\n\n The purpose of the LSH_CORE_ARRAY data structure is greater space efficiency and L1/2 cache usage. Essential for multiple indexes with multiple hashtables in RAM
author mas01mc
date Wed, 10 Sep 2008 18:55:16 +0000
parents d2c56d4f841e
children 30384a82983a
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@281 5 LIBGSL=-lgsl -lgslcblas
map01bf@282 6 GSL_INCLUDE=
mas01cr@138 7 GSOAP_INCLUDE=
mas01cr@137 8
mas01cr@239 9 override CFLAGS+=-O3 -g
mas01mc@340 10 #override CFLAGS+=-ggdb -gstabs+ -g3
mas01cr@244 11
mas01cr@239 12 ifeq ($(shell uname),Linux)
mas01cr@239 13 override CFLAGS+=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
mas01cr@239 14 endif
mas01cr@137 15
mas01cr@244 16 ifeq ($(shell uname),Darwin)
mas01cr@244 17 ifeq ($(shell sysctl -n hw.optional.x86_64),1)
mas01mc@315 18 override CFLAGS+=-arch x86_64
mas01cr@244 19 endif
mas01cr@244 20 endif
mas01cr@244 21
mas01cr@2 22 EXECUTABLE=audioDB
mas01cr@2 23
mas01cr@72 24 .PHONY: all clean test
mas01cr@72 25
mas01cr@2 26 all: ${EXECUTABLE}
mas01cr@2 27
mas01cr@2 28 ${EXECUTABLE}.1: ${EXECUTABLE}
mas01cr@137 29 ${HELP2MAN} ./${EXECUTABLE} > ${EXECUTABLE}.1
mas01cr@0 30
mas01cr@134 31 HELP.txt: ${EXECUTABLE}
mas01cr@134 32 ./${EXECUTABLE} --help > HELP.txt
mas01cr@3 33
mas01cr@1 34 cmdline.c cmdline.h: gengetopt.in
mas01cr@165 35 ${GENGETOPT} -e <gengetopt.in
mas01cr@1 36
mas01cr@239 37 soapServer.cpp soapClient.cpp soapC.cpp adb.nsmap: audioDBws.h
mas01cr@137 38 ${SOAPCPP2} audioDBws.h
mas01cr@1 39
mas01mc@292 40 %.o: %.cpp audioDB.h adb.nsmap cmdline.h reporter.h ReporterBase.h lshlib.h
map01bf@282 41 g++ -c ${CFLAGS} ${GSOAP_INCLUDE} ${GSL_INCLUDE} -Wall $<
mas01cr@239 42
mas01mc@292 43 OBJS=insert.o create.o common.o dump.o query.o soap.o sample.o audioDB.o index.o lshlib.o
mas01cr@239 44
mas01cr@239 45 ${EXECUTABLE}: ${OBJS} soapServer.cpp soapClient.cpp soapC.cpp cmdline.c
map01bf@282 46 g++ -o ${EXECUTABLE} ${CFLAGS} ${GSL_INCLUDE} ${LIBGSL} ${GSOAP_INCLUDE} $^ ${GSOAP_CPP}
mas01cr@2 47
mas01cr@2 48 clean:
mas01cr@2 49 -rm cmdline.c cmdline.h
mas01cr@2 50 -rm soapServer.cpp soapClient.cpp soapC.cpp soapObject.h soapStub.h soapProxy.h soapH.h soapServerLib.cpp soapClientLib.cpp
mas01cr@239 51 -rm adb.nsmap adb.xsd adb.wsdl adb.*.req.xml adb.*.res.xml
mas01cr@135 52 -rm HELP.txt
mas01cr@239 53 -rm ${EXECUTABLE} ${EXECUTABLE}.1 ${OBJS}
mas01cr@281 54 -rm xthresh
mas01cr@59 55 -sh -c "cd tests && sh ./clean.sh"
mas01cr@72 56
mas01cr@73 57 test: ${EXECUTABLE}
mas01cr@72 58 -sh -c "cd tests && sh ./run-tests.sh"
mas01cr@280 59
mas01cr@280 60 xthresh: xthresh.c
map01bf@282 61 gcc -o $@ ${CFLAGS} ${GSL_INCLUDE} ${LIBGSL} $<