# HG changeset patch # User map01bf # Date 1265201354 0 # Node ID ce5ff00168e16dd5feb3daee93186d518d1086be # Parent c322a631ba235d3b5a52f0e3255cbf200d181e7a 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). diff -r c322a631ba23 -r ce5ff00168e1 bindings/python/Makefile --- 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=../../.. \