2008-07-30 13:15:43 +00:00
|
|
|
#!/usr/make
|
|
|
|
#
|
|
|
|
# Makefile for SQLITE
|
|
|
|
#
|
|
|
|
# This makefile is suppose to be configured automatically using the
|
|
|
|
# autoconf. But if that does not work for you, you can configure
|
|
|
|
# the makefile manually. Just set the parameters below to values that
|
|
|
|
# work well for your system.
|
|
|
|
#
|
|
|
|
# If the configure script does not work out-of-the-box, you might
|
|
|
|
# be able to get it to work by giving it some hints. See the comment
|
|
|
|
# at the beginning of configure.in for additional information.
|
|
|
|
#
|
|
|
|
|
|
|
|
# The toplevel directory of the source tree. This is the directory
|
|
|
|
# that contains this "Makefile.in" and the "configure.in" script.
|
|
|
|
#
|
|
|
|
TOP = @srcdir@
|
|
|
|
|
2008-07-30 17:15:55 +00:00
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
# C Compiler and options for use in building executables that
|
|
|
|
# will run on the platform that is doing the build.
|
|
|
|
#
|
|
|
|
BCC = @BUILD_CC@ @BUILD_CFLAGS@
|
|
|
|
|
|
|
|
# C Compile and options for use in building executables that
|
|
|
|
# will run on the target platform. (BCC and TCC are usually the
|
|
|
|
# same unless your are cross-compiling.)
|
|
|
|
#
|
2011-02-16 21:14:46 +00:00
|
|
|
TCC = @CC@ @CPPFLAGS@ @CFLAGS@ -I. -I${TOP}/src -I${TOP}/ext/rtree
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
# Define this for the autoconf-based build, so that the code knows it can
|
|
|
|
# include the generated config.h
|
|
|
|
#
|
2012-01-18 05:18:26 +00:00
|
|
|
TCC += -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
# Define -DNDEBUG to compile without debugging (i.e., for production usage)
|
|
|
|
# Omitting the define will cause extra debugging code to be inserted and
|
|
|
|
# includes extra comments when "EXPLAIN stmt" is used.
|
|
|
|
#
|
|
|
|
TCC += @TARGET_DEBUG@ @XTHREADCONNECT@
|
|
|
|
|
|
|
|
# Compiler options needed for programs that use the TCL library.
|
|
|
|
#
|
|
|
|
TCC += @TCL_INCLUDE_SPEC@
|
|
|
|
|
|
|
|
# The library that programs using TCL must link against.
|
|
|
|
#
|
2013-01-15 22:38:05 +00:00
|
|
|
LIBTCL = @TCL_LIB_SPEC@
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
# Compiler options needed for programs that use the readline() library.
|
|
|
|
#
|
|
|
|
READLINE_FLAGS = -DHAVE_READLINE=@TARGET_HAVE_READLINE@ @TARGET_READLINE_INC@
|
|
|
|
|
|
|
|
# The library that programs using readline() must link against.
|
|
|
|
#
|
|
|
|
LIBREADLINE = @TARGET_READLINE_LIBS@
|
|
|
|
|
|
|
|
# Should the database engine be compiled threadsafe
|
|
|
|
#
|
|
|
|
TCC += -DSQLITE_THREADSAFE=@SQLITE_THREADSAFE@
|
|
|
|
|
|
|
|
# Any target libraries which libsqlite must be linked against
|
|
|
|
#
|
|
|
|
TLIBS = @LIBS@
|
|
|
|
|
|
|
|
# Flags controlling use of the in memory btree implementation
|
|
|
|
#
|
|
|
|
# SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
|
|
|
|
# default to file, 2 to default to memory, and 3 to force temporary
|
|
|
|
# tables to always be in memory.
|
|
|
|
#
|
|
|
|
TEMP_STORE = -DSQLITE_TEMP_STORE=@TEMP_STORE@
|
|
|
|
|
2008-08-19 05:05:45 +00:00
|
|
|
# Enable/disable loadable extensions, and other optional features
|
2009-02-20 20:33:35 +00:00
|
|
|
# based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*).
|
|
|
|
# The same set of OMIT and ENABLE flags should be passed to the
|
|
|
|
# LEMON parser generator and the mkkeywordhash tool as well.
|
2008-08-19 05:05:45 +00:00
|
|
|
OPT_FEATURE_FLAGS = @OPT_FEATURE_FLAGS@
|
|
|
|
|
|
|
|
TCC += $(OPT_FEATURE_FLAGS)
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2009-02-20 20:33:35 +00:00
|
|
|
# Add in any optional parameters specified on the make commane line
|
|
|
|
# ie. make "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1".
|
|
|
|
TCC += $(OPTS)
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
# Version numbers and release number for the SQLite being compiled.
|
|
|
|
#
|
|
|
|
VERSION = @VERSION@
|
|
|
|
VERSION_NUMBER = @VERSION_NUMBER@
|
|
|
|
RELEASE = @RELEASE@
|
|
|
|
|
|
|
|
# Filename extensions
|
|
|
|
#
|
|
|
|
BEXE = @BUILD_EXEEXT@
|
|
|
|
TEXE = @TARGET_EXEEXT@
|
|
|
|
|
|
|
|
# The following variable is "1" if the configure script was able to locate
|
|
|
|
# the tclConfig.sh file. It is an empty string otherwise. When this
|
|
|
|
# variable is "1", the TCL extension library (libtclsqlite3.so) is built
|
|
|
|
# and installed.
|
|
|
|
#
|
|
|
|
HAVE_TCL = @HAVE_TCL@
|
|
|
|
|
|
|
|
# This is the command to use for tclsh - normally just "tclsh", but we may
|
|
|
|
# know the specific version we want to use
|
|
|
|
#
|
|
|
|
TCLSH_CMD = @TCLSH_CMD@
|
|
|
|
|
2009-02-20 20:33:35 +00:00
|
|
|
# Where do we want to install the tcl plugin
|
|
|
|
#
|
|
|
|
TCLLIBDIR = @TCLLIBDIR@
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
# The suffix used on shared libraries. Ex: ".dll", ".so", ".dylib"
|
|
|
|
#
|
|
|
|
SHLIB_SUFFIX = @TCL_SHLIB_SUFFIX@
|
|
|
|
|
|
|
|
# If gcov support was enabled by the configure script, add the appropriate
|
|
|
|
# flags here. It's not always as easy as just having the user add the right
|
|
|
|
# CFLAGS / LDFLAGS, because libtool wants to use CFLAGS when linking, which
|
|
|
|
# causes build errors with -fprofile-arcs -ftest-coverage with some GCCs.
|
|
|
|
# Supposedly GCC does the right thing if you use --coverage, but in
|
|
|
|
# practice it still fails. See:
|
|
|
|
#
|
|
|
|
# http://www.mail-archive.com/debian-gcc@lists.debian.org/msg26197.html
|
|
|
|
#
|
|
|
|
# for more info.
|
|
|
|
#
|
2009-02-20 20:33:35 +00:00
|
|
|
GCOV_CFLAGS1 = -DSQLITE_COVERAGE_TEST=1 -fprofile-arcs -ftest-coverage
|
2008-07-30 13:15:43 +00:00
|
|
|
GCOV_LDFLAGS1 = -lgcov
|
|
|
|
USE_GCOV = @USE_GCOV@
|
|
|
|
LTCOMPILE_EXTRAS += $(GCOV_CFLAGS$(USE_GCOV))
|
|
|
|
LTLINK_EXTRAS += $(GCOV_LDFLAGS$(USE_GCOV))
|
|
|
|
|
2008-07-30 17:15:55 +00:00
|
|
|
# BEGIN CRYPTO
|
|
|
|
CRYPTOLIBOBJ = \
|
2011-03-02 18:11:00 +00:00
|
|
|
crypto.lo \
|
2013-05-31 06:18:05 +00:00
|
|
|
crypto_impl.lo \
|
|
|
|
crypto_openssl.lo \
|
2013-06-05 17:43:08 +00:00
|
|
|
crypto_libtomcrypt.lo \
|
|
|
|
crypto_cc.lo
|
2008-07-30 17:15:55 +00:00
|
|
|
|
|
|
|
CRYPTOSRC = \
|
2009-02-20 21:38:27 +00:00
|
|
|
$(TOP)/src/crypto.h \
|
2013-05-31 06:40:08 +00:00
|
|
|
$(TOP)/src/sqlcipher.h \
|
2011-03-02 18:11:00 +00:00
|
|
|
$(TOP)/src/crypto.c \
|
2013-05-29 20:10:48 +00:00
|
|
|
$(TOP)/src/crypto_impl.c \
|
2013-06-03 21:45:44 +00:00
|
|
|
$(TOP)/src/crypto_libtomcrypt.c \
|
2013-06-05 17:43:08 +00:00
|
|
|
$(TOP)/src/crypto_openssl.c \
|
|
|
|
$(TOP)/src/crypto_cc.c
|
2009-02-26 17:35:25 +00:00
|
|
|
|
2008-07-30 17:15:55 +00:00
|
|
|
# END CRYPTO
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
# The directory into which to store package information for
|
|
|
|
|
|
|
|
# Some standard variables and programs
|
|
|
|
#
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
2008-08-19 05:05:45 +00:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2008-07-30 13:15:43 +00:00
|
|
|
bindir = @bindir@
|
2013-01-10 02:14:37 +00:00
|
|
|
includedir = @includedir@/sqlcipher
|
2008-07-30 13:15:43 +00:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
LIBTOOL = ./libtool
|
|
|
|
ALLOWRELEASE = @ALLOWRELEASE@
|
|
|
|
|
|
|
|
# libtool compile/link/install
|
|
|
|
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(TCC) $(LTCOMPILE_EXTRAS)
|
2009-02-20 20:33:35 +00:00
|
|
|
LTLINK = $(LIBTOOL) --mode=link $(TCC) $(LTCOMPILE_EXTRAS) @LDFLAGS@ $(LTLINK_EXTRAS)
|
2008-07-30 13:15:43 +00:00
|
|
|
LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
|
|
|
|
|
|
|
# nawk compatible awk.
|
|
|
|
NAWK = @AWK@
|
|
|
|
|
|
|
|
# You should not have to change anything below this line
|
|
|
|
###############################################################################
|
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
USE_AMALGAMATION = @USE_AMALGAMATION@
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
# Object files for the SQLite library (non-amalgamation).
|
|
|
|
#
|
2010-07-22 13:16:22 +00:00
|
|
|
LIBOBJS0 = alter.lo analyze.lo attach.lo auth.lo \
|
|
|
|
backup.lo bitvec.lo btmutex.lo btree.lo build.lo \
|
2011-02-16 21:14:46 +00:00
|
|
|
callback.lo complete.lo ctime.lo date.lo delete.lo \
|
|
|
|
expr.lo fault.lo fkey.lo \
|
2012-07-18 18:42:52 +00:00
|
|
|
fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \
|
|
|
|
fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \
|
2013-05-21 20:38:11 +00:00
|
|
|
fts3_tokenize_vtab.lo \
|
2012-07-18 18:42:52 +00:00
|
|
|
fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \
|
2010-07-22 13:16:22 +00:00
|
|
|
func.lo global.lo hash.lo \
|
|
|
|
icu.lo insert.lo journal.lo legacy.lo loadext.lo \
|
|
|
|
main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \
|
|
|
|
memjournal.lo \
|
2012-11-15 23:45:58 +00:00
|
|
|
mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \
|
|
|
|
notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \
|
2010-07-22 13:16:22 +00:00
|
|
|
pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \
|
|
|
|
random.lo resolve.lo rowset.lo rtree.lo select.lo status.lo \
|
|
|
|
table.lo tokenize.lo trigger.lo \
|
|
|
|
update.lo util.lo vacuum.lo \
|
2011-12-26 19:52:17 +00:00
|
|
|
vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \
|
2011-12-26 20:00:48 +00:00
|
|
|
vdbetrace.lo wal.lo walker.lo where.lo utf.lo vtab.lo $(CRYPTOLIBOBJ)
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
# Object files for the amalgamation.
|
|
|
|
#
|
2010-07-22 13:16:22 +00:00
|
|
|
LIBOBJS1 = sqlite3.lo
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
# Determine the real value of LIBOBJ based on the 'configure' script
|
|
|
|
#
|
2010-07-22 13:16:22 +00:00
|
|
|
LIBOBJ = $(LIBOBJS$(USE_AMALGAMATION))
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
# All of the source code files.
|
|
|
|
#
|
|
|
|
SRC = \
|
2008-07-30 17:15:55 +00:00
|
|
|
$(CRYPTOSRC) \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/alter.c \
|
|
|
|
$(TOP)/src/analyze.c \
|
|
|
|
$(TOP)/src/attach.c \
|
|
|
|
$(TOP)/src/auth.c \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/src/backup.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/bitvec.c \
|
|
|
|
$(TOP)/src/btmutex.c \
|
|
|
|
$(TOP)/src/btree.c \
|
|
|
|
$(TOP)/src/btree.h \
|
|
|
|
$(TOP)/src/btreeInt.h \
|
|
|
|
$(TOP)/src/build.c \
|
|
|
|
$(TOP)/src/callback.c \
|
|
|
|
$(TOP)/src/complete.c \
|
2010-05-18 16:22:17 +00:00
|
|
|
$(TOP)/src/ctime.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/date.c \
|
|
|
|
$(TOP)/src/delete.c \
|
|
|
|
$(TOP)/src/expr.c \
|
|
|
|
$(TOP)/src/fault.c \
|
2009-12-03 21:24:07 +00:00
|
|
|
$(TOP)/src/fkey.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/func.c \
|
|
|
|
$(TOP)/src/global.c \
|
|
|
|
$(TOP)/src/hash.c \
|
|
|
|
$(TOP)/src/hash.h \
|
|
|
|
$(TOP)/src/hwtime.h \
|
|
|
|
$(TOP)/src/insert.c \
|
|
|
|
$(TOP)/src/journal.c \
|
|
|
|
$(TOP)/src/legacy.c \
|
|
|
|
$(TOP)/src/loadext.c \
|
|
|
|
$(TOP)/src/main.c \
|
|
|
|
$(TOP)/src/malloc.c \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/src/mem0.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/mem1.c \
|
|
|
|
$(TOP)/src/mem2.c \
|
|
|
|
$(TOP)/src/mem3.c \
|
|
|
|
$(TOP)/src/mem5.c \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/src/memjournal.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/mutex.c \
|
|
|
|
$(TOP)/src/mutex.h \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/src/mutex_noop.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/mutex_unix.c \
|
|
|
|
$(TOP)/src/mutex_w32.c \
|
2009-04-21 14:39:00 +00:00
|
|
|
$(TOP)/src/notify.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/os.c \
|
|
|
|
$(TOP)/src/os.h \
|
|
|
|
$(TOP)/src/os_common.h \
|
|
|
|
$(TOP)/src/os_unix.c \
|
|
|
|
$(TOP)/src/os_win.c \
|
|
|
|
$(TOP)/src/pager.c \
|
|
|
|
$(TOP)/src/pager.h \
|
|
|
|
$(TOP)/src/parse.y \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/src/pcache.c \
|
|
|
|
$(TOP)/src/pcache.h \
|
|
|
|
$(TOP)/src/pcache1.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/pragma.c \
|
|
|
|
$(TOP)/src/prepare.c \
|
|
|
|
$(TOP)/src/printf.c \
|
|
|
|
$(TOP)/src/random.c \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/src/resolve.c \
|
|
|
|
$(TOP)/src/rowset.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/select.c \
|
|
|
|
$(TOP)/src/status.c \
|
|
|
|
$(TOP)/src/shell.c \
|
|
|
|
$(TOP)/src/sqlite.h.in \
|
|
|
|
$(TOP)/src/sqlite3ext.h \
|
|
|
|
$(TOP)/src/sqliteInt.h \
|
|
|
|
$(TOP)/src/sqliteLimit.h \
|
|
|
|
$(TOP)/src/table.c \
|
|
|
|
$(TOP)/src/tclsqlite.c \
|
|
|
|
$(TOP)/src/tokenize.c \
|
|
|
|
$(TOP)/src/trigger.c \
|
|
|
|
$(TOP)/src/utf.c \
|
|
|
|
$(TOP)/src/update.c \
|
|
|
|
$(TOP)/src/util.c \
|
|
|
|
$(TOP)/src/vacuum.c \
|
|
|
|
$(TOP)/src/vdbe.c \
|
|
|
|
$(TOP)/src/vdbe.h \
|
|
|
|
$(TOP)/src/vdbeapi.c \
|
|
|
|
$(TOP)/src/vdbeaux.c \
|
|
|
|
$(TOP)/src/vdbeblob.c \
|
|
|
|
$(TOP)/src/vdbemem.c \
|
2011-12-26 19:52:17 +00:00
|
|
|
$(TOP)/src/vdbesort.c \
|
2009-12-19 20:56:40 +00:00
|
|
|
$(TOP)/src/vdbetrace.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/vdbeInt.h \
|
|
|
|
$(TOP)/src/vtab.c \
|
2010-07-22 13:16:22 +00:00
|
|
|
$(TOP)/src/wal.c \
|
|
|
|
$(TOP)/src/wal.h \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/src/walker.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/where.c
|
|
|
|
|
|
|
|
# Source code for extensions
|
|
|
|
#
|
|
|
|
SRC += \
|
|
|
|
$(TOP)/ext/fts1/fts1.c \
|
|
|
|
$(TOP)/ext/fts1/fts1.h \
|
|
|
|
$(TOP)/ext/fts1/fts1_hash.c \
|
|
|
|
$(TOP)/ext/fts1/fts1_hash.h \
|
|
|
|
$(TOP)/ext/fts1/fts1_porter.c \
|
|
|
|
$(TOP)/ext/fts1/fts1_tokenizer.h \
|
|
|
|
$(TOP)/ext/fts1/fts1_tokenizer1.c
|
|
|
|
SRC += \
|
|
|
|
$(TOP)/ext/fts2/fts2.c \
|
|
|
|
$(TOP)/ext/fts2/fts2.h \
|
|
|
|
$(TOP)/ext/fts2/fts2_hash.c \
|
|
|
|
$(TOP)/ext/fts2/fts2_hash.h \
|
|
|
|
$(TOP)/ext/fts2/fts2_icu.c \
|
|
|
|
$(TOP)/ext/fts2/fts2_porter.c \
|
|
|
|
$(TOP)/ext/fts2/fts2_tokenizer.h \
|
|
|
|
$(TOP)/ext/fts2/fts2_tokenizer.c \
|
|
|
|
$(TOP)/ext/fts2/fts2_tokenizer1.c
|
|
|
|
SRC += \
|
|
|
|
$(TOP)/ext/fts3/fts3.c \
|
|
|
|
$(TOP)/ext/fts3/fts3.h \
|
2009-12-19 20:56:40 +00:00
|
|
|
$(TOP)/ext/fts3/fts3Int.h \
|
2011-05-06 02:37:34 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_aux.c \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_expr.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_hash.c \
|
|
|
|
$(TOP)/ext/fts3/fts3_hash.h \
|
|
|
|
$(TOP)/ext/fts3/fts3_icu.c \
|
|
|
|
$(TOP)/ext/fts3/fts3_porter.c \
|
2009-12-19 20:56:40 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_snippet.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer.h \
|
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer.c \
|
2009-12-19 20:56:40 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer1.c \
|
2013-05-21 20:38:11 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_tokenize_vtab.c \
|
2012-07-18 18:42:52 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_unicode.c \
|
|
|
|
$(TOP)/ext/fts3/fts3_unicode2.c \
|
2009-12-19 20:56:40 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_write.c
|
2008-07-30 13:15:43 +00:00
|
|
|
SRC += \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/ext/icu/sqliteicu.h \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/ext/icu/icu.c
|
|
|
|
SRC += \
|
|
|
|
$(TOP)/ext/rtree/rtree.h \
|
|
|
|
$(TOP)/ext/rtree/rtree.c
|
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
|
|
|
|
# Generated source code files
|
2008-07-30 13:15:43 +00:00
|
|
|
#
|
2010-07-22 13:16:22 +00:00
|
|
|
SRC += \
|
|
|
|
keywordhash.h \
|
|
|
|
opcodes.c \
|
|
|
|
opcodes.h \
|
|
|
|
parse.c \
|
|
|
|
parse.h \
|
|
|
|
config.h \
|
|
|
|
sqlite3.h
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
# Source code to the test files.
|
2008-07-30 13:15:43 +00:00
|
|
|
#
|
|
|
|
TESTSRC = \
|
|
|
|
$(TOP)/src/test1.c \
|
|
|
|
$(TOP)/src/test2.c \
|
|
|
|
$(TOP)/src/test3.c \
|
|
|
|
$(TOP)/src/test4.c \
|
|
|
|
$(TOP)/src/test5.c \
|
|
|
|
$(TOP)/src/test6.c \
|
|
|
|
$(TOP)/src/test7.c \
|
|
|
|
$(TOP)/src/test8.c \
|
|
|
|
$(TOP)/src/test9.c \
|
|
|
|
$(TOP)/src/test_autoext.c \
|
|
|
|
$(TOP)/src/test_async.c \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/src/test_backup.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/test_btree.c \
|
|
|
|
$(TOP)/src/test_config.c \
|
2010-07-22 13:16:22 +00:00
|
|
|
$(TOP)/src/test_demovfs.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/test_devsym.c \
|
2013-05-21 20:38:11 +00:00
|
|
|
$(TOP)/src/test_fs.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/test_func.c \
|
|
|
|
$(TOP)/src/test_hexio.c \
|
2009-12-03 21:24:07 +00:00
|
|
|
$(TOP)/src/test_init.c \
|
2009-12-19 20:56:40 +00:00
|
|
|
$(TOP)/src/test_intarray.c \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/src/test_journal.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/test_malloc.c \
|
2011-02-16 21:14:46 +00:00
|
|
|
$(TOP)/src/test_multiplex.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/test_mutex.c \
|
|
|
|
$(TOP)/src/test_onefile.c \
|
|
|
|
$(TOP)/src/test_osinst.c \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/src/test_pcache.c \
|
2011-02-16 21:14:46 +00:00
|
|
|
$(TOP)/src/test_quota.c \
|
|
|
|
$(TOP)/src/test_rtree.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/test_schema.c \
|
|
|
|
$(TOP)/src/test_server.c \
|
2011-02-16 21:14:46 +00:00
|
|
|
$(TOP)/src/test_superlock.c \
|
2011-05-06 02:37:34 +00:00
|
|
|
$(TOP)/src/test_syscall.c \
|
2010-07-22 13:16:22 +00:00
|
|
|
$(TOP)/src/test_stat.c \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/test_tclvar.c \
|
2009-12-03 21:24:07 +00:00
|
|
|
$(TOP)/src/test_thread.c \
|
2010-07-22 13:16:22 +00:00
|
|
|
$(TOP)/src/test_vfs.c \
|
2011-08-17 17:17:32 +00:00
|
|
|
$(TOP)/src/test_wsd.c \
|
|
|
|
$(TOP)/ext/fts3/fts3_term.c \
|
|
|
|
$(TOP)/ext/fts3/fts3_test.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2013-05-21 20:38:11 +00:00
|
|
|
# Statically linked extensions
|
|
|
|
#
|
|
|
|
TESTSRC += \
|
|
|
|
$(TOP)/ext/misc/amatch.c \
|
|
|
|
$(TOP)/ext/misc/closure.c \
|
|
|
|
$(TOP)/ext/misc/fuzzer.c \
|
|
|
|
$(TOP)/ext/misc/ieee754.c \
|
|
|
|
$(TOP)/ext/misc/nextchar.c \
|
|
|
|
$(TOP)/ext/misc/regexp.c \
|
|
|
|
$(TOP)/ext/misc/spellfix.c \
|
|
|
|
$(TOP)/ext/misc/wholenumber.c
|
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
# Source code to the library files needed by the test fixture
|
|
|
|
#
|
|
|
|
TESTSRC2 = \
|
|
|
|
$(TOP)/src/attach.c \
|
|
|
|
$(TOP)/src/backup.c \
|
|
|
|
$(TOP)/src/bitvec.c \
|
|
|
|
$(TOP)/src/btree.c \
|
|
|
|
$(TOP)/src/build.c \
|
|
|
|
$(TOP)/src/ctime.c \
|
|
|
|
$(TOP)/src/date.c \
|
|
|
|
$(TOP)/src/expr.c \
|
|
|
|
$(TOP)/src/func.c \
|
|
|
|
$(TOP)/src/insert.c \
|
|
|
|
$(TOP)/src/wal.c \
|
2013-05-21 20:38:11 +00:00
|
|
|
$(TOP)/src/main.c \
|
2010-07-22 13:16:22 +00:00
|
|
|
$(TOP)/src/mem5.c \
|
|
|
|
$(TOP)/src/os.c \
|
|
|
|
$(TOP)/src/os_unix.c \
|
|
|
|
$(TOP)/src/os_win.c \
|
|
|
|
$(TOP)/src/pager.c \
|
|
|
|
$(TOP)/src/pragma.c \
|
|
|
|
$(TOP)/src/prepare.c \
|
|
|
|
$(TOP)/src/printf.c \
|
|
|
|
$(TOP)/src/random.c \
|
|
|
|
$(TOP)/src/pcache.c \
|
|
|
|
$(TOP)/src/pcache1.c \
|
|
|
|
$(TOP)/src/select.c \
|
|
|
|
$(TOP)/src/tokenize.c \
|
|
|
|
$(TOP)/src/utf.c \
|
|
|
|
$(TOP)/src/util.c \
|
|
|
|
$(TOP)/src/vdbeapi.c \
|
|
|
|
$(TOP)/src/vdbeaux.c \
|
|
|
|
$(TOP)/src/vdbe.c \
|
|
|
|
$(TOP)/src/vdbemem.c \
|
|
|
|
$(TOP)/src/vdbetrace.c \
|
|
|
|
$(TOP)/src/where.c \
|
|
|
|
parse.c \
|
|
|
|
$(TOP)/ext/fts3/fts3.c \
|
2011-05-06 02:37:34 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_aux.c \
|
2010-07-22 13:16:22 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_expr.c \
|
2011-08-17 17:17:32 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_term.c \
|
2010-07-22 13:16:22 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer.c \
|
|
|
|
$(TOP)/ext/fts3/fts3_write.c \
|
|
|
|
$(TOP)/ext/async/sqlite3async.c
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
# Header files used by all library source files.
|
|
|
|
#
|
|
|
|
HDR = \
|
|
|
|
$(TOP)/src/btree.h \
|
|
|
|
$(TOP)/src/btreeInt.h \
|
|
|
|
$(TOP)/src/hash.h \
|
|
|
|
$(TOP)/src/hwtime.h \
|
2010-07-22 13:16:22 +00:00
|
|
|
keywordhash.h \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/mutex.h \
|
|
|
|
opcodes.h \
|
|
|
|
$(TOP)/src/os.h \
|
|
|
|
$(TOP)/src/os_common.h \
|
2010-07-22 13:16:22 +00:00
|
|
|
$(TOP)/src/pager.h \
|
|
|
|
$(TOP)/src/pcache.h \
|
|
|
|
parse.h \
|
|
|
|
sqlite3.h \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/sqlite3ext.h \
|
|
|
|
$(TOP)/src/sqliteInt.h \
|
2010-07-22 13:16:22 +00:00
|
|
|
$(TOP)/src/sqliteLimit.h \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/src/vdbe.h \
|
|
|
|
$(TOP)/src/vdbeInt.h \
|
|
|
|
config.h
|
|
|
|
|
|
|
|
# Header files used by extensions
|
|
|
|
#
|
2010-07-22 13:16:22 +00:00
|
|
|
EXTHDR += \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/ext/fts1/fts1.h \
|
|
|
|
$(TOP)/ext/fts1/fts1_hash.h \
|
|
|
|
$(TOP)/ext/fts1/fts1_tokenizer.h
|
2010-07-22 13:16:22 +00:00
|
|
|
EXTHDR += \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/ext/fts2/fts2.h \
|
|
|
|
$(TOP)/ext/fts2/fts2_hash.h \
|
|
|
|
$(TOP)/ext/fts2/fts2_tokenizer.h
|
2010-07-22 13:16:22 +00:00
|
|
|
EXTHDR += \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/ext/fts3/fts3.h \
|
2009-12-19 20:56:40 +00:00
|
|
|
$(TOP)/ext/fts3/fts3Int.h \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/ext/fts3/fts3_hash.h \
|
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer.h
|
2010-07-22 13:16:22 +00:00
|
|
|
EXTHDR += \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(TOP)/ext/rtree/rtree.h
|
2010-07-22 13:16:22 +00:00
|
|
|
EXTHDR += \
|
2009-02-20 20:33:35 +00:00
|
|
|
$(TOP)/ext/icu/sqliteicu.h
|
2011-02-16 21:14:46 +00:00
|
|
|
EXTHDR += \
|
|
|
|
$(TOP)/ext/rtree/sqlite3rtree.h
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
# This is the default Makefile target. The objects listed here
|
|
|
|
# are what get build when you type just "make" with no arguments.
|
|
|
|
#
|
2013-01-10 02:14:37 +00:00
|
|
|
all: sqlite3.h libsqlcipher.la sqlcipher$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la)
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
Makefile: $(TOP)/Makefile.in
|
|
|
|
./config.status
|
|
|
|
|
2013-01-10 02:14:37 +00:00
|
|
|
sqlcipher.pc: $(TOP)/sqlcipher.pc.in
|
2009-02-20 20:33:35 +00:00
|
|
|
./config.status
|
|
|
|
|
2013-01-10 02:14:37 +00:00
|
|
|
libsqlcipher.la: $(LIBOBJ)
|
2008-07-30 13:15:43 +00:00
|
|
|
$(LTLINK) -o $@ $(LIBOBJ) $(TLIBS) \
|
|
|
|
${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8"
|
|
|
|
|
2013-01-10 02:14:37 +00:00
|
|
|
libtclsqlite3.la: tclsqlite.lo libsqlcipher.la
|
2008-07-30 13:15:43 +00:00
|
|
|
$(LTLINK) -o $@ tclsqlite.lo \
|
2013-01-10 02:14:37 +00:00
|
|
|
libsqlcipher.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
|
2009-02-20 20:33:35 +00:00
|
|
|
-rpath "$(TCLLIBDIR)" \
|
|
|
|
-version-info "8:6:8" \
|
|
|
|
-avoid-version
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2013-01-10 02:14:37 +00:00
|
|
|
sqlcipher$(TEXE): $(TOP)/src/shell.c libsqlcipher.la sqlite3.h
|
2008-07-30 13:15:43 +00:00
|
|
|
$(LTLINK) $(READLINE_FLAGS) \
|
2013-01-10 02:14:37 +00:00
|
|
|
-o $@ $(TOP)/src/shell.c libsqlcipher.la \
|
2008-07-30 13:15:43 +00:00
|
|
|
$(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
|
|
|
|
|
2013-05-21 20:38:11 +00:00
|
|
|
mptester$(EXE): sqlite3.c $(TOP)/mptest/mptest.c
|
|
|
|
$(LTLINK) -o $@ -I. $(TOP)/mptest/mptest.c sqlite3.c \
|
|
|
|
$(TLIBS) -rpath "$(libdir)"
|
|
|
|
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
# This target creates a directory named "tsrc" and fills it with
|
|
|
|
# copies of all of the C source code and header files needed to
|
|
|
|
# build on the target system. Some of the C source code and header
|
|
|
|
# files are automatically generated. This target takes care of
|
|
|
|
# all that automatic generation.
|
|
|
|
#
|
2010-07-22 13:16:22 +00:00
|
|
|
.target_source: $(SRC) $(TOP)/tool/vdbe-compress.tcl
|
2008-07-30 13:15:43 +00:00
|
|
|
rm -rf tsrc
|
2010-07-22 13:16:22 +00:00
|
|
|
mkdir tsrc
|
|
|
|
cp -f $(SRC) tsrc
|
2008-07-30 13:15:43 +00:00
|
|
|
rm tsrc/sqlite.h.in tsrc/parse.y
|
2009-08-11 20:01:51 +00:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/vdbe-compress.tcl <tsrc/vdbe.c >vdbe.new
|
|
|
|
mv vdbe.new tsrc/vdbe.c
|
2008-07-30 13:15:43 +00:00
|
|
|
touch .target_source
|
|
|
|
|
|
|
|
sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl
|
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl
|
2013-05-21 20:38:11 +00:00
|
|
|
cp tsrc/shell.c tsrc/sqlite3ext.h .
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2012-01-18 05:18:26 +00:00
|
|
|
tclsqlite3.c: sqlite3.c
|
|
|
|
echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c
|
|
|
|
cat sqlite3.c >>tclsqlite3.c
|
|
|
|
echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c
|
|
|
|
cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
|
|
|
|
|
2011-12-26 19:52:17 +00:00
|
|
|
sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl
|
|
|
|
$(TCLSH_CMD) $(TOP)/tool/split-sqlite3c.tcl
|
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
# Rule to build the amalgamation
|
|
|
|
#
|
|
|
|
sqlite3.lo: sqlite3.c
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
# Rules to build the LEMON compiler generator
|
|
|
|
#
|
2009-08-11 20:01:51 +00:00
|
|
|
lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/src/lempar.c
|
2008-07-30 13:15:43 +00:00
|
|
|
$(BCC) -o $@ $(TOP)/tool/lemon.c
|
2009-08-11 20:01:51 +00:00
|
|
|
cp $(TOP)/src/lempar.c .
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
# Rules to build individual *.o files from generated *.c files. This
|
|
|
|
# applies to:
|
2008-07-30 13:15:43 +00:00
|
|
|
#
|
2010-07-22 13:16:22 +00:00
|
|
|
# parse.o
|
|
|
|
# opcodes.o
|
|
|
|
#
|
|
|
|
parse.lo: parse.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c parse.c
|
|
|
|
|
|
|
|
opcodes.lo: opcodes.c
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c opcodes.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2008-07-30 17:15:55 +00:00
|
|
|
# BEGIN CRYPTO
|
|
|
|
crypto.lo: $(TOP)/src/crypto.c $(HDR)
|
|
|
|
$(LTCOMPILE) -c $(TOP)/src/crypto.c
|
2011-03-02 18:11:00 +00:00
|
|
|
crypto_impl.lo: $(TOP)/src/crypto_impl.c $(HDR)
|
|
|
|
$(LTCOMPILE) -c $(TOP)/src/crypto_impl.c
|
2013-05-31 06:18:05 +00:00
|
|
|
crypto_openssl.lo: $(TOP)/src/crypto_openssl.c $(HDR)
|
|
|
|
$(LTCOMPILE) -c $(TOP)/src/crypto_openssl.c
|
|
|
|
crypto_libtomcrypt.lo: $(TOP)/src/crypto_libtomcrypt.c $(HDR)
|
|
|
|
$(LTCOMPILE) -c $(TOP)/src/crypto_libtomcrypt.c
|
2013-06-05 17:43:08 +00:00
|
|
|
crypto_cc.lo: $(TOP)/src/crypto_cc.c $(HDR)
|
|
|
|
$(LTCOMPILE) -c $(TOP)/src/crypto_cc.c
|
2008-07-30 17:15:55 +00:00
|
|
|
# END CRYPTO
|
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
# Rules to build individual *.o files from files in the src directory.
|
2008-07-30 13:15:43 +00:00
|
|
|
#
|
|
|
|
alter.lo: $(TOP)/src/alter.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/alter.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
analyze.lo: $(TOP)/src/analyze.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/analyze.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
attach.lo: $(TOP)/src/attach.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/attach.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
auth.lo: $(TOP)/src/auth.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/auth.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2009-02-20 22:15:53 +00:00
|
|
|
backup.lo: $(TOP)/src/backup.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/backup.c
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
bitvec.lo: $(TOP)/src/bitvec.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/bitvec.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
btmutex.lo: $(TOP)/src/btmutex.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btmutex.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
btree.lo: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btree.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
build.lo: $(TOP)/src/build.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/build.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
callback.lo: $(TOP)/src/callback.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/callback.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
complete.lo: $(TOP)/src/complete.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/complete.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2010-05-18 16:22:17 +00:00
|
|
|
ctime.lo: $(TOP)/src/ctime.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/ctime.c
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
date.lo: $(TOP)/src/date.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
delete.lo: $(TOP)/src/delete.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
expr.lo: $(TOP)/src/expr.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/expr.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
fault.lo: $(TOP)/src/fault.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fault.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2009-12-03 21:24:07 +00:00
|
|
|
fkey.lo: $(TOP)/src/fkey.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fkey.c
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
func.lo: $(TOP)/src/func.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/func.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
global.lo: $(TOP)/src/global.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/global.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
hash.lo: $(TOP)/src/hash.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/hash.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
insert.lo: $(TOP)/src/insert.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/insert.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
journal.lo: $(TOP)/src/journal.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/journal.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
legacy.lo: $(TOP)/src/legacy.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/legacy.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
loadext.lo: $(TOP)/src/loadext.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/loadext.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
main.lo: $(TOP)/src/main.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/main.c
|
|
|
|
|
|
|
|
malloc.lo: $(TOP)/src/malloc.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/malloc.c
|
|
|
|
|
2009-02-20 20:33:35 +00:00
|
|
|
mem0.lo: $(TOP)/src/mem0.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem0.c
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
mem1.lo: $(TOP)/src/mem1.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem1.c
|
|
|
|
|
|
|
|
mem2.lo: $(TOP)/src/mem2.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem2.c
|
|
|
|
|
|
|
|
mem3.lo: $(TOP)/src/mem3.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem3.c
|
|
|
|
|
|
|
|
mem5.lo: $(TOP)/src/mem5.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem5.c
|
|
|
|
|
2009-02-20 20:33:35 +00:00
|
|
|
memjournal.lo: $(TOP)/src/memjournal.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/memjournal.c
|
2008-08-19 05:05:45 +00:00
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
mutex.lo: $(TOP)/src/mutex.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex.c
|
|
|
|
|
2009-02-20 20:33:35 +00:00
|
|
|
mutex_noop.lo: $(TOP)/src/mutex_noop.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_noop.c
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
mutex_unix.lo: $(TOP)/src/mutex_unix.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_unix.c
|
|
|
|
|
|
|
|
mutex_w32.lo: $(TOP)/src/mutex_w32.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_w32.c
|
|
|
|
|
2009-04-21 14:39:00 +00:00
|
|
|
notify.lo: $(TOP)/src/notify.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/notify.c
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
pager.lo: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pager.c
|
|
|
|
|
|
|
|
pcache.lo: $(TOP)/src/pcache.c $(HDR) $(TOP)/src/pcache.h
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache.c
|
|
|
|
|
|
|
|
pcache1.lo: $(TOP)/src/pcache1.c $(HDR) $(TOP)/src/pcache.h
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache1.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
os.lo: $(TOP)/src/os.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
os_unix.lo: $(TOP)/src/os_unix.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_unix.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
os_win.lo: $(TOP)/src/os_win.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_win.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
pragma.lo: $(TOP)/src/pragma.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pragma.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
prepare.lo: $(TOP)/src/prepare.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/prepare.c
|
|
|
|
|
|
|
|
printf.lo: $(TOP)/src/printf.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/printf.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
random.lo: $(TOP)/src/random.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/random.c
|
|
|
|
|
|
|
|
resolve.lo: $(TOP)/src/resolve.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/resolve.c
|
|
|
|
|
|
|
|
rowset.lo: $(TOP)/src/rowset.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/rowset.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
select.lo: $(TOP)/src/select.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/select.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
status.lo: $(TOP)/src/status.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/status.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
table.lo: $(TOP)/src/table.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/tokenize.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
trigger.lo: $(TOP)/src/trigger.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/trigger.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
update.lo: $(TOP)/src/update.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/update.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
utf.lo: $(TOP)/src/utf.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/utf.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
util.lo: $(TOP)/src/util.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/util.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
vacuum.lo: $(TOP)/src/vacuum.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vacuum.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
vdbe.lo: $(TOP)/src/vdbe.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbe.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
vdbeapi.lo: $(TOP)/src/vdbeapi.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeapi.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
vdbeaux.lo: $(TOP)/src/vdbeaux.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeaux.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
vdbeblob.lo: $(TOP)/src/vdbeblob.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeblob.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
vdbemem.lo: $(TOP)/src/vdbemem.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbemem.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2011-12-26 19:52:17 +00:00
|
|
|
vdbesort.lo: $(TOP)/src/vdbesort.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbesort.c
|
|
|
|
|
2009-12-19 20:56:40 +00:00
|
|
|
vdbetrace.lo: $(TOP)/src/vdbetrace.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbetrace.c
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
vtab.lo: $(TOP)/src/vtab.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vtab.c
|
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
wal.lo: $(TOP)/src/wal.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wal.c
|
|
|
|
|
2009-02-20 20:33:35 +00:00
|
|
|
walker.lo: $(TOP)/src/walker.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/walker.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
where.lo: $(TOP)/src/where.c $(HDR)
|
2009-02-20 20:33:35 +00:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/where.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR)
|
|
|
|
$(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c
|
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR)
|
|
|
|
$(LTCOMPILE) -DTCLSH=1 -o $@ -c $(TOP)/src/tclsqlite.c
|
|
|
|
|
|
|
|
tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR)
|
2010-08-28 12:35:57 +00:00
|
|
|
$(LTCOMPILE) -DUSE_TCL_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2013-01-10 02:14:37 +00:00
|
|
|
tclsqlcipher$(TEXE): tclsqlite-shell.lo libsqlcipher.la
|
2008-07-30 13:15:43 +00:00
|
|
|
$(LTLINK) -o $@ tclsqlite-shell.lo \
|
2013-01-10 02:14:37 +00:00
|
|
|
libsqlcipher.la $(LIBTCL)
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
# Rules to build opcodes.c and opcodes.h
|
|
|
|
#
|
|
|
|
opcodes.c: opcodes.h $(TOP)/mkopcodec.awk
|
2011-12-26 19:52:17 +00:00
|
|
|
$(NAWK) -f $(TOP)/mkopcodec.awk opcodes.h >opcodes.c
|
2010-07-22 13:16:22 +00:00
|
|
|
|
|
|
|
opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk
|
|
|
|
cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes.h
|
|
|
|
|
|
|
|
# Rules to build parse.c and parse.h - the outputs of lemon.
|
|
|
|
#
|
|
|
|
parse.h: parse.c
|
|
|
|
|
|
|
|
parse.c: $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/addopcodes.awk
|
|
|
|
cp $(TOP)/src/parse.y .
|
|
|
|
rm -f parse.h
|
|
|
|
./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y
|
|
|
|
mv parse.h parse.h.temp
|
|
|
|
$(NAWK) -f $(TOP)/addopcodes.awk parse.h.temp >parse.h
|
|
|
|
|
|
|
|
sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest.uuid $(TOP)/VERSION
|
2011-12-26 19:52:17 +00:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h
|
2010-07-22 13:16:22 +00:00
|
|
|
|
|
|
|
keywordhash.h: $(TOP)/tool/mkkeywordhash.c
|
|
|
|
$(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/mkkeywordhash.c
|
|
|
|
./mkkeywordhash$(BEXE) >keywordhash.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Rules to build the extension objects.
|
|
|
|
#
|
|
|
|
icu.lo: $(TOP)/ext/icu/icu.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/icu/icu.c
|
|
|
|
|
|
|
|
fts2.lo: $(TOP)/ext/fts2/fts2.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2.c
|
|
|
|
|
|
|
|
fts2_hash.lo: $(TOP)/ext/fts2/fts2_hash.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_hash.c
|
|
|
|
|
|
|
|
fts2_icu.lo: $(TOP)/ext/fts2/fts2_icu.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_icu.c
|
|
|
|
|
|
|
|
fts2_porter.lo: $(TOP)/ext/fts2/fts2_porter.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_porter.c
|
|
|
|
|
|
|
|
fts2_tokenizer.lo: $(TOP)/ext/fts2/fts2_tokenizer.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer.c
|
|
|
|
|
|
|
|
fts2_tokenizer1.lo: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer1.c
|
|
|
|
|
|
|
|
fts3.lo: $(TOP)/ext/fts3/fts3.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3.c
|
|
|
|
|
2011-05-06 02:37:34 +00:00
|
|
|
fts3_aux.lo: $(TOP)/ext/fts3/fts3_aux.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_aux.c
|
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
fts3_expr.lo: $(TOP)/ext/fts3/fts3_expr.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_expr.c
|
|
|
|
|
|
|
|
fts3_hash.lo: $(TOP)/ext/fts3/fts3_hash.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_hash.c
|
|
|
|
|
|
|
|
fts3_icu.lo: $(TOP)/ext/fts3/fts3_icu.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_icu.c
|
|
|
|
|
|
|
|
fts3_porter.lo: $(TOP)/ext/fts3/fts3_porter.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_porter.c
|
|
|
|
|
2011-08-17 17:17:32 +00:00
|
|
|
fts3_snippet.lo: $(TOP)/ext/fts3/fts3_snippet.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_snippet.c
|
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
fts3_tokenizer.lo: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer.c
|
|
|
|
|
|
|
|
fts3_tokenizer1.lo: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer1.c
|
|
|
|
|
2013-05-21 20:38:11 +00:00
|
|
|
fts3_tokenize_vtab.lo: $(TOP)/ext/fts3/fts3_tokenize_vtab.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenize_vtab.c
|
|
|
|
|
2012-07-18 18:42:52 +00:00
|
|
|
fts3_unicode.lo: $(TOP)/ext/fts3/fts3_unicode.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode.c
|
|
|
|
|
|
|
|
fts3_unicode2.lo: $(TOP)/ext/fts3/fts3_unicode2.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode2.c
|
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
fts3_write.lo: $(TOP)/ext/fts3/fts3_write.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_write.c
|
|
|
|
|
|
|
|
rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/rtree/rtree.c
|
|
|
|
|
|
|
|
|
|
|
|
# Rules to build the 'testfixture' application.
|
|
|
|
#
|
|
|
|
# If using the amalgamation, use sqlite3.c directly to build the test
|
2013-01-10 02:14:37 +00:00
|
|
|
# fixture. Otherwise link against libsqlcipher.la. (This distinction is
|
2010-07-22 13:16:22 +00:00
|
|
|
# necessary because the test fixture requires non-API symbols which are
|
|
|
|
# hidden when the library is built via the amalgamation).
|
|
|
|
#
|
|
|
|
TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1
|
|
|
|
TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE
|
2011-12-26 19:52:17 +00:00
|
|
|
TESTFIXTURE_FLAGS += -DBUILD_sqlite
|
2010-07-22 13:16:22 +00:00
|
|
|
|
2013-01-10 02:14:37 +00:00
|
|
|
TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlcipher.la
|
2010-07-22 13:16:22 +00:00
|
|
|
TESTFIXTURE_SRC1 = sqlite3.c
|
2013-05-21 20:38:11 +00:00
|
|
|
TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c
|
|
|
|
TESTFIXTURE_SRC += $(TESTFIXTURE_SRC$(USE_AMALGAMATION))
|
2010-07-22 13:16:22 +00:00
|
|
|
|
2008-07-30 13:15:43 +00:00
|
|
|
testfixture$(TEXE): $(TESTFIXTURE_SRC)
|
2010-07-22 13:16:22 +00:00
|
|
|
$(LTLINK) -DSQLITE_NO_SYNC=1 $(TEMP_STORE) $(TESTFIXTURE_FLAGS) \
|
2008-07-30 13:15:43 +00:00
|
|
|
-o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS)
|
|
|
|
|
|
|
|
|
2013-01-10 02:14:37 +00:00
|
|
|
fulltest: testfixture$(TEXE) sqlcipher$(TEXE)
|
2008-07-30 13:15:43 +00:00
|
|
|
./testfixture$(TEXE) $(TOP)/test/all.test
|
|
|
|
|
2013-01-10 02:14:37 +00:00
|
|
|
soaktest: testfixture$(TEXE) sqlcipher$(TEXE)
|
2010-07-22 13:16:22 +00:00
|
|
|
./testfixture$(TEXE) $(TOP)/test/all.test -soak=1
|
|
|
|
|
2013-05-24 20:36:21 +00:00
|
|
|
fulltestonly: testfixture$(TEXE) sqlcipher$(TEXE)
|
2013-01-15 22:38:05 +00:00
|
|
|
./testfixture$(TEXE) $(TOP)/test/full.test
|
|
|
|
|
2013-01-10 02:14:37 +00:00
|
|
|
test: testfixture$(TEXE) sqlcipher$(TEXE)
|
2008-07-30 13:15:43 +00:00
|
|
|
./testfixture$(TEXE) $(TOP)/test/veryquick.test
|
|
|
|
|
2011-12-26 19:52:17 +00:00
|
|
|
sqlite3_analyzer.c: sqlite3.c $(TOP)/src/test_stat.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
|
|
|
|
echo "#define TCLSH 2" > $@
|
|
|
|
cat sqlite3.c $(TOP)/src/test_stat.c $(TOP)/src/tclsqlite.c >> $@
|
|
|
|
echo "static const char *tclsh_main_loop(void){" >> $@
|
|
|
|
echo "static const char *zMainloop = " >> $@
|
|
|
|
$(NAWK) -f $(TOP)/tool/tostr.awk $(TOP)/tool/spaceanal.tcl >> $@
|
|
|
|
echo "; return zMainloop; }" >> $@
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2011-12-26 19:52:17 +00:00
|
|
|
sqlite3_analyzer$(TEXE): sqlite3_analyzer.c
|
|
|
|
$(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS)
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2010-07-22 13:16:22 +00:00
|
|
|
# Standard install and cleanup targets
|
|
|
|
#
|
2013-01-10 02:14:37 +00:00
|
|
|
lib_install: libsqlcipher.la
|
2008-07-30 13:15:43 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(libdir)
|
2013-01-10 02:14:37 +00:00
|
|
|
$(LTINSTALL) libsqlcipher.la $(DESTDIR)$(libdir)
|
2009-04-21 14:39:00 +00:00
|
|
|
|
2013-01-10 02:14:37 +00:00
|
|
|
install: sqlcipher$(BEXE) lib_install sqlite3.h sqlcipher.pc ${HAVE_TCL:1=tcl_install}
|
2008-07-30 13:15:43 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(bindir)
|
2013-01-10 02:14:37 +00:00
|
|
|
$(LTINSTALL) sqlcipher$(BEXE) $(DESTDIR)$(bindir)
|
2008-07-30 13:15:43 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(includedir)
|
|
|
|
$(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir)
|
|
|
|
$(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir)
|
2008-08-19 05:05:45 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(pkgconfigdir)
|
2013-01-10 02:14:37 +00:00
|
|
|
$(INSTALL) -m 0644 sqlcipher.pc $(DESTDIR)$(pkgconfigdir)
|
2008-07-30 13:15:43 +00:00
|
|
|
|
2009-02-20 20:33:35 +00:00
|
|
|
pkgIndex.tcl:
|
|
|
|
echo 'package ifneeded sqlite3 $(RELEASE) [list load $(TCLLIBDIR)/libtclsqlite3.so sqlite3]' > $@
|
2009-04-21 14:39:00 +00:00
|
|
|
tcl_install: lib_install libtclsqlite3.la pkgIndex.tcl
|
2009-02-20 20:33:35 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(TCLLIBDIR)
|
|
|
|
$(LTINSTALL) libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)
|
|
|
|
rm -f $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.a
|
|
|
|
$(INSTALL) -m 0644 pkgIndex.tcl $(DESTDIR)$(TCLLIBDIR)
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
clean:
|
2013-01-10 02:14:37 +00:00
|
|
|
rm -f *.lo *.la *.o sqlcipher$(TEXE) libsqlcipher.la
|
2008-07-30 13:15:43 +00:00
|
|
|
rm -f sqlite3.h opcodes.*
|
2010-07-22 13:16:22 +00:00
|
|
|
rm -rf .libs .deps
|
2008-07-30 13:15:43 +00:00
|
|
|
rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz
|
|
|
|
rm -f mkkeywordhash$(BEXE) keywordhash.h
|
|
|
|
rm -f *.da *.bb *.bbg gmon.out
|
2012-05-15 23:05:34 +00:00
|
|
|
rm -rf quota2a quota2b quota2c
|
2010-07-22 13:16:22 +00:00
|
|
|
rm -rf tsrc .target_source
|
2013-01-10 02:14:37 +00:00
|
|
|
rm -f tclsqlcipher$(TEXE)
|
2008-07-30 13:15:43 +00:00
|
|
|
rm -f testfixture$(TEXE) test.db
|
2011-12-26 19:52:17 +00:00
|
|
|
rm -f sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def
|
2010-07-22 13:16:22 +00:00
|
|
|
rm -f sqlite3.c
|
2013-05-21 20:38:11 +00:00
|
|
|
rm -f sqlite3rc.h
|
|
|
|
rm -f shell.c sqlite3ext.h
|
2011-12-26 19:52:17 +00:00
|
|
|
rm -f sqlite3_analyzer$(TEXE) sqlite3_analyzer.c
|
2013-01-15 22:38:05 +00:00
|
|
|
rm -f sqlite-*-output.vsix
|
2013-05-21 20:38:11 +00:00
|
|
|
rm -f mptester mptester.exe
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
distclean: clean
|
2013-01-10 02:14:37 +00:00
|
|
|
rm -f config.log config.status libtool Makefile sqlcipher.pc
|
2008-07-30 13:15:43 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Windows section
|
|
|
|
#
|
|
|
|
dll: sqlite3.dll
|
|
|
|
|
|
|
|
REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o)
|
|
|
|
|
|
|
|
$(REAL_LIBOBJ): $(LIBOBJ)
|
|
|
|
|
|
|
|
sqlite3.def: $(REAL_LIBOBJ)
|
|
|
|
echo 'EXPORTS' >sqlite3.def
|
|
|
|
nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \
|
|
|
|
| sed 's/^.* _//' >>sqlite3.def
|
|
|
|
|
|
|
|
sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def
|
|
|
|
$(TCC) -shared -o $@ sqlite3.def \
|
|
|
|
-Wl,"--strip-all" $(REAL_LIBOBJ)
|