diff Makefile @ 281:f042cbf427b3

Some tidying up post-merge of sampling branch: * make Makefile a little bit cleaner, allowing specification of the libgsl linking directive through a variable; * update INSTALL.txt
author mas01cr
date Wed, 02 Jul 2008 14:20:28 +0000
parents 3be15407e814
children f6b80b9f6afe
line wrap: on
line diff
--- a/Makefile	Wed Jul 02 14:07:10 2008 +0000
+++ b/Makefile	Wed Jul 02 14:20:28 2008 +0000
@@ -2,6 +2,7 @@
 GENGETOPT=gengetopt
 SOAPCPP2=soapcpp2
 GSOAP_CPP=-lgsoap++
+LIBGSL=-lgsl -lgslcblas
 GSOAP_INCLUDE=
 
 override CFLAGS+=-O3 -g
@@ -40,7 +41,7 @@
 OBJS=insert.o create.o common.o dump.o query.o soap.o sample.o audioDB.o
 
 ${EXECUTABLE}: ${OBJS} soapServer.cpp soapClient.cpp soapC.cpp cmdline.c
-	g++ -o ${EXECUTABLE} ${CFLAGS} -lgsl -lgslcblas ${GSOAP_INCLUDE} $^ ${GSOAP_CPP}
+	g++ -o ${EXECUTABLE} ${CFLAGS} ${LIBGSL} ${GSOAP_INCLUDE} $^ ${GSOAP_CPP}
 
 clean:
 	-rm cmdline.c cmdline.h
@@ -48,10 +49,11 @@
 	-rm adb.nsmap adb.xsd adb.wsdl adb.*.req.xml adb.*.res.xml
 	-rm HELP.txt
 	-rm ${EXECUTABLE} ${EXECUTABLE}.1 ${OBJS}
+	-rm xthresh
 	-sh -c "cd tests && sh ./clean.sh"
 
 test: ${EXECUTABLE}
 	-sh -c "cd tests && sh ./run-tests.sh"
 
 xthresh: xthresh.c
-	gcc -o $@ -lgsl -lgslcblas $<
+	gcc -o $@ ${LIBGSL} $<