Skip to content

Commit

Permalink
Refs #106. Fixed wget and md5 bug on FreeBSD and NetBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
xianyi committed May 13, 2012
1 parent 52485e5 commit 06e208c
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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)
8 changes: 8 additions & 0 deletions Makefile.system
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 06e208c

Please sign in to comment.