forked from ugks/pddom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
46 lines (27 loc) · 824 Bytes
/
makefile
File metadata and controls
46 lines (27 loc) · 824 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FC = gfortran
FCFLAGS = -Wall -fcheck=all -fopenmp
# FCFLAGS = -fopenmp -O3 -DNDEBUG -march=native -mtune=native -mcmodel=large
LDFLAGS = -L/opt/intel/mkl/lib/intel64
# LIBS = -llapack -lblas -lfftw3 # DESKTOP
LIBS = -lmkl_rt # LAPTOP
INC = -I/opt/intel/composer_xe_2015.3.187/mkl/include/fftw
# PROGRAMS = benchmark
MODS = special.o quadratures.o discretize.o solver.o halfspace.o
# all: $(PROGRAMS)
benchmark: $(MODS)
benchmark.o: $(MODS)
test: $(MODS)
test.o: $(MODS)
%: %.o
$(FC) $(FCFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
%.o: %.f95
$(FC) $(FCFLAGS) -c $< $(LDFLAGS) $(LIBS)
%.o: %.f90
$(FC) $(FCFLAGS) -c $< $(LDFLAGS) $(LIBS)
%.o: %.f03
$(FC) $(FCFLAGS) -c $< $(LDFLAGS) $(LIBS)
%.o: %.f08
$(FC) $(FCFLAGS) -c $< $(LDFLAGS) $(LIBS)
.PHONY: clean cleandata veryclean
clean:
rm -f *.o *.mod *.MOD