forked from primme/primme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Make_flags
69 lines (63 loc) · 2.37 KB
/
Make_flags
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
#---------------------------------------------------------------
# ENVIRONMENT VARIABLES AND COMPILATION FLAGS
# for building the library and compiling the tests
#---------------------------------------------------------------
# Define the path to the created primme library(-ies)
LIBRARY = libprimme.a
DLIBRARY = libdprimme.a
ZLIBRARY = libzprimme.a
# Define compilers and flags
#---------------------------------------------------------------
# POSIX systems (e.g., Linux, MinGW, Cygwin)
#---------------------------------------------------------------
CC ?= cc
F77 ?= gfortran
DEFINES ?= -DF77UNDERSCORE
CFLAGS ?= -O
FFLAGS ?= -fno-second-underscore -O
#---------------------------------------------------------------
# IBM architectures
#CC = xlc
#F77 = xlf
#DEFINES = -DF77UNDERSCORE -DNUM_ESSL
#CFLAGS = -O2
#FFLAGS = -O2
#---------------------------------------------------------------
# Mac OS X
#CC = clang
#CC = gcc-mp-4.9
#F77 = gfortran-mp-4.9
#DEFINES = -DF77UNDERSCORE
#CFLAGS = -O2
#FFLAGS = -fno-second-underscore -O2
#---------------------------------------------------------------
# Using Intel compilers
#CC = icc
#F77 = ifort
#DEFINES = -DF77UNDERSCORE
#CFLAGS = -O2
#FFLAGS = -O2
#---------------------------------------------------------------
# Sun various architectures
# whirlwind
#CFLAGS += -xtarget=ultra2e -xarch=v8plusa -xcache=16/32/1:512/64/4
# twister
#CFLAGS += -xtarget=ultra3cu -xarch=v8plusa -xcache=64/32/4:8192/512/2
# typhoon
#CFLAGS += -xtarget=ultra2i -xarch=v8plusa -xcache=16/32/1:2048/64/1
# tornado
#CFLAGS += -xtarget=ultra2 -xarch=v8plusa -xcache=16/32/1:4096/64/1
# hurricane
#CFLAGS += -xtarget=ultra2 -xarch=v8plusa -xcache=16/32/1:4096/64/1
#CFLAGS += -xtarget=generic -xarch=v8plusa
#---------------------------------------------------------------
# Cray architectures
# CFLAGS += -O3 -march=native -mtune=native -funroll-loops -ffast-math -fstrict-aliasing -std=gnu99 -msse2 -msse3
#---------------------------------------------------------------
# Uncomment this when building MATLAB interface
# CFLAGS += -DPRIMME_BLASINT_SIZE=64 -fPIC
#---------------------------------------------------------------
#---------------------------------------------------------------
# Creating the library
#---------------------------------------------------------------
RANLIB = ranlib