-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLinux-x86-64-gfortran-regtest.ssmp
63 lines (52 loc) · 1.99 KB
/
Linux-x86-64-gfortran-regtest.ssmp
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
# Tested with: GFortran 8.3.0, FFTW 3.3, LAPACK 3.8.0, Libint 2.6.0, Libxc 4.3.4, SPGLIB 1.12.2
# Author: Matthias Krack ([email protected], PSI, August 2020)
CC = gcc
FC = gfortran
LD = gfortran
AR = ar -r
FFTW_INC = $(GNU_PATH)/fftw/3.3-regtest/include
FFTW_LIB = $(GNU_PATH)/fftw/3.3-regtest/lib
LIBINT_INC = $(GNU_PATH)/libint/2.6.0-lmax-4-regtest/include
LIBINT_LIB = $(GNU_PATH)/libint/2.6.0-lmax-4-regtest/lib
LIBXC_INC = $(GNU_PATH)/libxc/4.3.4-regtest/include
LIBXC_LIB = $(GNU_PATH)/libxc/4.3.4-regtest/lib
SPGLIB_INC = $(GNU_PATH)/spglib/1.12.2/include
SPGLIB_LIB = $(GNU_PATH)/spglib/1.12.2/lib
CFLAGS = -O1 -fopenmp -g -mtune=generic
DFLAGS = -D__FFTW3
DFLAGS += -D__LIBINT
DFLAGS += -D__LIBXC
DFLAGS += -D__SPGLIB
DFLAGS += -D__CHECK_DIAG
WFLAGS = -Werror=aliasing
WFLAGS += -Werror=ampersand
WFLAGS += -Werror=c-binding-type
WFLAGS += -Werror=conversion
WFLAGS += -Werror=intrinsic-shadow
WFLAGS += -Werror=intrinsics-std
WFLAGS += -Werror=line-truncation
#WFLAGS += -Wrealloc-lhs
WFLAGS += -Werror=tabs
WFLAGS += -Werror=target-lifetime
WFLAGS += -Werror=underflow
WFLAGS += -Werror=unused-but-set-variable
WFLAGS += -Werror=unused-dummy-argument
WFLAGS += -Werror=unused-variable
FCFLAGS = $(CFLAGS) $(DFLAGS) $(WFLAGS)
FCFLAGS += -fcheck=bounds,do,recursion,pointer
FCFLAGS += -ffree-form
FCFLAGS += -ffree-line-length-none
FCFLAGS += -fimplicit-none
FCFLAGS += -fno-omit-frame-pointer
FCFLAGS += -std=f2008
FCFLAGS += -I$(FFTW_INC) -I$(LIBINT_INC) -I$(LIBXC_INC)
LDFLAGS = $(FCFLAGS) -fsanitize=leak
LIBS = $(LIBXC_LIB)/libxcf03.a
LIBS += $(LIBXC_LIB)/libxc.a
LIBS += $(LIBINT_LIB)/libint2.a
LIBS += $(SPGLIB_LIB)/libsymspg.a
LIBS += $(FFTW_LIB)/libfftw3.a
LIBS += $(FFTW_LIB)/libfftw3_threads.a
LIBS += $(LIBPATH)/liblapack-regtest.a
LIBS += $(LIBPATH)/libblas-regtest.a
LIBS += -lstdc++