96 lines
2.1 KiB
Makefile
Executable file
96 lines
2.1 KiB
Makefile
Executable file
#/bin/sh
|
|
#
|
|
# $Source$
|
|
# $Author$
|
|
# $Revision$
|
|
# $Date$
|
|
#
|
|
# Makefile for ext directory
|
|
#
|
|
BUILD_LAPACK=@build_lapack@
|
|
BUILD_BLAS=@build_blas@
|
|
BUILD_WITH_F2C=@build_with_f2c@
|
|
|
|
LIBS = blas/libctblas.a lapack/libctlapack.a math/libctmath.a \
|
|
recipes/librecipes.a cvode/libcvode.a tpx/libtpx.a
|
|
|
|
all:
|
|
ifeq ($(BUILD_WITH_F2C),1)
|
|
cd f2c_libs; @MAKE@
|
|
ifeq ($(BUILD_LAPACK),1)
|
|
cd f2c_lapack; @MAKE@
|
|
else
|
|
cd f2c_lapack; @MAKE@ clean
|
|
endif
|
|
ifeq ($(BUILD_BLAS),1)
|
|
cd f2c_blas; @MAKE@
|
|
else
|
|
cd f2c_blas; @MAKE@ clean
|
|
endif
|
|
cd f2c_recipes; @MAKE@
|
|
cd f2c_math; @MAKE@
|
|
else
|
|
ifeq ($(BUILD_LAPACK),1)
|
|
cd lapack; @MAKE@
|
|
else
|
|
cd lapack; @MAKE@ clean
|
|
endif
|
|
ifeq ($(BUILD_BLAS),1)
|
|
cd blas; @MAKE@
|
|
else
|
|
cd blas; @MAKE@ clean
|
|
endif
|
|
cd recipes; @MAKE@
|
|
cd math; @MAKE@
|
|
endif
|
|
cd cvode; @MAKE@
|
|
cd tpx; @MAKE@
|
|
|
|
clean:
|
|
cd lapack; @MAKE@ clean
|
|
cd blas; @MAKE@ clean
|
|
cd recipes; @MAKE@ clean
|
|
cd cvode; @MAKE@ clean
|
|
cd math; @MAKE@ clean
|
|
cd tpx; @MAKE@ clean
|
|
(if test -d "f2c_libs" ; then \
|
|
cd f2c_libs ; @MAKE@ clean ; \
|
|
fi)
|
|
(if test -d "f2c_lapack" ; then \
|
|
cd f2c_lapack ; @MAKE@ clean ; \
|
|
fi)
|
|
(if test -d "f2c_blas" ; then \
|
|
cd f2c_blas ; @MAKE@ clean ; \
|
|
fi)
|
|
(if test -d "f2c_math" ; then \
|
|
cd f2c_math ; @MAKE@ clean ; \
|
|
fi)
|
|
(if test -d "f2c_recipes" ; then \
|
|
cd f2c_recipes ; @MAKE@ clean ; \
|
|
fi)
|
|
|
|
depends:
|
|
ifeq ($(BUILD_WITH_F2C),1)
|
|
(if test -d "f2c_libs" ; then \
|
|
cd f2c_libs ; @MAKE@ depends ; \
|
|
fi)
|
|
(if test -d "f2c_lapack" ; then \
|
|
cd f2c_lapack ; @MAKE@ depends ; \
|
|
fi)
|
|
(if test -d "f2c_blas" ; then \
|
|
cd f2c_blas ; @MAKE@ depends ; \
|
|
fi)
|
|
(if test -d "f2c_math" ; then \
|
|
cd f2c_math ; @MAKE@ depends ; \
|
|
fi)
|
|
(if test -d "f2c_recipes" ; then \
|
|
cd f2c_recipes ; @MAKE@ depends ; \
|
|
fi)
|
|
else
|
|
cd lapack; @MAKE@ depends
|
|
cd blas; @MAKE@ depends
|
|
cd recipes; @MAKE@ depends
|
|
cd math; @MAKE@ depends
|
|
endif
|
|
cd cvode; @MAKE@ depends
|
|
cd tpx; @MAKE@ depends
|