|
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 |
ifndef EnvironmentDefined
|
|
Packit |
383869 |
include $(APR_WORK)/build/NWGNUhead.inc
|
|
Packit |
383869 |
endif
|
|
Packit |
383869 |
|
|
Packit |
383869 |
#include $(APR)\build\NWGNUcustom.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 |
# LINK_STATIC = 1
|
|
Packit |
383869 |
|
|
Packit |
383869 |
# for now defined here - should finally go into build/NWGNUenvironment.inc
|
|
Packit |
383869 |
SQLITE3_INC = $(SQLITE3SDK)/src
|
|
Packit |
383869 |
SQLITE3_IMP = $(SQLITE3SDK)/lsqlite3.imp
|
|
Packit |
383869 |
SQLITE3_LIB = $(SQLITE3SDK)/lsqlite3.lib
|
|
Packit |
383869 |
SQLITE3_NLM = lsqlite3
|
|
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/arch/netware \
|
|
Packit |
383869 |
$(APR)/include \
|
|
Packit |
383869 |
$(APU)/include \
|
|
Packit |
383869 |
$(APU)/include/private \
|
|
Packit |
383869 |
$(APR) \
|
|
Packit |
383869 |
$(SQLITE3_INC) \
|
|
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 |
-DAPU_DSO_MODULE_BUILD \
|
|
Packit |
383869 |
-DAPU_HAVE_SQLITE3=1 \
|
|
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 |
ifdef LINK_STATIC
|
|
Packit |
383869 |
XLFLAGS += \
|
|
Packit |
383869 |
-l $(SQLITE3SDK) \
|
|
Packit |
383869 |
$(EOLIST)
|
|
Packit |
383869 |
endif
|
|
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 = dbdsqli3
|
|
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 = Apache Portability Runtime Library $(VERSION_STR) DBD SQLite3 Driver Module
|
|
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 = dbdsqli3
|
|
Packit |
383869 |
|
|
Packit |
383869 |
#
|
|
Packit |
383869 |
# If this is specified, it will override VERSION value in
|
|
Packit |
383869 |
# $(AP_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 = 8192
|
|
Packit |
383869 |
|
|
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 these are 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 $(NWOS)/apache.xdc. XDCData can be disabled
|
|
Packit |
383869 |
# by setting APACHE_UNIPROC in the environment
|
|
Packit |
383869 |
#
|
|
Packit |
383869 |
XDCDATA =
|
|
Packit |
383869 |
|
|
Packit |
383869 |
#
|
|
Packit |
383869 |
# If there is an NLM target, put it here
|
|
Packit |
383869 |
#
|
|
Packit |
383869 |
TARGET_nlm = \
|
|
Packit |
383869 |
$(OBJDIR)\$(NLM_NAME).nlm \
|
|
Packit |
383869 |
$(EOLIST)
|
|
Packit |
383869 |
|
|
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 |
$(OBJDIR)/apr_dbd_sqlite3.o \
|
|
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 |
$(PRELUDE) \
|
|
Packit |
383869 |
$(EOLIST)
|
|
Packit |
383869 |
|
|
Packit |
383869 |
ifeq ($(LINK_STATIC),1)
|
|
Packit |
383869 |
FILES_nlm_libs += \
|
|
Packit |
383869 |
$(SQLITE3_LIB) \
|
|
Packit |
383869 |
$(EOLIST)
|
|
Packit |
383869 |
endif
|
|
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 |
libc \
|
|
Packit |
383869 |
$(EOLIST)
|
|
Packit |
383869 |
|
|
Packit |
383869 |
ifneq ($(LINK_STATIC),1)
|
|
Packit |
383869 |
FILES_nlm_modules += \
|
|
Packit |
383869 |
$(SQLITE3_NLM) \
|
|
Packit |
383869 |
$(EOLIST)
|
|
Packit |
383869 |
endif
|
|
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 $(NWOS)\copyright.txt.
|
|
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 |
@$(APR)/aprlib.imp \
|
|
Packit |
383869 |
@libc.imp \
|
|
Packit |
383869 |
apr_dbd_mutex_lock \
|
|
Packit |
383869 |
apr_dbd_mutex_unlock \
|
|
Packit |
383869 |
$(EOLIST)
|
|
Packit |
383869 |
|
|
Packit |
383869 |
ifneq ($(LINK_STATIC),1)
|
|
Packit |
383869 |
FILES_nlm_Ximports += \
|
|
Packit |
383869 |
@$(SQLITE3_IMP) \
|
|
Packit |
383869 |
$(EOLIST)
|
|
Packit |
383869 |
endif
|
|
Packit |
383869 |
|
|
Packit |
383869 |
#
|
|
Packit |
383869 |
# Any symbols exported to here
|
|
Packit |
383869 |
#
|
|
Packit |
383869 |
FILES_nlm_exports = \
|
|
Packit |
383869 |
apr_dbd_sqlite3_driver \
|
|
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 $(AP_WORK)\build\NWGNUhead.inc for examples)
|
|
Packit |
383869 |
#
|
|
Packit |
383869 |
install :: nlms FORCE
|
|
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 |
|
|
Packit |
383869 |
|
|
Packit |
383869 |
|