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/aaa/ \
35 $(AP_WORK)/modules/filters/ \
36 $(AP_WORK)/modules/generators/ \
37 $(AP_WORK)/modules/http/ \
38 $(AP_WORK)/modules/loggers/ \
39 $(AP_WORK)/modules/mappers/ \
40 $(AP_WORK)/modules/proxy/ \
41 $(AP_WORK)/os/NetWare \
42 $(AP_WORK)/server/mpm/NetWare \
45 $(AP_WORK)/modules/ssl \
49 # These flags will come after CFLAGS
55 # These defines will come after DEFINES
61 # These flags will be added to the link.opt file
67 # These values will be appended to the correct variables based on the value of
70 ifeq "$(RELEASE)" "debug"
84 ifeq "$(RELEASE)" "noopt"
98 ifeq "$(RELEASE)" "release"
113 # These are used by the link target if an NLM is being generated
114 # This is used by the link 'name' directive to name the nlm. If left blank
115 # TARGET_nlm (see below) will be used.
120 # This is used by the link '-desc ' directive.
121 # If left blank, NLM_NAME will be used.
123 NLM_DESCRIPTION = Apache Web Server $(VERSION_STR) $(VERSION_SKT)
126 # This is used by the '-threadname' directive. If left blank,
127 # NLM_NAME Thread will be used.
129 NLM_THREAD_NAME = Apache
132 # This is used by the '-screenname' directive. If left blank,
133 # 'Apache for NetWare' Thread will be used.
135 NLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
139 # If this is specified, it will override VERSION value in
140 # $(AP_WORK)\build\NWGNUenvironment.inc
145 # If this is specified, it will override the default of 64K
147 NLM_STACK_SIZE = 65536
151 # If this is specified it will be used by the link '-entry' directive
153 NLM_ENTRY_SYM = _LibCPrelude
156 # If this is specified it will be used by the link '-exit' directive
158 NLM_EXIT_SYM = _LibCPostlude
161 # If this is specified it will be used by the link '-check' directive
163 NLM_CHECK_SYM = _LibCCheckUnload
166 # If these are specified it will be used by the link '-flags' directive
168 NLM_FLAGS = PSEUDOPREEMPTION
171 # If this is specified it will be linked in with the XDCData option in the def
172 # file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
173 # by setting APACHE_UNIPROC in the environment
178 # If there is an NLM target, put it here
181 $(OBJDIR)/Apache2.nlm \
185 # If there is an LIB target, put it here
191 # These are the OBJ files needed to create the NLM target above.
192 # Paths must all use the '/' character
195 $(OBJDIR)/buildmark.o \
197 $(OBJDIR)/connection.o \
199 $(OBJDIR)/core_filters.o \
200 $(OBJDIR)/eoc_bucket.o \
201 $(OBJDIR)/eor_bucket.o \
202 $(OBJDIR)/error_bucket.o \
203 $(OBJDIR)/http_core.o \
204 $(OBJDIR)/http_protocol.o \
205 $(OBJDIR)/http_request.o \
206 $(OBJDIR)/byterange_filter.o \
207 $(OBJDIR)/chunk_filter.o \
208 $(OBJDIR)/http_etag.o \
209 $(OBJDIR)/http_filters.o \
213 $(OBJDIR)/mod_authn_core.o \
214 $(OBJDIR)/mod_authz_core.o \
215 $(OBJDIR)/mod_authz_host.o \
216 $(OBJDIR)/mod_alias.o \
217 $(OBJDIR)/mod_dir.o \
218 $(OBJDIR)/mod_env.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_setenvif.o \
226 $(OBJDIR)/modules.o \
227 $(OBJDIR)/mpm_common.o \
228 $(OBJDIR)/mpm_netware.o \
230 $(OBJDIR)/protocol.o \
231 $(OBJDIR)/provider.o \
232 $(OBJDIR)/request.o \
233 $(OBJDIR)/scoreboard.o \
235 $(OBJDIR)/util_cfgtree.o \
236 $(OBJDIR)/util_charset.o \
237 $(OBJDIR)/util_cookies.o \
238 $(OBJDIR)/util_debug.o \
239 $(OBJDIR)/util_expr.o \
240 $(OBJDIR)/util_filter.o \
241 $(OBJDIR)/util_md5.o \
242 $(OBJDIR)/util_mutex.o \
243 $(OBJDIR)/util_nw.o \
244 $(OBJDIR)/util_pcre.o \
245 $(OBJDIR)/util_script.o \
246 $(OBJDIR)/util_time.o \
247 $(OBJDIR)/util_xml.o \
251 # Build in mod_nw_ssl if Winsock is being used
252 ifndef USE_STDSOCKETS
253 FILES_nlm_objs += $(OBJDIR)/mod_nw_ssl.o \
258 # These are the LIB files needed to create the NLM target above.
259 # These will be added as a library command in the link.opt file.
266 # These are the modules that the above NLM target depends on to load.
267 # These will be added as a module command in the link.opt file.
269 FILES_nlm_modules = \
275 # If the nlm has a msg file, put it's path here
280 # If the nlm has a hlp file put it's path here
285 # If this is specified, it will override $(NWOS)\copyright.txt.
290 # Any additional imports go here
292 FILES_nlm_Ximports = \
296 GetCurrentAddressSpace \
299 # Don't link with Winsock if standard sockets are being used
300 ifndef USE_STDSOCKETS
301 FILES_nlm_Ximports += @ws2nlm.imp \
306 # Any symbols exported to here
308 FILES_nlm_exports = \
313 # These are the OBJ files needed to create the LIB target above.
314 # Paths must all use the '/' character
320 # implement targets and dependancies (leave this section alone)
323 libs :: $(OBJDIR) $(TARGET_lib)
325 nlms :: libs $(TARGET_nlm)
328 # Updated this target to create necessary directories and copy files to the
329 # correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
331 install :: nlms FORCE
332 -copy $(OBJDIR)\Apache2.nlm $(INSTALL)\$(BASEDIR)\*.*
333 -copy ABOUT_APACHE $(INSTALL)\$(BASEDIR)\*.*
334 -copy README $(INSTALL)\$(BASEDIR)\*.*
335 -copy STATUS $(INSTALL)\$(BASEDIR)\*.*
336 -copy LICENSE $(INSTALL)\$(BASEDIR)\*.*
337 -copy CHANGES $(INSTALL)\$(BASEDIR)\*.*
338 -copy VERSIONING $(INSTALL)\$(BASEDIR)\*.*
339 -copy support\dbmmanage.in $(INSTALL)\$(BASEDIR)\bin\dbmmanage.pl
340 -copy support\logresolve.pl.in $(INSTALL)\$(BASEDIR)\bin\logresolve.pl
341 -copy support\split-logfile.in $(INSTALL)\$(BASEDIR)\bin\split-logfile.pl
342 -$(AWK) -v BDIR=$(BASEDIR) -v PORT=$(PORT) -v SSLPORT=$(SSLPORT) -v MODSSL=$(WITH_MOD_SSL) -v BSDSKT=$(USE_STDSOCKETS) -f build\mkconfnw.awk docs\conf\httpd.conf.in >$(INSTALL)\$(BASEDIR)\conf\httpd.conf
343 $(CHKNOT) $(INSTALL)\$(BASEDIR)\conf\extra\nul mkdir $(INSTALL)\$(BASEDIR)\conf\extra
344 -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-autoindex.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-autoindex.conf
345 -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-dav.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-dav.conf
346 -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-default.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-default.conf
347 -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-info.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-info.conf
348 -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-languages.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-languages.conf
349 -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-manual.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-manual.conf
350 -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-mpm.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-mpm.conf
351 -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-multilang-errordoc.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-multilang-errordoc.conf
352 -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-userdir.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-userdir.conf
353 -$(AWK) -v BDIR=$(BASEDIR) -v PORT=$(PORT) -f build\mkconfnw.awk docs\conf\extra\httpd-vhosts.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-vhosts.conf
354 -$(AWK) -v BDIR=$(BASEDIR) -v SSLPORT=$(SSLPORT) -f build\mkconfnw.awk docs\conf\extra\httpd-ssl.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-ssl.conf
355 -copy docs\conf\magic $(INSTALL)\$(BASEDIR)\conf\magic
356 -copy docs\conf\mime.types $(INSTALL)\$(BASEDIR)\conf\mime.types
357 -copy docs\conf\charset.conv $(INSTALL)\$(BASEDIR)\conf\charset.conv
358 -copy docs\cgi-examples\printenv $(INSTALL)\$(BASEDIR)\cgi-bin\printenv.pl
359 @xcopy $(XCOPYSW) docs\error $(INSTALL)\$(BASEDIR)\error
360 @xcopy $(XCOPYSW) docs\docroot $(INSTALL)\$(BASEDIR)\htdocs
361 @xcopy $(XCOPYSW) docs\icons $(INSTALL)\$(BASEDIR)\icons
362 @xcopy $(XCOPYSW) docs\man $(INSTALL)\$(BASEDIR)\man
363 @xcopy $(XCOPYSW) docs\manual $(INSTALL)\$(BASEDIR)\manual
366 -copy $(subst /,\,$(AP_WORK))\include\*.h $(INSTALL)\$(BASEDIR)\include\*.*
367 -copy $(subst /,\,$(AP_WORK))\os\netware\*.h $(INSTALL)\$(BASEDIR)\include\*.*
368 -copy $(subst /,\,$(NWOS))\*.imp $(INSTALL)\$(BASEDIR)\lib\*.*
369 -copy $(subst /,\,$(APR))\include\*.h $(INSTALL)\$(BASEDIR)\include\*.*
370 -copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALL)\$(BASEDIR)\include\*.*
371 -copy $(subst /,\,$(APR))\*.imp $(INSTALL)\$(BASEDIR)\lib\*.*
372 -copy $(subst /,\,$(NWOS))\*.xdc $(INSTALL)\$(BASEDIR)\lib\*.*
375 $(MAKE) -C server -f NWGNUMakefile
376 $(MAKE) -C $(PCRESDK) -f NWGNUMakefile
377 $(CHKNOT) $(PREBUILD_INST)\nul mkdir $(PREBUILD_INST)
378 -copy $(AP_WORK)\server\$(OBJDIR)\*.nlm $(PREBUILD_INST)\*.*
379 -copy $(PCRESDK)\$(basename $(OBJDIR))\*.nlm $(PREBUILD_INST)\*.*
382 # Any specialized rules here
385 vpath %.c server:modules/arch/netware:modules/http:modules/aaa:modules/mappers
386 vpath %.c modules/generators:modules/metadata:modules/filters:modules/loggers
387 vpath %.c os/netware:server/mpm/netware:$(PCRESDK)
390 # Include the 'tail' makefile that has targets that depend on variables defined
394 include $(AP_WORK)\build\NWGNUtail.inc