NWGNUmakefile revision 0662ed52e814f8f08ef0e09956413a792584eddf
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Declare the sub-directories to be built here
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndSUBDIRS = \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Get the 'head' of the build environment. This includes default targets and
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# paths to tools
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen#
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erboweninclude $(AP_WORK)/build/NWGNUhead.inc
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# build this level's files
d229f940abfb2490dee17979e9a5ff31b7012eb5rbowen
3f08db06526d6901aa08c110b5bc7dde6bc39905nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Make sure all needed macro's are defined
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
3f08db06526d6901aa08c110b5bc7dde6bc39905nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These directories will be at the beginning of the include list, followed by
befb6758d5618c60f29b19f9a7eb75ab993511dcjim# INCDIRS
aee1f193a276866212922ae5072e3014db28582frpluem#
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjungXINCDIRS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These flags will come after CFLAGS
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXCFLAGS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These defines will come after DEFINES
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXDEFINES += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These flags will be added to the link.opt file
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedoohXLFLAGS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These values will be appended to the correct variables based on the value of
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# RELEASE
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndifeq "$(RELEASE)" "debug"
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXINCDIRS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXCFLAGS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXDEFINES += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXLFLAGS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301ndendif
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndifeq "$(RELEASE)" "noopt"
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXINCDIRS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXCFLAGS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXDEFINES += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXLFLAGS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301ndendif
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndifeq "$(RELEASE)" "release"
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXINCDIRS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXCFLAGS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXDEFINES += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXLFLAGS += \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301ndendif
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These are used by the link target if an NLM is being generated
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# This is used by the link 'name' directive to name the nlm. If left blank
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# TARGET_nlm (see below) will be used.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndNLM_NAME =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# This is used by the link '-desc ' directive.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If left blank, NLM_NAME will be used.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndNLM_DESCRIPTION =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# This is used by the '-threadname' directive. If left blank,
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# NLM_NAME Thread will be used.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndNLM_THREAD_NAME =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If this is specified, it will override VERSION value in
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# $(AP_WORK)/build/NWGNUenvironment.inc
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndNLM_VERSION =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If this is specified, it will override the default of 64K
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndNLM_STACK_SIZE =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If this is specified it will be used by the link '-entry' directive
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndNLM_ENTRY_SYM =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If this is specified it will be used by the link '-exit' directive
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndNLM_EXIT_SYM =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If this is specified it will be used by the link '-check' directive
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndNLM_CHECK_SYM =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If these are specified it will be used by the link '-flags' directive
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndNLM_FLAGS =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If this is specified it will be linked in with the XDCData option in the def
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# by setting APACHE_UNIPROC in the environment
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndXDCDATA =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If there is an NLM target, put it here
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndTARGET_nlm = \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(OBJDIR)/cernmeta.nlm \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(OBJDIR)/expires.nlm \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(OBJDIR)/headers.nlm \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(OBJDIR)/mimemagi.nlm \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(OBJDIR)/modident.nlm \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(OBJDIR)/uniqueid.nlm \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(OBJDIR)/usertrk.nlm \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(OBJDIR)/modversion.nlm \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(OBJDIR)/remoteip.nlm \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If there is an LIB target, put it here
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndTARGET_lib = \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These are the OBJ files needed to create the NLM target above.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Paths must all use the '/' character
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndFILES_nlm_objs = \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These are the LIB files needed to create the NLM target above.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These will be added as a library command in the link.opt file.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndFILES_nlm_libs = \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These are the modules that the above NLM target depends on to load.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These will be added as a module command in the link.opt file.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndFILES_nlm_modules = \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If the nlm has a msg file, put it's path here
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndFILE_nlm_msg =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If the nlm has a hlp file put it's path here
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndFILE_nlm_hlp =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If this is specified, it will override $(NWOS)\copyright.txt.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndFILE_nlm_copyright =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Any additional imports go here
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndFILES_nlm_Ximports = \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Any symbols exported to here
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndFILES_nlm_exports = \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# These are the OBJ files needed to create the LIB target above.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Paths must all use the '/' character
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndFILES_lib_objs = \
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(EOLIST)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# implement targets and dependancies (leave this section alone)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndlibs :: $(OBJDIR) $(TARGET_lib)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndnlms :: libs $(TARGET_nlm)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Updated this target to create necessary directories and copy files to the
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndinstall :: nlms FORCE
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(call COPY,$(OBJDIR)/*.nlm, $(INSTALL)/$(BASEDIR)/modules/)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Any specialized rules here
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Include the 'tail' makefile that has targets that depend on variables defined
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# in this makefile
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndinclude $(APBUILD)/NWGNUtail.inc
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd