summaryrefslogblamecommitdiff
path: root/math/umfpack/files/Make.freebsd
blob: 8548fa0f1b892ec4df6c0f9ebe09785a09e0a7a3 (plain) (tree)












































                                                                                                                                      
#-------------------------------------------------------------------------------
# FreeBSD configuration (for both AMD and UMFPACK)
#-------------------------------------------------------------------------------

# Using GNU gcc and f77 compilers:
CC ?= gcc
CFLAGS ?= -O3 -fPIC

# Using Intel's icc and ifc compilers:
# F77 = ifc
# CC = icc
# CFLAGS = -ansi -O3 -ip -tpp7 -xW -vec_report0
# CFLAGS = -pg -g

# Using gcc compiler with picky tests
# CC = gcc
# CFLAGS = -ansi -pedantic -W -Wall -Wno-parentheses -Wshadow -Wcast-align -Winline -Wstrict-prototypes -Wno-unknown-pragmas -O3 -fPIC

# for gcc and gcov:
# CC = gcc
# CFLAGS = -pg -ftest-coverage -fprofile-arcs

# Running splint
# CC = - splint
# CFLAGS = -weak -fixedformalarray -badflag -fileextensions +relaxtypes +posixlib -unrecog

#-------------------------------------------------------------------------------
# BLAS options (for UMFPACK only)
#-------------------------------------------------------------------------------

# 1: with no BLAS (this will be slow)
# CONFIG = -DNBLAS
# LIB = -lm

# 2: with the ATLAS C-BLAS (http://www.netlib.org/atlas).
CONFIG = -DCBLAS -I../ATLAS/include -I${LOCALBASE}/include
LIB = -L${LOCALBASE}/lib -lcblas -latlas -lm

# 3: with Fortran interface to the ATLAS BLAS
# CONFIG = -I${LOCALBASE}/include
# LIB = -L${LOCALBASE}/lib -lf77blas -latlas -lg2c -lm

# 4: with Fortran interface to the BLAS, and Goto's BLAS (untested)
# CONFIG =
# LIB = -lgoto -lxerbla -lfrtbegin -lg2c -lm -lunwind -lcprts