NWGNUhtdbm revision 0662ed52e814f8f08ef0e09956413a792584eddf
012a352f4b26cfd874db8d06debc495c2303e8b2Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# Make sure all needed macro's are defined
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# Get the 'head' of the build environment if necessary. This includes default
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# targets and paths to tools
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence
15a44745412679c30a6d022733925af70a38b715David Lawrenceifndef EnvironmentDefined
15a44745412679c30a6d022733925af70a38b715David Lawrenceinclude $(AP_WORK)/build/NWGNUhead.inc
15a44745412679c30a6d022733925af70a38b715David Lawrenceendif
15a44745412679c30a6d022733925af70a38b715David Lawrence
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# These directories will be at the beginning of the include list, followed by
15a44745412679c30a6d022733925af70a38b715David Lawrence# INCDIRS
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David LawrenceXINCDIRS += \
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence $(NWOS) \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(APR)/include \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(APRUTIL)/include \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(APR)/misc/netware \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence $(EOLIST)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# These flags will come after CFLAGS
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyXCFLAGS += \
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley $(EOLIST)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# These defines will come after DEFINES
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyXDEFINES += \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence $(EOLIST)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# These flags will be added to the link.opt file
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceXLFLAGS += \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence $(EOLIST)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# These values will be appended to the correct variables based on the value of
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# RELEASE
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceifeq "$(RELEASE)" "debug"
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyXINCDIRS += \
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence $(EOLIST)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceXCFLAGS += \
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence $(EOLIST)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyXDEFINES += \
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence $(EOLIST)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceXLFLAGS += \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence $(EOLIST)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrenceendif
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrenceifeq "$(RELEASE)" "noopt"
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceXINCDIRS += \
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence $(EOLIST)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceXCFLAGS += \
c32b87bc54abacf95fb3b063d72b7d1855c1643bMichael Graff $(EOLIST)
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceXDEFINES += \
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence $(EOLIST)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceXLFLAGS += \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence $(EOLIST)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrenceendif
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyifeq "$(RELEASE)" "release"
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyXINCDIRS += \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(EOLIST)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyXCFLAGS += \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(EOLIST)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyXDEFINES += \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(EOLIST)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyXLFLAGS += \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(EOLIST)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyendif
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# These are used by the link target if an NLM is being generated
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# This is used by the link 'name' directive to name the nlm. If left blank
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# TARGET_nlm (see below) will be used.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyNLM_NAME = htdbm
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence# This is used by the link '-desc ' directive.
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence# If left blank, NLM_NAME will be used.
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence#
0014d6342b0d50ae37126ac16d5bf821d02ffff7David LawrenceNLM_DESCRIPTION = Apache $(VERSION_STR) HT Database Management Utility for NetWare
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence#
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence# This is used by the '-threadname' directive. If left blank,
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence# NLM_NAME Thread will be used.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyNLM_THREAD_NAME = htdbm
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# This is used by the '-screenname' directive. If left blank,
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# 'Apache for NetWare' Thread will be used.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyNLM_SCREEN_NAME = htdbm Password Management
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# If this is specified, it will override VERSION value in
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# $(AP_WORK)/build/NWGNUenvironment.inc
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyNLM_VERSION =
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# If this is specified, it will override the default of 64K
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyNLM_STACK_SIZE = 8192
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# If this is specified it will be used by the link '-entry' directive
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyNLM_ENTRY_SYM =
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# If this is specified it will be used by the link '-exit' directive
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyNLM_EXIT_SYM =
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# If this is specified it will be used by the link '-check' directive
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyNLM_CHECK_SYM =
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# If these are specified it will be used by the link '-flags' directive
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
# 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