version 1.1, 2003/09/02 14:24:43 |
version 1.5, 2004/02/23 05:56:32 |
|
|
# $OpenXM$ |
# $OpenXM: OpenXM/src/gmp/Makefile,v 1.4 2004/02/22 08:28:20 takayama Exp $ |
OpenXM_HOME=../.. |
OpenXM_HOME=../.. |
OpenXM_contrib=${OpenXM_HOME}/../OpenXM_contrib |
OpenXM_contrib=${OpenXM_HOME}/../OpenXM_contrib |
OpenXM_lib=${OpenXM_HOME}/lib |
OpenXM_lib=${OpenXM_HOME}/lib |
OpenXM_include=${OpenXM_HOME}/include |
OpenXM_include=${OpenXM_HOME}/include |
GMP=${OpenXM_contrib}/gmp |
GMP=${OpenXM_contrib}/gmp |
RM=rm |
RM=rm |
|
all: |
all: configure |
@if [ ! -f ./.use_ports ]; then \ |
|
make all-l ; \ |
|
else \ |
|
make -f Makefile-ports all ; \ |
|
fi |
|
install: |
|
@if [ ! -f ./.use_ports ]; then \ |
|
make install-l ; \ |
|
else \ |
|
make -f Makefile-ports install ; \ |
|
fi |
|
all-l: configure-l |
-@if [ ! -f ./.make_done ]; then \ |
-@if [ ! -f ./.make_done ]; then \ |
(cd ${GMP} ; make) ; \ |
(cd ${GMP} ; make) ; \ |
touch ./.make_done ; \ |
touch ./.make_done ; \ |
fi |
fi |
install: install-exec |
install-l: install-exec-l |
install-exec: all |
install-exec-l: all-l |
if [ ! -f ./.install_done ]; then \ |
if [ ! -f ./.install_done ]; then \ |
(cd ${GMP}; make install-exec) ; \ |
(cd ${GMP}; make install-exec) ; \ |
cp ${GMP}/gmp.h ${OpenXM_include} ; \ |
cp ${GMP}/gmp.h ${OpenXM_include} ; \ |
touch ./.install_done ; \ |
touch ./.install_done ; \ |
fi |
fi |
configure: |
configure: |
|
@if [ ! -f ./.use_ports ]; then \ |
|
make configure-l ; \ |
|
fi |
|
configure-l: |
if [ ! -f ./.configure_done ]; then \ |
if [ ! -f ./.configure_done ]; then \ |
(cd ${GMP} ; ./configure --prefix=`pwd`/../../OpenXM ) ; \ |
(cd ${GMP} ; ./configure --prefix=`pwd`/../../OpenXM ) ; \ |
touch ./.configure_done ; \ |
touch ./.configure_done ; \ |
fi |
fi |
clean: |
clean: |
${RM} -f ./.*done |
|
@if [ -f ./.make_done ]; then \ |
@if [ -f ./.make_done ]; then \ |
(cd ${GMP} ; make clean) \ |
(cd ${GMP} ; make clean) \ |
fi |
fi |
|
${RM} -f ./.*done |
|
distclean: |
|
-@if [ -f ./.make_done ]; then \ |
|
(cd ${GMP} ; make distclean) \ |
|
fi |
|
${RM} -f ./.*done |