NWGNUuniqueid revision ac7985784d08a3655291f24f711812b4d8b1cbcf
9db318e6d01634c66e10dd0c6eb66c96305cb4f9Christian Maeder# Make sure all needed macro's are defined
9db318e6d01634c66e10dd0c6eb66c96305cb4f9Christian Maeder# Get the 'head' of the build environment if necessary. This includes default
3f69b6948966979163bdfe8331c38833d5d90ecdChristian Maeder# targets and paths to tools
f3a94a197960e548ecd6520bb768cb0d547457bbChristian Maederifndef EnvironmentDefined
f97523766972a5b9dfb6e357ba3a9c71aa3afca9Christian Maederinclude $(AP_WORK)\build\NWGNUhead.inc
99eb4a1079b8e2a03400c557e55733230084608bChristian Maeder# These directories will be at the beginning of the include list, followed by
9db318e6d01634c66e10dd0c6eb66c96305cb4f9Christian Maeder $(AP_WORK)/include \
9db318e6d01634c66e10dd0c6eb66c96305cb4f9Christian Maeder $(APR)/include \
9db318e6d01634c66e10dd0c6eb66c96305cb4f9Christian Maeder $(APRUTIL)/include \
9db318e6d01634c66e10dd0c6eb66c96305cb4f9Christian Maeder# These flags will come after CFLAGS
410ff490af511ffa09b52e4de631d36a154b9730Christian Maeder# These defines will come after DEFINES
5b9b8fe79d6846aed1eca5ca31493959e83018ddMartin KühlXDEFINES += \
813eb5721ae4ea1b3e2903727bf440ce594d45a8Christian Maeder# These flags will be added to the link.opt file
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder# These values will be appended to the correct variables based on the value of
392581ea95e3a242153594d6d911c1aa5e0b0875Klaus Luettichifeq "$(RELEASE)" "debug"
c7c90bab17cfec4793ecf70b20c39f1622977a7eChristian Maederifeq "$(RELEASE)" "noopt"
88ece6e49930670e8fd3ee79c89a2e918d2fbd0cChristian Maederifeq "$(RELEASE)" "release"
46c13ad1afc198f9f83c79c5c7dc314815394473Christian Maeder# These are used by the link target if an NLM is being generated
9db318e6d01634c66e10dd0c6eb66c96305cb4f9Christian Maeder# This is used by the link 'name' directive to name the nlm. If left blank
c7c90bab17cfec4793ecf70b20c39f1622977a7eChristian Maeder# TARGET_nlm (see below) will be used.
46c13ad1afc198f9f83c79c5c7dc314815394473Christian MaederNLM_NAME = uniqueid
be63973977ce77cbbf8c7f02a73fe6836eb9139fChristian Maeder# This is used by the link '-desc ' directive.
be63973977ce77cbbf8c7f02a73fe6836eb9139fChristian Maeder# If left blank, NLM_NAME will be used.
be63973977ce77cbbf8c7f02a73fe6836eb9139fChristian MaederNLM_DESCRIPTION = Apache $(VERSION_STR) Unique ID Module
46c13ad1afc198f9f83c79c5c7dc314815394473Christian Maeder# This is used by the '-threadname' directive. If left blank,
46c13ad1afc198f9f83c79c5c7dc314815394473Christian Maeder# NLM_NAME Thread will be used.
46c13ad1afc198f9f83c79c5c7dc314815394473Christian MaederNLM_THREAD_NAME = Unique ID Module
9db318e6d01634c66e10dd0c6eb66c96305cb4f9Christian Maeder# If this is specified, it will override VERSION value in
c7c90bab17cfec4793ecf70b20c39f1622977a7eChristian Maeder# $(AP_WORK)\build\NWGNUenvironment.inc
f9e34c15c03ea7d76e1177f14829d79e61f82d3aChristian Maeder# If this is specified, it will override the default of 64K
50c24605f35c844023792bd407b4a685ce78fafbChristian MaederNLM_STACK_SIZE = 8192
50c24605f35c844023792bd407b4a685ce78fafbChristian Maeder# If this is specified it will be used by the link '-entry' directive
1700f82fa8a0835f67d0dc68338f79665d50332aChristian MaederNLM_ENTRY_SYM = _LibCPrelude
c268daa439ab928606787882c1dc38e16df0fa52Christian Maeder# If this is specified it will be used by the link '-exit' directive
eae57ac3c7d86780601e90a67bb9d4cabfbb7812Christian MaederNLM_EXIT_SYM = _LibCPostlude
c34f9e8091bab44a6956db9bf4f2ae5d77d818fbChristian Maeder# If this is specified it will be used by the link '-check' directive
88ece6e49930670e8fd3ee79c89a2e918d2fbd0cChristian MaederNLM_CHECK_SYM =
c268daa439ab928606787882c1dc38e16df0fa52Christian Maeder# If these are specified it will be used by the link '-flags' directive
9e6ce33401d2bbbe82156d59f6a9be0331d9a4b7Christian MaederNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
c268daa439ab928606787882c1dc38e16df0fa52Christian Maeder# If this is specified it will be linked in with the XDCData option in the def
c268daa439ab928606787882c1dc38e16df0fa52Christian Maeder# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
234f59a47d72daf0d9e61b8c2ac10d2b40e96261Christian Maeder# by setting APACHE_UNIPROC in the environment
99eb4a1079b8e2a03400c557e55733230084608bChristian Maeder# If there is an NLM target, put it here
50c24605f35c844023792bd407b4a685ce78fafbChristian MaederTARGET_nlm = \
b2ed294d2a37c14f945dd924f6a5c12c90ec147dChristian Maeder# If there is an LIB target, put it here
f97523766972a5b9dfb6e357ba3a9c71aa3afca9Christian MaederTARGET_lib = \
f97523766972a5b9dfb6e357ba3a9c71aa3afca9Christian Maeder# These are the OBJ files needed to create the NLM target above.
cf104601d391a732e67e5bd5798a113b5dddef09Christian Maeder# Paths must all use the '/' character
9e6ce33401d2bbbe82156d59f6a9be0331d9a4b7Christian MaederFILES_nlm_objs = \
88ece6e49930670e8fd3ee79c89a2e918d2fbd0cChristian Maeder# These are the LIB files needed to create the NLM target above.
9e6ce33401d2bbbe82156d59f6a9be0331d9a4b7Christian Maeder# These will be added as a library command in the link.opt file.
9e6ce33401d2bbbe82156d59f6a9be0331d9a4b7Christian MaederFILES_nlm_libs = \
88ece6e49930670e8fd3ee79c89a2e918d2fbd0cChristian Maeder# These are the modules that the above NLM target depends on to load.
88ece6e49930670e8fd3ee79c89a2e918d2fbd0cChristian Maeder# These will be added as a module command in the link.opt file.
88ece6e49930670e8fd3ee79c89a2e918d2fbd0cChristian MaederFILES_nlm_modules = \
eae57ac3c7d86780601e90a67bb9d4cabfbb7812Christian Maeder# If the nlm has a msg file, put it's path here
f78ed401f3e978ac3d73e5f73b2546f2c6471722Christian MaederFILE_nlm_msg =
c268daa439ab928606787882c1dc38e16df0fa52Christian Maeder# If the nlm has a hlp file put it's path here
c268daa439ab928606787882c1dc38e16df0fa52Christian MaederFILE_nlm_hlp =
f78ed401f3e978ac3d73e5f73b2546f2c6471722Christian Maeder# If this is specified, it will override $(NWOS)\copyright.txt.
f9e34c15c03ea7d76e1177f14829d79e61f82d3aChristian MaederFILE_nlm_copyright =
1880a161e00b3ef874b408c013c0e5e9b4af9181Till Mossakowski# Any additional imports go here
99eb4a1079b8e2a03400c557e55733230084608bChristian MaederFILES_nlm_Ximports = \
88ece6e49930670e8fd3ee79c89a2e918d2fbd0cChristian Maeder# Don't link with Winsock if standard sockets are being used
7f044dbc05136934f0a8966f576f2b4dc1b38a08Christian Maederifndef USE_STDSOCKETS
46c13ad1afc198f9f83c79c5c7dc314815394473Christian MaederFILES_nlm_Ximports += @ws2nlm.imp \
c268daa439ab928606787882c1dc38e16df0fa52Christian Maeder# Any symbols exported to here
8e58d2c3037f6bdd26e2f2c1e499cb6121ea806eChristian MaederFILES_nlm_exports = \
8e58d2c3037f6bdd26e2f2c1e499cb6121ea806eChristian Maeder unique_id_module \
eae57ac3c7d86780601e90a67bb9d4cabfbb7812Christian Maeder# These are the OBJ files needed to create the LIB target above.
8e58d2c3037f6bdd26e2f2c1e499cb6121ea806eChristian Maeder# Paths must all use the '/' character
c268daa439ab928606787882c1dc38e16df0fa52Christian MaederFILES_lib_objs = \
e68f45f355ed9d4026ee9baff5aa75aa7c911cc2Christian Maeder# implement targets and dependancies (leave this section alone)
c268daa439ab928606787882c1dc38e16df0fa52Christian Maederlibs :: $(OBJDIR) $(TARGET_lib)
c268daa439ab928606787882c1dc38e16df0fa52Christian Maedernlms :: libs $(TARGET_nlm)
c268daa439ab928606787882c1dc38e16df0fa52Christian Maeder# Updated this target to create necessary directories and copy files to the
c268daa439ab928606787882c1dc38e16df0fa52Christian Maeder# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
234f59a47d72daf0d9e61b8c2ac10d2b40e96261Christian Maederinstall :: nlms FORCE
c268daa439ab928606787882c1dc38e16df0fa52Christian Maeder# Any specialized rules here
9e6ce33401d2bbbe82156d59f6a9be0331d9a4b7Christian Maeder# Include the 'tail' makefile that has targets that depend on variables defined
e68f45f355ed9d4026ee9baff5aa75aa7c911cc2Christian Maeder# in this makefile
c268daa439ab928606787882c1dc38e16df0fa52Christian Maederinclude $(AP_WORK)\build\NWGNUtail.inc