File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ ${SOURCE_HEADER}/RowSet.cpp
4343${SOURCE_HEADER} /TimestampUtils.cpp
4444${SOURCE_HEADER} /Field.cpp
4545${SOURCE_HEADER} /RowList.cpp
46- ${SOURCE_HEADER} /RowSet.cpp
4746${SOURCE_HEADER} /Util.cpp )
4847
4948target_link_libraries (griddb_python gridstore_c )
Original file line number Diff line number Diff line change @@ -3,14 +3,22 @@ CXX = g++
33
44ARCH = $(shell arch)
55
6- LDFLAGS = -Llibs -lpthread -lrt -lgridstore
6+ UNAME_S := $(shell uname -s)
7+ ifeq ($(UNAME_S ) , Linux)
8+ LDFLAGS = -Llibs -lpthread -lrt -lgridstore
9+ endif
10+ ifeq ($(UNAME_S ) , Darwin)
11+ LDFLAGS = -lpthread -lgridstore -undefined dynamic_lookup
12+ endif
713
814CPPFLAGS = -fPIC -std=c++0x -g -O2
915INCLUDES = -Iinclude -Isrc
16+ PY_CFLAGS := $(shell python3-config --includes)
17+ NUMPY_FLAGS := $(shell python3 -c "import site; print(site.getsitepackages() [0])")
1018
1119INCLUDES_PYTHON = $(INCLUDES ) \
12- -I/usr/include/python3.9/ \
13- -I$( HOME ) /.pyenv/versions/3.9.5/lib/python3.9/site-packages /numpy/core/include
20+ ${PY_CFLAGS} \
21+ -I${NUMPY_FLAGS} /numpy/core/include
1422
1523PROGRAM = _griddb_python.so
1624EXTRA = griddb_python.py griddb_python.pyc
You can’t perform that action at this time.
0 commit comments