forked from cp2k/cp2k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Linux-x86-64-gfortran-generic.ssmp
54 lines (43 loc) · 1.55 KB
/
Linux-x86-64-gfortran-generic.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
# Tested with: GFortran 8.3.0, LAPACK 3.9.1, FFTW 3.3.9, LIBINT 2.6.0,
# LIBXC 5.1.5, SPGLIB 1.16.0, LIBVORI 210412
# Author: Matthias Krack ([email protected], PSI, July 2021)
CC = gcc
FC = gfortran
LD = gfortran
AR = ar -r
FFTW_INC = $(GNU_PATH)/fftw/3.3.9/include
FFTW_LIB = $(GNU_PATH)/fftw/3.3.9/lib
LIBINT_INC = $(GNU_PATH)/libint/2.6.0-lmax-4/include
LIBINT_LIB = $(GNU_PATH)/libint/2.6.0-lmax-4/lib
LIBVORI_LIB = $(GNU_PATH)/libvori/210412/lib
LIBXC_INC = $(GNU_PATH)/libxc/5.1.5/include
LIBXC_LIB = $(GNU_PATH)/libxc/5.1.5/lib
SPGLIB_INC = $(GNU_PATH)/spglib/1.16.0/include
SPGLIB_LIB = $(GNU_PATH)/spglib/1.16.0/lib
CFLAGS = -O2 -fopenmp -fopenmp-simd -g -mtune=generic
DFLAGS += -D__FFTW3
DFLAGS += -D__LIBINT
DFLAGS += -D__LIBVORI
DFLAGS += -D__LIBXC
DFLAGS += -D__SPGLIB
DFLAGS += -D__CHECK_DIAG
FCFLAGS = $(CFLAGS) $(DFLAGS)
FCFLAGS += -fbacktrace
FCFLAGS += -ffree-form
FCFLAGS += -ffree-line-length-none
FCFLAGS += -fno-omit-frame-pointer
FCFLAGS += -std=f2008
FCFLAGS += -I$(FFTW_INC)
FCFLAGS += -I$(LIBINT_INC)
FCFLAGS += -I$(LIBXC_INC)
LDFLAGS = $(FCFLAGS) -static
LIBS = $(LIBVORI_LIB)/libvori.a
LIBS += $(LIBXC_LIB)/libxcf03.a
LIBS += $(LIBXC_LIB)/libxc.a
LIBS += $(LIBINT_LIB)/libint2.a
LIBS += $(SPGLIB_LIB)/libsymspg.a
LIBS += $(FFTW_LIB)/libfftw3_omp.a
LIBS += $(FFTW_LIB)/libfftw3.a
LIBS += $(LIBPATH)/liblapack.a
LIBS += $(LIBPATH)/libblas.a
LIBS += -ldl -lstdc++