NWGNUmakefile revision ac7985784d08a3655291f24f711812b4d8b1cbcf
dbb33756bd786e9432e18ec7be93f8c416e1b492Jon A. Cruz# Declare the sub-directories to be built here
6c3e745a94ef6b25a4ef9f018d350a7535aa45afTed Gould# Get the 'head' of the build environment. This includes default targets and
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruz# paths to tools
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruzinclude $(AP_WORK)\build\NWGNUhead.inc
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraud# build this level's files
b45c97a239397bed144bc7922ee8cc5664d2dcc7jfbarraud# Make sure all needed macro's are defined
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraud# These directories will be at the beginning of the include list, followed by
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruzXINCDIRS += \
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# These flags will come after CFLAGS
0659728fce99e2f7abfe52bebf59b26b077512b4scislacXCFLAGS += \
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould# These defines will come after DEFINES
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruzXDEFINES += \
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruz# These flags will be added to the link.opt file
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraud# These values will be appended to the correct variables based on the value of
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruzifeq "$(RELEASE)" "debug"
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraudifeq "$(RELEASE)" "noopt"
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruzXINCDIRS += \
678dfd818a6cdeb1f5b038c1a79aa75a45251358Johan Engelenifeq "$(RELEASE)" "release"
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruzXDEFINES += \
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruz# These are used by the link target if an NLM is being generated
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# This is used by the link 'name' directive to name the nlm. If left blank
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruz# TARGET_nlm (see below) will be used.
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# This is used by the link '-desc ' directive.
29bb56d8dfc27e5f69a4211750b3971c975aa6f3jfbarraud# If left blank, NLM_NAME will be used.
29bb56d8dfc27e5f69a4211750b3971c975aa6f3jfbarraudNLM_DESCRIPTION =
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# This is used by the '-threadname' directive. If left blank,
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# NLM_NAME Thread will be used.
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudNLM_THREAD_NAME =
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# If this is specified, it will override VERSION value in
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# $(AP_WORK)\build\NWGNUenvironment.inc
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudNLM_VERSION =
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# If this is specified, it will override the default of 64K
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudNLM_STACK_SIZE =
29bb56d8dfc27e5f69a4211750b3971c975aa6f3jfbarraud# If this is specified it will be used by the link '-entry' directive
776a483edbe47cc5472cc4aee6635e5521ffa520Johan EngelenNLM_ENTRY_SYM =
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# If this is specified it will be used by the link '-exit' directive
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudNLM_EXIT_SYM =
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# If this is specified it will be used by the link '-check' directive
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudNLM_CHECK_SYM =
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruz# If these are specified it will be used by the link '-flags' directive
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraud# If this is specified it will be linked in with the XDCData option in the def
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruz# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# by setting APACHE_UNIPROC in the environment
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# If there is an NLM target, put it here
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudTARGET_nlm = \
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# If there is an LIB target, put it here
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudTARGET_lib = \
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# These are the OBJ files needed to create the NLM target above.
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# Paths must all use the '/' character
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudFILES_nlm_objs = \
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# These are the LIB files needed to create the NLM target above.
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# These will be added as a library command in the link.opt file.
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudFILES_nlm_libs = \
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# These are the modules that the above NLM target depends on to load.
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# These will be added as a module command in the link.opt file.
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudFILES_nlm_modules = \
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# If the nlm has a msg file, put it's path here
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudFILE_nlm_msg =
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# If the nlm has a hlp file put it's path here
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudFILE_nlm_hlp =
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# If this is specified, it will override $(NWOS)\copyright.txt.
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudFILE_nlm_copyright =
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# Any additional imports go here
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudFILES_nlm_Ximports = \
90a3966dd44e306d23febc15ebd65cde07d7a4ddTed Gould# Any symbols exported to here
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudFILES_nlm_exports = \
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# These are the OBJ files needed to create the LIB target above.
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# Paths must all use the '/' character
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudFILES_lib_objs = \
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# implement targets and dependancies (leave this section alone)
500ef69516ef3c5dd1517f5d09c75ebe37453882jfbarraudlibs :: $(OBJDIR) $(TARGET_lib)
500ef69516ef3c5dd1517f5d09c75ebe37453882jfbarraudnlms :: libs $(TARGET_nlm)
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraud# Updated this target to create necessary directories and copy files to the
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraudinstall :: nlms FORCE
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraud copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraud# Any specialized rules here
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# Include the 'tail' makefile that has targets that depend on variables defined
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# in this makefile
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraudinclude $(AP_WORK)\build\NWGNUtail.inc