Mercurial > hg > audiodb
view bindings/python/Makefile @ 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 |
line wrap: on
line source
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: ../../$(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=../../.. \ python InitialisationRelated.py) clean: rm -rf tests/test* pyadb.pyc build