NWGNUmakefile revision 8b96b30e820f9bf092944b15cf1d696a6c0d7f1a
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Declare the sub-directories to be built here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Get the 'head' of the build environment. This includes default targets and
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# paths to tools
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(AP_WORK)\build\NWGNUhead.inc
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# build this level's files
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Make sure all needed macro's are defined
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These directories will be at the beginning of the include list, followed by
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXINCDIRS += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These flags will come after CFLAGS
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These defines will come after DEFINES
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXDEFINES += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These flags will be added to the link.opt file
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These values will be appended to the correct variables based on the value of
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq "$(RELEASE)" "debug"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXINCDIRS += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXDEFINES += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq "$(RELEASE)" "noopt"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXINCDIRS += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXDEFINES += \
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri Pankovifeq "$(RELEASE)" "release"
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri PankovXINCDIRS += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXDEFINES += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These are used by the link target if an NLM is being generated
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri Pankov# This is used by the link 'name' directive to name the nlm. If left blank
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri Pankov# TARGET_nlm (see below) will be used.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This is used by the link '-desc ' directive.
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri Pankov# If left blank, NLM_NAME will be used.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_DESCRIPTION =
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri Pankov# This is used by the '-threadname' directive. If left blank,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# NLM_NAME Thread will be used.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_THREAD_NAME =
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri Pankov# If this is specified, it will override VERSION value in
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# $(AP_WORK)\build\NWGNUenvironment.inc
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_VERSION =
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri Pankov# If this is specified, it will override the default of 64K
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri PankovNLM_STACK_SIZE =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified it will be used by the link '-entry' directive
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_ENTRY_SYM =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified it will be used by the link '-exit' directive
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_EXIT_SYM =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified it will be used by the link '-check' directive
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_CHECK_SYM =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If these are specified it will be used by the link '-flags' directive
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified it will be linked in with the XDCData option in the def
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# by setting APACHE_UNIPROC in the environment
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If there is an NLM target, put it here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweTARGET_nlm = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If there is an LIB target, put it here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweTARGET_lib = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These are the OBJ files needed to create the NLM target above.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Paths must all use the '/' character
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_objs = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These are the LIB files needed to create the NLM target above.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These will be added as a library command in the link.opt file.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_libs = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These are the modules that the above NLM target depends on to load.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These will be added as a module command in the link.opt file.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_modules = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If the nlm has a msg file, put it's path here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILE_nlm_msg =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If the nlm has a hlp file put it's path here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILE_nlm_hlp =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified, it will override $(NWOS)\copyright.txt.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILE_nlm_copyright =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Any additional imports go here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_Ximports = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Any symbols exported to here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_exports = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These are the OBJ files needed to create the LIB target above.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Paths must all use the '/' character
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_lib_objs = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# implement targets and dependancies (leave this section alone)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowelibs :: $(OBJDIR) $(TARGET_lib)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowenlms :: libs $(TARGET_nlm)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Updated this target to create necessary directories and copy files to the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinstall :: nlms FORCE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Any specialized rules here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Include the 'tail' makefile that has targets that depend on variables defined
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# in this makefile
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(AP_WORK)\build\NWGNUtail.inc