changeset 668:ce5ff00168e1

Modified the makefile to generate the appropriate library name for its environment --provided that environment is either linux or Mac os x-- Should fix the tests in bindings (at least they work on a mac, don't know if I just broke them on linux).
author map01bf
date Wed, 03 Feb 2010 12:49:14 +0000
parents c322a631ba23
children 780ebab29268
files bindings/python/Makefile
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bindings/python/Makefile	Wed Feb 03 10:50:02 2010 +0000
+++ b/bindings/python/Makefile	Wed Feb 03 12:49:14 2010 +0000
@@ -1,7 +1,16 @@
+EXECUTABLE=audioDB
+SOVERSION=0
+MINORVERSION=0
+LIBRARY=lib$(EXECUTABLE).so.$(SOVERSION).$(MINORVERSION)
+
+ifeq ($(shell uname),Darwin)
+override LIBRARY=lib$(EXECUTABLE).$(SOVERSION).$(MINORVERSION).dylib
+endif
+
 all:
 	python setup.py build
 
-test: ../../libaudioDB.so.0.0 all
+test: ../../$(LIBRARY) all
 	(cd tests && \
 	 env PYTHONPATH=$$(python -c 'import distutils; import distutils.util; import sys; print "../build/lib.%s-%s" % (distutils.util.get_platform(), sys.version[0:3])') \
 		LD_LIBRARY_PATH=../../.. \