NWGNUmakefile revision 95ca7cc2aa11b41497ffab3a1003bc09d24b6bc1
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen# Declare the sub-directories to be built here
fd16501d913e6e61a5cb9ae8f05b1fa7c19a1faeBaofeng Wang# Get the 'head' of the build environment. This includes default targets and
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# paths to tools
2793e3bd31d212d6506686aa70773e13d9d98195Timo Siraineninclude $(AP_WORK)\build\NWGNUhead.inc
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# build this level's files
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# Make sure all needed macro's are defined
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# These directories will be at the beginning of the include list, followed by
084431105a179063aeb08f45eb5f506c61ea8602Aki Tuomi# These flags will come after CFLAGS
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# These defines will come after DEFINES
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# These flags will be added to the link.opt file
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# These values will be appended to the correct variables based on the value of
88dc563319efecd6e68bad16b0d92672da05584aTimo Sirainenifeq "$(RELEASE)" "debug"
1b0cfbf3cc77a670b92fff5c30f7b1eb17a63ab1Timo Sirainenifeq "$(RELEASE)" "noopt"
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainenifeq "$(RELEASE)" "release"
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# These are used by the link target if an NLM is being generated
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# TARGET_nlm (see below) will be used.
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# This is used by the link '-desc ' directive.
084431105a179063aeb08f45eb5f506c61ea8602Aki Tuomi# If left blank, NLM_NAME will be used.
421d30619384e72a27e2a5d13ff6525aff4d17feTimo SirainenNLM_DESCRIPTION =
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# This is used by the '-threadname' directive. If left blank,
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# NLM_NAME Thread will be used.
421d30619384e72a27e2a5d13ff6525aff4d17feTimo SirainenNLM_THREAD_NAME =
f5a00a8bc68cb246bfe9265e7f66856db98f5f7dTimo Sirainen# If this is specified, it will override VERSION value in
f5a00a8bc68cb246bfe9265e7f66856db98f5f7dTimo Sirainen# $(AP_WORK)\build\NWGNUenvironment.inc
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# If this is specified, it will override the default of 64K
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo SirainenNLM_STACK_SIZE =
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# If this is specified it will be used by the link '-entry' directive
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo SirainenNLM_ENTRY_SYM =
f4616f1875297fb2f583d913c0f01b075bdecd5bTimo Sirainen# If this is specified it will be used by the link '-exit' directive
421d30619384e72a27e2a5d13ff6525aff4d17feTimo SirainenNLM_EXIT_SYM =
1537d20b852cbbf0d6971790b84e0cce5ca61307Timo Sirainen# If this is specified it will be used by the link '-check' directive
421d30619384e72a27e2a5d13ff6525aff4d17feTimo SirainenNLM_CHECK_SYM =
1537d20b852cbbf0d6971790b84e0cce5ca61307Timo Sirainen# If these are specified it will be used by the link '-flags' directive
bc93929cdd9000ca560a5f42a27f50ab307f1efbTimo Sirainen# If this is specified it will be linked in with the XDCData option in the def
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
1537d20b852cbbf0d6971790b84e0cce5ca61307Timo Sirainen# by setting APACHE_UNIPROC in the environment
bc93929cdd9000ca560a5f42a27f50ab307f1efbTimo Sirainen# If there is an NLM target, put it here
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo SirainenTARGET_nlm = \
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen#This needs to be added to the above list once it builds for netware.
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# If there is an LIB target, put it here
cbc8f9d71483a2cf71610f7e7e1f2dc9884bd556Baofeng WangTARGET_lib = \
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# These are the OBJ files needed to create the NLM target above.
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# Paths must all use the '/' character
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo SirainenFILES_nlm_objs = \
a693adf01b5f9256b273bee0b38efb69bc2b0182Timo Sirainen# These are the LIB files needed to create the NLM target above.
a693adf01b5f9256b273bee0b38efb69bc2b0182Timo Sirainen# These will be added as a library command in the link.opt file.
a693adf01b5f9256b273bee0b38efb69bc2b0182Timo SirainenFILES_nlm_libs = \
a693adf01b5f9256b273bee0b38efb69bc2b0182Timo Sirainen# These are the modules that the above NLM target depends on to load.
a693adf01b5f9256b273bee0b38efb69bc2b0182Timo Sirainen# These will be added as a module command in the link.opt file.
a693adf01b5f9256b273bee0b38efb69bc2b0182Timo SirainenFILES_nlm_modules = \
a693adf01b5f9256b273bee0b38efb69bc2b0182Timo Sirainen# If the nlm has a msg file, put it's path here
a693adf01b5f9256b273bee0b38efb69bc2b0182Timo SirainenFILE_nlm_msg =
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen# If the nlm has a hlp file put it's path here
eef4ba0cc3e78f8c26804c1c9251a76580a41f0cTimo SirainenFILE_nlm_hlp =
084431105a179063aeb08f45eb5f506c61ea8602Aki Tuomi# If this is specified, it will override $(NWOS)\copyright.txt.
084431105a179063aeb08f45eb5f506c61ea8602Aki TuomiFILE_nlm_copyright =
88dc563319efecd6e68bad16b0d92672da05584aTimo Sirainen# Any additional imports go here
eef4ba0cc3e78f8c26804c1c9251a76580a41f0cTimo SirainenFILES_nlm_Ximports = \
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# Any symbols exported to here
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo SirainenFILES_nlm_exports = \
a5e89374cb2fb2cad575fee6c3b33a9487ab9b3aTimo Sirainen# These are the OBJ files needed to create the LIB target above.
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# Paths must all use the '/' character
0211537cbf53ad17348408103fdb0c06de56ed5eTimo SirainenFILES_lib_objs = \
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# implement targets and dependancies (leave this section alone)
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainenlibs :: $(OBJDIR) $(TARGET_lib)
a693adf01b5f9256b273bee0b38efb69bc2b0182Timo Sirainennlms :: libs $(TARGET_nlm)
71748cca1bacd74451fd228db5536828bdfeb190Baofeng Wang# Updated this target to create necessary directories and copy files to the
71748cca1bacd74451fd228db5536828bdfeb190Baofeng Wang# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Siraineninstall :: nlms FORCE
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
8d587838c414c48a331f0b54cd7ffd97e5024abdTimo Sirainen# Any specialized rules here
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# Include the 'tail' makefile that has targets that depend on variables defined
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen# in this makefile
2793e3bd31d212d6506686aa70773e13d9d98195Timo Siraineninclude $(AP_WORK)\build\NWGNUtail.inc