Mercurial > hg > audiodb
comparison Makefile @ 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 | d9a88cfd4ab6 |
comparison
equal
deleted
inserted
replaced
281:f042cbf427b3 | 282:f6b80b9f6afe |
---|---|
1 HELP2MAN=help2man | 1 HELP2MAN=help2man |
2 GENGETOPT=gengetopt | 2 GENGETOPT=gengetopt |
3 SOAPCPP2=soapcpp2 | 3 SOAPCPP2=soapcpp2 |
4 GSOAP_CPP=-lgsoap++ | 4 GSOAP_CPP=-lgsoap++ |
5 LIBGSL=-lgsl -lgslcblas | 5 LIBGSL=-lgsl -lgslcblas |
6 GSL_INCLUDE= | |
6 GSOAP_INCLUDE= | 7 GSOAP_INCLUDE= |
7 | 8 |
8 override CFLAGS+=-O3 -g | 9 override CFLAGS+=-O3 -g |
9 | 10 |
10 ifeq ($(shell uname),Linux) | 11 ifeq ($(shell uname),Linux) |
34 | 35 |
35 soapServer.cpp soapClient.cpp soapC.cpp adb.nsmap: audioDBws.h | 36 soapServer.cpp soapClient.cpp soapC.cpp adb.nsmap: audioDBws.h |
36 ${SOAPCPP2} audioDBws.h | 37 ${SOAPCPP2} audioDBws.h |
37 | 38 |
38 %.o: %.cpp audioDB.h adb.nsmap cmdline.h reporter.h | 39 %.o: %.cpp audioDB.h adb.nsmap cmdline.h reporter.h |
39 g++ -c ${CFLAGS} ${GSOAP_INCLUDE} -Wall -Werror $< | 40 g++ -c ${CFLAGS} ${GSOAP_INCLUDE} ${GSL_INCLUDE} -Wall $< |
40 | 41 |
41 OBJS=insert.o create.o common.o dump.o query.o soap.o sample.o audioDB.o | 42 OBJS=insert.o create.o common.o dump.o query.o soap.o sample.o audioDB.o |
42 | 43 |
43 ${EXECUTABLE}: ${OBJS} soapServer.cpp soapClient.cpp soapC.cpp cmdline.c | 44 ${EXECUTABLE}: ${OBJS} soapServer.cpp soapClient.cpp soapC.cpp cmdline.c |
44 g++ -o ${EXECUTABLE} ${CFLAGS} ${LIBGSL} ${GSOAP_INCLUDE} $^ ${GSOAP_CPP} | 45 g++ -o ${EXECUTABLE} ${CFLAGS} ${GSL_INCLUDE} ${LIBGSL} ${GSOAP_INCLUDE} $^ ${GSOAP_CPP} |
45 | 46 |
46 clean: | 47 clean: |
47 -rm cmdline.c cmdline.h | 48 -rm cmdline.c cmdline.h |
48 -rm soapServer.cpp soapClient.cpp soapC.cpp soapObject.h soapStub.h soapProxy.h soapH.h soapServerLib.cpp soapClientLib.cpp | 49 -rm soapServer.cpp soapClient.cpp soapC.cpp soapObject.h soapStub.h soapProxy.h soapH.h soapServerLib.cpp soapClientLib.cpp |
49 -rm adb.nsmap adb.xsd adb.wsdl adb.*.req.xml adb.*.res.xml | 50 -rm adb.nsmap adb.xsd adb.wsdl adb.*.req.xml adb.*.res.xml |
54 | 55 |
55 test: ${EXECUTABLE} | 56 test: ${EXECUTABLE} |
56 -sh -c "cd tests && sh ./run-tests.sh" | 57 -sh -c "cd tests && sh ./run-tests.sh" |
57 | 58 |
58 xthresh: xthresh.c | 59 xthresh: xthresh.c |
59 gcc -o $@ ${LIBGSL} $< | 60 gcc -o $@ ${CFLAGS} ${GSL_INCLUDE} ${LIBGSL} $< |