NWGNUhtdbm revision 0662ed52e814f8f08ef0e09956413a792584eddf
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Make sure all needed macro's are defined
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Get the 'head' of the build environment if necessary. This includes default
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# targets and paths to tools
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
d362465c77b375be2707bc83cebc731d0645d12dAutomatic Updater
8804fd9936acd703073c4a75072852c38738a990Brian Wellingtonifndef EnvironmentDefined
8804fd9936acd703073c4a75072852c38738a990Brian Wellingtoninclude $(AP_WORK)/build/NWGNUhead.inc
8804fd9936acd703073c4a75072852c38738a990Brian Wellingtonendif
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# These directories will be at the beginning of the include list, followed by
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# INCDIRS
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
29747dfe5e073a299b3681e01f5c55540f8bfed7Mark AndrewsXINCDIRS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(NWOS) \
f8020519b3170daf05fd37a6503468274ae57fedAndreas Gustafsson $(APR)/include \
d362465c77b375be2707bc83cebc731d0645d12dAutomatic Updater $(APRUTIL)/include \
45b4efd07f8d0ee11e4695900ac9ac30ec0570c1Francis Dupont $(APR)/misc/netware \
8804fd9936acd703073c4a75072852c38738a990Brian Wellington $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# These flags will come after CFLAGS
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXCFLAGS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# These defines will come after DEFINES
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXDEFINES += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# These flags will be added to the link.opt file
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXLFLAGS += \
8804fd9936acd703073c4a75072852c38738a990Brian Wellington $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# These values will be appended to the correct variables based on the value of
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# RELEASE
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian Wellingtonifeq "$(RELEASE)" "debug"
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXINCDIRS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXCFLAGS += \
8804fd9936acd703073c4a75072852c38738a990Brian Wellington $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXDEFINES += \
8804fd9936acd703073c4a75072852c38738a990Brian Wellington $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXLFLAGS += \
8804fd9936acd703073c4a75072852c38738a990Brian Wellington $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellingtonendif
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
e3e3bafa138a20558a2253470effc01702fc6dfdBrian Wellingtonifeq "$(RELEASE)" "noopt"
13090db2b1c210b8386793ff0cbbb0b4348c1ecaBrian WellingtonXINCDIRS += \
13090db2b1c210b8386793ff0cbbb0b4348c1ecaBrian Wellington $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXCFLAGS += \
8804fd9936acd703073c4a75072852c38738a990Brian Wellington $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXDEFINES += \
8804fd9936acd703073c4a75072852c38738a990Brian Wellington $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXLFLAGS += \
8804fd9936acd703073c4a75072852c38738a990Brian Wellington $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellingtonendif
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeinifeq "$(RELEASE)" "release"
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXINCDIRS += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinXCFLAGS += \
8804fd9936acd703073c4a75072852c38738a990Brian Wellington $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXDEFINES += \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(EOLIST)
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonXLFLAGS += \
8804fd9936acd703073c4a75072852c38738a990Brian Wellington $(EOLIST)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeinendif
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# These are used by the link target if an NLM is being generated
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# This is used by the link 'name' directive to name the nlm. If left blank
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# TARGET_nlm (see below) will be used.
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonNLM_NAME = htdbm
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# This is used by the link '-desc ' directive.
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# If left blank, NLM_NAME will be used.
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonNLM_DESCRIPTION = Apache $(VERSION_STR) HT Database Management Utility for NetWare
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# This is used by the '-threadname' directive. If left blank,
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# NLM_NAME Thread will be used.
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinNLM_THREAD_NAME = htdbm
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# This is used by the '-screenname' directive. If left blank,
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# 'Apache for NetWare' Thread will be used.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
8804fd9936acd703073c4a75072852c38738a990Brian WellingtonNLM_SCREEN_NAME = htdbm Password Management
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# If this is specified, it will override VERSION value in
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# $(AP_WORK)/build/NWGNUenvironment.inc
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinNLM_VERSION =
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# If this is specified, it will override the default of 64K
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinNLM_STACK_SIZE = 8192
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian Wellington
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
8804fd9936acd703073c4a75072852c38738a990Brian Wellington# If this is specified it will be used by the link '-entry' directive
8804fd9936acd703073c4a75072852c38738a990Brian Wellington#
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 = AUTOUNLOAD, PSEUDOPREEMPTION
#
# 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
#
TARGET_nlm = \
$(OBJDIR)/htdbm.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 = \
$(OBJDIR)/htdbm.o \
$(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 = \
libcpre.o \
$(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 = \
aprlib \
libc \
$(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 = \
@$(APR)/aprlib.imp \
@libc.imp \
$(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
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc