-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
26 lines (19 loc) · 755 Bytes
/
Copy pathmakefile
File metadata and controls
26 lines (19 loc) · 755 Bytes
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
FC=gfortran
DLAGS=#-g3 -Og -fcheck=all -fcheck=all -ffpe-trap=invalid,zero,overflow -ffpe-summary=all -fbacktrace -Wconversion-extra -fno-unsafe-math-optimizations -fsignaling-nans -frounding-math -Wno-surprising -fbounds-check
PERFFLAGS=-O3 -march=native -funroll-loops -ftree-vectorize -finline-functions -flto=2 -fwhole-program -ftree-vectorizer-verbose=7
WFLAGS=#-Wall -Wextra -pedantic
VPATH=src/
# Linking
main.x: ran2.o r1279.o main.o
$(FC) $(PERFFLAGS) $(DLAGS) $^ -o $@
# Compiling
ran2.o: ran2.f
$(FC) $(PERFFLAGS) $(DLAGS) -c $^
r1279.o: r1279.f90
$(FC) $(PERFFLAGS) $(DLAGS) -c $^
main.o: main.f90
$(FC) $(PERFFLAGS) $(WFLAGS) $(DLAGS) -c $^
jackknife.x: jackknife.f90
$(FC) $(PERFFLAGS) $(DLAGS) $(WFLAGS) $^ -o $@
clean:
rm *.o