forked from libpfasst/LibPFASST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.defaults
95 lines (73 loc) · 1.73 KB
/
Makefile.defaults
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#
# Default build settings for libpfasst.
#
FC = mpif90
CC = mpicc
AR = ar rcs
DEBUG = TRUE
MKVERBOSE = FALSE
# Set some compiler flags
FFLAGS = -Ibuild -Jinclude -cpp
ifeq ($(DEBUG),TRUE)
FFLAGS += -fcheck=all -fbacktrace -g -ffpe-trap=invalid,zero,overflow -fbounds-check -fimplicit-none -ffree-line-length-none
else
FFLAGS += -O3 -ffree-line-length-none
endif
include $(wildcard $(LIBPFASST)/*.defs)
VPATHS = $(LIBPFASST)/src
LDFLAGS += -L$(LIBPFASST)/lib -lpfasst
NOFFTW=TRUE
ifeq ($(NOFFTW),TRUE)
F77SRC = src/dfftpack.o
else
FFTW=$(LIBPFASST)/fftw3
FFLAGS += -I$(FFTW)/include
LDFLAGS += -L$(FFTW)/lib -lfftw3
endif
FSRC = pfasst.f90 \
pf_comm.f90 \
pf_dtype.f90 \
pf_fft.f90 \
pf_hooks.f90 \
pf_interpolate.f90 \
pf_parallel.f90 \
pf_parallel_oc.f90 \
pf_pfasst.f90 \
pf_quadrature.f90 \
pf_restrict.f90 \
pf_results.f90 \
pf_rkstepper.f90 \
pf_timer.f90 \
pf_utils.f90 \
pf_ndarray_encap.f90 \
pf_ndarray_oc_encap.f90 \
pf_ndsysarray_encap.f90 \
pf_zndsysarray_encap.f90 \
pf_zndarray_encap.f90 \
pf_exp_sweeper.f90 \
pf_imex_sweeper.f90 \
pf_imexQ_oc_sweeper.f90 \
pf_imk_sweeper.f90 \
pf_magpicard_sweeper.f90 \
pf_misdcQ_sweeper.f90 \
pf_misdcQ_oc_sweeper.f90 \
pf_verlet_sweeper.f90
# pf_amisdc.f90 \
# pf_amisdcQ.f90 \
ifeq ($(NOFFTW),TRUE)
FSRC+=pf_fftpack.f90
else
FSRC+=pf_fftw.f90
endif
ifdef NOMPI
FFLAGS += -DNOMPI
else
FSRC += pf_mpi.f90
endif
ifdef OMP
FFLAGS += -fopenmp
endif
OBJ = $(addprefix $(BUILDDIR)/,$(FSRC:.f90=.o) $(CSRC:.c=.o))
ifeq ($(NOFFTW),TRUE)
OBJ += $(subst src,build,$(F77SRC:.f=.o))
endif