2 # Define our required macro's if not already done.
6 export AP_WORK = $(CURDIR)
10 ifeq "$(wildcard $(AP_WORK)/srclib/apr)" "$(AP_WORK)/srclib/apr"
11 export APR_WORK = $(AP_WORK)/srclib/apr
14 ifneq "$(wildcard $(APR_WORK)/include/apr_version.h)" "$(APR_WORK)/include/apr_version.h"
15 $(error APR_WORK does not point to a valid APR source tree)
19 ifeq "$(wildcard $(AP_WORK)/srclib/apr-util)" "$(AP_WORK)/srclib/apr-util"
20 export APU_WORK = $(AP_WORK)/srclib/apr-util
24 ifeq "$(wildcard $(APR_WORK)/include/apu_version.h)" "$(APR_WORK)/include/apu_version.h"
25 export APU_WORK = $(APR_WORK)
28 ifneq "$(wildcard $(APU_WORK)/include/apu_version.h)" "$(APU_WORK)/include/apu_version.h"
29 $(error APU_WORK does not point to a valid APU source tree)
33 # Declare the sub-directories to be built here
44 # Get the 'head' of the build environment. This includes default targets and
48 include $(AP_WORK)\build\NWGNUhead.inc
51 # build this level's files
54 # Make sure all needed macro's are defined
58 # These directories will be at the beginning of the include list, followed by
65 $(AP_WORK)/modules/filters/ \
66 $(AP_WORK)/modules/generators/ \
67 $(AP_WORK)/modules/http/ \
68 $(AP_WORK)/modules/loggers/ \
69 $(AP_WORK)/modules/mappers/ \
70 $(AP_WORK)/modules/proxy/ \
71 $(AP_WORK)/server/mpm/NetWare \
77 # These flags will come after CFLAGS
83 # These defines will come after DEFINES
89 # These flags will be added to the link.opt file
95 # These values will be appended to the correct variables based on the value of
98 ifeq "$(RELEASE)" "debug"
112 ifeq "$(RELEASE)" "noopt"
126 ifeq "$(RELEASE)" "release"
141 # These are used by the link target if an NLM is being generated
142 # This is used by the link 'name' directive to name the nlm. If left blank
143 # TARGET_nlm (see below) will be used.
148 # This is used by the link '-desc ' directive.
149 # If left blank, NLM_NAME will be used.
151 NLM_DESCRIPTION = Apache Web Server $(VERSION_STR)
154 # This is used by the '-threadname' directive. If left blank,
155 # NLM_NAME Thread will be used.
157 NLM_THREAD_NAME = Apache
160 # This is used by the '-screenname' directive. If left blank,
161 # 'Apache for NetWare' Thread will be used.
163 NLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
166 # If this is specified, it will override VERSION value in
167 # $(AP_WORK)\build\NWGNUenvironment.inc
172 # If this is specified, it will override the default of 64K
174 NLM_STACK_SIZE = 65536
178 # If this is specified it will be used by the link '-entry' directive
180 NLM_ENTRY_SYM = _LibCPrelude
183 # If this is specified it will be used by the link '-exit' directive
185 NLM_EXIT_SYM = _LibCPostlude
188 # If this is specified it will be used by the link '-check' directive
190 NLM_CHECK_SYM = _LibCCheckUnload
193 # If these are specified it will be used by the link '-flags' directive
195 NLM_FLAGS = PSEUDOPREEMPTION
198 # If this is specified it will be linked in with the XDCData option in the def
199 # file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
200 # by setting APACHE_UNIPROC in the environment
205 # If there is an NLM target, put it here
208 $(OBJDIR)/Apache2.nlm \
212 # If there is an LIB target, put it here
218 # These are the OBJ files needed to create the NLM target above.
219 # Paths must all use the '/' character
222 $(OBJDIR)/buildmark.o \
224 $(OBJDIR)/connection.o \
226 $(OBJDIR)/eoc_bucket.o \
227 $(OBJDIR)/error_bucket.o \
228 $(OBJDIR)/http_core.o \
229 $(OBJDIR)/http_protocol.o \
230 $(OBJDIR)/http_request.o \
234 $(OBJDIR)/mod_access.o \
235 $(OBJDIR)/mod_actions.o \
236 $(OBJDIR)/mod_alias.o \
237 $(OBJDIR)/mod_asis.o \
238 $(OBJDIR)/mod_auth.o \
239 $(OBJDIR)/mod_autoindex.o \
240 $(OBJDIR)/mod_cgi.o \
241 $(OBJDIR)/mod_dir.o \
242 $(OBJDIR)/mod_env.o \
243 $(OBJDIR)/mod_imap.o \
244 $(OBJDIR)/mod_include.o \
245 $(OBJDIR)/mod_log_config.o \
246 $(OBJDIR)/mod_mime.o \
247 $(OBJDIR)/mod_negotiation.o \
248 $(OBJDIR)/mod_netware.o \
249 $(OBJDIR)/mod_nw_ssl.o \
250 $(OBJDIR)/mod_setenvif.o \
252 $(OBJDIR)/mod_userdir.o \
253 $(OBJDIR)/modules.o \
254 $(OBJDIR)/mpm_common.o \
255 $(OBJDIR)/mpm_netware.o \
257 $(OBJDIR)/pcreposix.o \
258 $(OBJDIR)/protocol.o \
259 $(OBJDIR)/provider.o \
260 $(OBJDIR)/request.o \
261 $(OBJDIR)/rfc1413.o \
262 $(OBJDIR)/scoreboard.o \
264 $(OBJDIR)/util_cfgtree.o \
265 $(OBJDIR)/util_charset.o \
266 $(OBJDIR)/util_debug.o \
267 $(OBJDIR)/util_filter.o \
268 $(OBJDIR)/util_md5.o \
269 $(OBJDIR)/util_nw.o \
270 $(OBJDIR)/util_script.o \
271 $(OBJDIR)/util_time.o \
272 $(OBJDIR)/util_xml.o \
277 # These are the LIB files needed to create the NLM target above.
278 # These will be added as a library command in the link.opt file.
285 # These are the modules that the above NLM target depends on to load.
286 # These will be added as a module command in the link.opt file.
288 FILES_nlm_modules = \
294 # If the nlm has a msg file, put it's path here
299 # If the nlm has a hlp file put it's path here
304 # If this is specified, it will override $(NWOS)\copyright.txt.
309 # Any additional imports go here
311 FILES_nlm_Ximports = \
316 GetCurrentAddressSpace \
320 # Any symbols exported to here
322 FILES_nlm_exports = \
327 # These are the OBJ files needed to create the LIB target above.
328 # Paths must all use the '/' character
334 # implement targets and dependancies (leave this section alone)
337 libs :: $(OBJDIR) $(TARGET_lib)
339 nlms :: libs $(TARGET_nlm)
342 # Updated this target to create necessary directories and copy files to the
343 # correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
345 install :: nlms FORCE
346 -copy $(OBJDIR)\Apache2.nlm $(INSTALL)\Apache2\*.*
347 -copy ABOUT_APACHE $(INSTALL)\Apache2\*.*
348 -copy README $(INSTALL)\Apache2\*.*
349 -copy STATUS $(INSTALL)\Apache2\*.*
350 -copy LICENSE $(INSTALL)\Apache2\*.*
351 -copy CHANGES $(INSTALL)\Apache2\*.*
352 -copy support\dbmmanage.in $(INSTALL)\Apache2\bin\dbmmanage.pl
353 -copy support\logresolve.pl.in $(INSTALL)\Apache2\bin\logresolve.pl
354 -copy support\check_forensic $(INSTALL)\Apache2\bin\check_forensic
355 -awk -f build\mkconfnw.awk docs\conf\httpd-std.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
356 -copy docs\conf\magic $(INSTALL)\Apache2\conf\magic
357 -copy docs\conf\mime.types $(INSTALL)\Apache2\conf\mime.types
358 -copy docs\cgi-examples\printenv $(INSTALL)\Apache2\cgi-bin\printenv.pl
359 @echo rem copying the docs directories > xc.bat
360 @echo xcopy docs\error $(INSTALL)\Apache2\error $(XCOPYSW) >> xc.bat
361 @echo xcopy docs\docroot $(INSTALL)\Apache2\htdocs $(XCOPYSW) >> xc.bat
362 @echo xcopy docs\icons $(INSTALL)\Apache2\icons $(XCOPYSW) >> xc.bat
363 @echo xcopy docs\man $(INSTALL)\Apache2\man $(XCOPYSW) >> xc.bat
364 @echo xcopy docs\manual $(INSTALL)\Apache2\manual $(XCOPYSW) >> xc.bat
371 -copy $(subst /,\,$(AP_WORK))\include\*.h $(INSTALL)\Apache2\include\*.*
372 -copy $(subst /,\,$(AP_WORK))\os\netware\*.h $(INSTALL)\Apache2\include\*.*
373 -copy $(subst /,\,$(NWOS))\*.imp $(INSTALL)\Apache2\lib\*.*
374 -copy $(subst /,\,$(APR))\include\*.h $(INSTALL)\Apache2\include\*.*
375 -copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALL)\Apache2\include\*.*
376 -copy $(subst /,\,$(APR))\*.imp $(INSTALL)\Apache2\lib\*.*
377 -copy $(subst /,\,$(NWOS))\*.xdc $(INSTALL)\Apache2\lib\*.*
380 # Any specialized rules here
383 $(OBJDIR)/%.o: server/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
385 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
387 $(OBJDIR)/%.o: modules/arch/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
389 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
391 $(OBJDIR)/%.o: modules/http/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
393 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
395 $(OBJDIR)/%.o: modules/aaa/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
397 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
399 $(OBJDIR)/%.o: modules/mappers/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
401 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
403 $(OBJDIR)/%.o: modules/generators/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
405 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
407 $(OBJDIR)/%.o: modules/metadata/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
409 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
411 $(OBJDIR)/%.o: modules/filters/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
413 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
415 $(OBJDIR)/%.o: modules/loggers/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
417 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
419 $(OBJDIR)/%.o: os/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
421 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
423 $(OBJDIR)/%.o: server/mpm/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
425 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
427 $(OBJDIR)/%.o: srclib/pcre/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
429 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
432 # Include the 'tail' makefile that has targets that depend on variables defined
436 include $(AP_WORK)\build\NWGNUtail.inc