2 # Declare the sub-directories to be built here
13 # Get the 'head' of the build environment. This includes default targets and
17 include $(AP_WORK)\build\NWGNUhead.inc
20 # build this level's files
23 # Make sure all needed macro's are defined
27 # These directories will be at the beginning of the include list, followed by
34 $(AP_WORK)/modules/filters/ \
35 $(AP_WORK)/modules/generators/ \
36 $(AP_WORK)/modules/http/ \
37 $(AP_WORK)/modules/loggers/ \
38 $(AP_WORK)/modules/mappers/ \
39 $(AP_WORK)/modules/proxy/ \
40 $(AP_WORK)/os/NetWare \
41 $(AP_WORK)/server/mpm/NetWare \
42 $(AP_WORK)/srclib/pcre \
47 # These flags will come after CFLAGS
53 # These defines will come after DEFINES
59 # These flags will be added to the link.opt file
65 # These values will be appended to the correct variables based on the value of
68 ifeq "$(RELEASE)" "debug"
82 ifeq "$(RELEASE)" "noopt"
96 ifeq "$(RELEASE)" "release"
111 # These are used by the link target if an NLM is being generated
112 # This is used by the link 'name' directive to name the nlm. If left blank
113 # TARGET_nlm (see below) will be used.
118 # This is used by the link '-desc ' directive.
119 # If left blank, NLM_NAME will be used.
121 NLM_DESCRIPTION = Apache Web Server $(VERSION_STR)
124 # This is used by the '-threadname' directive. If left blank,
125 # NLM_NAME Thread will be used.
127 NLM_THREAD_NAME = Apache
130 # This is used by the '-screenname' directive. If left blank,
131 # 'Apache for NetWare' Thread will be used.
133 NLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
137 # If this is specified, it will override VERSION value in
138 # $(AP_WORK)\build\NWGNUenvironment.inc
143 # If this is specified, it will override the default of 64K
145 NLM_STACK_SIZE = 65536
149 # If this is specified it will be used by the link '-entry' directive
151 NLM_ENTRY_SYM = _LibCPrelude
154 # If this is specified it will be used by the link '-exit' directive
156 NLM_EXIT_SYM = _LibCPostlude
159 # If this is specified it will be used by the link '-check' directive
161 NLM_CHECK_SYM = _LibCCheckUnload
164 # If these are specified it will be used by the link '-flags' directive
166 NLM_FLAGS = PSEUDOPREEMPTION
169 # If this is specified it will be linked in with the XDCData option in the def
170 # file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
171 # by setting APACHE_UNIPROC in the environment
176 # If there is an NLM target, put it here
179 $(OBJDIR)/Apache2.nlm \
183 # If there is an LIB target, put it here
189 # These are the OBJ files needed to create the NLM target above.
190 # Paths must all use the '/' character
193 $(OBJDIR)/buildmark.o \
195 $(OBJDIR)/connection.o \
197 $(OBJDIR)/core_filters.o \
198 $(OBJDIR)/eoc_bucket.o \
199 $(OBJDIR)/error_bucket.o \
200 $(OBJDIR)/http_core.o \
201 $(OBJDIR)/http_protocol.o \
202 $(OBJDIR)/http_request.o \
203 $(OBJDIR)/byterange_filter.o \
204 $(OBJDIR)/chunk_filter.o \
205 $(OBJDIR)/http_etag.o \
206 $(OBJDIR)/http_filters.o \
210 $(OBJDIR)/mod_authz_host.o \
211 $(OBJDIR)/mod_actions.o \
212 $(OBJDIR)/mod_alias.o \
213 $(OBJDIR)/mod_asis.o \
214 $(OBJDIR)/mod_autoindex.o \
215 $(OBJDIR)/mod_cgi.o \
216 $(OBJDIR)/mod_dir.o \
217 $(OBJDIR)/mod_env.o \
218 $(OBJDIR)/mod_imap.o \
219 $(OBJDIR)/mod_include.o \
220 $(OBJDIR)/mod_log_config.o \
221 $(OBJDIR)/mod_mime.o \
222 $(OBJDIR)/mod_negotiation.o \
223 $(OBJDIR)/mod_netware.o \
224 $(OBJDIR)/mod_nw_ssl.o \
225 $(OBJDIR)/mod_setenvif.o \
227 $(OBJDIR)/mod_userdir.o \
228 $(OBJDIR)/modules.o \
229 $(OBJDIR)/mpm_common.o \
230 $(OBJDIR)/mpm_netware.o \
232 $(OBJDIR)/protocol.o \
233 $(OBJDIR)/provider.o \
234 $(OBJDIR)/request.o \
235 $(OBJDIR)/scoreboard.o \
237 $(OBJDIR)/util_cfgtree.o \
238 $(OBJDIR)/util_charset.o \
239 $(OBJDIR)/util_debug.o \
240 $(OBJDIR)/util_filter.o \
241 $(OBJDIR)/util_md5.o \
242 $(OBJDIR)/util_nw.o \
243 $(OBJDIR)/util_pcre.o \
244 $(OBJDIR)/util_script.o \
245 $(OBJDIR)/util_time.o \
246 $(OBJDIR)/util_xml.o \
251 # These are the LIB files needed to create the NLM target above.
252 # These will be added as a library command in the link.opt file.
259 # These are the modules that the above NLM target depends on to load.
260 # These will be added as a module command in the link.opt file.
262 FILES_nlm_modules = \
268 # If the nlm has a msg file, put it's path here
273 # If the nlm has a hlp file put it's path here
278 # If this is specified, it will override $(NWOS)\copyright.txt.
283 # Any additional imports go here
285 FILES_nlm_Ximports = \
290 GetCurrentAddressSpace \
294 # Any symbols exported to here
296 FILES_nlm_exports = \
301 # These are the OBJ files needed to create the LIB target above.
302 # Paths must all use the '/' character
308 # implement targets and dependancies (leave this section alone)
311 libs :: $(OBJDIR) $(TARGET_lib)
313 nlms :: libs $(TARGET_nlm)
316 # Updated this target to create necessary directories and copy files to the
317 # correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
319 install :: nlms FORCE
320 -copy $(OBJDIR)\Apache2.nlm $(INSTALL)\Apache2\*.*
321 -copy ABOUT_APACHE $(INSTALL)\Apache2\*.*
322 -copy README $(INSTALL)\Apache2\*.*
323 -copy STATUS $(INSTALL)\Apache2\*.*
324 -copy LICENSE $(INSTALL)\Apache2\*.*
325 -copy CHANGES $(INSTALL)\Apache2\*.*
326 -copy support\dbmmanage.in $(INSTALL)\Apache2\bin\dbmmanage.pl
327 -copy support\logresolve.pl.in $(INSTALL)\Apache2\bin\logresolve.pl
328 -awk -f build\mkconfnw.awk docs\conf\httpd-std.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
329 -copy docs\conf\magic $(INSTALL)\Apache2\conf\magic
330 -copy docs\conf\mime.types $(INSTALL)\Apache2\conf\mime.types
331 -copy docs\conf\charset.conv $(INSTALL)\Apache2\conf\charset.conv
332 -copy docs\cgi-examples\printenv $(INSTALL)\Apache2\cgi-bin\printenv.pl
333 @echo rem copying the docs directories > xc.bat
334 @echo xcopy docs\error $(INSTALL)\Apache2\error $(XCOPYSW) >> xc.bat
335 @echo xcopy docs\docroot $(INSTALL)\Apache2\htdocs $(XCOPYSW) >> xc.bat
336 @echo xcopy docs\icons $(INSTALL)\Apache2\icons $(XCOPYSW) >> xc.bat
337 @echo xcopy docs\man $(INSTALL)\Apache2\man $(XCOPYSW) >> xc.bat
338 @echo xcopy docs\manual $(INSTALL)\Apache2\manual $(XCOPYSW) >> xc.bat
345 -copy $(subst /,\,$(AP_WORK))\include\*.h $(INSTALL)\Apache2\include\*.*
346 -copy $(subst /,\,$(AP_WORK))\os\netware\*.h $(INSTALL)\Apache2\include\*.*
347 -copy $(subst /,\,$(NWOS))\*.imp $(INSTALL)\Apache2\lib\*.*
348 -copy $(subst /,\,$(APR))\include\*.h $(INSTALL)\Apache2\include\*.*
349 -copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALL)\Apache2\include\*.*
350 -copy $(subst /,\,$(APR))\*.imp $(INSTALL)\Apache2\lib\*.*
351 -copy $(subst /,\,$(NWOS))\*.xdc $(INSTALL)\Apache2\lib\*.*
354 $(MAKE) -C server -f NWGNUMakefile
355 $(MAKE) -C srclib/pcre -f NWGNUMakefile
356 $(MAKE) -C $(APU_WORK)/uri -f NWGNUMakefile
357 $(CHKNOT) $(PREBUILD_INST)\nul mkdir $(PREBUILD_INST)
358 -copy $(AP_WORK)\server\$(OBJDIR)\*.nlm $(PREBUILD_INST)\*.*
359 -copy $(AP_WORK)\srclib\pcre\$(basename $(OBJDIR))\*.nlm $(PREBUILD_INST)\*.*
360 -copy $(APU_WORK)\uri\$(basename $(OBJDIR))\*.nlm $(PREBUILD_INST)\*.*
364 # Any specialized rules here
367 vpath %.c server:modules/arch/netware:modules/http:modules/aaa:modules/mappers
368 vpath %.c modules/generators:modules/metadata:modules/filters:modules/loggers
369 vpath %.c os/netware:server/mpm/netware:srclib/pcre
372 # Include the 'tail' makefile that has targets that depend on variables defined
376 include $(AP_WORK)\build\NWGNUtail.inc