NWGNUmod_cgi revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# Make sure all needed macro's are defined
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# Get the 'head' of the build environment if necessary. This includes default
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# targets and paths to tools
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrewsifndef EnvironmentDefined
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# These directories will be at the beginning of the include list, followed by
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsXINCDIRS += \
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater $(APR)/include \
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater $(APRUTIL)/include \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(SRC)/include \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(STDMOD)/http \
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater $(STDMOD)/filters \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# These flags will come after CFLAGS
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# These defines will come after DEFINES
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntXDEFINES += \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# These flags will be added to the link.opt file
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# These values will be appended to the correct variables based on the value of
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterifeq "$(RELEASE)" "debug"
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updaterifeq "$(RELEASE)" "noopt"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsXDEFINES += \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonifeq "$(RELEASE)" "release"
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# These are used by the link target if an NLM is being generated
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# This is used by the link 'name' directive to name the nlm. If left blank
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# TARGET_nlm (see below) will be used.
2a31bd531072824ef252c18303859d6af7451b00Francis DupontNLM_NAME = mod_cgi
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater# This is used by the link '-desc ' directive.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If left blank, NLM_NAME will be used.
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic UpdaterNLM_DESCRIPTION = Apache $(VERSION_STR) CGI Module
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# This is used by the '-threadname' directive. If left blank,
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater# NLM_NAME Thread will be used.
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsNLM_THREAD_NAME = Mod_cgi Module
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic Updater# If this is specified, it will override VERSION value in
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# If this is specified, it will override the default of 64K
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterNLM_STACK_SIZE = 8192
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# If this is specified it will be used by the link '-entry' directive
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterNLM_ENTRY_SYM =
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# If this is specified it will be used by the link '-exit' directive
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater# If this is specified it will be used by the link '-check' directive
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonNLM_CHECK_SYM =
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater# If these are specified it will be used by the link '-flags' directive
f132a836c4e386b1af045dd8fe7106ae61b90bffAutomatic Updater# If this is specified it will be linked in with the XDCData option in the def
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
c6a0f4ae1d7183a16ffb196b86b647f870694796Automatic Updater# by setting APACHE_UNIPROC in the environment
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# If there is an NLM target, put it here
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# If there is an LIB target, put it here
7f79131f9a8e804b93c57f3c679065cce878b726Automatic Updater# These are the OBJ files needed to create the NLM target above.
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Paths must all use the '/' character
3f616e6f846be57b1717c6beaba0f74de9d5a7c6Automatic UpdaterFILES_nlm_objs = \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# These are the LIB files needed to create the NLM target above.
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater# These will be added as a library command in the link.opt file.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterFILES_nlm_libs = \
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic Updater# These are the modules that the above NLM target depends on to load.
7262eb86f2b465822206122921e2f357218f0cfdAutomatic Updater# These will be added as a module command in the link.opt file.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterFILES_nlm_modules = \
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# If the nlm has a msg file, put it's path here
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsFILE_nlm_msg =
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If the nlm has a hlp file put it's path here
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic UpdaterFILE_nlm_copyright =
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# Any additional imports go here
3e5340279d8875d136a4dd815cccad0044aa2644Automatic UpdaterFILES_nlm_Ximports = \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Any symbols exported to here
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic UpdaterFILES_nlm_exports = \
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# These are the OBJ files needed to create the LIB target above.
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater# Paths must all use the '/' character
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterFILES_lib_objs = \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# implement targets and dependancies (leave this section alone)
e2caa7536302de34de6cc04025abcd53dc3a499aAutomatic Updaterlibs :: $(OBJDIR) $(TARGET_lib)
8292deab031e7599cd7622aa7675fbe139ca6095Mark Andrewsnlms :: libs $(TARGET_nlm)
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews# Updated this target to create necessary directories and copy files to the
dc11390a658e02e1a03accd4dbe14c94fa9de556Automatic Updater# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsinstall :: nlms FORCE
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# Any specialized rules here
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# Include the 'tail' makefile that has targets that depend on variables defined
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# in this makefile
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsinclude $(APBUILD)/NWGNUtail.inc