NWGNUimagemap revision 16b55a35cff91315d261d1baa776138af465c4e4
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews# Make sure all needed macro's are defined
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews# Get the 'head' of the build environment if necessary. This includes default
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# targets and paths to tools
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsifndef EnvironmentDefined
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninclude $(AP_WORK)\build\NWGNUhead.inc
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# These directories will be at the beginning of the include list, followed by
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsXINCDIRS += \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(APR)/include \
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews $(APRUTIL)/include \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(AP_WORK)/include \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# These flags will come after CFLAGS
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews# These defines will come after DEFINES
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark AndrewsXDEFINES += \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# These flags will be added to the link.opt file
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# These values will be appended to the correct variables based on the value of
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsifeq "$(RELEASE)" "debug"
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark AndrewsXDEFINES += \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsifeq "$(RELEASE)" "noopt"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsXINCDIRS += \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonifeq "$(RELEASE)" "release"
413988c8166976498250c0ebb2e3a645d0366bd3Mark AndrewsXDEFINES += \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# These are used by the link target if an NLM is being generated
413988c8166976498250c0ebb2e3a645d0366bd3Mark Andrews# This is used by the link 'name' directive to name the nlm. If left blank
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# TARGET_nlm (see below) will be used.
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsNLM_NAME = imagemap
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# This is used by the link '-desc ' directive.
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# If left blank, NLM_NAME will be used.
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsNLM_DESCRIPTION = Apache $(VERSION_STR) Image Map Module
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# This is used by the '-threadname' directive. If left blank,
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# NLM_NAME Thread will be used.
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsNLM_THREAD_NAME = Image Map Module
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# If this is specified, it will override VERSION value in
c25080dc50542213058c240226c9f342186e6285Mark Andrews# $(AP_WORK)\build\NWGNUenvironment.inc
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsNLM_VERSION =
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# If this is specified, it will override the default of 64K
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsNLM_STACK_SIZE = 8192
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# If this is specified it will be used by the link '-entry' directive
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsNLM_ENTRY_SYM = _LibCPrelude
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# If this is specified it will be used by the link '-exit' directive
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsNLM_EXIT_SYM = _LibCPostlude
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If this is specified it will be used by the link '-check' directive
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsNLM_CHECK_SYM =
c25080dc50542213058c240226c9f342186e6285Mark Andrews# If these are specified it will be used by the link '-flags' directive
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If this is specified it will be linked in with the XDCData option in the def
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
642e0716c8b4ab82ebc8e60f94c9e897ee89f19aMark Andrews# by setting APACHE_UNIPROC in the environment
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# If there is an NLM target, put it here
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsTARGET_nlm = \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# If there is an LIB target, put it here
eaccf5e805405de257b5a4840256c580fefe00e3Mark AndrewsTARGET_lib = \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# These are the OBJ files needed to create the NLM target above.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Paths must all use the '/' character
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsFILES_nlm_objs = \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# These are the LIB files needed to create the NLM target above.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# These will be added as a library command in the link.opt file.
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsFILES_nlm_libs = \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# These are the modules that the above NLM target depends on to load.
e076d0c88be69de7c190ab924d095e69d2e11f7aAndreas Gustafsson# These will be added as a module command in the link.opt file.
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsFILES_nlm_modules = \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If the nlm has a msg file, put it's path here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If the nlm has a hlp file put it's path here
eaccf5e805405de257b5a4840256c580fefe00e3Mark AndrewsFILE_nlm_hlp =
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsFILE_nlm_copyright =
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Any additional imports go here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILES_nlm_Ximports = \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Any symbols exported to here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILES_nlm_exports = \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington imagemap_module \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# These are the OBJ files needed to create the LIB target above.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Paths must all use the '/' character
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILES_lib_objs = \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# implement targets and dependancies (leave this section alone)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonlibs :: $(OBJDIR) $(TARGET_lib)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonnlms :: libs $(TARGET_nlm)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Updated this target to create necessary directories and copy files to the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninstall :: nlms FORCE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Any specialized rules here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Include the 'tail' makefile that has targets that depend on variables defined
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# in this makefile
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninclude $(AP_WORK)\build\NWGNUtail.inc