Refs #106. Fixed wget and md5 bug on FreeBSD and NetBSD.

This commit is contained in:
Zhang Xianyi 2012-05-13 11:43:29 +08:00
parent 52485e5fd0
commit 06e208c5c3
2 changed files with 10 additions and 1 deletions

View File

@ -256,7 +256,8 @@ LAPACK_URL=http://www.netlib.org/lapack/lapack-3.4.1.tgz
lapack-3.4.1.tgz :
ifndef NOFORTRAN
ifeq ($(OSNAME), Darwin)
#http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or
ifeq ($(OSNAME), $(filter $(OSNAME),Darwin FreeBSD NetBSD))
curl -O $(LAPACK_URL)
else
wget $(LAPACK_URL)

View File

@ -108,6 +108,14 @@ export MACOSX_DEPLOYMENT_TARGET=10.2
MD5SUM = md5 -r
endif
ifeq ($(OSNAME), FreeBSD)
MD5SUM = md5 -r
endif
ifeq ($(OSNAME), NetBSD)
MD5SUM = md5 -r
endif
ifeq ($(OSNAME), Linux)
EXTRALIB += -lm
endif