-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
34 lines (27 loc) · 898 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
.SUFFIXES: .F90 .o
all: dummy microphysics
dummy:
echo "****** compiling TEMPO microphysics ******"
OBJS = \
module_mp_tempo_params.o \
module_mp_tempo_utils.o \
module_mp_tempo_main.o \
module_mp_tempo.o
microphysics: $(OBJS)
ar -ru ./../libphys.a $(OBJS)
# DEPENDENCIES:
module_mp_tempo.o: \
module_mp_tempo_params.o \
module_mp_tempo_utils.o \
module_mp_tempo_main.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"
$(FC) $(FFLAGS) -c $*.f90 $(FCINCLUDES) -I.. -I../physics_wrf -I../physics_mmm -I../../../framework -I../../../external/esmf_time_f90
else
$(FC) $(CPPFLAGS) $(COREDEF) $(FFLAGS) -c $*.F90 $(CPPINCLUDES) $(FCINCLUDES) -I.. -I../physics_wrf -I../physics_mmm -I../../../framework -I../../../external/esmf_time_f90
endif