-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.inc
60 lines (53 loc) · 1.53 KB
/
make.inc
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
############################################################################
#
# Program: SuperLU_MT
#
# Module: make.inc
#
# Purpose: Top-level Definitions
#
# Creation date: October 2, 1995
#
# Modified: March 20, 2013 Version 2.1
#
############################################################################
#
# The machine (platform) identifier to append to the library names
#
PLAT = _OPENMP
#
# The name of the libraries to be created/linked to
#
TMGLIB = libtmglib.a
SUPERLULIB = libsuperlu_mt$(PLAT).so
BLASDEF = -DUSE_VENDOR_BLAS
BLASLIB = -L/usr/lib -lf77blas -latlas
MATHLIB = -lm
MPLIB =
# The archiver and the flag(s) to use when building archive (library)
# If your system has no ranlib, set RANLIB = echo.
#
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
# Definitions used by CPP:
PREDEFS = -D__OPENMP
#
CC = gcc -fopenmp
CFLAGS = -O3 $(PREDEFS) -fPIC -DPRNTlevel=0 -DDEBUGlevel=0
CFLAGS += -D_LONGINT
#
# There are a few files that should NOT be optimized, which appear in the
# end of SRC/Makefile, taking the flag $(NOOPTS)
# NOOPTS should be defined to explicitly turn off any optimization.
NOOPTS = -O0
############################################################################
FORTRAN = gfortran -fopenmp
FFLAGS = -O -fdefault-integer-8
LOADER = gcc -fopenmp
LOADOPTS = -O
#
# C preprocessor defs for compilation for the Fortran interface
# (-DNoChange, -DAdd_, -DAdd__, or -DUpCase)
#
CDEFS = -DAdd_