NWGNUproxyhtp revision 0cb770e9049c8e85ede0bbe3d47904785b15f868
52c1cac19a87d591152634a1de44a0311383b359Automatic Updater# Make sure all needed macro's are defined
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Get the 'head' of the build environment if necessary. This includes default
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# targets and paths to tools
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontifndef EnvironmentDefined
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontinclude $(AP_WORK)\build\NWGNUhead.inc
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# These directories will be at the beginning of the include list, followed by
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont $(AP_WORK)/include \
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont $(APR)/include \
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont $(APRUTIL)/include \
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# These flags will come after CFLAGS
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# These defines will come after DEFINES
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# These flags will be added to the link.opt file
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater# These values will be appended to the correct variables based on the value of
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontifeq "$(RELEASE)" "debug"
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontifeq "$(RELEASE)" "noopt"
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontifeq "$(RELEASE)" "release"
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# These are used by the link target if an NLM is being generated
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# This is used by the link 'name' directive to name the nlm. If left blank
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# TARGET_nlm (see below) will be used.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontNLM_NAME = proxyhtp
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# This is used by the link '-desc ' directive.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# If left blank, NLM_NAME will be used.
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic UpdaterNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy HTTP Sub-Module
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic Updater# This is used by the '-threadname' directive. If left blank,
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic Updater# NLM_NAME Thread will be used.
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic UpdaterNLM_THREAD_NAME = Proxy HTTP Module
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# If this is specified, it will override VERSION value in
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# If this is specified, it will override the default of 64K
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontNLM_STACK_SIZE = 8192
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# If this is specified it will be used by the link '-entry' directive
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontNLM_ENTRY_SYM = _LibCPrelude
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# If this is specified it will be used by the link '-exit' directive
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontNLM_EXIT_SYM = _LibCPostlude
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# If this is specified it will be used by the link '-check' directive
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontNLM_CHECK_SYM =
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# If these are specified it will be used by the link '-flags' directive
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater# If this is specified it will be linked in with the XDCData option in the def
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# by setting APACHE_UNIPROC in the environment
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# If there is an NLM target, put it here
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# If there is an LIB target, put it here
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# These are the OBJ files needed to create the NLM target above.
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# Paths must all use the '/' character
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic UpdaterFILES_nlm_objs = \
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# These are the LIB files needed to create the NLM target above.
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# These will be added as a library command in the link.opt file.
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic UpdaterFILES_nlm_libs = \
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# These are the modules that the above NLM target depends on to load.
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# These will be added as a module command in the link.opt file.
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic UpdaterFILES_nlm_modules = \
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# If the nlm has a msg file, put it's path here
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontFILE_nlm_msg =
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# If the nlm has a hlp file put it's path here
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontFILE_nlm_hlp =
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# If this is specified, it will override $(NWOS)\copyright.txt.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontFILE_nlm_copyright =
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Any additional imports go here
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontFILES_nlm_Ximports = \
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Don't link with Winsock if standard sockets are being used
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontifndef USE_STDSOCKETS
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontFILES_nlm_Ximports += @ws2nlm.imp \
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# Any symbols exported to here
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontFILES_nlm_exports = \
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont proxy_http_module \
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater# These are the OBJ files needed to create the LIB target above.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Paths must all use the '/' character
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontFILES_lib_objs = \
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# implement targets and dependancies (leave this section alone)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updaterlibs :: $(OBJDIR) $(TARGET_lib)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontnlms :: libs $(TARGET_nlm)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
vpath %.c ../arch/netware
include $(AP_WORK)\build\NWGNUtail.inc