Merge remote-tracking branch 'origin/release-v4.5.2'
[WRF.git] / main / Makefile
blob9efb8aed436b4b85e71ce1387caec64777e9c46a
3 LN = ln -sf
4 MAKE = make -i -r
5 RM = rm -f
7 MODULES = module_wrf_top.F
9 OBJS =
11 LIBPATHS =
13 include ../configure.wrf
15 $(SOLVER)_wrf : wrf.o ../main/module_wrf_top.o
16 $(RANLIB) $(RLFLAGS) $(LIBWRFLIB)
17 $(LD) -o wrf.exe $(LDFLAGS) wrf.o ../main/module_wrf_top.o $(LIBWRFLIB) $(CMAQLIB) $(LIB)
19 $(SOLVER)_wrfplus : wrf.o ../main/module_wrf_top.o
20 $(RANLIB) $(RLFLAGS) $(LIBWRFLIB)
21 $(LD) -o wrfplus.exe $(LDFLAGS) wrf.o ../main/module_wrf_top.o $(LIBWRFLIB) $(LIB)
23 $(SOLVER)_wrf_SST_ESMF : wrf_ESMFMod.o wrf_SST_ESMF.o ../main/module_wrf_top.o
24 $(RANLIB) $(RLFLAGS) $(LIBWRFLIB)
25 $(LD) -o wrf_SST_ESMF.exe $(LDFLAGS) wrf_SST_ESMF.o wrf_ESMFMod.o ../main/module_wrf_top.o $(LIBWRFLIB) $(LIB)
27 $(SOLVER)_ideal : module_initialize ideal_$(SOLVER).o
28 $(RANLIB) $(RLFLAGS) $(LIBWRFLIB)
29 $(LD) -o ideal.exe $(LDFLAGS) ideal_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o $(LIBWRFLIB) $(LIB)
31 $(SOLVER)_real : module_initialize ndown_$(SOLVER).o tc_$(SOLVER).o real_$(SOLVER).o
32 $(RANLIB) $(RLFLAGS) $(LIBWRFLIB)
33 $(LD) -o ndown.exe $(LDFLAGS) ndown_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o $(LIBWRFLIB) $(LIB)
34 $(LD) -o tc.exe $(LDFLAGS) tc_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o $(LIBWRFLIB) $(LIB)
35 $(LD) -o real.exe $(LDFLAGS) real_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o $(LIBWRFLIB) $(LIB)
37 convert_em : convert_em.o
38 $(RANLIB) $(RLFLAGS) $(LIBWRFLIB)
39 $(LD) -o convert_em.exe $(LDFLAGS) convert_em.o $(LIBWRFLIB) $(LIB)
41 module_initialize : ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o
42 # ( cd ../dyn_$(SOLVER) ; $(MAKE) module_initialize_$(IDEAL_CASE).o )
44 ## prevent real being compiled for OMP -- only for regtesting
45 #$(SOLVER)_real : module_initialize real_$(SOLVER).o
46 # $(RANLIB) $(RLFLAGS) $(LIBWRFLIB)
47 # if [ -z "$(OMP)" ] ; then $(FC) -o real.exe $(LDFLAGS) real_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o $(LIBWRFLIB) $(LIB) ; fi
49 ## prevent module_initialize being compiled for OMP --remove after IBM debugging
50 #module_initialize :
51 # if [ -z "$(OMP)" ] ; then ( cd ../dyn_$(SOLVER) ; $(MAKE) module_initialize_$(IDEAL_CASE).o ) ; fi
52 # end of regtest changes
54 clean:
55 @ echo 'use the clean script'
57 # DEPENDENCIES : only dependencies after this line (don't remove the word DEPENDENCIES)
59 include depend.common
61 # DO NOT DELETE