NWGNUmakefile revision 00d1c0c914426a97022d8205a875c48b211001c2
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond Norbye# Declare the sub-directories to be built here
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond Norbye# Get the 'head' of the build environment. This includes default targets and
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond Norbye# paths to tools
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond Norbyeinclude $(AP_WORK)/build/NWGNUhead.inc
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond Norbye# build this level's files
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond Norbye# Make sure all needed macro's are defined
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond Norbye# These directories will be at the beginning of the include list, followed by
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond Norbye# These flags will come after CFLAGS
7a147aeccd50900dc20ead611c17ab5728a1a6a6Jorgen Austvik# These defines will come after DEFINES
6336b638e9afd018de5f6c516eac4775d140fdaeJHKSTXDEFINES += \
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond Norbye# These flags will be added to the link.opt file
6336b638e9afd018de5f6c516eac4775d140fdaeJHKST# These values will be appended to the correct variables based on the value of
5a4c3bef409b6a3c015b6e0a57e9ff79c6941e06Lubos Koscoifeq "$(RELEASE)" "debug"
5a4c3bef409b6a3c015b6e0a57e9ff79c6941e06Lubos KoscoXINCDIRS += \
56c70b1779694ab3e83d294e3dcb839fe4374c97Patrick Higginsifeq "$(RELEASE)" "noopt"
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond NorbyeXDEFINES += \
b305c3e5d7fc952767ec752e151c23279cdb0f9cTrond Norbyeifeq "$(RELEASE)" "release"
b305c3e5d7fc952767ec752e151c23279cdb0f9cTrond NorbyeXINCDIRS += \
56c70b1779694ab3e83d294e3dcb839fe4374c97Patrick Higgins# These are used by the link target if an NLM is being generated
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# This is used by the link 'name' directive to name the nlm. If left blank
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# TARGET_nlm (see below) will be used.
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# This is used by the link '-desc ' directive.
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# If left blank, NLM_NAME will be used.
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen AustvikNLM_DESCRIPTION =
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# This is used by the '-threadname' directive. If left blank,
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# NLM_NAME Thread will be used.
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen AustvikNLM_THREAD_NAME =
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# If this is specified, it will override VERSION value in
b305c3e5d7fc952767ec752e151c23279cdb0f9cTrond NorbyeNLM_VERSION =
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond Norbye# If this is specified, it will override the default of 64K
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen AustvikNLM_STACK_SIZE =
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# If this is specified it will be used by the link '-entry' directive
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen AustvikNLM_ENTRY_SYM =
4a65b7ac38ba664d9c7bfb8960800d9980e2b95aKnut Anders Hatlen# If this is specified it will be used by the link '-exit' directive
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen AustvikNLM_EXIT_SYM =
6336b638e9afd018de5f6c516eac4775d140fdaeJHKST# If this is specified it will be used by the link '-check' directive
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond NorbyeNLM_CHECK_SYM =
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# If these are specified it will be used by the link '-flags' directive
4a65b7ac38ba664d9c7bfb8960800d9980e2b95aKnut Anders Hatlen# If this is specified it will be linked in with the XDCData option in the def
4a65b7ac38ba664d9c7bfb8960800d9980e2b95aKnut Anders Hatlen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
4a65b7ac38ba664d9c7bfb8960800d9980e2b95aKnut Anders Hatlen# by setting APACHE_UNIPROC in the environment
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# If there is an NLM target, put it here
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen AustvikTARGET_nlm = \
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# If there is an LIB target, put it here
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond NorbyeTARGET_lib = \
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# These are the OBJ files needed to create the NLM target above.
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# Paths must all use the '/' character
6336b638e9afd018de5f6c516eac4775d140fdaeJHKSTFILES_nlm_objs = \
bd90f270ab9b7a3f121b8db544a58ce1e4a465d1Trond Norbye# These are the LIB files needed to create the NLM target above.
85b96d2d336841c7cca62a39b2f6ba932af27435Jorgen Austvik# These will be added as a library command in the link.opt file.
20e224bd98c217eb79e31b58f329df9f647abea3Trond NorbyeFILES_nlm_libs = \
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# These are the modules that the above NLM target depends on to load.
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye# These will be added as a module command in the link.opt file.
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen AustvikFILES_nlm_modules = \
24f83cc2ee6e688179d6d289a3ddc508bb64009fJorgen Austvik# If the nlm has a msg file, put it's path here
b305c3e5d7fc952767ec752e151c23279cdb0f9cTrond NorbyeFILE_nlm_msg =
# If this is specified, it will override $(NWOS)\copyright.txt.
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
include $(APBUILD)/NWGNUtail.inc