NWGNUrewrite revision 7b3cfb4974fa8dea788092c859d8d38c49f6ab0c
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# Make sure all needed macro's are defined
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# Get the 'head' of the build environment if necessary. This includes default
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# targets and paths to tools
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozekifndef EnvironmentDefined
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozekinclude $(AP_WORK)\build\NWGNUhead.inc
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# These directories will be at the beginning of the include list, followed by
27e89b6925334565c73c407a9ae2809358789c81Jakub HrozekXINCDIRS += \
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek $(AP_WORK)/include \
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# These flags will come after CFLAGS
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# These defines will come after DEFINES
64ea4127f463798410a2c20e0261c6b15f60257fJakub HrozekXDEFINES += \
64ea4127f463798410a2c20e0261c6b15f60257fJakub Hrozek# These flags will be added to the link.opt file
64ea4127f463798410a2c20e0261c6b15f60257fJakub Hrozek# These values will be appended to the correct variables based on the value of
64ea4127f463798410a2c20e0261c6b15f60257fJakub Hrozekifeq "$(RELEASE)" "debug"
64ea4127f463798410a2c20e0261c6b15f60257fJakub HrozekXINCDIRS += \
05d935cc9d04f03522d0bb44598d22d99b085926Jakub HrozekXDEFINES += \
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozekifeq "$(RELEASE)" "noopt"
05d935cc9d04f03522d0bb44598d22d99b085926Jakub HrozekXINCDIRS += \
05d935cc9d04f03522d0bb44598d22d99b085926Jakub HrozekXDEFINES += \
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozekifeq "$(RELEASE)" "release"
05d935cc9d04f03522d0bb44598d22d99b085926Jakub HrozekXINCDIRS += \
05d935cc9d04f03522d0bb44598d22d99b085926Jakub HrozekXDEFINES += \
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# These are used by the link target if an NLM is being generated
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# This is used by the link 'name' directive to name the nlm. If left blank
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# TARGET_nlm (see below) will be used.
05d935cc9d04f03522d0bb44598d22d99b085926Jakub HrozekNLM_NAME = rewrite
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# This is used by the link '-desc ' directive.
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# If left blank, NLM_NAME will be used.
05d935cc9d04f03522d0bb44598d22d99b085926Jakub HrozekNLM_DESCRIPTION = Apache $(VERSION_STR) Rewrite Module
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# This is used by the '-threadname' directive. If left blank,
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# NLM_NAME Thread will be used.
05d935cc9d04f03522d0bb44598d22d99b085926Jakub HrozekNLM_THREAD_NAME = Rewrite Module
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# If this is specified, it will override VERSION value in
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# $(AP_WORK)\build\NWGNUenvironment.inc
05d935cc9d04f03522d0bb44598d22d99b085926Jakub HrozekNLM_VERSION =
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# If this is specified, it will override the default of 64K
2427b40566cf63880f3650b26a2fee91cb28de24Petr CechNLM_STACK_SIZE = 8192
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek# If this is specified it will be used by the link '-entry' directive
64ea4127f463798410a2c20e0261c6b15f60257fJakub HrozekNLM_ENTRY_SYM = _LibCPrelude
64ea4127f463798410a2c20e0261c6b15f60257fJakub Hrozek# If this is specified it will be used by the link '-exit' directive
d2c552edde275e6c0de904760147afb2992796e9Jakub HrozekNLM_EXIT_SYM = _LibCPostlude
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# If this is specified it will be used by the link '-check' directive
d2c552edde275e6c0de904760147afb2992796e9Jakub HrozekNLM_CHECK_SYM =
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# If these are specified it will be used by the link '-flags' directive
d2c552edde275e6c0de904760147afb2992796e9Jakub HrozekNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# If this is specified it will be linked in with the XDCData option in the def
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# by setting APACHE_UNIPROC in the environment
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# If there is an NLM target, put it here
d2c552edde275e6c0de904760147afb2992796e9Jakub HrozekTARGET_nlm = \
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# If there is an LIB target, put it here
d2c552edde275e6c0de904760147afb2992796e9Jakub HrozekTARGET_lib = \
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# These are the OBJ files needed to create the NLM target above.
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# Paths must all use the '/' character
d2c552edde275e6c0de904760147afb2992796e9Jakub HrozekFILES_nlm_objs = \
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# These are the LIB files needed to create the NLM target above.
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# These will be added as a library command in the link.opt file.
d2c552edde275e6c0de904760147afb2992796e9Jakub HrozekFILES_nlm_libs = \
cc4caf88344210ea9777d618f0f71935ca5e7f8bSumit Bose# These are the modules that the above NLM target depends on to load.
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# These will be added as a module command in the link.opt file.
d2c552edde275e6c0de904760147afb2992796e9Jakub HrozekFILES_nlm_modules = \
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# If the nlm has a msg file, put it's path here
d2c552edde275e6c0de904760147afb2992796e9Jakub HrozekFILE_nlm_msg =
d2c552edde275e6c0de904760147afb2992796e9Jakub Hrozek# If the nlm has a hlp file put it's path here
64ea4127f463798410a2c20e0261c6b15f60257fJakub HrozekFILE_nlm_hlp =
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# If this is specified, it will override $(NWOS)\copyright.txt.
27e89b6925334565c73c407a9ae2809358789c81Jakub HrozekFILE_nlm_copyright =
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# Any additional imports go here
778f241e78241b0d6b8734148175f8dee804f494Pavel BřezinaFILES_nlm_Ximports = \
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# Any symbols exported to here
de2bad8ae08f09964834bda0f88db9de39f47c5cJakub HrozekFILES_nlm_exports = \
de2bad8ae08f09964834bda0f88db9de39f47c5cJakub Hrozek rewrite_module \
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# These are the OBJ files needed to create the LIB target above.
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# Paths must all use the '/' character
27e89b6925334565c73c407a9ae2809358789c81Jakub HrozekFILES_lib_objs = \
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# implement targets and dependancies (leave this section alone)
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozeklibs :: $(OBJDIR) $(TARGET_lib)
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozeknlms :: libs $(TARGET_nlm)
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# Updated this target to create necessary directories and copy files to the
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozekinstall :: nlms FORCE
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# Any specialized rules here
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# Include the 'tail' makefile that has targets that depend on variables defined
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozek# in this makefile
27e89b6925334565c73c407a9ae2809358789c81Jakub Hrozekinclude $(AP_WORK)\build\NWGNUtail.inc