Blame test/NWGNUmakefile

Packit 383869
#
Packit 383869
# Declare the sub-directories to be built here
Packit 383869
#
Packit 383869
Packit 383869
SUBDIRS = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# Get the 'head' of the build environment.  This includes default targets and
Packit 383869
# paths to tools
Packit 383869
#
Packit 383869
Packit 383869
include $(APR_WORK)/build/NWGNUhead.inc
Packit 383869
Packit 383869
#
Packit 383869
# build this level's files
Packit 383869
Packit 383869
#
Packit 383869
# Make sure all needed macro's are defined
Packit 383869
#
Packit 383869
Packit 383869
Packit 383869
#
Packit 383869
# These directories will be at the beginning of the include list, followed by
Packit 383869
# INCDIRS
Packit 383869
#
Packit 383869
XINCDIRS	+= \
Packit 383869
			$(APR)/include \
Packit 383869
			$(APR)/include/arch/NetWare \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These flags will come after CFLAGS
Packit 383869
#
Packit 383869
XCFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These defines will come after DEFINES
Packit 383869
#
Packit 383869
XDEFINES	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These flags will be added to the link.opt file
Packit 383869
#
Packit 383869
XLFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These values will be appended to the correct variables based on the value of
Packit 383869
# RELEASE
Packit 383869
#
Packit 383869
ifeq "$(RELEASE)" "debug"
Packit 383869
XINCDIRS	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XCFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XDEFINES	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XLFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
endif
Packit 383869
Packit 383869
ifeq "$(RELEASE)" "noopt"
Packit 383869
XINCDIRS	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XCFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XDEFINES	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XLFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
endif
Packit 383869
Packit 383869
ifeq "$(RELEASE)" "release"
Packit 383869
XINCDIRS	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XCFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XDEFINES	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XLFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
endif
Packit 383869
Packit 383869
#
Packit 383869
# These are used by the link target if an NLM is being generated
Packit 383869
# This is used by the link 'name' directive to name the nlm.  If left blank
Packit 383869
# TARGET_nlm (see below) will be used.
Packit 383869
#
Packit 383869
NLM_NAME	=
Packit 383869
Packit 383869
#
Packit 383869
# This is used by the link '-desc ' directive.
Packit 383869
# If left blank, NLM_NAME will be used.
Packit 383869
#
Packit 383869
NLM_DESCRIPTION	=
Packit 383869
Packit 383869
#
Packit 383869
# This is used by the '-threadname' directive.  If left blank,
Packit 383869
# NLM_NAME Thread will be used.
Packit 383869
#
Packit 383869
NLM_THREAD_NAME	=
Packit 383869
Packit 383869
#
Packit 383869
# This is used by the '-screenname' directive.  If left blank,
Packit 383869
# 'Apache for NetWare' Thread will be used.
Packit 383869
#
Packit 383869
NLM_SCREEN_NAME =
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified, it will override VERSION value in
Packit 383869
# $(APR_WORK)/build/NWGNUenvironment.inc
Packit 383869
#
Packit 383869
NLM_VERSION	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified, it will override the default of 64K
Packit 383869
#
Packit 383869
NLM_STACK_SIZE	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified it will be used by the link '-entry' directive
Packit 383869
#
Packit 383869
NLM_ENTRY_SYM	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified it will be used by the link '-exit' directive
Packit 383869
#
Packit 383869
NLM_EXIT_SYM	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified it will be used by the link '-check' directive
Packit 383869
#
Packit 383869
NLM_CHECK_SYM	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified it will be used by the link '-flags' directive
Packit 383869
#
Packit 383869
NLM_FLAGS	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified it will be linked in with the XDCData option in the def
Packit 383869
# file instead of the default of $(APR)/misc/netware/apache.xdc.  XDCData can
Packit 383869
# be disabled by setting APACHE_UNIPROC in the environment
Packit 383869
#
Packit 383869
XDCDATA		=
Packit 383869
Packit 383869
#
Packit 383869
# Declare all target files (you must add your files here)
Packit 383869
#
Packit 383869
Packit 383869
#
Packit 383869
# If there is an NLM target, put it here
Packit 383869
#
Packit 383869
TARGET_nlm = \
Packit 383869
	$(OBJDIR)/aputest.nlm \
Packit 383869
	$(OBJDIR)/aputest.nlm \
Packit 383869
	$(EOLIST)
Packit 383869
#
Packit 383869
# If there is an LIB target, put it here
Packit 383869
#
Packit 383869
TARGET_lib = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These are the OBJ files needed to create the NLM target above.
Packit 383869
# Paths must all use the '/' character
Packit 383869
#
Packit 383869
FILES_nlm_objs = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These are the LIB files needed to create the NLM target above.
Packit 383869
# These will be added as a library command in the link.opt file.
Packit 383869
#
Packit 383869
FILES_nlm_libs = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These are the modules that the above NLM target depends on to load.
Packit 383869
# These will be added as a module command in the link.opt file.
Packit 383869
#
Packit 383869
FILES_nlm_modules = \
Packit 383869
	aprlib \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# If the nlm has a msg file, put it's path here
Packit 383869
#
Packit 383869
FILE_nlm_msg =
Packit 383869
Packit 383869
#
Packit 383869
# If the nlm has a hlp file put it's path here
Packit 383869
#
Packit 383869
FILE_nlm_hlp =
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified, it will override the default copyright.
Packit 383869
#
Packit 383869
FILE_nlm_copyright =
Packit 383869
Packit 383869
#
Packit 383869
# Any additional imports go here
Packit 383869
#
Packit 383869
FILES_nlm_Ximports = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# Any symbols exported to here
Packit 383869
#
Packit 383869
FILES_nlm_exports = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These are the OBJ files needed to create the LIB target above.
Packit 383869
# Paths must all use the '/' character
Packit 383869
#
Packit 383869
FILES_lib_objs = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# implement targets and dependancies (leave this section alone)
Packit 383869
#
Packit 383869
Packit 383869
libs :: $(OBJDIR) $(TARGET_lib)
Packit 383869
Packit 383869
nlms :: libs $(TARGET_nlm)
Packit 383869
Packit 383869
#
Packit 383869
# Updated this target to create necessary directories and copy files to the
Packit 383869
# correct place.  (See $(APR_WORK)/build/NWGNUhead.inc for examples)
Packit 383869
#
Packit 383869
install :: nlms FORCE
Packit 383869
	$(call COPY,$(OBJDIR)/*.nlm,$(INSTALLBASE))
Packit 383869
	$(call COPYR,data,$(INSTALLBASE)/data/)
Packit 383869
Packit 383869
#
Packit 383869
# Any specialized rules here
Packit 383869
#
Packit 383869
Packit 383869
#
Packit 383869
# Include the 'tail' makefile that has targets that depend on variables defined
Packit 383869
# in this makefile
Packit 383869
#
Packit 383869
Packit 383869
include $(APRBUILD)/NWGNUtail.inc
Packit 383869