-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile-pgi
60 lines (40 loc) · 1.28 KB
/
Makefile-pgi
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
# temporary test to try and isolate which particlar file is getting hammered
# by partial redundancy elimination
PRG = nfd
FC = pgf90
FSON_build_DIR = /u/staff/mvanmoer/NFD/fson/pgi/build/
FSON_dist_DIR = /u/staff/mvanmoer/NFD/fson/pgi/dist/
FCFLAGS = -I$(FSON_build_DIR) -L$(FSON_dist_DIR) -fast -O3 -Mipa=fast -o $@
OBJECTS = advection.o mesh.o initial_conditions.o integration.o \
boundary_conditions.o savedata.o diffusion.o \
pgf_bouyancy.o nfd.o
all: $(PRG)
#%.o: %.f90
# $(FC) -c $(FCFLAGS) $<
mesh.o: mesh.f90
$(FC) -c $(FCFLAGS) $<
advection.o: advection.f90
$(FC) -Minfo=all -Mnopre -c $(FCFLAGS) $<
boundary_conditions.o: boundary_conditions.f90
$(FC) -c $(FCFLAGS) $<
diffusion.o: diffusion.f90
$(FC) -c $(FCFLAGS) $<
pgf_bouyancy.o: pgf_bouyancy.f90
$(FC) -c $(FCFLAGS) $<
savedata.o: savedata.F90
$(FC) -c $(FCFLAGS) $<
integration.o: integration.f90 advection.mod
$(FC) -c $(FCFLAGS) $<
initial_conditions.o: initial_conditions.f90 mesh_type.mod
$(FC) -c $(FCFLAGS) $<
nfd.o: nfd.f90 integration.mod diffusion.mod \
initial_conditions.mod boundary_conditions.mod \
pgf_bouyancy.mod
$(FC) -c $(FCFLAGS) $<
nfd: $(OBJECTS)
$(FC) $(FCFLAGS) $^ -lfson
clean:
rm -f $(OBJECTS) nfd
deepclean:
rm -f *.o nfd *~ *.exe *.stackdump *.mod
.PHONY: all clean deepclean