version 1.2, 2003/09/14 01:19:57 |
version 1.6, 2004/02/24 00:02:10 |
|
|
# $OpenXM: OpenXM/src/gmp/Makefile,v 1.1 2003/09/02 14:24:43 takayama Exp $ |
# $OpenXM: OpenXM/src/gmp/Makefile,v 1.5 2004/02/23 05:56:32 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) ; \ |
|
rm -f ${OpenXM_include}/config.h ${OpenXM_include}/gmp-impl.h ${OpenXM_include}/gmp-mparam.h ; \ |
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 |
distclean: |
|
${RM} -f ./.*done |
${RM} -f ./.*done |
|
distclean: |
-@if [ -f ./.make_done ]; then \ |
-@if [ -f ./.make_done ]; then \ |
(cd ${GMP} ; make distclean) \ |
(cd ${GMP} ; make distclean) \ |
fi |
fi |
|
${RM} -f ./.*done |