Add Python support.
It defaults off, change BUILD_PYTHON to 1 to build the Python interface.
This commit is contained in:
parent
0a619b6bc8
commit
9e9852ba78
@ -26,21 +26,36 @@
|
||||
|
||||
include ../config/Makefile.config
|
||||
|
||||
# TO DO: get BUILD_PYTHON out of configure; default to 0
|
||||
# Note that configure should set BUILD_PYTHON to 0 unless shared libraries are on.
|
||||
|
||||
# Python support.
|
||||
# It is very important that you keep the Python modules up-to-date.
|
||||
# They contain copies of hypre binaries taken from the libraries
|
||||
# libHYPRE.so and libbHYPRE.so.
|
||||
# When you first run make at the top level (linear_solvers directory),
|
||||
# the libraries get built before the Python modules, so all is well.
|
||||
# But if you later change something and rebuild in a subdirectory, the Python
|
||||
# modules won't get automatically updated. You need to cd to babel, and
|
||||
# type "make" there too.
|
||||
|
||||
BUILD_PYTHON = 0
|
||||
# The build process for the Python interface can be time- and space-consuming,
|
||||
# so we don't want to do it unless requested.
|
||||
ifeq ($(BUILD_PYTHON),1)
|
||||
BHYPRE_BABEL_PYTHON_DIR=bHYPREClient-P
|
||||
endif
|
||||
|
||||
BHYPRE_BABEL_DIRS =\
|
||||
bHYPRE \
|
||||
bHYPREClient-C\
|
||||
bHYPREClient-F\
|
||||
bHYPREClient-CX
|
||||
|
||||
# bHYPREClient-P
|
||||
bHYPREClient-CX\
|
||||
$(BHYPRE_BABEL_PYTHON_DIR)
|
||||
|
||||
HYPRE_BABEL_RUNTIME_SIDL_DIR = ${HYPRE_SRC_TOP_DIR}/babel-runtime/sidl
|
||||
|
||||
###HYPRE_BABEL_RUNTIME_PYTHON_DIR = ${HYPRE_SRC_TOP_DIR}/babel-runtime/python
|
||||
### when python option is enabled, uncomment the following line and move it
|
||||
### to the all and install targets, repsectively, with the other cp commands
|
||||
### cp -fp ${HYPRE_BABEL_RUNTIME_PYTHON_DIR}/*.h ${HYPRE_BUILD_DIR}/include
|
||||
### cp -fp ${HYPRE_BABEL_RUNTIME_PYTHON_DIR}/*.h ${HYPRE_INC_INSTALL}
|
||||
HYPRE_BABEL_RUNTIME_PYTHON_DIR = ${HYPRE_SRC_TOP_DIR}/babel-runtime/python
|
||||
|
||||
all:
|
||||
@ \
|
||||
@ -55,6 +70,7 @@ all:
|
||||
cp -fp ${HYPRE_BABEL_RUNTIME_SIDL_DIR}/*.h ${HYPRE_BUILD_DIR}/include
|
||||
cp -fp ${HYPRE_BABEL_RUNTIME_SIDL_DIR}/.libs/libs* ${HYPRE_BUILD_DIR}/lib
|
||||
cp -fp hypre_babel_exception_handler.h ${HYPRE_BUILD_DIR}/include
|
||||
# cp -fp ${HYPRE_BABEL_RUNTIME_PYTHON_DIR}/*.h ${HYPRE_BUILD_DIR}/include
|
||||
|
||||
install:
|
||||
@ \
|
||||
@ -68,6 +84,7 @@ install:
|
||||
done
|
||||
cp -fp ${HYPRE_BABEL_RUNTIME_SIDL_DIR}/*.h ${HYPRE_INC_INSTALL}
|
||||
cp -fp hypre_babel_exception_handler.h ${HYPRE_INC_INSTALL}
|
||||
# cp -fp ${HYPRE_BABEL_RUNTIME_PYTHON_DIR}/*.h ${HYPRE_INC_INSTALL}
|
||||
|
||||
clean:
|
||||
@ \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user