NWGNUmakefile revision f2f3f241c00a7a4bd597e57a19023940e072918a
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# Declare the sub-directories to be built here
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeSUBDIRS = \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# Get the 'head' of the build environment. This includes default targets and
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# paths to tools
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond Norbyeinclude $(AP_WORK)\build\NWGNUhead.inc
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# build this level's files
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# Make sure all needed macro's are defined
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# These directories will be at the beginning of the include list, followed by
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# INCDIRS
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos KoscoXINCDIRS += \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# These flags will come after CFLAGS
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco#
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos KoscoXCFLAGS += \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# These defines will come after DEFINES
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeXDEFINES += \
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye $(EOLIST)
b6e48c95305391ca75f99817def61159230969faTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
4db6dbfe971f3c68c0945e5da3b6d5a3248054daTrond Norbye# These flags will be added to the link.opt file
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye#
a90c307564052f582357f820eadec4390e6a86c6Trond NorbyeXLFLAGS += \
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye $(EOLIST)
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye#
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye# These values will be appended to the correct variables based on the value of
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye# RELEASE
760369283613b2d5c2449cdc5b7a74e16d929750Trond Norbye#
9f5a7adefcd3e07345b92f0deb1ed1c30df6eec2Trond Norbyeifeq "$(RELEASE)" "debug"
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos KoscoXINCDIRS += \
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco $(EOLIST)
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye
9f5a7adefcd3e07345b92f0deb1ed1c30df6eec2Trond NorbyeXCFLAGS += \
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye $(EOLIST)
760369283613b2d5c2449cdc5b7a74e16d929750Trond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeXDEFINES += \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeXLFLAGS += \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbyeendif
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond Norbyeifeq "$(RELEASE)" "noopt"
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond NorbyeXINCDIRS += \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeXCFLAGS += \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeXDEFINES += \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeXLFLAGS += \
4db6dbfe971f3c68c0945e5da3b6d5a3248054daTrond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbyeendif
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond Norbyeifeq "$(RELEASE)" "release"
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeXINCDIRS += \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeXCFLAGS += \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeXDEFINES += \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeXLFLAGS += \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbyeendif
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# These are used by the link target if an NLM is being generated
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# This is used by the link 'name' directive to name the nlm. If left blank
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# TARGET_nlm (see below) will be used.
4db6dbfe971f3c68c0945e5da3b6d5a3248054daTrond Norbye#
4db6dbfe971f3c68c0945e5da3b6d5a3248054daTrond NorbyeNLM_NAME =
4db6dbfe971f3c68c0945e5da3b6d5a3248054daTrond Norbye
4db6dbfe971f3c68c0945e5da3b6d5a3248054daTrond Norbye#
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye# This is used by the link '-desc ' directive.
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# If left blank, NLM_NAME will be used.
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond NorbyeNLM_DESCRIPTION =
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye#
760369283613b2d5c2449cdc5b7a74e16d929750Trond Norbye# This is used by the '-threadname' directive. If left blank,
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# NLM_NAME Thread will be used.
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond NorbyeNLM_THREAD_NAME =
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye#
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye# If this is specified, it will override VERSION value in
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco# $(AP_WORK)\build\NWGNUenvironment.inc
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye#
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos KoscoNLM_VERSION =
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco#
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye# If this is specified, it will override the default of 64K
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye#
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond NorbyeNLM_STACK_SIZE =
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye#
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye# If this is specified it will be used by the link '-entry' directive
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye#
a90c307564052f582357f820eadec4390e6a86c6Trond NorbyeNLM_ENTRY_SYM =
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye#
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye# If this is specified it will be used by the link '-exit' directive
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco#
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos KoscoNLM_EXIT_SYM =
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco#
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco# If this is specified it will be used by the link '-check' directive
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco#
e325ce06d9350834b2eab65f00334d7861354c61Lubos KoscoNLM_CHECK_SYM =
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco#
e325ce06d9350834b2eab65f00334d7861354c61Lubos Kosco# If these are specified it will be used by the link '-flags' directive
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Kosco#
e325ce06d9350834b2eab65f00334d7861354c61Lubos KoscoNLM_FLAGS =
e325ce06d9350834b2eab65f00334d7861354c61Lubos Kosco
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco#
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco# If this is specified it will be linked in with the XDCData option in the def
e325ce06d9350834b2eab65f00334d7861354c61Lubos Kosco# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco# by setting APACHE_UNIPROC in the environment
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco#
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos KoscoXDCDATA =
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco
eb32a77fdb57f20c042b7b79b28a4fb4060cb949Lubos Kosco#
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye# If there is an NLM target, put it here
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye#
a90c307564052f582357f820eadec4390e6a86c6Trond NorbyeTARGET_nlm = \
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye $(OBJDIR)/mod_asis.nlm \
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye $(OBJDIR)/autoindex.nlm \
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye $(OBJDIR)/mod_cgi.nlm \
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye $(OBJDIR)/info.nlm \
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye $(OBJDIR)/status.nlm \
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye $(EOLIST)
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye#
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye# If there is an LIB target, put it here
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye#
a90c307564052f582357f820eadec4390e6a86c6Trond NorbyeTARGET_lib = \
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye $(EOLIST)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
5e0ccd8bb84a766f65680b4cc1e43b356d1d78b8Trond Norbye#
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye# These are the OBJ files needed to create the NLM target above.
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye# Paths must all use the '/' character
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeFILES_nlm_objs = \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(EOLIST)
#
# These are the LIB files needed to create the NLM target above.
# These will be added as a library command in the link.opt file.
#
FILES_nlm_libs = \
$(EOLIST)
#
# These are the modules that the above NLM target depends on to load.
# These will be added as a module command in the link.opt file.
#
FILES_nlm_modules = \
$(EOLIST)
#
# If the nlm has a msg file, put it's path here
#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
#
install :: nlms FORCE
copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(AP_WORK)\build\NWGNUtail.inc