NWGNUdbmgdbm revision 251876
115103Sphk# 215103Sphk# Declare the sub-directories to be built here 315103Sphk# 415103Sphk 515103SphkSUBDIRS = \ 615103Sphk $(EOLIST) 715103Sphk 815103Sphk# 915103Sphk# Get the 'head' of the build environment. This includes default targets and 1015103Sphk# paths to tools 1115103Sphk# 1215103Sphk 1315103Sphkifndef EnvironmentDefined 1415103Sphkinclude $(APR_WORK)/build/NWGNUhead.inc 1515103Sphkendif 1615103Sphk 1715103Sphk# 1815103Sphk# build this level's files 1915103Sphk 2015103Sphk# 2115103Sphk# Make sure all needed macro's are defined 2215103Sphk# 2315103Sphk 2415103Sphk# LINK_STATIC = 1 2515103Sphk 2615103Sphk# for now defined here - should finally go into build/NWGNUenvironment.inc 2715103SphkGDBM_INC = $(GDBMSDK)/inc 2815103SphkGDBM_IMP = libgdbm.imp 2915103SphkGDBM_LIB = libgdbm.lib 3015103SphkGDBM_NLM = libgdbm 3115103Sphk 3215103Sphk# 3315103Sphk# These directories will be at the beginning of the include list, followed by 3415103Sphk# INCDIRS 3515103Sphk# 3615103SphkXINCDIRS += \ 3715103Sphk $(APR)/include/arch/netware \ 3815103Sphk $(APR)/include \ 3915103Sphk $(APU)/include \ 4050477Speter $(APU)/include/private \ 4115103Sphk $(APR) \ 4215103Sphk $(GDBM_INC) \ 4315103Sphk $(EOLIST) 4415103Sphk 4515103Sphk# 4615103Sphk# These flags will come after CFLAGS 4715103Sphk# 4846155SphkXCFLAGS += \ 4915103Sphk $(EOLIST) 5015103Sphk 5131990Sgpalmer# 5231990Sgpalmer# These defines will come after DEFINES 5331990Sgpalmer# 5428918SkatoXDEFINES += \ 5515103Sphk -DAPU_DSO_MODULE_BUILD \ 5615103Sphk -DAPU_HAVE_GDBM=1 \ 5715103Sphk $(EOLIST) 5815103Sphk 5915103Sphk# 6015103Sphk# These flags will be added to the link.opt file 6123382Sbde# 6215103SphkXLFLAGS += \ 6315103Sphk $(EOLIST) 6415103Sphk 6515103Sphkifdef LINK_STATIC 6615103SphkXLFLAGS += \ 6748891Sphk -l $(GDBMSDK)/lib \ 6848891Sphk $(EOLIST) 6915103Sphkelse 7015103SphkXLFLAGS += \ 7115103Sphk -l $(GDBMSDK)/imp \ 7215103Sphk $(EOLIST) 7315103Sphkendif 7415103Sphk 7534925Sdufault# 7634925Sdufault# These values will be appended to the correct variables based on the value of 7734029Sdufault# RELEASE 7850465Smarcel# 7950465Smarcelifeq "$(RELEASE)" "debug" 8050465SmarcelXINCDIRS += \ 8146155Sphk $(EOLIST) 8246155Sphk 8346155SphkXCFLAGS += \ 8446381Sbillf $(EOLIST) 8546381Sbillf 8615103SphkXDEFINES += \ 8746381Sbillf $(EOLIST) 8846381Sbillf 8915103SphkXLFLAGS += \ 9046381Sbillf $(EOLIST) 9146381Sbillfendif 9215103Sphk 9346381Sbillfifeq "$(RELEASE)" "noopt" 9446381SbillfXINCDIRS += \ 9515103Sphk $(EOLIST) 9615103Sphk 9746381SbillfXCFLAGS += \ 9846381Sbillf $(EOLIST) 9915103Sphk 10046381SbillfXDEFINES += \ 10146381Sbillf $(EOLIST) 10215103Sphk 10346381SbillfXLFLAGS += \ 10446381Sbillf $(EOLIST) 10515103Sphkendif 10646381Sbillf 10746381Sbillfifeq "$(RELEASE)" "release" 10815103SphkXINCDIRS += \ 10946381Sbillf $(EOLIST) 11046381Sbillf 11115103SphkXCFLAGS += \ 11246381Sbillf $(EOLIST) 11346381Sbillf 11415103SphkXDEFINES += \ 11546381Sbillf $(EOLIST) 11646381Sbillf 11715103SphkXLFLAGS += \ 11815103Sphk $(EOLIST) 11946381Sbillfendif 12046381Sbillf 12115103Sphk# 12246381Sbillf# These are used by the link target if an NLM is being generated 12346381Sbillf# This is used by the link 'name' directive to name the nlm. If left blank 12415103Sphk# TARGET_nlm (see below) will be used. 12515103Sphk# 12615103SphkNLM_NAME = dbmgdbm 12715103Sphk 12846381Sbillf# 12946381Sbillf# This is used by the link '-desc ' directive. 13015103Sphk# If left blank, NLM_NAME will be used. 13131990Sgpalmer# 13246381SbillfNLM_DESCRIPTION = Apache Portability Runtime Library $(VERSION_STR) GDBM Driver Module 13346381Sbillf 13431990Sgpalmer# 13546381Sbillf# This is used by the '-threadname' directive. If left blank, 13646381Sbillf# NLM_NAME Thread will be used. 13731990Sgpalmer# 13815103SphkNLM_THREAD_NAME = dbmgdbm 13946381Sbillf 14046381Sbillf# 14115103Sphk# If this is specified, it will override VERSION value in 14246381Sbillf# $(AP_WORK)\build\NWGNUenvironment.inc 14346381Sbillf# 14415103SphkNLM_VERSION = 14528885Skato 14628885Skato# 14746381Sbillf# If this is specified, it will override the default of 64K 14828885Skato# 14915103SphkNLM_STACK_SIZE = 8192 15015103Sphk 15146155Sphk 15246155Sphk# 15346155Sphk# If this is specified it will be used by the link '-entry' directive 15446155Sphk# 15515103SphkNLM_ENTRY_SYM = 15646155Sphk 15746155Sphk# 15846155Sphk# If this is specified it will be used by the link '-exit' directive 15946155Sphk# 16046155SphkNLM_EXIT_SYM = 16146155Sphk 16246155Sphk# 16346155Sphk# If this is specified it will be used by the link '-check' directive 16446155Sphk# 16546155SphkNLM_CHECK_SYM = 16646155Sphk 16746155Sphk# 16846381Sbillf# If these are specified it will be used by the link '-flags' directive 16946155Sphk# 17015103SphkNLM_FLAGS = 17115103Sphk 17215103Sphk# 17315103Sphk# If this is specified it will be linked in with the XDCData option in the def 17415103Sphk# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled 17515103Sphk# by setting APACHE_UNIPROC in the environment 17615103Sphk# 17715103SphkXDCDATA = 17815103Sphk 17915103Sphk# 18015103Sphk# If there is an NLM target, put it here 18126923Sjoerg# 18215103SphkTARGET_nlm = \ 18315103Sphk $(OBJDIR)\$(NLM_NAME).nlm \ 18415103Sphk $(EOLIST) 18515103Sphk 18615103Sphk# 18715103Sphk# If there is an LIB target, put it here 18846381Sbillf# 18915103SphkTARGET_lib = \ 19015103Sphk $(EOLIST) 19117281Swollman 19246381Sbillf# 19315103Sphk# These are the OBJ files needed to create the NLM target above. 19415103Sphk# Paths must all use the '/' character 19515103Sphk# 19646381SbillfFILES_nlm_objs = \ 19715103Sphk $(OBJDIR)/apr_dbm_gdbm.o \ 19815103Sphk $(EOLIST) 19915103Sphk 20015103Sphk# 20115103Sphk# These are the LIB files needed to create the NLM target above. 20215103Sphk# These will be added as a library command in the link.opt file. 20346381Sbillf# 20446381SbillfFILES_nlm_libs = \ 20546381Sbillf $(PRELUDE) \ 20646381Sbillf $(EOLIST) 20746381Sbillf 20846381Sbillfifeq ($(LINK_STATIC),1) 20946381SbillfFILES_nlm_libs += \ 21046381Sbillf $(GDBM_LIB) \ 21146381Sbillf $(EOLIST) 21246381Sbillfendif 21346381Sbillf 21446381Sbillf# 21518540Sbde# These are the modules that the above NLM target depends on to load. 21646381Sbillf# These will be added as a module command in the link.opt file. 21746381Sbillf# 21846381SbillfFILES_nlm_modules = \ 21946381Sbillf aprlib \ 22046381Sbillf libc \ 22146381Sbillf $(EOLIST) 22246381Sbillf 22346381Sbillfifneq ($(LINK_STATIC),1) 22446381SbillfFILES_nlm_modules += \ 22546381Sbillf $(GDBM_NLM) \ 22646381Sbillf $(EOLIST) 22746381Sbillfendif 22846381Sbillf 22946381Sbillf# 23046381Sbillf# If the nlm has a msg file, put it's path here 23146381Sbillf# 23246381SbillfFILE_nlm_msg = 23346381Sbillf 23446381Sbillf# 23546381Sbillf# If the nlm has a hlp file put it's path here 23646381Sbillf# 23746381SbillfFILE_nlm_hlp = 23846381Sbillf 23946381Sbillf# 24046381Sbillf# If this is specified, it will override $(NWOS)\copyright.txt. 24146381Sbillf# 24246381SbillfFILE_nlm_copyright = 24348891Sphk 24448891Sphk# 24548891Sphk# Any additional imports go here 24648891Sphk# 24748891SphkFILES_nlm_Ximports = \ 24848891Sphk @aprlib.imp \ 24948891Sphk @libc.imp \ 25048927Sphk $(EOLIST) 25149535Sphk 25248927Sphkifneq ($(LINK_STATIC),1) 25348927SphkFILES_nlm_Ximports += \ 254 @$(GDBM_IMP) \ 255 $(EOLIST) 256endif 257 258# 259# Any symbols exported to here 260# 261FILES_nlm_exports = \ 262 apr_dbm_type_gdbm \ 263 $(EOLIST) 264 265# 266# These are the OBJ files needed to create the LIB target above. 267# Paths must all use the '/' character 268# 269FILES_lib_objs = \ 270 $(EOLIST) 271 272# 273# implement targets and dependancies (leave this section alone) 274# 275 276libs :: $(OBJDIR) $(TARGET_lib) 277 278nlms :: libs $(TARGET_nlm) 279 280# 281# Updated this target to create necessary directories and copy files to the 282# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples) 283# 284install :: nlms FORCE 285 286# 287# Any specialized rules here 288# 289 290# 291# Include the 'tail' makefile that has targets that depend on variables defined 292# in this makefile 293# 294 295include $(APRBUILD)/NWGNUtail.inc 296 297 298 299