forked from NCAR/MMM-physics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.mpas
58 lines (45 loc) · 1.08 KB
/
Makefile.mpas
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
.SUFFIXES: .F90 .o
.PHONY: physics_mmm physics_mmm_lib
all: dummy physics_mmm
dummy:
echo "****** compiling physics_mmm ******"
OBJS = \
bl_gwdo.o \
bl_mynn.o \
bl_mynn_subroutines.o \
bl_ysu.o \
cu_ntiedtke.o \
mp_radar.o \
mp_wsm6_effectRad.o \
mp_wsm6.o \
mynn_shared.o \
sf_mynn.o \
sf_sfclayrev.o \
module_libmassv.o
physics_mmm: $(OBJS)
physics_mmm_lib:
ar -ru ./../libphys.a $(OBJS)
# DEPENDENCIES:
bl_mynn.o: \
bl_mynn_subroutines.o
bl_mynn_subroutines.o: \
mynn_shared.o
mp_wsm6_effectRad.o: \
mp_wsm6.o
mp_wsm6.o: \
mp_radar.o \
module_libmassv.o
sf_mynn.o: \
mynn_shared.o
clean:
$(RM) *.f90 *.o *.mod
@# Certain systems with intel compilers generate *.i files
@# This removes them during the clean process
$(RM) *.i
.F90.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 $*.F90 $(CPPINCLUDES) $(FCINCLUDES) -I.. -I../../../framework -I../../../external/esmf_time_f90
endif