updated top-level README and version_decl for V4.5 (#1847)
[WRF.git] / frame / Makefile
bloba861a9e9798621ed2db741d2f4a0b19c93679287
3 LN = ln -sf
4 MAKE = make -i -r
5 RM = rm -f
9 MODULES = module_driver_constants.o \
10 module_domain_type.o \
11 module_streams.o \
12 module_domain.o \
13 $(LLIST) \
14 module_integrate.o \
15 module_timing.o \
16 module_configure.o \
17 module_tiles.o \
18 module_machine.o \
19 module_nesting.o \
20 module_wrf_error.o \
21 module_state_description.o \
22 module_sm.o \
23 module_io.o \
24 module_comm_dm.o \
25 module_comm_dm_0.o \
26 module_comm_dm_1.o \
27 module_comm_dm_2.o \
28 module_comm_dm_3.o \
29 module_comm_dm_4.o \
30 module_comm_nesting_dm.o \
31 module_dm.o \
32 module_quilt_outbuf_ops.o \
33 module_io_quilt.o \
34 module_cpl.o \
35 module_cpl_oasis3.o \
36 module_clear_halos.o
37 ALOBJS =\
38 module_alloc_space_0.o \
39 module_alloc_space_1.o \
40 module_alloc_space_2.o \
41 module_alloc_space_3.o \
42 module_alloc_space_4.o \
43 module_alloc_space_5.o \
44 module_alloc_space_6.o \
45 module_alloc_space_7.o \
46 module_alloc_space_8.o \
47 module_alloc_space_9.o
49 NLOBJS =\
50 nl_get_0_routines.o \
51 nl_get_1_routines.o \
52 nl_get_2_routines.o \
53 nl_get_3_routines.o \
54 nl_get_4_routines.o \
55 nl_get_5_routines.o \
56 nl_get_6_routines.o \
57 nl_get_7_routines.o \
58 nl_set_0_routines.o \
59 nl_set_1_routines.o \
60 nl_set_2_routines.o \
61 nl_set_3_routines.o \
62 nl_set_4_routines.o \
63 nl_set_5_routines.o \
64 nl_set_6_routines.o \
65 nl_set_7_routines.o
67 OBJS = \
68 wrf_num_bytes_between.o \
69 wrf_shutdown.o \
70 wrf_debug.o \
71 libmassv.o \
72 collect_on_comm.o \
73 hires_timer.o \
74 clog.o
76 #compile as a .o but do not link into the main library
77 SPECIAL = module_internal_header_util.o pack_utils.o
80 include ../configure.wrf
82 LIBTARGET = framework
83 TARGETDIR = ./
84 $(LIBTARGET) : $(MODULES) $(OBJS) $(SPECIAL) $(NLOBJS) $(ALOBJS)
85 $(AR) $(ARFLAGS) ../main/$(LIBWRFLIB) $(MODULES) $(OBJS) $(NLOBJS) $(ALOBJS)
86 $(RANLIB) ../main/$(LIBWRFLIB)
88 nl_set_0_routines.o : nl_access_routines.F module_configure.o
89 $(CPP) -DNNN=0 -I../inc -DNL_set_ROUTINES nl_access_routines.F > xx0.f90
90 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) xx0.f90
92 nl_set_1_routines.o : nl_access_routines.F module_configure.o
93 $(CPP) -DNNN=1 -I../inc -DNL_set_ROUTINES nl_access_routines.F > xx1.f90
94 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) xx1.f90
96 nl_set_2_routines.o : nl_access_routines.F module_configure.o
97 $(CPP) -DNNN=2 -I../inc -DNL_set_ROUTINES nl_access_routines.F > xx2.f90
98 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) xx2.f90
100 nl_set_3_routines.o : nl_access_routines.F module_configure.o
101 $(CPP) -DNNN=3 -I../inc -DNL_set_ROUTINES nl_access_routines.F > xx3.f90
102 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) xx3.f90
104 nl_set_4_routines.o : nl_access_routines.F module_configure.o
105 $(CPP) -DNNN=4 -I../inc -DNL_set_ROUTINES nl_access_routines.F > xx4.f90
106 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) xx4.f90
108 nl_set_5_routines.o : nl_access_routines.F module_configure.o
109 $(CPP) -DNNN=5 -I../inc -DNL_set_ROUTINES nl_access_routines.F > xx5.f90
110 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) xx5.f90
112 nl_set_6_routines.o : nl_access_routines.F module_configure.o
113 $(CPP) -DNNN=6 -I../inc -DNL_set_ROUTINES nl_access_routines.F > xx6.f90
114 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) xx6.f90
116 nl_set_7_routines.o : nl_access_routines.F module_configure.o
117 $(CPP) -DNNN=7 -I../inc -DNL_set_ROUTINES nl_access_routines.F > xx7.f90
118 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) xx7.f90
120 nl_get_0_routines.o : nl_access_routines.F module_configure.o
121 $(CPP) -DNNN=0 -I../inc -DNL_get_ROUTINES nl_access_routines.F > yy0.f90
122 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) yy0.f90
124 nl_get_1_routines.o : nl_access_routines.F module_configure.o
125 $(CPP) -DNNN=1 -I../inc -DNL_get_ROUTINES nl_access_routines.F > yy1.f90
126 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) yy1.f90
128 nl_get_2_routines.o : nl_access_routines.F module_configure.o
129 $(CPP) -DNNN=2 -I../inc -DNL_get_ROUTINES nl_access_routines.F > yy2.f90
130 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) yy2.f90
132 nl_get_3_routines.o : nl_access_routines.F module_configure.o
133 $(CPP) -DNNN=3 -I../inc -DNL_get_ROUTINES nl_access_routines.F > yy3.f90
134 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) yy3.f90
136 nl_get_4_routines.o : nl_access_routines.F module_configure.o
137 $(CPP) -DNNN=4 -I../inc -DNL_get_ROUTINES nl_access_routines.F > yy4.f90
138 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) yy4.f90
140 nl_get_5_routines.o : nl_access_routines.F module_configure.o
141 $(CPP) -DNNN=5 -I../inc -DNL_get_ROUTINES nl_access_routines.F > yy5.f90
142 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) yy5.f90
144 nl_get_6_routines.o : nl_access_routines.F module_configure.o
145 $(CPP) -DNNN=6 -I../inc -DNL_get_ROUTINES nl_access_routines.F > yy6.f90
146 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) yy6.f90
148 nl_get_7_routines.o : nl_access_routines.F module_configure.o
149 $(CPP) -DNNN=7 -I../inc -DNL_get_ROUTINES nl_access_routines.F > yy7.f90
150 $(FC) -o $@ -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS_NO_G) $(MODULE_DIRS) $(FCSUFFIX) yy7.f90
152 wrf_num_bytes_between.o :
153 $(CC) -c $(CFLAGS) wrf_num_bytes_between.c
155 pack_utils.o :
156 $(CC) -c $(CFLAGS) -DIWORDSIZE=$(IWORDSIZE) pack_utils.c
158 module_internal_header_util.o :
159 $(CPP) $(CPPFLAGS) -I../inc module_internal_header_util.F > module_internal_header_util.f90
160 $(SFC) -c $(PROMOTION) $(FCSUFFIX) $(FCDEBUG) $(FCBASEOPTS) module_internal_header_util.f90
162 clean:
163 @ echo 'use the clean script'
165 module_state_description.F : ../Registry/$(REGISTRY)
166 ( cd .. ; tools/registry $(ARCHFLAGS) $(ENVCOMPDEFS) -DNEW_BDYS Registry/$(REGISTRY) ; true ) ;
168 module_io_quilt.o : module_io_quilt.F module_io_quilt_old.F
170 md_calls.inc : md_calls.m4
171 if [ "$(M4)" = NA ] ; then \
172 /bin/cp ../arch/md_calls.inc . ; \
173 else \
174 $(M4) md_calls.m4 > md_calls.inc ; \
177 # DEPENDENCIES : only dependencies after this line (don't remove the word DEPENDENCIES)
179 include ../main/depend.common
181 # DO NOT DELETE