-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
50 lines (40 loc) · 1.13 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
.SUFFIXES: .F .o
all: dummy UGWP_physics
dummy:
echo "****** compiling UGWP_physics ******"
OBJS = \
bl_ugwp.o \
bl_ugwpv1_ngw.o \
cires_ugwpv1_initialize.o \
cires_ugwpv1_module.o \
cires_tauamf_data.o \
cires_ugwpv1_triggers.o \
cires_ugwpv1_solv2.o
# DEPENDENCIES:
bl_ugwpv1_ngw.o: \
cires_ugwpv1_module.o \
cires_tauamf_data.o \
cires_ugwpv1_triggers.o \
cires_ugwpv1_solv2.o
cires_tauamf_data.o: \
cires_ugwpv1_initialize.o
cires_ugwpv1_module.o: \
cires_ugwpv1_initialize.o \
cires_tauamf_data.o
cires_ugwpv1_solv2.o: \
cires_ugwpv1_module.o \
cires_ugwpv1_initialize.o
UGWP_physics: $(OBJS)
ar -ru ./../libphys.a $(OBJS)
clean:
$(RM) *.f90 *.o *.mod
@# Certain systems with intel compilers generate *.i files
@# This removes them during the clean process
$(RM) *.i
.F.o:
ifeq "$(GEN_F90)" "true"
$(CPP) $(CPPFLAGS) $(COREDEF) $(CPPINCLUDES) $< > $*.f90
$(FC) $(FFLAGS) -c $*.f90 $(FCINCLUDES) -I.. -I../../../framework -I../../../external/esmf_time_f90
else
$(FC) $(CPPFLAGS) $(COREDEF) $(FFLAGS) -c $*.F $(CPPINCLUDES) $(FCINCLUDES) -I.. -I../../../framework -I../../../external/esmf_time_f90
endif