-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCygwin-x86_64-gfortran.ssmp(for 2023.1)
36 lines (25 loc) · 1.67 KB
/
Cygwin-x86_64-gfortran.ssmp(for 2023.1)
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
# Put this file on cp2k-2023.1/arch and execute the following command on the cp2k-2023.1 root directory
# make ARCH=Cygwin-x86_64-gfortran VERSION=ssmp
# if you wish to clean, make ARCH=Cygwin-x86_64-gfortran VERSION=ssmp clean
CC = gcc
CPP =
FC = gfortran
LD = gfortran
AR = ar -r
CFLAGS = -g -O2 -fopenmp -fopenmp-simd -funroll-loops -ftree-vectorize -march=native -mtune=native
CXXFLAGS = $(CFLAGS) --std=c++14
DFLAGS = -D__GFORTRAN -D__FFTW3 -D__LIBINT -D__LIBXC -D__SPGLIB -D__LIBVDWXC
DFLAGS += -D__QUIP -D__LIBVORI
FCFLAGS = -ffree-form -ffree-line-length-none -fno-omit-frame-pointer -fbacktrace -std=f2008 $(CFLAGS) $(DFLAGS) -Wl,--stack,4194304
FCFLAGS += -I/usr/local/include -I/home/gan_t/libint-v2.6.0-cp2k-lmax-7/include
LDFLAGS = $(FCFLAGS) -static
LIBS = -llapack -lblas -lfftw3 -lint2 -L/usr/local/lib -lxc -lxcf03 -lvori -lquip -ldl -lvdwxc
LIBS += -lFoX_sax -lFoX_common -lFoX_utils -lFoX_fsys
LIBS += -lgsl -lz -ldl -lm -ldbghelp /lib/gcc/x86_64-pc-cygwin/11/libstdc++.a
LIBS += /usr/lib/libgsl.dll.a /usr/local/lib/libxc.a /usr/local/lib/libxcf03.a /usr/local/lib/libxcf90.a /usr/local/lib/DbgHelp.Lib
LIBS += /usr/lib/libhdf5.dll.a /usr/lib/libhdf5_hl.dll.a /lib/liblapack.dll.a /lib/libblas.dll.a
LIBS += /usr/lib/libfftw3.dll.a /usr/lib/libfftw3_omp.dll.a /usr/lib/libfftw3_threads.dll.a
LIBS += /usr/lib/libfftw3f.dll.a /usr/lib/libfftw3f_omp.dll.a /usr/lib/libfftw3f_threads.dll.a
LIBS += /usr/lib/libfftw3l.dll.a /usr/lib/libfftw3l_omp.dll.a /usr/lib/libfftw3l_threads.dll.a
LIBS += /usr/local/lib/libint2.a /usr/local/lib/libsymspg.a /usr/local/lib/libsymspg.dll.a
OBJECTS_ARCHITECTURE = machine_gfortran.o