forked from hafs-community/gfdl-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.trk
52 lines (43 loc) · 1.08 KB
/
configure.trk
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
SHELL = /bin/sh
LDFLAGS =
DEBUG_FLAGS = -g -traceback
FFLAGS_SINGLE = -i4 -r4
FFLAGS_DOUBLE = -i4 -r8
CPP = /lib/cpp
CPPFLAGS = -P -traditional
FFLAGS = -O2 -fp-model precise $(FFLAGS_DOUBLE)
CFLAGS = -O2
FC ?= ftn -static
F90 ?= ftn -free -static
CC ?= cc
##################################################################
#
# Macros, these should be generic for all machines
LN = ln -sf
MAKE = make -i -r
RM = /bin/rm -f
CP = /bin/cp
AR = ar
MKDIR = /bin/mkdir -p
.IGNORE:
.SUFFIXES: .c .f .F .F90 .f90 .o
# There is probably no reason to modify these rules
.c.o:
$(RM) $@
$(CC) $(CFLAGS) -c $<
.f.o:
$(RM) $@ $*.mod
$(FC) $(FFLAGS) -c $<
.F.o:
$(RM) $@ $*.mod
$(CPP) $(CPPFLAGS) $(FDEFS) $< > $*.f90
$(F90) $(FFLAGS) -c $*.f90
$(RM) $*.f90
.F90.o:
$(RM) $@ $*.mod
$(CPP) $(CPPFLAGS) $(FDEFS) $< > $*.f90
$(F90) $(FFLAGS) -c $*.f90
$(RM) $*.f90
.f90.o:
$(RM) $@ $*.mod
$(F90) $(FFLAGS) -c $<