changeset 282:f6b80b9f6afe

modifed the makefile to correctly link to gsl on a mac
author map01bf
date Wed, 02 Jul 2008 17:14:10 +0000
parents f042cbf427b3
children 0e44de38d675
files INSTALL.txt Makefile
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/INSTALL.txt	Wed Jul 02 14:20:28 2008 +0000
+++ b/INSTALL.txt	Wed Jul 02 17:14:10 2008 +0000
@@ -31,9 +31,11 @@
   SOAPCPP2=/path/to/bin/soapcpp2 \
   GSOAP_CPP=/path/to/gsoap/stdsoap2.cpp \
   GSOAP_INCLUDE="-I /path/to/gsoap" \
+  GSL_INCLUDE'"-I /path/to/gsl/"
   LIBGSL="-L/path/to/libgsl/libraries -lgsl -lgslcblas"
 (where the path in GSOAP_INCLUDE should name the directory in which
-stdsoap2.h resides)
+stdsoap2.h resides and the path to GSL_INCLUDE should name the directory
+which gsl_rng.h resides.)
 
 Testing
 -------
--- a/Makefile	Wed Jul 02 14:20:28 2008 +0000
+++ b/Makefile	Wed Jul 02 17:14:10 2008 +0000
@@ -3,6 +3,7 @@
 SOAPCPP2=soapcpp2
 GSOAP_CPP=-lgsoap++
 LIBGSL=-lgsl -lgslcblas
+GSL_INCLUDE=
 GSOAP_INCLUDE=
 
 override CFLAGS+=-O3 -g
@@ -36,12 +37,12 @@
 	${SOAPCPP2} audioDBws.h
 
 %.o: %.cpp audioDB.h adb.nsmap cmdline.h reporter.h
-	g++ -c ${CFLAGS} ${GSOAP_INCLUDE} -Wall -Werror $<
+	g++ -c ${CFLAGS} ${GSOAP_INCLUDE} ${GSL_INCLUDE} -Wall  $<
 
 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} ${LIBGSL} ${GSOAP_INCLUDE} $^ ${GSOAP_CPP}
+	g++ -o ${EXECUTABLE} ${CFLAGS} ${GSL_INCLUDE} ${LIBGSL} ${GSOAP_INCLUDE} $^ ${GSOAP_CPP}
 
 clean:
 	-rm cmdline.c cmdline.h
@@ -56,4 +57,4 @@
 	-sh -c "cd tests && sh ./run-tests.sh"
 
 xthresh: xthresh.c
-	gcc -o $@ ${LIBGSL} $<
+	gcc -o $@ ${CFLAGS} ${GSL_INCLUDE} ${LIBGSL} $<