|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# Declare the sub-directories to be built here
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
SUBDIRS = \
|
|
Packit |
90a5c9 |
../build \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# Get the 'head' of the build environment. This includes default targets and
|
|
Packit |
90a5c9 |
# paths to tools
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
include $(AP_WORK)/build/NWGNUhead.inc
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# build this level's files
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# These directories will be at the beginning of the include list, followed by
|
|
Packit |
90a5c9 |
# INCDIRS
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
XINCDIRS += \
|
|
Packit |
90a5c9 |
$(NWOS) \
|
|
Packit |
90a5c9 |
$(APR)/include \
|
|
Packit |
90a5c9 |
$(AP_WORK)/include \
|
|
Packit |
90a5c9 |
$(APRUTIL)/include \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# These flags will come after CFLAGS
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
XCFLAGS += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# These defines will come after DEFINES
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
XDEFINES += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# These flags will be added to the link.opt file
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
XLFLAGS += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# These values will be appended to the correct variables based on the value of
|
|
Packit |
90a5c9 |
# RELEASE
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
ifeq "$(RELEASE)" "debug"
|
|
Packit |
90a5c9 |
XINCDIRS += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
XCFLAGS += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
XDEFINES += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
XLFLAGS += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
ifeq "$(RELEASE)" "noopt"
|
|
Packit |
90a5c9 |
XINCDIRS += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
XCFLAGS += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
XDEFINES += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
XLFLAGS += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
ifeq "$(RELEASE)" "release"
|
|
Packit |
90a5c9 |
XINCDIRS += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
XCFLAGS += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
XDEFINES += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
XLFLAGS += \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# These are used by the link target if an NLM is being generated
|
|
Packit |
90a5c9 |
# This is used by the link 'name' directive to name the nlm. If left blank
|
|
Packit |
90a5c9 |
# TARGET_nlm (see below) will be used.
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
NLM_NAME = genchars
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# This is used by the link '-desc ' directive.
|
|
Packit |
90a5c9 |
# If left blank, NLM_NAME will be used.
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
NLM_DESCRIPTION = Generate Test Characters
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# This is used by the '-threadname' directive. If left blank,
|
|
Packit |
90a5c9 |
# NLM_NAME Thread will be used.
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
NLM_THREAD_NAME = genchars
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If this is specified, it will override VERSION value in
|
|
Packit |
90a5c9 |
# $(AP_WORK)\NWGNUNetWare.rul
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
NLM_VERSION = 1,0,0
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If this is specified, it will override the default of 64K
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
NLM_STACK_SIZE = 8192
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If this is specified it will be used by the link '-entry' directive
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
NLM_ENTRY_SYM =
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If this is specified it will be used by the link '-exit' directive
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
NLM_EXIT_SYM =
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If this is specified it will be used by the link '-check' directive
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
NLM_CHECK_SYM =
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If this is specified it will be used by the link '-flags' directive
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
NLM_FLAGS = PSEUDOPREEMPTION
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If this is specified it will be linked in with the XDCData option in the def
|
|
Packit |
90a5c9 |
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
|
|
Packit |
90a5c9 |
# by setting APACHE_UNIPROC in the environment
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
XDCDATA =
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# Declare all target files (you must add your files here)
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If there is an NLM target, put it here
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
TARGET_nlm = \
|
|
Packit |
90a5c9 |
$(OBJDIR)/genchars.nlm \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If there is an LIB target, put it here
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
TARGET_lib = \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# These are the OBJ files needed to create the NLM target above.
|
|
Packit |
90a5c9 |
# Paths must all use the '/' character
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
FILES_nlm_objs = \
|
|
Packit |
90a5c9 |
$(OBJDIR)/gen_test_char.o \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# These are the LIB files needed to create the NLM target above.
|
|
Packit |
90a5c9 |
# These will be added as a library command in the link.opt file.
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
FILES_nlm_libs = \
|
|
Packit |
90a5c9 |
$(PRELUDE) \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# These are the modules that the above NLM target depends on to load.
|
|
Packit |
90a5c9 |
# These will be added as a module command in the link.opt file.
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
FILES_nlm_modules = \
|
|
Packit |
90a5c9 |
Libc \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If the nlm has a msg file, put it's path here
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
FILE_nlm_msg =
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If the nlm has a hlp file put it's path here
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
FILE_nlm_hlp =
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# If this is specified, it will override $(NWOS)\copyright.txt.
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
FILE_nlm_copyright =
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# Any additional imports go here
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
FILES_nlm_Ximports = \
|
|
Packit |
90a5c9 |
@libc.imp \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# Any symbols exported to here
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
FILES_nlm_exports = \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# These are the OBJ files needed to create the LIB target above.
|
|
Packit |
90a5c9 |
# Paths must all use the '/' character
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
FILES_lib_objs = \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# implement targets and dependancies (leave this section alone)
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
libs :: $(OBJDIR) $(TARGET_lib)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
nlms :: libs $(TARGET_nlm)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# Updated this target to create necessary directories and copy files to the
|
|
Packit |
90a5c9 |
# correct place.
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
install :: nlms FORCE
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# Any specialized rules here
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
# Make sure that the build doesn't attempt to regenerate the shipping files.
|
|
Packit |
90a5c9 |
# This requires a 'touch' utility. Can be downloaded from 'coreutils' at
|
|
Packit |
90a5c9 |
# http://sourceforge.net/projects/gnuwin32/
|
|
Packit |
90a5c9 |
util_expr_parse.h : util_expr_parse.y
|
|
Packit |
90a5c9 |
touch util_expr_parse.h
|
|
Packit |
90a5c9 |
util_expr_parse.c : util_expr_parse.y
|
|
Packit |
90a5c9 |
touch util_expr_parse.c
|
|
Packit |
90a5c9 |
util_expr_scan.c : util_expr_scan.l
|
|
Packit |
90a5c9 |
touch util_expr_scan.c
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# Include the 'tail' makefile that has targets that depend on variables defined
|
|
Packit |
90a5c9 |
# in this makefile
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
include $(APBUILD)/NWGNUtail.inc
|
|
Packit |
90a5c9 |
|