-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
40 lines (32 loc) · 892 Bytes
/
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
.SUFFIXES: .F .o
all: dummy physics_mmm
dummy:
echo "****** compiling physics_mmm ******"
OBJS = \
bl_gwdo.o \
bl_ysu.o \
cu_ntiedtke.o \
mp_radar.o \
mp_wsm6_effectRad.o \
mp_wsm6.o \
sf_sfclayrev.o \
module_libmassv.o
physics_mmm: $(OBJS)
ar -ru ./../libphys.a $(OBJS)
# DEPENDENCIES:
mp_wsm6_effectRad.o: \
mp_wsm6.o
mp_wsm6.o: \
module_libmassv.o
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../physics_mmm -I../../../framework -I../../../external/esmf_time_f90
else
$(FC) $(CPPFLAGS) $(COREDEF) $(FFLAGS) -c $*.F $(CPPINCLUDES) $(FCINCLUDES) -I.. -I../physics_mmm -I../../../framework -I../../../external/esmf_time_f90
endif