summaryrefslogtreecommitdiff
path: root/math/umfpack/files/Make.freebsd
blob: 8548fa0f1b892ec4df6c0f9ebe09785a09e0a7a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#-------------------------------------------------------------------------------
# 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