NWGNUmakefile revision 44e62b16023c7c9dce21204e9bbbc68f7dd13112
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki# Declare the sub-directories to be built here
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki#
1fdacc7e738eee49ca5c69d7d7a14d663ccd4308kawai
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdndSUBDIRS = \
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd $(EOLIST)
031b91a62d25106ae69d4693475c79618dd5e884fielding
031b91a62d25106ae69d4693475c79618dd5e884fielding#
031b91a62d25106ae69d4693475c79618dd5e884fielding# Get the 'head' of the build environment. This includes default targets and
031b91a62d25106ae69d4693475c79618dd5e884fielding# paths to tools
031b91a62d25106ae69d4693475c79618dd5e884fielding#
031b91a62d25106ae69d4693475c79618dd5e884fielding
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdndinclude $(AP_WORK)/build/NWGNUhead.inc
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd#
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# build this level's files
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd#
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# Make sure all needed macro's are defined
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd#
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd#
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# These directories will be at the beginning of the include list, followed by
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai# INCDIRS
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki#
8620abf068bd263eaee16178f4a63104fe4bf6c8yoshikiXINCDIRS += \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki#
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki# These flags will come after CFLAGS
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki#
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshikiXCFLAGS += \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# These defines will come after DEFINES
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshikiXDEFINES += \
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki $(EOLIST)
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki#
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki# These flags will be added to the link.opt file
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki#
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshikiXLFLAGS += \
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki $(EOLIST)
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki#
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki# These values will be appended to the correct variables based on the value of
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki# RELEASE
8586c281411240cf582bbd086daefdb3b3cc64d6yoshiki#
8586c281411240cf582bbd086daefdb3b3cc64d6yoshikiifeq "$(RELEASE)" "debug"
414ccb9ae69be69c2408841699430db735b237d5yoshikiXINCDIRS += \
414ccb9ae69be69c2408841699430db735b237d5yoshiki $(EOLIST)
1fdacc7e738eee49ca5c69d7d7a14d663ccd4308kawai
1fdacc7e738eee49ca5c69d7d7a14d663ccd4308kawaiXCFLAGS += \
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki $(EOLIST)
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki
3f539039e568ad25e03234e7bda63e2de53fbb3cerikabeleXDEFINES += \
3f539039e568ad25e03234e7bda63e2de53fbb3cerikabele $(EOLIST)
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshikiXLFLAGS += \
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai $(EOLIST)
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawaiendif
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawaiifeq "$(RELEASE)" "noopt"
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawaiXINCDIRS += \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai
208651a016b098f4fa1f6279559f104d70f1632dtakashiXCFLAGS += \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai
208651a016b098f4fa1f6279559f104d70f1632dtakashiXDEFINES += \
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai $(EOLIST)
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai
208651a016b098f4fa1f6279559f104d70f1632dtakashiXLFLAGS += \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashiendif
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashiifeq "$(RELEASE)" "release"
208651a016b098f4fa1f6279559f104d70f1632dtakashiXINCDIRS += \
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai $(EOLIST)
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawaiXCFLAGS += \
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai $(EOLIST)
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawaiXDEFINES += \
351facf21468bf7d5b5b0e3cf5bef4d0d993ffe7kawai $(EOLIST)
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshiki
43b8f5cebbf28df342fcdda8fa1992c28eaa6309yoshikiXLFLAGS += \
$(EOLIST)
endif
#
# These are used by the link target if an NLM is being generated
# This is used by the link 'name' directive to name the nlm. If left blank
# TARGET_nlm (see below) will be used.
#
NLM_NAME =
#
# This is used by the link '-desc ' directive.
# If left blank, NLM_NAME will be used.
#
NLM_DESCRIPTION =
#
# This is used by the '-threadname' directive. If left blank,
# NLM_NAME Thread will be used.
#
NLM_THREAD_NAME =
#
# If this is specified, it will override VERSION value in
# $(AP_WORK)/build/NWGNUenvironment.inc
#
NLM_VERSION =
#
# If this is specified, it will override the default of 64K
#
NLM_STACK_SIZE =
#
# If this is specified it will be used by the link '-entry' directive
#
NLM_ENTRY_SYM =
#
# If this is specified it will be used by the link '-exit' directive
#
NLM_EXIT_SYM =
#
# If this is specified it will be used by the link '-check' directive
#
NLM_CHECK_SYM =
#
# If these are specified it will be used by the link '-flags' directive
#
NLM_FLAGS =
#
# If this is specified it will be linked in with the XDCData option in the def
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
# by setting APACHE_UNIPROC in the environment
#
XDCDATA =
#
# If there is an NLM target, put it here
#
# If there is only one element to build it needs to be included twice
# in the below target list.
# Normally if there is only one element to be built within a
# directory, the makefile for the single element would be called NWGNUmakefile.
# But if there are multiples, the parent NWGNUmakefile must reference more
# than one submakefile. Because the experimental directory might vary in the
# number of submakefiles, but for the moment only contains one, we reference
# it twice to allow it parent NWGNUmakefile to work properly. If another
# submakefile is added, the extra reference to the first NLM should be removed.
TARGET_nlm = \
$(OBJDIR)/optfnexport.nlm \
$(OBJDIR)/optfnimport.nlm \
$(OBJDIR)/opthookexport.nlm \
$(OBJDIR)/opthookimport.nlm \
$(EOLIST)
#
# If there is an LIB target, put it here
#
TARGET_lib = \
$(EOLIST)
#
# These are the OBJ files needed to create the NLM target above.
# Paths must all use the '/' character
#
FILES_nlm_objs = \
$(EOLIST)
#
# These are the LIB files needed to create the NLM target above.
# These will be added as a library command in the link.opt file.
#
FILES_nlm_libs = \
$(EOLIST)
#
# These are the modules that the above NLM target depends on to load.
# These will be added as a module command in the link.opt file.
#
FILES_nlm_modules = \
$(EOLIST)
#
# If the nlm has a msg file, put it's path here
#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
#
install :: nlms FORCE
$(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc