view Makefile.osx @ 121:c45f957ef4d9

Add NumPy include path to setup; remove PyAPI stuff from non-PyAPI calls
author Chris Cannam
date Tue, 23 Jun 2015 10:43:08 +0100
parents 3489986a044c
children a61eefb83881
line wrap: on
line source

PY_INCLUDE_PATH		:= /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
NUMPY_INCLUDE_PATH 	:= /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include

## or e.g.
#PY_INCLUDE_PATH		:= /anaconda/include/python2.7
#NUMPY_INCLUDE_PATH 	:= /anaconda/pkgs/numpy-1.9.2-py27_0/lib/python2.7/site-packages/numpy/core/include

PY_LIB			:= python2.7
PY_TEST			:= nosetests

#PY_INCLUDE_PATH		:= /usr/include/python3.4m
#NUMPY_INCLUDE_PATH 	:= /usr/lib/python3.4m/site-packages/numpy/core/include
#PY_LIB			:= python3
#PY_TEST			:= nosetests3

ARCHFLAGS ?= -mmacosx-version-min=10.7 -arch x86_64 -stdlib=libc++

# Compile flags
#
CFLAGS          += $(ARCHFLAGS) -fPIC -I$(PY_INCLUDE_PATH) -I$(NUMPY_INCLUDE_PATH) -I../vamp-plugin-sdk
CXXFLAGS        += $(ARCHFLAGS) -O2 -Wall -I. -fPIC -I$(PY_INCLUDE_PATH) -I$(NUMPY_INCLUDE_PATH) -I../vamp-plugin-sdk

LDFLAGS 		:= -dynamiclib -L../vamp-plugin-sdk -lvamp-hostsdk -l$(PY_LIB) -ldl

NOSE			:= $(PY_TEST)

LIBRARY_EXT 		:= .so

MAKEFILE_EXT		:= .osx

include Makefile.inc