-
Notifications
You must be signed in to change notification settings - Fork 0
/
Linux-x86-64-gfortran.sopt
44 lines (33 loc) · 1.43 KB
/
Linux-x86-64-gfortran.sopt
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
# Tested with: GFortran 7.4.0, LAPACK 3.8.0, FFTW 3.3, Libint 2.6.0, Libxc 4.3.4, libxsmm 1.14, SPGLIB 1.12.2
# Author: Matthias Krack ([email protected], PSI, December 2019)
CC = gcc
FC = gfortran
LD = gfortran
AR = ar -r
FFTW_INC = $(GNU_PATH)/fftw/3.3/include
FFTW_LIB = $(GNU_PATH)/fftw/3.3/lib
LIBINT_INC = $(GNU_PATH)/libint/2.6.0-lmax-6/include
LIBINT_LIB = $(GNU_PATH)/libint/2.6.0-lmax-6/lib
LIBXC_INC = $(GNU_PATH)/libxc/4.3.4/include
LIBXC_LIB = $(GNU_PATH)/libxc/4.3.4/lib
LIBXSMM_INC = $(GNU_PATH)/libxsmm/1.14/include
LIBXSMM_LIB = $(GNU_PATH)/libxsmm/1.14/lib
SPGLIB_INC = $(GNU_PATH)/spglib/1.12.2/include
SPGLIB_LIB = $(GNU_PATH)/spglib/1.12.2/lib
CFLAGS = -O2 -g -mtune=native
DFLAGS = -D__FFTW3 -D__LIBINT -D__LIBXC -D__LIBXSMM -D__SPGLIB
FCFLAGS = $(CFLAGS) $(DFLAGS)
FCFLAGS += -ffree-form -ffree-line-length-none
FCFLAGS += -ftree-vectorize -funroll-loops -std=f2008
FCFLAGS += -I$(FFTW_INC) -I$(LIBINT_INC) -I$(LIBXC_INC) -I$(LIBXSMM_INC)
LDFLAGS = $(FCFLAGS) -static
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 += $(LIBXSMM_LIB)/libxsmmf.a
LIBS += $(LIBXSMM_LIB)/libxsmm.a
LIBS += $(LIBPATH)/liblapack.a
LIBS += $(LIBPATH)/libblas.a
LIBS += -ldl -lpthread -lstdc++