-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLinux-x86-64-gfortran-regtest.sdbg
32 lines (32 loc) · 1.52 KB
/
Linux-x86-64-gfortran-regtest.sdbg
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
# Tested with: GFortran 6.4.0, FFTW 3.3, LAPACK 3.5.0, Libint 1.1.6, Libxc 4.2.3
# Author: Matthias Krack ([email protected], PSI, February 2019)
CC = gcc
CPP =
FC = gfortran
LD = gfortran
AR = ar -r
FFTW_INC = $(GCC_DIR)/fftw/3.3-regtest/include
FFTW_LIB = $(GCC_DIR)/fftw/3.3-regtest/lib
LIBINT_INC = $(GCC_DIR)/libint/1.1.6-default-regtest/include
LIBINT_LIB = $(GCC_DIR)/libint/1.1.6-default-regtest/lib
LIBXC_INC = $(GCC_DIR)/libxc/4.2.3-regtest/include
LIBXC_LIB = $(GCC_DIR)/libxc/4.2.3-regtest/lib
DFLAGS = -D__FFTW3 -D__LIBINT -D__LIBXC -D__CHECK_DIAG
CPPFLAGS =
WFLAGS = -Waliasing -Wampersand -Wc-binding-type -Wconversion \
-Wintrinsic-shadow -Wintrinsics-std -Wline-truncation \
-Wno-tabs -Wrealloc-lhs-all -Wtarget-lifetime -Wunderflow \
-Wunused-but-set-variable -Wunused-dummy-argument -Wunused-variable \
-Werror
FCFLAGS = $(DFLAGS) -O1 -fcheck=bounds,do,recursion,pointer -ffree-form \
-ffree-line-length-none -fimplicit-none -fno-omit-frame-pointer \
-g -mtune=generic -std=f2008 \
-I$(FFTW_INC) -I$(LIBINT_INC) -I$(LIBXC_INC) $(WFLAGS)
LDFLAGS = $(FCFLAGS) -fsanitize=leak
LIBS = $(LIBPATH)/liblapack-regtest.a \
$(LIBPATH)/libblas-regtest.a \
$(FFTW_LIB)/libfftw3.a \
$(LIBXC_LIB)/libxcf03.a \
$(LIBXC_LIB)/libxc.a \
$(LIBINT_LIB)/libderiv.a \
$(LIBINT_LIB)/libint.a