NWGNUmoddumpio revision 16b55a35cff91315d261d1baa776138af465c4e4
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# Make sure all needed macro's are defined
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# Get the 'head' of the build environment if necessary. This includes default
080575042aba2197b425ebfd52061dea061a9aa1xy# targets and paths to tools
080575042aba2197b425ebfd52061dea061a9aa1xy#
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China
080575042aba2197b425ebfd52061dea061a9aa1xyifndef EnvironmentDefined
080575042aba2197b425ebfd52061dea061a9aa1xyinclude $(AP_WORK)\build\NWGNUhead.inc
080575042aba2197b425ebfd52061dea061a9aa1xyendif
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# These directories will be at the beginning of the include list, followed by
080575042aba2197b425ebfd52061dea061a9aa1xy# INCDIRS
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xyXINCDIRS += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(APR)/include \
080575042aba2197b425ebfd52061dea061a9aa1xy $(APRUTIL)/include \
080575042aba2197b425ebfd52061dea061a9aa1xy $(AP_WORK)/include \
3f64cd552fee350c8075ec62765e9a6f9caef1a8guoqing zhu - Sun Microsystems - Beijing China $(NWOS) \
193974072f41a843678abf5f61979c748687e66bSherry Moore $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# These flags will come after CFLAGS
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xyXCFLAGS += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# These defines will come after DEFINES
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xyXDEFINES += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# These flags will be added to the link.opt file
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xyXLFLAGS += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# These values will be appended to the correct variables based on the value of
080575042aba2197b425ebfd52061dea061a9aa1xy# RELEASE
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xyifeq "$(RELEASE)" "debug"
080575042aba2197b425ebfd52061dea061a9aa1xyXINCDIRS += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyXCFLAGS += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyXDEFINES += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
da14cebe459d3275048785f25bd869cb09b5307fEric ChengXLFLAGS += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xyendif
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyifeq "$(RELEASE)" "noopt"
47b7744cbea59975a6b583125b7ed1ff2ac45313yyXINCDIRS += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyXCFLAGS += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyXDEFINES += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
c7770590c6dc06be2588a5c21427e2d823baa989mxXLFLAGS += \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xyendif
9b6541b318d01d0d83bfb98699a7f09e35f37951gl
9b6541b318d01d0d83bfb98699a7f09e35f37951glifeq "$(RELEASE)" "release"
9b6541b318d01d0d83bfb98699a7f09e35f37951glXINCDIRS += \
9b6541b318d01d0d83bfb98699a7f09e35f37951gl $(EOLIST)
25f2d433de915875c8393f0b0dc14aa155997ad0xy
080575042aba2197b425ebfd52061dea061a9aa1xyXCFLAGS += \
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China $(EOLIST)
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing ChinaXDEFINES += \
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China $(EOLIST)
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing ChinaXLFLAGS += \
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xyendif
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# These are used by the link target if an NLM is being generated
0c56b8d9d1c30af2e78d0a6fd8a6a70aa5310099changqing li - Sun Microsystems - Beijing China# This is used by the link 'name' directive to name the nlm. If left blank
080575042aba2197b425ebfd52061dea061a9aa1xy# TARGET_nlm (see below) will be used.
c7770590c6dc06be2588a5c21427e2d823baa989mx#
43a176879122f7764767ab85eb539f89d65cdd67Miles Xu, Sun MicrosystemsNLM_NAME = moddumpio
43a176879122f7764767ab85eb539f89d65cdd67Miles Xu, Sun Microsystems
4d7379630d53d9992780329b674af8c85935e858xiangtao you - Sun Microsystems - Beijing China#
4d7379630d53d9992780329b674af8c85935e858xiangtao you - Sun Microsystems - Beijing China# This is used by the link '-desc ' directive.
c7770590c6dc06be2588a5c21427e2d823baa989mx# If left blank, NLM_NAME will be used.
4d7379630d53d9992780329b674af8c85935e858xiangtao you - Sun Microsystems - Beijing China#
4d7379630d53d9992780329b674af8c85935e858xiangtao you - Sun Microsystems - Beijing ChinaNLM_DESCRIPTION = Apache $(VERSION_STR) Debugging IO Module
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# This is used by the '-threadname' directive. If left blank,
080575042aba2197b425ebfd52061dea061a9aa1xy# NLM_NAME Thread will be used.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xyNLM_THREAD_NAME = DumpIO Module
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# If this is specified, it will override VERSION value in
080575042aba2197b425ebfd52061dea061a9aa1xy# $(AP_WORK)\build\NWGNUenvironment.inc
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xyNLM_VERSION =
25f2d433de915875c8393f0b0dc14aa155997ad0xy
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xy# If this is specified, it will override the default of 64K
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xyNLM_STACK_SIZE = 8192
25f2d433de915875c8393f0b0dc14aa155997ad0xy
25f2d433de915875c8393f0b0dc14aa155997ad0xy
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xy# If this is specified it will be used by the link '-entry' directive
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
0c56b8d9d1c30af2e78d0a6fd8a6a70aa5310099changqing li - Sun Microsystems - Beijing ChinaNLM_ENTRY_SYM = _LibCPrelude
25f2d433de915875c8393f0b0dc14aa155997ad0xy
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xy# If this is specified it will be used by the link '-exit' directive
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xyNLM_EXIT_SYM = _LibCPostlude
25f2d433de915875c8393f0b0dc14aa155997ad0xy
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xy# If this is specified it will be used by the link '-check' directive
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xyNLM_CHECK_SYM =
25f2d433de915875c8393f0b0dc14aa155997ad0xy
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
9ce7e93c0e8e6d2b400f40e9c5742b1d6682611ecc# If these are specified it will be used by the link '-flags' directive
0c56b8d9d1c30af2e78d0a6fd8a6a70aa5310099changqing li - Sun Microsystems - Beijing China#
25f2d433de915875c8393f0b0dc14aa155997ad0xyNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
25f2d433de915875c8393f0b0dc14aa155997ad0xy
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xy# If this is specified it will be linked in with the XDCData option in the def
47b7744cbea59975a6b583125b7ed1ff2ac45313yy# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
1bc1c72171ee0c5d77203ddffb90219d991bd6e8guoqing zhu - Sun Microsystems - Beijing China# by setting APACHE_UNIPROC in the environment
1bc1c72171ee0c5d77203ddffb90219d991bd6e8guoqing zhu - Sun Microsystems - Beijing China#
1bc1c72171ee0c5d77203ddffb90219d991bd6e8guoqing zhu - Sun Microsystems - Beijing ChinaXDCDATA =
1bc1c72171ee0c5d77203ddffb90219d991bd6e8guoqing zhu - Sun Microsystems - Beijing China
47b7744cbea59975a6b583125b7ed1ff2ac45313yy#
47b7744cbea59975a6b583125b7ed1ff2ac45313yy# If there is an NLM target, put it here
47b7744cbea59975a6b583125b7ed1ff2ac45313yy#
47b7744cbea59975a6b583125b7ed1ff2ac45313yyTARGET_nlm = \
47b7744cbea59975a6b583125b7ed1ff2ac45313yy $(OBJDIR)/moddumpio.nlm \
47b7744cbea59975a6b583125b7ed1ff2ac45313yy $(EOLIST)
47b7744cbea59975a6b583125b7ed1ff2ac45313yy
47b7744cbea59975a6b583125b7ed1ff2ac45313yy#
47b7744cbea59975a6b583125b7ed1ff2ac45313yy# If there is an LIB target, put it here
47b7744cbea59975a6b583125b7ed1ff2ac45313yy#
47b7744cbea59975a6b583125b7ed1ff2ac45313yyTARGET_lib = \
47b7744cbea59975a6b583125b7ed1ff2ac45313yy $(EOLIST)
47b7744cbea59975a6b583125b7ed1ff2ac45313yy
47b7744cbea59975a6b583125b7ed1ff2ac45313yy#
25f2d433de915875c8393f0b0dc14aa155997ad0xy# These are the OBJ files needed to create the NLM target above.
47b7744cbea59975a6b583125b7ed1ff2ac45313yy# Paths must all use the '/' character
47b7744cbea59975a6b583125b7ed1ff2ac45313yy#
47b7744cbea59975a6b583125b7ed1ff2ac45313yyFILES_nlm_objs = \
47b7744cbea59975a6b583125b7ed1ff2ac45313yy $(OBJDIR)/mod_dumpio.o \
47b7744cbea59975a6b583125b7ed1ff2ac45313yy $(EOLIST)
47b7744cbea59975a6b583125b7ed1ff2ac45313yy
47b7744cbea59975a6b583125b7ed1ff2ac45313yy#
47b7744cbea59975a6b583125b7ed1ff2ac45313yy# These are the LIB files needed to create the NLM target above.
25f2d433de915875c8393f0b0dc14aa155997ad0xy# These will be added as a library command in the link.opt file.
47b7744cbea59975a6b583125b7ed1ff2ac45313yy#
c7770590c6dc06be2588a5c21427e2d823baa989mxFILES_nlm_libs = \
25f2d433de915875c8393f0b0dc14aa155997ad0xy libcpre.o \
25f2d433de915875c8393f0b0dc14aa155997ad0xy $(EOLIST)
25f2d433de915875c8393f0b0dc14aa155997ad0xy
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# These are the modules that the above NLM target depends on to load.
25f2d433de915875c8393f0b0dc14aa155997ad0xy# These will be added as a module command in the link.opt file.
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
6ad5fc39c6f3b123ae5588d60fc8dfe068e07bfcsvFILES_nlm_modules = \
c7770590c6dc06be2588a5c21427e2d823baa989mx aprlib \
3d15c084da89e6f689f1804f3e2e600e5376c4e1chenlu chen - Sun Microsystems - Beijing China libc \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
25f2d433de915875c8393f0b0dc14aa155997ad0xy
54e0d7a5e8285a3f01a0db8db1246ac7cac94d81Miles Xu, Sun Microsystems#
54e0d7a5e8285a3f01a0db8db1246ac7cac94d81Miles Xu, Sun Microsystems# If the nlm has a msg file, put it's path here
54e0d7a5e8285a3f01a0db8db1246ac7cac94d81Miles Xu, Sun Microsystems#
54e0d7a5e8285a3f01a0db8db1246ac7cac94d81Miles Xu, Sun MicrosystemsFILE_nlm_msg =
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# If the nlm has a hlp file put it's path here
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xyFILE_nlm_hlp =
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# If this is specified, it will override $(NWOS)\copyright.txt.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xyFILE_nlm_copyright =
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# Any additional imports go here
080575042aba2197b425ebfd52061dea061a9aa1xy#
c7770590c6dc06be2588a5c21427e2d823baa989mxFILES_nlm_Ximports = \
080575042aba2197b425ebfd52061dea061a9aa1xy @$(APR)/aprlib.imp \
54e0d7a5e8285a3f01a0db8db1246ac7cac94d81Miles Xu, Sun Microsystems @$(NWOS)/httpd.imp \
54e0d7a5e8285a3f01a0db8db1246ac7cac94d81Miles Xu, Sun Microsystems @libc.imp \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
ae6aa22afeb444ae208c287e7227a4a7c877f17aVenugopal Iyer
ae6aa22afeb444ae208c287e7227a4a7c877f17aVenugopal Iyer#
080575042aba2197b425ebfd52061dea061a9aa1xy# Any symbols exported to here
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xyFILES_nlm_exports = \
080575042aba2197b425ebfd52061dea061a9aa1xy dumpio_module \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# These are the OBJ files needed to create the LIB target above.
080575042aba2197b425ebfd52061dea061a9aa1xy# Paths must all use the '/' character
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xyFILES_lib_objs = \
080575042aba2197b425ebfd52061dea061a9aa1xy $(EOLIST)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# implement targets and dependancies (leave this section alone)
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xylibs :: $(OBJDIR) $(TARGET_lib)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xynlms :: libs $(TARGET_nlm)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# Updated this target to create necessary directories and copy files to the
25f2d433de915875c8393f0b0dc14aa155997ad0xy# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xyinstall :: nlms FORCE
25f2d433de915875c8393f0b0dc14aa155997ad0xy
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xy# Any specialized rules here
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
25f2d433de915875c8393f0b0dc14aa155997ad0xy
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
4045d94132614e1de2073685a6cdd4fbd86bec33sowmini# Include the 'tail' makefile that has targets that depend on variables defined
25f2d433de915875c8393f0b0dc14aa155997ad0xy# in this makefile
25f2d433de915875c8393f0b0dc14aa155997ad0xy#
9b6541b318d01d0d83bfb98699a7f09e35f37951gl
080575042aba2197b425ebfd52061dea061a9aa1xyinclude $(AP_WORK)\build\NWGNUtail.inc
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy