-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·57 lines (44 loc) · 1.23 KB
/
Makefile
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
# $HeadURL$
# $Id$
FFLAGS= -cpp -g -O3 -I.
programs=euler
common=doublePrecision.o prms.o conv.o assorted.o fluxes.o numflux.o rhside.o ic.o viscous.o weno.o
all: $(programs)
# main.o: FFLAGS += -DWENOORDER=3
main.o: main.f90
$(FC) $(FFLAGS) -c -o $@ $<
# euler: main.o reconstruct3.o $(common)
euler: main.o $(common)
$(LD) -o $@ $^
# main5.o: FFLAGS += -DWENOORDER=5
# main5.o: main.f90
# $(FC) $(FFLAGS) -c -o $@ $<
# weno5.x: main5.o reconstruct5.o $(common)
# $(LD) -o $@ $^
# Module dependencies
double_precision.f90:
assorted.f90: doublePrecision.mod prms.mod
numflux.f90: doublePrecision.mod prms.mod
fluxes.f90: doublePrecision.mod prms.mod
main.f90: doublePrecision.mod prms.mod conv.mod weno.mod
ic.f90: doublePrecision.mod prms.mod conv.mod
weno.f90: doublePrecision.mod prms.mod
rhside.f90: doublePrecision.mod prms.mod
viscous.f90: doublePrecision.mod prms.mod
clean:
@rm -fv *.mod *.o *.x *__genmod.f90 *__genmod.mod
# FC=gfortran-13
LD=${FC}
RANLIB=touch
AR=ar r
.PHONY: clean docs
.SUFFIXES:
.SUFFIXES: .o
.SUFFIXES: .f90 .o
.SUFFIXES: .f90 .mod
.f.o:
$(FC) $(FFLAGS) -c $<
.f90.o:
$(FC) $(FFLAGS) -c $<
.f90.mod:
$(FC) $(FFLAGS) -c $<