annotate 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
rev   line source
map01bf@668 1 EXECUTABLE=audioDB
map01bf@668 2 SOVERSION=0
map01bf@668 3 MINORVERSION=0
map01bf@668 4 LIBRARY=lib$(EXECUTABLE).so.$(SOVERSION).$(MINORVERSION)
map01bf@668 5
map01bf@668 6 ifeq ($(shell uname),Darwin)
map01bf@668 7 override LIBRARY=lib$(EXECUTABLE).$(SOVERSION).$(MINORVERSION).dylib
map01bf@668 8 endif
map01bf@668 9
mas01cr@664 10 all:
mas01cr@664 11 python setup.py build
mas01cr@664 12
map01bf@668 13 test: ../../$(LIBRARY) all
mas01cr@666 14 (cd tests && \
mas01cr@667 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])') \
mas01cr@666 16 LD_LIBRARY_PATH=../../.. \
mas01cr@666 17 python InitialisationRelated.py)
mas01cr@666 18
mas01cr@666 19 clean:
mas01cr@666 20 rm -rf tests/test* pyadb.pyc build