-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.osx
32 lines (21 loc) · 1 KB
/
Makefile.osx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)
CXXFLAGS += $(ARCHFLAGS) -O2 -Wall -I. -fPIC -I$(PY_INCLUDE_PATH) -I$(NUMPY_INCLUDE_PATH)
LDFLAGS := -dynamiclib -l$(PY_LIB) -ldl
NOSE := $(PY_TEST)
LIBRARY_EXT := .so
MAKEFILE_EXT := .osx
include Makefile.inc