forked from xiaoyeli/superlu_mt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.inc
81 lines (68 loc) · 2.09 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
############################################################################
#
# Program: SuperLU_MT
#
# Module: make.inc
#
# Purpose: Top-level Definitions
#
# Creation date: May 26, 2021
#
# Modified:
#
#
############################################################################
#
# The machine (platform) identifier to append to the library names
#
PLAT = _PTHREAD
# The name of the libraries to be created/linked to
#
TMGLIB = libtmglib$(PLAT).a
SUPERLULIB = libsuperlu_mt$(PLAT).a
#BLASLIB = ../lib/libblas$(PLAT).a
MATHLIB = -lm
MPLIB = -lpthread
# BLASDEF = -DUSE_VENDOR_BLAS
# BLASLIB = /Users/xsli/Dropbox/Codes/SuperLU/superlu_mt.git/CBLAS/libblas.a
BLASLIB = ../lib/libblas$(PLAT).a
LIBS = $(SUPERLULIB) ${BLASLIB}
#
# The archiver and the flag(s) to use when building archive (library)
# If your system has no ranlib, set RANLIB = echo.
#
ARCH = /usr/bin/ar
ARCHFLAGS = cr
RANLIB = /usr/bin/ranlib
############################################################################
#
# Definitions used by CPP:
PREDEFS = -D__PTHREAD ## -DDEBUGlevel=0 -DPRNTlevel=0
#
CC = gcc
CFLAGS = $(PREDEFS) -g -std=c99 -O3
# Uncomment the following to use 64-bit integer
# 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
BLASOPTS =
############################################################################
FORTRAN = gfortran
FFLAGS = -O
# Uncomment the following to use 64-bit integer
# FFLAGS += -fdefault-integer-8
############################################################################
LOADER = $(CC)
LOADOPTS = -O #-pthread
############################################################################
#
# C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase)
#
CDEFS = -DAdd_
#
# The directory in which Matlab is installed
#
MATLAB = /Applications/MATLAB_R2017a.app