comparison 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
comparison
equal deleted inserted replaced
667:c322a631ba23 668:ce5ff00168e1
1 EXECUTABLE=audioDB
2 SOVERSION=0
3 MINORVERSION=0
4 LIBRARY=lib$(EXECUTABLE).so.$(SOVERSION).$(MINORVERSION)
5
6 ifeq ($(shell uname),Darwin)
7 override LIBRARY=lib$(EXECUTABLE).$(SOVERSION).$(MINORVERSION).dylib
8 endif
9
1 all: 10 all:
2 python setup.py build 11 python setup.py build
3 12
4 test: ../../libaudioDB.so.0.0 all 13 test: ../../$(LIBRARY) all
5 (cd tests && \ 14 (cd tests && \
6 env PYTHONPATH=$$(python -c 'import distutils; import distutils.util; import sys; print "../build/lib.%s-%s" % (distutils.util.get_platform(), sys.version[0:3])') \ 15 env PYTHONPATH=$$(python -c 'import distutils; import distutils.util; import sys; print "../build/lib.%s-%s" % (distutils.util.get_platform(), sys.version[0:3])') \
7 LD_LIBRARY_PATH=../../.. \ 16 LD_LIBRARY_PATH=../../.. \
8 python InitialisationRelated.py) 17 python InitialisationRelated.py)
9 18