NWGNUaccesscompat revision bf40639e42957133fef54f2f0a322061ac37fe90
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# Make sure all needed macro's are defined
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Get the 'head' of the build environment if necessary. This includes default
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# targets and paths to tools
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont#
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupontifndef EnvironmentDefined
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupontinclude $(AP_WORK)\build\NWGNUhead.inc
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox Userendif
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont#
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# These directories will be at the beginning of the include list, followed by
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# INCDIRS
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXINCDIRS += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(AP_WORK)/include \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(NWOS) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(AP_WORK)/modules/arch/netware \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(APR)/include \
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont $(APRUTIL)/include \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(APR) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# These flags will come after CFLAGS
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXCFLAGS += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User -prefix pre_nw.h \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# These defines will come after DEFINES
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXDEFINES += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# These flags will be added to the link.opt file
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXLFLAGS += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# These values will be appended to the correct variables based on the value of
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# RELEASE
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userifeq "$(RELEASE)" "debug"
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox UserXINCDIRS += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox UserXCFLAGS += \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(EOLIST)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontXDEFINES += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXLFLAGS += \
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userendif
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntifeq "$(RELEASE)" "noopt"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXINCDIRS += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntXCFLAGS += \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(EOLIST)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntXDEFINES += \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXLFLAGS += \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userendif
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntifeq "$(RELEASE)" "release"
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntXINCDIRS += \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXCFLAGS += \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXDEFINES += \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXLFLAGS += \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userendif
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# These are used by the link target if an NLM is being generated
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# This is used by the link 'name' directive to name the nlm. If left blank
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# TARGET_nlm (see below) will be used.
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNLM_NAME = accesscompat
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont#
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# This is used by the link '-desc ' directive.
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# If left blank, NLM_NAME will be used.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNLM_DESCRIPTION = Apache $(VERSION_STR) host access control compatibility Module
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# This is used by the '-threadname' directive. If left blank,
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# NLM_NAME Thread will be used.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntNLM_THREAD_NAME = AccessCompModule
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# If this is specified, it will override VERSION value in
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# $(AP_WORK)\build\NWGNUenvironment.inc
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNLM_VERSION =
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# If this is specified, it will override the default of 64K
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNLM_STACK_SIZE = 8192
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# If this is specified it will be used by the link '-entry' directive
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNLM_ENTRY_SYM = _LibCPrelude
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# If this is specified it will be used by the link '-exit' directive
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntNLM_EXIT_SYM = _LibCPostlude
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# If this is specified it will be used by the link '-check' directive
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNLM_CHECK_SYM =
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# If these are specified it will be used by the link '-flags' directive
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# If this is specified it will be linked in with the XDCData option in the def
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# by setting APACHE_UNIPROC in the environment
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXDCDATA =
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# If there is an NLM target, put it here
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserTARGET_nlm = \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(OBJDIR)/accesscompat.nlm \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# If there is an LIB target, put it here
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserTARGET_lib = \
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# These are the OBJ files needed to create the NLM target above.
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# Paths must all use the '/' character
#
FILES_nlm_objs = \
$(OBJDIR)/mod_access_compat.o \
$(EOLIST)
#
# These are the LIB files needed to create the NLM target above.
# These will be added as a library command in the link.opt file.
#
FILES_nlm_libs = \
libcpre.o \
$(EOLIST)
#
# These are the modules that the above NLM target depends on to load.
# These will be added as a module command in the link.opt file.
#
FILES_nlm_modules = \
aprlib \
libc \
$(EOLIST)
#
# If the nlm has a msg file, put it's path here
#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
@$(APR)/aprlib.imp \
@$(NWOS)/httpd.imp \
@libc.imp \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
access_compat_module \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
#
install :: nlms FORCE
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(AP_WORK)\build\NWGNUtail.inc