2004-06-30 13:41:55 +02: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@
|
|
|
|
|
|
|
|
# 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.)
|
|
|
|
#
|
2008-03-06 17:28:58 +01:00
|
|
|
TCC = @CC@ @CPPFLAGS@ @CFLAGS@ -I. -I${TOP}/src
|
2005-01-03 22:28:56 +01:00
|
|
|
|
2008-05-07 04:42:01 +02:00
|
|
|
# Define this for the autoconf-based build, so that the code knows it can
|
|
|
|
# include the generated config.h
|
|
|
|
#
|
|
|
|
TCC += -D_HAVE_SQLITE_CONFIG_H
|
|
|
|
|
2005-01-03 22:28:56 +01: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.
|
|
|
|
#
|
2005-11-25 00:14:00 +01:00
|
|
|
TCC += @TARGET_DEBUG@ @XTHREADCONNECT@
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
# Compiler options needed for programs that use the TCL library.
|
|
|
|
#
|
2004-12-10 04:08:12 +01:00
|
|
|
TCC += @TCL_INCLUDE_SPEC@
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
# The library that programs using TCL must link against.
|
|
|
|
#
|
2004-11-25 14:50:01 +01:00
|
|
|
LIBTCL = @TCL_LIB_SPEC@ @TCL_LIBS@
|
2004-06-30 13:41:55 +02: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
|
|
|
|
#
|
2007-09-03 18:12:09 +02:00
|
|
|
TCC += -DSQLITE_THREADSAFE=@SQLITE_THREADSAFE@
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2006-02-01 02:55:17 +01:00
|
|
|
# Do threads override each others locks by default (1), or do we test (-1)
|
|
|
|
#
|
|
|
|
TCC += -DSQLITE_THREAD_OVERRIDE_LOCK=@THREADSOVERRIDELOCKS@
|
|
|
|
|
2008-03-09 03:20:11 +01:00
|
|
|
# Any target libraries which libsqlite must be linked against
|
|
|
|
#
|
2007-02-17 15:46:31 +01:00
|
|
|
TLIBS = @LIBS@
|
2006-01-23 19:06:52 +01:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
# Flags controlling use of the in memory btree implementation
|
|
|
|
#
|
2008-06-26 12:54:12 +02:00
|
|
|
# SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
|
2004-06-30 13:41:55 +02:00
|
|
|
# default to file, 2 to default to memory, and 3 to force temporary
|
|
|
|
# tables to always be in memory.
|
|
|
|
#
|
2008-06-26 12:54:12 +02:00
|
|
|
TEMP_STORE = -DSQLITE_TEMP_STORE=@TEMP_STORE@
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-07-22 07:05:01 +02:00
|
|
|
# Enable/disable loadable extensions, and other optional features
|
2008-10-22 20:27:31 +02: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-07-22 07:05:01 +02:00
|
|
|
OPT_FEATURE_FLAGS = @OPT_FEATURE_FLAGS@
|
|
|
|
|
|
|
|
TCC += $(OPT_FEATURE_FLAGS)
|
2008-03-06 05:14:17 +01:00
|
|
|
|
2008-10-22 20:27:31 +02: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)
|
|
|
|
|
2004-11-27 16:52:16 +01:00
|
|
|
# Version numbers and release number for the SQLite being compiled.
|
|
|
|
#
|
|
|
|
VERSION = @VERSION@
|
2005-02-05 08:33:34 +01:00
|
|
|
VERSION_NUMBER = @VERSION_NUMBER@
|
2004-11-27 16:52:16 +01:00
|
|
|
RELEASE = @RELEASE@
|
|
|
|
|
2004-11-25 14:50:01 +01:00
|
|
|
# Filename extensions
|
|
|
|
#
|
|
|
|
BEXE = @BUILD_EXEEXT@
|
|
|
|
TEXE = @TARGET_EXEEXT@
|
|
|
|
|
2004-11-27 16:52:16 +01:00
|
|
|
# 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.
|
2004-11-25 14:50:01 +01:00
|
|
|
#
|
|
|
|
HAVE_TCL = @HAVE_TCL@
|
|
|
|
|
2008-03-09 03:51:10 +01:00
|
|
|
# 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@
|
|
|
|
|
2004-11-27 16:52:16 +01:00
|
|
|
# The suffix used on shared libraries. Ex: ".dll", ".so", ".dylib"
|
|
|
|
#
|
|
|
|
SHLIB_SUFFIX = @TCL_SHLIB_SUFFIX@
|
|
|
|
|
2008-04-01 04:45:22 +02:00
|
|
|
# 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.
|
|
|
|
#
|
2008-10-22 20:27:31 +02:00
|
|
|
GCOV_CFLAGS1 = -DSQLITE_COVERAGE_TEST=1 -fprofile-arcs -ftest-coverage
|
2008-04-01 04:45:22 +02:00
|
|
|
GCOV_LDFLAGS1 = -lgcov
|
|
|
|
USE_GCOV = @USE_GCOV@
|
|
|
|
LTCOMPILE_EXTRAS += $(GCOV_CFLAGS$(USE_GCOV))
|
|
|
|
LTLINK_EXTRAS += $(GCOV_LDFLAGS$(USE_GCOV))
|
|
|
|
|
|
|
|
|
2004-11-27 16:52:16 +01:00
|
|
|
# The directory into which to store package information for
|
|
|
|
|
|
|
|
# Some standard variables and programs
|
|
|
|
#
|
2008-03-07 03:20:56 +01:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
2004-11-27 16:52:16 +01:00
|
|
|
libdir = @libdir@
|
2008-08-04 06:28:18 +02:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2008-03-06 09:09:12 +01:00
|
|
|
bindir = @bindir@
|
|
|
|
includedir = @includedir@
|
2004-11-27 16:52:16 +01:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
LIBTOOL = ./libtool
|
|
|
|
ALLOWRELEASE = @ALLOWRELEASE@
|
|
|
|
|
|
|
|
# libtool compile/link/install
|
2008-04-01 04:45:22 +02:00
|
|
|
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(TCC) $(LTCOMPILE_EXTRAS)
|
2008-10-12 03:49:41 +02:00
|
|
|
LTLINK = $(LIBTOOL) --mode=link $(TCC) $(LTCOMPILE_EXTRAS) @LDFLAGS@ $(LTLINK_EXTRAS)
|
2004-11-27 16:52:16 +01:00
|
|
|
LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
|
|
|
|
2006-01-23 19:06:52 +01:00
|
|
|
# nawk compatible awk.
|
|
|
|
NAWK = @AWK@
|
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
# You should not have to change anything below this line
|
|
|
|
###############################################################################
|
2004-11-27 16:52:16 +01:00
|
|
|
|
2008-03-04 20:03:08 +01:00
|
|
|
# Object files for the SQLite library (non-amalgamation).
|
|
|
|
#
|
|
|
|
OBJS0 = alter.lo analyze.lo attach.lo auth.lo bitvec.lo btmutex.lo \
|
|
|
|
btree.lo build.lo callback.lo complete.lo date.lo \
|
2008-08-21 20:49:27 +02:00
|
|
|
delete.lo expr.lo fault.lo func.lo global.lo \
|
2008-08-22 19:28:45 +02:00
|
|
|
hash.lo journal.lo insert.lo legacy.lo loadext.lo \
|
2008-10-28 19:58:20 +01:00
|
|
|
main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \
|
2008-11-04 22:51:03 +01:00
|
|
|
memjournal.lo \
|
2008-10-07 17:25:48 +02:00
|
|
|
mutex.lo mutex_noop.lo mutex_os2.lo mutex_unix.lo mutex_w32.lo \
|
2008-03-04 20:03:08 +01:00
|
|
|
opcodes.lo os.lo os_unix.lo os_win.lo os_os2.lo \
|
2008-11-13 15:28:28 +01:00
|
|
|
pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \
|
2008-12-04 21:40:10 +01:00
|
|
|
random.lo resolve.lo rowset.lo select.lo status.lo \
|
2008-08-20 18:35:10 +02:00
|
|
|
table.lo tokenize.lo trigger.lo update.lo \
|
2008-03-04 20:03:08 +01:00
|
|
|
util.lo vacuum.lo \
|
2008-12-04 21:40:10 +01:00
|
|
|
vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo \
|
2008-08-20 18:35:10 +02:00
|
|
|
walker.lo where.lo utf.lo vtab.lo
|
2008-03-04 20:03:08 +01:00
|
|
|
|
|
|
|
# Object files for the amalgamation.
|
|
|
|
#
|
|
|
|
OBJS1 = sqlite3.lo
|
|
|
|
|
|
|
|
# Determine the real value of LIBOBJ based on the 'configure' script
|
|
|
|
#
|
|
|
|
USE_AMALGAMATION = @USE_AMALGAMATION@
|
|
|
|
LIBOBJ = $(OBJS$(USE_AMALGAMATION))
|
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
# All of the source code files.
|
|
|
|
#
|
|
|
|
SRC = \
|
2005-02-15 21:47:57 +01:00
|
|
|
$(TOP)/src/alter.c \
|
2005-07-08 14:13:04 +02:00
|
|
|
$(TOP)/src/analyze.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/attach.c \
|
|
|
|
$(TOP)/src/auth.c \
|
2008-02-26 04:45:59 +01:00
|
|
|
$(TOP)/src/bitvec.c \
|
2007-08-28 04:27:51 +02:00
|
|
|
$(TOP)/src/btmutex.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/btree.c \
|
|
|
|
$(TOP)/src/btree.h \
|
2008-03-13 19:28:03 +01:00
|
|
|
$(TOP)/src/btreeInt.h \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/build.c \
|
2005-05-24 14:01:00 +02:00
|
|
|
$(TOP)/src/callback.c \
|
2005-08-14 19:53:20 +02:00
|
|
|
$(TOP)/src/complete.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/date.c \
|
|
|
|
$(TOP)/src/delete.c \
|
|
|
|
$(TOP)/src/expr.c \
|
2008-01-22 22:30:53 +01:00
|
|
|
$(TOP)/src/fault.c \
|
2008-08-21 20:49:27 +02:00
|
|
|
$(TOP)/src/func.c \
|
2008-06-13 20:24:27 +02:00
|
|
|
$(TOP)/src/global.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/hash.c \
|
|
|
|
$(TOP)/src/hash.h \
|
2008-05-29 22:22:37 +02:00
|
|
|
$(TOP)/src/hwtime.h \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/insert.c \
|
2007-08-28 01:38:43 +02:00
|
|
|
$(TOP)/src/journal.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/legacy.c \
|
2006-06-08 17:28:43 +02:00
|
|
|
$(TOP)/src/loadext.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/main.c \
|
2007-05-07 15:11:10 +02:00
|
|
|
$(TOP)/src/malloc.c \
|
2008-10-28 19:58:20 +01:00
|
|
|
$(TOP)/src/mem0.c \
|
2007-08-28 01:38:43 +02:00
|
|
|
$(TOP)/src/mem1.c \
|
|
|
|
$(TOP)/src/mem2.c \
|
2007-10-19 19:47:24 +02:00
|
|
|
$(TOP)/src/mem3.c \
|
2008-03-02 06:34:10 +01:00
|
|
|
$(TOP)/src/mem5.c \
|
2008-10-21 06:30:31 +02:00
|
|
|
$(TOP)/src/memjournal.c \
|
2007-08-28 01:38:43 +02:00
|
|
|
$(TOP)/src/mutex.c \
|
2008-03-13 19:28:03 +01:00
|
|
|
$(TOP)/src/mutex.h \
|
2008-10-07 17:25:48 +02:00
|
|
|
$(TOP)/src/mutex_noop.c \
|
2007-08-28 18:34:42 +02:00
|
|
|
$(TOP)/src/mutex_os2.c \
|
|
|
|
$(TOP)/src/mutex_unix.c \
|
|
|
|
$(TOP)/src/mutex_w32.c \
|
2005-11-30 04:20:31 +01:00
|
|
|
$(TOP)/src/os.c \
|
2008-03-13 19:28:03 +01:00
|
|
|
$(TOP)/src/os.h \
|
|
|
|
$(TOP)/src/os_common.h \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/os_unix.c \
|
|
|
|
$(TOP)/src/os_win.c \
|
2006-06-03 20:02:15 +02:00
|
|
|
$(TOP)/src/os_os2.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/pager.c \
|
|
|
|
$(TOP)/src/pager.h \
|
|
|
|
$(TOP)/src/parse.y \
|
2008-08-20 16:49:23 +02:00
|
|
|
$(TOP)/src/pcache.c \
|
|
|
|
$(TOP)/src/pcache.h \
|
2008-11-13 15:28:28 +01:00
|
|
|
$(TOP)/src/pcache1.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/pragma.c \
|
2005-05-25 06:11:56 +02:00
|
|
|
$(TOP)/src/prepare.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/printf.c \
|
|
|
|
$(TOP)/src/random.c \
|
2008-08-20 18:35:10 +02:00
|
|
|
$(TOP)/src/resolve.c \
|
2008-12-04 21:40:10 +01:00
|
|
|
$(TOP)/src/rowset.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/select.c \
|
2008-06-19 02:16:08 +02:00
|
|
|
$(TOP)/src/status.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/shell.c \
|
|
|
|
$(TOP)/src/sqlite.h.in \
|
2008-03-13 19:28:03 +01:00
|
|
|
$(TOP)/src/sqlite3ext.h \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/sqliteInt.h \
|
2008-03-13 19:28:03 +01:00
|
|
|
$(TOP)/src/sqliteLimit.h \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(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 \
|
2007-05-17 18:38:30 +02:00
|
|
|
$(TOP)/src/vdbeblob.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/vdbemem.c \
|
|
|
|
$(TOP)/src/vdbeInt.h \
|
2006-06-12 01:41:55 +02:00
|
|
|
$(TOP)/src/vtab.c \
|
2008-08-20 18:35:10 +02:00
|
|
|
$(TOP)/src/walker.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/where.c
|
|
|
|
|
2008-03-13 19:28:03 +01:00
|
|
|
# Generated source code files
|
|
|
|
#
|
|
|
|
SRC += \
|
|
|
|
keywordhash.h \
|
|
|
|
opcodes.c \
|
|
|
|
opcodes.h \
|
|
|
|
parse.c \
|
|
|
|
parse.h \
|
2008-03-20 03:25:35 +01:00
|
|
|
config.h \
|
2008-03-13 19:28:03 +01:00
|
|
|
sqlite3.h
|
|
|
|
|
2006-10-03 21:12:32 +02:00
|
|
|
# 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
|
2008-03-02 06:40:05 +01:00
|
|
|
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-01-02 16:47:01 +01:00
|
|
|
$(TOP)/ext/fts3/fts3_expr.c \
|
|
|
|
$(TOP)/ext/fts3/fts3_expr.h \
|
2008-03-02 06:40:05 +01: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 \
|
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer.h \
|
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer.c \
|
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer1.c
|
|
|
|
SRC += \
|
2008-09-08 10:08:09 +02:00
|
|
|
$(TOP)/ext/icu/sqliteicu.h \
|
2008-03-02 06:40:05 +01:00
|
|
|
$(TOP)/ext/icu/icu.c
|
2008-05-28 19:31:17 +02:00
|
|
|
SRC += \
|
|
|
|
$(TOP)/ext/rtree/rtree.h \
|
|
|
|
$(TOP)/ext/rtree/rtree.c
|
2006-10-03 21:12:32 +02:00
|
|
|
|
2008-03-14 05:11:03 +01:00
|
|
|
# Source code to the library files needed by the test fixture
|
2004-06-30 13:41:55 +02:00
|
|
|
#
|
2008-03-14 05:11:03 +01:00
|
|
|
TESTSRC2 = \
|
2007-09-04 00:15:45 +02:00
|
|
|
$(TOP)/src/attach.c \
|
2008-02-26 04:45:59 +01:00
|
|
|
$(TOP)/src/bitvec.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/btree.c \
|
2007-09-04 00:15:45 +02:00
|
|
|
$(TOP)/src/build.c \
|
2004-11-14 22:56:29 +01:00
|
|
|
$(TOP)/src/date.c \
|
2007-09-04 00:15:45 +02:00
|
|
|
$(TOP)/src/expr.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/func.c \
|
2007-04-03 00:19:38 +02:00
|
|
|
$(TOP)/src/insert.c \
|
2007-05-05 13:48:52 +02:00
|
|
|
$(TOP)/src/malloc.c \
|
2006-02-01 02:55:17 +01:00
|
|
|
$(TOP)/src/os.c \
|
2006-08-13 23:49:07 +02:00
|
|
|
$(TOP)/src/os_os2.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/os_unix.c \
|
|
|
|
$(TOP)/src/os_win.c \
|
|
|
|
$(TOP)/src/pager.c \
|
2008-08-20 16:49:23 +02:00
|
|
|
$(TOP)/src/pcache.c \
|
2008-11-13 15:28:28 +01:00
|
|
|
$(TOP)/src/pcache1.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/pragma.c \
|
2007-09-04 00:15:45 +02:00
|
|
|
$(TOP)/src/prepare.c \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/printf.c \
|
2008-01-22 22:30:53 +01:00
|
|
|
$(TOP)/src/random.c \
|
2007-09-04 00:15:45 +02:00
|
|
|
$(TOP)/src/select.c \
|
2008-03-14 05:11:03 +01:00
|
|
|
$(TOP)/src/tokenize.c \
|
|
|
|
$(TOP)/src/utf.c \
|
|
|
|
$(TOP)/src/util.c \
|
|
|
|
$(TOP)/src/vdbe.c \
|
|
|
|
$(TOP)/src/vdbeapi.c \
|
|
|
|
$(TOP)/src/vdbeaux.c \
|
|
|
|
$(TOP)/src/vdbemem.c \
|
|
|
|
$(TOP)/src/where.c \
|
|
|
|
parse.c
|
|
|
|
|
|
|
|
# Source code to the actual test files.
|
|
|
|
#
|
|
|
|
TESTSRC = \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/test1.c \
|
|
|
|
$(TOP)/src/test2.c \
|
|
|
|
$(TOP)/src/test3.c \
|
|
|
|
$(TOP)/src/test4.c \
|
|
|
|
$(TOP)/src/test5.c \
|
2005-11-26 01:25:00 +01:00
|
|
|
$(TOP)/src/test6.c \
|
2006-01-10 00:50:11 +01:00
|
|
|
$(TOP)/src/test7.c \
|
2006-06-12 01:41:55 +02:00
|
|
|
$(TOP)/src/test8.c \
|
2007-03-29 14:19:11 +02:00
|
|
|
$(TOP)/src/test9.c \
|
2006-08-23 22:07:20 +02:00
|
|
|
$(TOP)/src/test_autoext.c \
|
2006-01-10 00:50:11 +01:00
|
|
|
$(TOP)/src/test_async.c \
|
2007-05-05 20:39:25 +02:00
|
|
|
$(TOP)/src/test_btree.c \
|
2007-05-08 03:08:49 +02:00
|
|
|
$(TOP)/src/test_config.c \
|
2008-01-22 12:50:13 +01:00
|
|
|
$(TOP)/src/test_devsym.c \
|
2008-03-19 17:08:53 +01:00
|
|
|
$(TOP)/src/test_func.c \
|
2007-04-06 17:02:13 +02:00
|
|
|
$(TOP)/src/test_hexio.c \
|
2008-12-22 11:58:46 +01:00
|
|
|
$(TOP)/src/test_journal.c \
|
2007-08-28 01:38:43 +02:00
|
|
|
$(TOP)/src/test_malloc.c \
|
2006-01-25 16:55:37 +01:00
|
|
|
$(TOP)/src/test_md5.c \
|
2008-07-09 00:15:49 +02:00
|
|
|
$(TOP)/src/test_mutex.c \
|
2007-10-05 17:04:12 +02:00
|
|
|
$(TOP)/src/test_onefile.c \
|
2008-04-14 01:13:39 +02:00
|
|
|
$(TOP)/src/test_osinst.c \
|
2008-11-19 02:20:26 +01:00
|
|
|
$(TOP)/src/test_pcache.c \
|
2006-06-15 17:59:19 +02:00
|
|
|
$(TOP)/src/test_schema.c \
|
2006-01-25 16:55:37 +01:00
|
|
|
$(TOP)/src/test_server.c \
|
2006-06-14 01:51:34 +02:00
|
|
|
$(TOP)/src/test_tclvar.c \
|
2008-03-14 05:11:03 +01:00
|
|
|
$(TOP)/src/test_thread.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
# Header files used by all library source files.
|
|
|
|
#
|
|
|
|
HDR = \
|
|
|
|
sqlite3.h \
|
|
|
|
$(TOP)/src/btree.h \
|
2007-05-05 13:48:52 +02:00
|
|
|
$(TOP)/src/btreeInt.h \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/hash.h \
|
2008-05-29 22:22:37 +02:00
|
|
|
$(TOP)/src/hwtime.h \
|
2007-06-19 17:23:48 +02:00
|
|
|
$(TOP)/src/sqliteLimit.h \
|
2007-08-28 18:34:42 +02:00
|
|
|
$(TOP)/src/mutex.h \
|
2004-06-30 13:41:55 +02:00
|
|
|
opcodes.h \
|
|
|
|
$(TOP)/src/os.h \
|
|
|
|
$(TOP)/src/os_common.h \
|
2006-06-08 17:28:43 +02:00
|
|
|
$(TOP)/src/sqlite3ext.h \
|
2004-06-30 13:41:55 +02:00
|
|
|
$(TOP)/src/sqliteInt.h \
|
|
|
|
$(TOP)/src/vdbe.h \
|
2008-03-13 19:28:03 +01:00
|
|
|
$(TOP)/src/vdbeInt.h \
|
2008-03-06 08:19:20 +01:00
|
|
|
parse.h \
|
2008-03-20 03:25:35 +01:00
|
|
|
config.h
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2006-10-03 21:12:32 +02:00
|
|
|
# Header files used by extensions
|
|
|
|
#
|
|
|
|
HDR += \
|
|
|
|
$(TOP)/ext/fts1/fts1.h \
|
|
|
|
$(TOP)/ext/fts1/fts1_hash.h \
|
|
|
|
$(TOP)/ext/fts1/fts1_tokenizer.h
|
2008-03-02 06:40:05 +01:00
|
|
|
HDR += \
|
|
|
|
$(TOP)/ext/fts2/fts2.h \
|
|
|
|
$(TOP)/ext/fts2/fts2_hash.h \
|
|
|
|
$(TOP)/ext/fts2/fts2_tokenizer.h
|
|
|
|
HDR += \
|
|
|
|
$(TOP)/ext/fts3/fts3.h \
|
2009-01-02 16:47:01 +01:00
|
|
|
$(TOP)/ext/fts3/fts3_expr.h \
|
2008-03-02 06:40:05 +01:00
|
|
|
$(TOP)/ext/fts3/fts3_hash.h \
|
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer.h
|
2008-05-28 19:31:17 +02:00
|
|
|
HDR += \
|
|
|
|
$(TOP)/ext/rtree/rtree.h
|
2008-09-08 10:08:09 +02:00
|
|
|
HDR += \
|
|
|
|
$(TOP)/ext/icu/sqliteicu.h
|
2006-10-03 21:12:32 +02:00
|
|
|
|
2008-03-14 05:11:03 +01:00
|
|
|
# If using the amalgamation, use sqlite3.c directly to build the test
|
|
|
|
# fixture. Otherwise link against libsqlite3.la. (This distinction is
|
|
|
|
# necessary because the test fixture requires non-API symbols which are
|
|
|
|
# hidden when the library is built via the amalgamation).
|
|
|
|
#
|
|
|
|
TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la
|
|
|
|
TESTFIXTURE_SRC1 = sqlite3.c
|
|
|
|
TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c $(TESTFIXTURE_SRC$(USE_AMALGAMATION))
|
|
|
|
|
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
# This is the default Makefile target. The objects listed here
|
|
|
|
# are what get build when you type just "make" with no arguments.
|
|
|
|
#
|
2004-11-25 14:50:01 +01:00
|
|
|
all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la)
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
Makefile: $(TOP)/Makefile.in
|
|
|
|
./config.status
|
|
|
|
|
2009-01-26 21:59:02 +01:00
|
|
|
sqlite3.pc: $(TOP)/sqlite3.pc.in
|
|
|
|
./config.status
|
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
# Generate the file "last_change" which contains the date of change
|
|
|
|
# of the most recently modified source code file
|
|
|
|
#
|
|
|
|
last_change: $(SRC)
|
2006-06-27 22:05:23 +02:00
|
|
|
cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -1 \
|
2006-01-23 19:06:52 +01:00
|
|
|
| $(NAWK) '{print $$5,$$6}' >last_change
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
libsqlite3.la: $(LIBOBJ)
|
2008-03-14 00:28:22 +01:00
|
|
|
$(LTLINK) -o $@ $(LIBOBJ) $(TLIBS) \
|
2008-03-13 20:55:20 +01:00
|
|
|
${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8"
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
libtclsqlite3.la: tclsqlite.lo libsqlite3.la
|
2008-03-14 00:28:22 +01:00
|
|
|
$(LTLINK) -o $@ tclsqlite.lo \
|
2008-07-25 14:49:44 +02:00
|
|
|
libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
|
2008-03-13 20:55:20 +01:00
|
|
|
-rpath "$(libdir)/sqlite" \
|
2009-01-17 16:53:31 +01:00
|
|
|
-version-info "8:6:8"
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2007-12-17 17:20:06 +01:00
|
|
|
sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h
|
2008-03-09 03:20:11 +01:00
|
|
|
$(LTLINK) $(READLINE_FLAGS) \
|
2007-12-13 19:20:46 +01:00
|
|
|
-o $@ $(TOP)/src/shell.c libsqlite3.la \
|
2008-03-13 20:55:20 +01:00
|
|
|
$(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
|
2007-12-13 19:20:46 +01:00
|
|
|
|
2004-06-30 13:41:55 +02: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.
|
|
|
|
#
|
2008-03-13 19:28:03 +01:00
|
|
|
.target_source: $(SRC)
|
2004-06-30 13:41:55 +02:00
|
|
|
rm -rf tsrc
|
2004-09-17 22:47:16 +02:00
|
|
|
mkdir -p tsrc
|
2008-03-13 19:28:03 +01:00
|
|
|
cp $(SRC) tsrc
|
2004-06-30 13:41:55 +02:00
|
|
|
rm tsrc/sqlite.h.in tsrc/parse.y
|
2008-03-04 20:03:08 +01:00
|
|
|
touch .target_source
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-03-04 20:03:08 +01:00
|
|
|
sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl
|
2008-03-09 03:51:10 +01:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl
|
2007-04-05 20:34:58 +02:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
# Rules to build the LEMON compiler generator
|
|
|
|
#
|
2004-11-03 04:59:57 +01:00
|
|
|
lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
|
2008-03-14 00:28:22 +01:00
|
|
|
$(BCC) -o $@ $(TOP)/tool/lemon.c
|
2004-06-30 13:41:55 +02:00
|
|
|
cp $(TOP)/tool/lempar.c .
|
|
|
|
|
|
|
|
|
2008-03-04 20:03:08 +01:00
|
|
|
# Rule to build the amalgamation
|
|
|
|
#
|
|
|
|
sqlite3.lo: sqlite3.c
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
|
2008-03-04 20:03:08 +01:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
# Rules to build individual files
|
|
|
|
#
|
2005-02-15 21:47:57 +01:00
|
|
|
alter.lo: $(TOP)/src/alter.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/alter.c
|
2005-02-15 21:47:57 +01:00
|
|
|
|
2005-07-08 14:13:04 +02:00
|
|
|
analyze.lo: $(TOP)/src/analyze.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/analyze.c
|
2005-07-08 14:13:04 +02:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
attach.lo: $(TOP)/src/attach.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/attach.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
auth.lo: $(TOP)/src/auth.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/auth.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-02-27 04:22:49 +01:00
|
|
|
bitvec.lo: $(TOP)/src/bitvec.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/bitvec.c
|
2008-02-27 04:22:49 +01:00
|
|
|
|
2007-08-28 04:27:51 +02:00
|
|
|
btmutex.lo: $(TOP)/src/btmutex.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btmutex.c
|
2007-08-28 04:27:51 +02:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
btree.lo: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btree.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
build.lo: $(TOP)/src/build.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/build.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2005-05-24 14:01:00 +02:00
|
|
|
callback.lo: $(TOP)/src/callback.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/callback.c
|
2005-05-24 14:01:00 +02:00
|
|
|
|
2005-08-14 19:53:20 +02:00
|
|
|
complete.lo: $(TOP)/src/complete.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/complete.c
|
2005-08-14 19:53:20 +02:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
date.lo: $(TOP)/src/date.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
delete.lo: $(TOP)/src/delete.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
expr.lo: $(TOP)/src/expr.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/expr.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-01-22 22:30:53 +01:00
|
|
|
fault.lo: $(TOP)/src/fault.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fault.c
|
2008-01-22 22:30:53 +01:00
|
|
|
|
2008-08-21 20:49:27 +02:00
|
|
|
func.lo: $(TOP)/src/func.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/func.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-06-13 20:24:27 +02:00
|
|
|
global.lo: $(TOP)/src/global.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/global.c
|
2008-06-13 20:24:27 +02:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
hash.lo: $(TOP)/src/hash.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/hash.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
insert.lo: $(TOP)/src/insert.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/insert.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2007-08-28 01:38:43 +02:00
|
|
|
journal.lo: $(TOP)/src/journal.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/journal.c
|
2007-08-28 01:38:43 +02:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
legacy.lo: $(TOP)/src/legacy.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/legacy.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2006-06-08 17:28:43 +02:00
|
|
|
loadext.lo: $(TOP)/src/loadext.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/loadext.c
|
2006-06-08 17:28:43 +02:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
main.lo: $(TOP)/src/main.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/main.c
|
|
|
|
|
2007-05-05 13:48:52 +02:00
|
|
|
malloc.lo: $(TOP)/src/malloc.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/malloc.c
|
|
|
|
|
2008-10-28 19:58:20 +01:00
|
|
|
mem0.lo: $(TOP)/src/mem0.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem0.c
|
|
|
|
|
2007-08-28 01:38:43 +02: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
|
|
|
|
|
2007-10-19 19:47:24 +02:00
|
|
|
mem3.lo: $(TOP)/src/mem3.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem3.c
|
|
|
|
|
2008-03-02 06:34:10 +01:00
|
|
|
mem5.lo: $(TOP)/src/mem5.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem5.c
|
|
|
|
|
2008-10-21 06:30:31 +02:00
|
|
|
memjournal.lo: $(TOP)/src/memjournal.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/memjournal.c
|
2008-10-21 06:30:31 +02:00
|
|
|
|
2007-08-28 01:38:43 +02:00
|
|
|
mutex.lo: $(TOP)/src/mutex.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex.c
|
|
|
|
|
2008-10-07 17:25:48 +02:00
|
|
|
mutex_noop.lo: $(TOP)/src/mutex_noop.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_noop.c
|
|
|
|
|
2007-08-28 18:34:42 +02:00
|
|
|
mutex_os2.lo: $(TOP)/src/mutex_os2.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_os2.c
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
pager.lo: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pager.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-08-20 16:49:23 +02:00
|
|
|
pcache.lo: $(TOP)/src/pcache.c $(HDR) $(TOP)/src/pcache.h
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache.c
|
2008-08-20 16:49:23 +02:00
|
|
|
|
2008-11-13 15:28:28 +01:00
|
|
|
pcache1.lo: $(TOP)/src/pcache1.c $(HDR) $(TOP)/src/pcache.h
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache1.c
|
2008-11-13 15:28:28 +01:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
opcodes.lo: opcodes.c
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c opcodes.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2004-10-06 17:03:57 +02:00
|
|
|
opcodes.c: opcodes.h $(TOP)/mkopcodec.awk
|
2006-06-27 22:05:23 +02:00
|
|
|
sort -n -b -k 3 opcodes.h | $(NAWK) -f $(TOP)/mkopcodec.awk >opcodes.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2004-10-04 15:19:23 +02:00
|
|
|
opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk
|
2006-01-23 19:06:52 +01:00
|
|
|
cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes.h
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2005-11-30 04:20:31 +01:00
|
|
|
os.lo: $(TOP)/src/os.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os.c
|
2005-11-30 04:20:31 +01:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
os_unix.lo: $(TOP)/src/os_unix.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_unix.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
os_win.lo: $(TOP)/src/os_win.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_win.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2006-06-03 20:02:15 +02:00
|
|
|
os_os2.lo: $(TOP)/src/os_os2.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_os2.c
|
2006-06-03 20:02:15 +02:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
parse.lo: parse.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c parse.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
parse.h: parse.c
|
|
|
|
|
2005-11-24 23:22:29 +01:00
|
|
|
parse.c: $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/addopcodes.awk
|
2004-06-30 13:41:55 +02:00
|
|
|
cp $(TOP)/src/parse.y .
|
2008-10-22 20:27:31 +02:00
|
|
|
./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y
|
2005-11-24 23:22:29 +01:00
|
|
|
mv parse.h parse.h.temp
|
2007-06-20 18:20:36 +02:00
|
|
|
$(NAWK) -f $(TOP)/addopcodes.awk parse.h.temp >parse.h
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
pragma.lo: $(TOP)/src/pragma.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pragma.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2005-05-25 06:11:56 +02:00
|
|
|
prepare.lo: $(TOP)/src/prepare.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/prepare.c
|
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
printf.lo: $(TOP)/src/printf.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/printf.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
random.lo: $(TOP)/src/random.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/random.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-08-20 18:35:10 +02:00
|
|
|
resolve.lo: $(TOP)/src/resolve.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/resolve.c
|
2008-08-20 18:35:10 +02:00
|
|
|
|
2008-12-04 21:40:10 +01:00
|
|
|
rowset.lo: $(TOP)/src/rowset.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/rowset.c
|
2008-12-04 21:40:10 +01:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
select.lo: $(TOP)/src/select.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/select.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-06-19 02:16:08 +02:00
|
|
|
status.lo: $(TOP)/src/status.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/status.c
|
2008-06-19 02:16:08 +02:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
sqlite3.h: $(TOP)/src/sqlite.h.in
|
2005-02-05 08:33:34 +01:00
|
|
|
sed -e s/--VERS--/$(RELEASE)/ $(TOP)/src/sqlite.h.in | \
|
|
|
|
sed -e s/--VERSION-NUMBER--/$(VERSION_NUMBER)/ >sqlite3.h
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
table.lo: $(TOP)/src/table.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR)
|
2008-07-25 14:39:23 +02:00
|
|
|
$(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2005-01-18 05:00:42 +01:00
|
|
|
tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/tokenize.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2005-01-18 05:00:42 +01:00
|
|
|
keywordhash.h: $(TOP)/tool/mkkeywordhash.c
|
2008-10-22 20:27:31 +02:00
|
|
|
$(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/mkkeywordhash.c
|
2005-01-18 05:00:42 +01:00
|
|
|
./mkkeywordhash$(BEXE) >keywordhash.h
|
2004-11-03 04:59:57 +01:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
trigger.lo: $(TOP)/src/trigger.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/trigger.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
update.lo: $(TOP)/src/update.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/update.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
utf.lo: $(TOP)/src/utf.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/utf.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
util.lo: $(TOP)/src/util.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/util.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
vacuum.lo: $(TOP)/src/vacuum.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vacuum.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-03-13 19:28:03 +01:00
|
|
|
vdbe.lo: $(TOP)/src/vdbe.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbe.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-03-13 19:28:03 +01:00
|
|
|
vdbeapi.lo: $(TOP)/src/vdbeapi.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeapi.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-03-13 19:28:03 +01:00
|
|
|
vdbeaux.lo: $(TOP)/src/vdbeaux.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeaux.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-03-13 19:28:03 +01:00
|
|
|
vdbeblob.lo: $(TOP)/src/vdbeblob.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeblob.c
|
2007-05-17 18:38:30 +02:00
|
|
|
|
2008-03-13 19:28:03 +01:00
|
|
|
vdbemem.lo: $(TOP)/src/vdbemem.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbemem.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-03-13 19:28:03 +01:00
|
|
|
vtab.lo: $(TOP)/src/vtab.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vtab.c
|
2006-06-12 01:41:55 +02:00
|
|
|
|
2008-08-20 18:35:10 +02:00
|
|
|
walker.lo: $(TOP)/src/walker.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/walker.c
|
2008-08-20 18:35:10 +02:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
where.lo: $(TOP)/src/where.c $(HDR)
|
2009-01-19 19:18:40 +01:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/where.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2004-11-25 14:50:01 +01: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)
|
|
|
|
$(LTCOMPILE) -DTCL_USE_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-03-14 00:28:22 +01:00
|
|
|
tclsqlite3$(TEXE): tclsqlite-shell.lo libsqlite3.la
|
|
|
|
$(LTLINK) -o $@ tclsqlite-shell.lo \
|
2004-06-30 13:41:55 +02:00
|
|
|
libsqlite3.la $(LIBTCL)
|
|
|
|
|
2008-03-14 05:11:03 +01:00
|
|
|
testfixture$(TEXE): $(TESTFIXTURE_SRC)
|
2008-05-13 02:57:21 +02:00
|
|
|
$(LTLINK) -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_NO_SYNC=1\
|
|
|
|
-DSQLITE_CRASH_TEST=1 \
|
2008-03-14 05:11:03 +01:00
|
|
|
-DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE $(TEMP_STORE) \
|
2008-05-13 02:57:21 +02:00
|
|
|
-o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS)
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
|
2005-11-26 01:25:00 +01:00
|
|
|
fulltest: testfixture$(TEXE) sqlite3$(TEXE)
|
2008-03-14 00:28:22 +01:00
|
|
|
./testfixture$(TEXE) $(TOP)/test/all.test
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2004-11-25 14:50:01 +01:00
|
|
|
test: testfixture$(TEXE) sqlite3$(TEXE)
|
2008-06-25 19:54:53 +02:00
|
|
|
./testfixture$(TEXE) $(TOP)/test/veryquick.test
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2008-03-14 05:11:03 +01:00
|
|
|
sqlite3_analyzer$(TEXE): $(TESTFIXTURE_SRC) $(TOP)/tool/spaceanal.tcl
|
2004-12-02 21:17:00 +01:00
|
|
|
sed \
|
|
|
|
-e '/^#/d' \
|
|
|
|
-e 's,\\,\\\\,g' \
|
|
|
|
-e 's,",\\",g' \
|
|
|
|
-e 's,^,",' \
|
|
|
|
-e 's,$$,\\n",' \
|
|
|
|
$(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h
|
2008-03-14 05:11:03 +01:00
|
|
|
$(LTLINK) -DTCLSH=2 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 \
|
|
|
|
-DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE \
|
|
|
|
$(TEMP_STORE) -o $@ $(TESTFIXTURE_SRC) $(LIBTCL)
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
|
2009-01-26 21:59:02 +01:00
|
|
|
install: sqlite3$(BEXE) libsqlite3.la sqlite3.h sqlite3.pc ${HAVE_TCL:1=tcl_install}
|
2004-09-17 23:07:34 +02:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(libdir)
|
|
|
|
$(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir)
|
2008-03-06 09:09:12 +01:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(bindir)
|
|
|
|
$(LTINSTALL) sqlite3$(BEXE) $(DESTDIR)$(bindir)
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(includedir)
|
|
|
|
$(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir)
|
|
|
|
$(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir)
|
2008-08-04 06:28:18 +02:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(pkgconfigdir)
|
|
|
|
$(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir)
|
2004-06-30 13:41:55 +02:00
|
|
|
|
2004-11-27 16:52:16 +01:00
|
|
|
tcl_install: libtclsqlite3.la
|
2008-09-23 12:12:13 +02:00
|
|
|
$(TCLSH_CMD) $(TOP)/tclinstaller.tcl $(RELEASE)
|
2004-11-27 16:52:16 +01:00
|
|
|
|
2004-06-30 13:41:55 +02:00
|
|
|
clean:
|
2004-11-25 14:50:01 +01:00
|
|
|
rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la
|
2004-06-30 13:41:55 +02:00
|
|
|
rm -f sqlite3.h opcodes.*
|
2008-03-06 10:03:20 +01:00
|
|
|
rm -rf .libs .deps tsrc
|
2004-11-03 04:59:57 +01:00
|
|
|
rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz
|
2005-01-18 05:00:42 +01:00
|
|
|
rm -f mkkeywordhash$(BEXE) keywordhash.h
|
2004-06-30 13:41:55 +02:00
|
|
|
rm -f $(PUBLISH)
|
|
|
|
rm -f *.da *.bb *.bbg gmon.out
|
2004-11-25 14:50:01 +01:00
|
|
|
rm -f testfixture$(TEXE) test.db
|
2004-06-30 13:41:55 +02:00
|
|
|
rm -f common.tcl
|
2006-09-03 00:14:11 +02:00
|
|
|
rm -f sqlite3.dll sqlite3.lib sqlite3.def
|
2008-03-06 10:03:20 +01:00
|
|
|
rm -f sqlite3.c .target_source
|
2004-06-30 13:41:55 +02:00
|
|
|
|
|
|
|
distclean: clean
|
2008-03-06 08:19:20 +01:00
|
|
|
rm -f config.log config.status libtool Makefile sqlite3.pc
|
2006-09-03 00:14:11 +02: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
|
2008-03-14 00:28:22 +01:00
|
|
|
$(TCC) -shared -o $@ sqlite3.def \
|
2006-09-03 00:14:11 +02:00
|
|
|
-Wl,"--strip-all" $(REAL_LIBOBJ)
|