forked from sentientc/pom08
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
74 lines (64 loc) · 2.57 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
# sbPOM makefile
#
#-----------------------------------------------------------------------
# Settings that depend on the system and the compiler
#-----------------------------------------------------------------------
# Set macros
CPP = cpp -P
FC = ifort
LD = ifort
CLEAN = rm
# Set libraries and include files
NETCDFINC = -I/aracbox/lib/netcdf/4.1.2/intel_12/include
NETCDFLIB = -L/aracbox/lib/netcdf/4.1.2/intel_12/lib
#FFLAGS = -O3 -mcmodel large -shared-intel -fp-model precise -assume byterecl $(NETCDFINC)
FFLAGS = -check bounds -warn interface -g -traceback -mcmodel large -shared-intel -fp-model precise -assume byterecl $(NETCDFINC)
#LIBS = -O3 -mcmodel large -shared-intel -fp-model precise -assume byterecl $(NETCDFLIB) -lnetcdf -lnetcdff -limf -lm
LIBS = -check bounds -warn interface -g -traceback -mcmodel large -shared-intel -fp-model precise -assume byterecl $(NETCDFLIB) -lnetcdf -lnetcdff -limf -lm
#-----------------------------------------------------------------------
# Set the executable
#-----------------------------------------------------------------------
BIN = pom08.exe #yoyo
#-----------------------------------------------------------------------
# Define source directory
#-----------------------------------------------------------------------
SRCDIR = pom
#-----------------------------------------------------------------------
# Define objects
#-----------------------------------------------------------------------
OBJS = pom08_iosub.o \
module_time.o \
interp.o \
gridgen.o \
wave.o \
wind.o \
pom08.o
# interp.o
VPATH = $(SRCDIR)
#-----------------------------------------------------------------------
# Set implicit rules for compilation
#-----------------------------------------------------------------------
%.o: %.f
@echo
$(FC) -c $(FFLAGS) $<
#-----------------------------------------------------------------------
# Set implicit rules for dependencies
#-----------------------------------------------------------------------
%.f: %.F
@echo
$(CPP) $(FFLAGS) $< > $*.f
#%.o:%.f90
# @echo
# $(FC) -c $(FFLAGS) $<
#-----------------------------------------------------------------------
# Create the executable
#-----------------------------------------------------------------------
$(BIN): $(OBJS)
@echo
$(LD) $(FFLAGS) -o $(BIN) $(OBJS) $(LIBS)
#-----------------------------------------------------------------------
# Cleaning target
#-----------------------------------------------------------------------
clean:
@rm -f *.o *.mod *.il *.exe *genmod.f90