Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2843 | Rev 2856 |
|---|---|
| Line 30... | Line 30... |
include ${SLEPC_DIR}/conf/slepc_common |
include ${SLEPC_DIR}/conf/slepc_common |
# |
# |
# Basic targets to build SLEPc library |
# Basic targets to build SLEPc library |
all: |
all: |
@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} chkpetsc_dir |
@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} chkpetsc_dir chkslepc_dir | tee ${PETSC_ARCH}/conf/make.log |
@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} chkslepc_dir |
|
@if [ "${SLEPC_BUILD_USING_CMAKE}" != "" ]; then \ |
@if [ "${SLEPC_BUILD_USING_CMAKE}" != "" ]; then \ |
echo "=========================================="; \ |
|
echo "Building SLEPc using CMake with ${MAKE_NP} build threads"; \ |
|
echo "Using SLEPC_DIR=${SLEPC_DIR}, PETSC_DIR=${PETSC_DIR} and PETSC_ARCH=${PETSC_ARCH}"; \ |
|
echo "=========================================="; \ |
|
if [ "${SLEPC_DESTDIR}" = "${SLEPC_DIR}/${PETSC_ARCH}" ]; then \ |
if [ "${SLEPC_DESTDIR}" = "${SLEPC_DIR}/${PETSC_ARCH}" ]; then \ |
${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} cmakegen; \ |
${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} cmakegen; \ |
fi; \ |
fi; \ |
${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} all-cmake; \ |
${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} all-cmake 2>&1 | tee ${PETSC_ARCH}/conf/make.log \ |
| egrep -v '( --check-build-system |cmake -E | -o CMakeFiles/slepc[[:lower:]]*.dir/| -o lib/libslepc|CMakeFiles/slepc[[:lower:]]*\.dir/(build|depend|requires)|-f CMakeFiles/Makefile2|Dependee .* is newer than depender |provides\.build. is up to date)'; \ |
|
else \ |
else \ |
${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} all-legacy; \ |
${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} all-legacy 2>&1 | tee ${PETSC_ARCH}/conf/make.log | ${GREP} -v "has no symbols"; \ |
fi |
fi |
@egrep -i "( error | error: |no such file or directory)" ${PETSC_ARCH}/conf/make.log | tee ${PETSC_ARCH}/conf/error.log > /dev/null |
@egrep -i "( error | error: |no such file or directory)" ${PETSC_ARCH}/conf/make.log | tee ${PETSC_ARCH}/conf/error.log > /dev/null |
@if test -s ${PETSC_ARCH}/conf/error.log; then \ |
@if test -s ${PETSC_ARCH}/conf/error.log; then \ |
echo "********************************************************************"; \ |
echo "********************************************************************"; \ |
echo " Error during compile, check ${PETSC_ARCH}/conf/make.log"; \ |
echo " Error during compile, check ${PETSC_ARCH}/conf/make.log"; \ |
| Line 59... | Line 55... |
echo "Now to install the library do:";\ |
echo "Now to install the library do:";\ |
echo "make SLEPC_DIR=${PWD} PETSC_DIR=${PETSC_DIR} PETSC_ARCH=arch-installed-petsc install";\ |
echo "make SLEPC_DIR=${PWD} PETSC_DIR=${PETSC_DIR} PETSC_ARCH=arch-installed-petsc install";\ |
echo "=========================================";\ |
echo "=========================================";\ |
fi |
fi |
@if test -s ${PETSC_ARCH}/conf/error.log; then exit 1; fi |
@if test -s ${PETSC_ARCH}/conf/error.log; then exit 1; fi |
all-cmake: |
|
@${OMAKE} -j ${MAKE_NP} -C ${PETSC_ARCH} VERBOSE=1 2>&1 | tee ${PETSC_ARCH}/conf/make.log \ |
|
| egrep -v '( --check-build-system |cmake -E | -o CMakeFiles/slepc[[:lower:]]*.dir/| -o lib/libslepc|CMakeFiles/slepc[[:lower:]]*\.dir/(build|depend|requires)|-f CMakeFiles/Makefile2|Dependee .* is newer than depender |provides\.build. is up to date)' |
|
cmakegen: |
cmakegen: |
-@${PYTHON} config/cmakegen.py |
-@${PYTHON} config/cmakegen.py |
all-legacy: |
all-cmake: info cmakegen slepc_cmake |
-@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} all_build 2>&1 | tee ${PETSC_ARCH}/conf/make.log |
|
all_build: chk_petsc_dir chk_slepc_dir chklib_dir info deletelibs deletemods build slepc_shared slepc4py_noinstall |
all-legacy: chk_petsc_dir chk_slepc_dir chklib_dir info deletelibs deletemods build slepc_shared slepc4py_noinstall |
# |
# |
# Prints information about the system and version of SLEPc being compiled |
# Prints information about the system and version of SLEPc being compiled |
# |
# |
info: |
info: |
-@echo "==========================================" |
-@echo "==========================================" |
| Line 98... | Line 89... |
grep "\#define " ${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h; \ |
grep "\#define " ${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h; \ |
else \ |
else \ |
grep "\#define " ${PETSC_DIR}/include/petscconf.h; \ |
grep "\#define " ${PETSC_DIR}/include/petscconf.h; \ |
fi |
fi |
-@echo "-----------------------------------------" |
-@echo "-----------------------------------------" |
-@echo "Using include paths: ${SLEPC_INCLUDE} ${PETSC_CC_INCLUDES}" |
-@echo "Using C/C++ include paths: ${SLEPC_INCLUDE} ${PETSC_CC_INCLUDES}" |
-@echo "------------------------------------------" |
|
-@echo "Using C/C++ compiler: ${PCC} ${PCC_FLAGS} ${COPTFLAGS} ${CFLAGS}" |
-@echo "Using C/C++ compiler: ${PCC} ${PCC_FLAGS} ${COPTFLAGS} ${CFLAGS}" |
-@if [ "${FC}" != "" ]; then \ |
-@if [ "${FC}" != "" ]; then \ |
echo "Using Fortran include/module paths: ${PETSC_FC_INCLUDES}";\ |
echo "Using Fortran include/module paths: ${PETSC_FC_INCLUDES}";\ |
echo "Using Fortran compiler: ${FC} ${FC_FLAGS} ${FFLAGS} ${FPP_FLAGS}";\ |
echo "Using Fortran compiler: ${FC} ${FC_FLAGS} ${FFLAGS} ${FPP_FLAGS}";\ |
fi |
fi |
| Line 113... | Line 103... |
-@if [ "${FC}" != "" ]; then \ |
-@if [ "${FC}" != "" ]; then \ |
echo "Using Fortran linker: ${FC_LINKER}";\ |
echo "Using Fortran linker: ${FC_LINKER}";\ |
echo "Using Fortran flags: ${FC_LINKER_FLAGS}";\ |
echo "Using Fortran flags: ${FC_LINKER_FLAGS}";\ |
fi |
fi |
-@echo "-----------------------------------------" |
-@echo "-----------------------------------------" |
-@echo "Using library: ${SLEPC_LIB}" |
-@echo "Using libraries: ${SLEPC_LIB}" |
-@echo "------------------------------------------" |
-@echo "------------------------------------------" |
-@echo "Using mpiexec: ${MPIEXEC}" |
-@echo "Using mpiexec: ${MPIEXEC}" |
-@echo "==========================================" |
-@echo "==========================================" |
# |
# |