2004-06-30 15:41:55 +04: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.
|
|
|
|
#
|
2015-01-15 18:47:06 +03:00
|
|
|
TOP = @abs_srcdir@
|
2004-06-30 15:41:55 +04: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@
|
|
|
|
|
2018-10-29 20:53:23 +03:00
|
|
|
# TCC is the C Compile and options for use in building executables that
|
2004-06-30 15:41:55 +04:00
|
|
|
# will run on the target platform. (BCC and TCC are usually the
|
2015-01-01 22:53:10 +03:00
|
|
|
# same unless your are cross-compiling.) Separate CC and CFLAGS macros
|
|
|
|
# are provide so that these aspects of the build process can be changed
|
|
|
|
# on the "make" command-line. Ex: "make CC=clang CFLAGS=-fsanitize=undefined"
|
2004-06-30 15:41:55 +04:00
|
|
|
#
|
2015-01-01 22:53:10 +03:00
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CPPFLAGS@ @CFLAGS@
|
2015-01-08 23:06:06 +03:00
|
|
|
TCC = ${CC} ${CFLAGS} -I. -I${TOP}/src -I${TOP}/ext/rtree -I${TOP}/ext/icu
|
2013-03-13 15:42:00 +04:00
|
|
|
TCC += -I${TOP}/ext/fts3 -I${TOP}/ext/async -I${TOP}/ext/session
|
2018-11-28 11:24:41 +03:00
|
|
|
TCC += -I${TOP}/ext/userauth
|
2005-01-04 00:28:56 +03:00
|
|
|
|
2008-05-07 06:42:01 +04:00
|
|
|
# Define this for the autoconf-based build, so that the code knows it can
|
2022-10-04 13:35:10 +03:00
|
|
|
# include the generated sqlite_cfg.h
|
2018-10-29 20:53:23 +03:00
|
|
|
#
|
2012-01-14 07:34:24 +04:00
|
|
|
TCC += -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite
|
2008-05-07 06:42:01 +04:00
|
|
|
|
2005-01-04 00:28:56 +03: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.
|
|
|
|
#
|
2015-01-10 17:27:17 +03:00
|
|
|
TCC += @TARGET_DEBUG@
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
# Compiler options needed for programs that use the TCL library.
|
|
|
|
#
|
2004-12-10 06:08:12 +03:00
|
|
|
TCC += @TCL_INCLUDE_SPEC@
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
# The library that programs using TCL must link against.
|
|
|
|
#
|
2012-12-06 04:16:51 +04:00
|
|
|
LIBTCL = @TCL_LIB_SPEC@
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
# Compiler options needed for programs that use the readline() library.
|
|
|
|
#
|
|
|
|
READLINE_FLAGS = -DHAVE_READLINE=@TARGET_HAVE_READLINE@ @TARGET_READLINE_INC@
|
2015-10-30 17:25:57 +03:00
|
|
|
READLINE_FLAGS += -DHAVE_EDITLINE=@TARGET_HAVE_EDITLINE@
|
2023-09-07 19:53:30 +03:00
|
|
|
READLINE_FLAGS += -DHAVE_LINENOISE=@TARGET_HAVE_LINENOISE@
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
# The library that programs using readline() must link against.
|
|
|
|
#
|
|
|
|
LIBREADLINE = @TARGET_READLINE_LIBS@
|
|
|
|
|
|
|
|
# Should the database engine be compiled threadsafe
|
|
|
|
#
|
2007-09-03 20:12:09 +04:00
|
|
|
TCC += -DSQLITE_THREADSAFE=@SQLITE_THREADSAFE@
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-03-09 05:20:11 +03:00
|
|
|
# Any target libraries which libsqlite must be linked against
|
2018-10-29 20:53:23 +03:00
|
|
|
#
|
2015-10-09 04:42:49 +03:00
|
|
|
TLIBS = @LIBS@ $(LIBS)
|
2006-01-23 21:06:52 +03:00
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
# Flags controlling use of the in memory btree implementation
|
|
|
|
#
|
2008-06-26 14:54:12 +04:00
|
|
|
# SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
|
2004-06-30 15:41:55 +04:00
|
|
|
# default to file, 2 to default to memory, and 3 to force temporary
|
|
|
|
# tables to always be in memory.
|
|
|
|
#
|
2008-06-26 14:54:12 +04:00
|
|
|
TEMP_STORE = -DSQLITE_TEMP_STORE=@TEMP_STORE@
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-07-22 09:05:01 +04:00
|
|
|
# Enable/disable loadable extensions, and other optional features
|
2018-10-29 20:53:23 +03:00
|
|
|
# based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*).
|
|
|
|
# The same set of OMIT and ENABLE flags should be passed to the
|
2008-10-22 22:27:31 +04:00
|
|
|
# LEMON parser generator and the mkkeywordhash tool as well.
|
2008-07-22 09:05:01 +04:00
|
|
|
OPT_FEATURE_FLAGS = @OPT_FEATURE_FLAGS@
|
|
|
|
|
|
|
|
TCC += $(OPT_FEATURE_FLAGS)
|
2008-03-06 07:14:17 +03:00
|
|
|
|
2008-10-22 22:27:31 +04: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)
|
|
|
|
|
2017-11-24 19:55:48 +03:00
|
|
|
# Add in compile-time options for some libraries used by extensions
|
|
|
|
TCC += @HAVE_ZLIB@
|
|
|
|
|
2004-11-27 18:52:16 +03:00
|
|
|
# Version numbers and release number for the SQLite being compiled.
|
|
|
|
#
|
|
|
|
VERSION = @VERSION@
|
2005-02-05 10:33:34 +03:00
|
|
|
VERSION_NUMBER = @VERSION_NUMBER@
|
2004-11-27 18:52:16 +03:00
|
|
|
RELEASE = @RELEASE@
|
|
|
|
|
2004-11-25 16:50:01 +03:00
|
|
|
# Filename extensions
|
|
|
|
#
|
|
|
|
BEXE = @BUILD_EXEEXT@
|
|
|
|
TEXE = @TARGET_EXEEXT@
|
|
|
|
|
2004-11-27 18:52:16 +03: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 16:50:01 +03:00
|
|
|
#
|
|
|
|
HAVE_TCL = @HAVE_TCL@
|
|
|
|
|
2008-03-09 05:51:10 +03: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@
|
|
|
|
|
2009-01-28 07:46:14 +03:00
|
|
|
# Where do we want to install the tcl plugin
|
|
|
|
#
|
|
|
|
TCLLIBDIR = @TCLLIBDIR@
|
|
|
|
|
2004-11-27 18:52:16 +03:00
|
|
|
# The suffix used on shared libraries. Ex: ".dll", ".so", ".dylib"
|
|
|
|
#
|
|
|
|
SHLIB_SUFFIX = @TCL_SHLIB_SUFFIX@
|
|
|
|
|
2008-04-01 06:45:22 +04: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
|
2018-10-29 20:53:23 +03:00
|
|
|
# causes build errors with -fprofile-arcs -ftest-coverage with some GCCs.
|
|
|
|
# Supposedly GCC does the right thing if you use --coverage, but in
|
2008-04-01 06:45:22 +04:00
|
|
|
# practice it still fails. See:
|
|
|
|
#
|
|
|
|
# http://www.mail-archive.com/debian-gcc@lists.debian.org/msg26197.html
|
|
|
|
#
|
|
|
|
# for more info.
|
|
|
|
#
|
2008-10-22 22:27:31 +04:00
|
|
|
GCOV_CFLAGS1 = -DSQLITE_COVERAGE_TEST=1 -fprofile-arcs -ftest-coverage
|
2008-04-01 06:45:22 +04:00
|
|
|
GCOV_LDFLAGS1 = -lgcov
|
|
|
|
USE_GCOV = @USE_GCOV@
|
|
|
|
LTCOMPILE_EXTRAS += $(GCOV_CFLAGS$(USE_GCOV))
|
|
|
|
LTLINK_EXTRAS += $(GCOV_LDFLAGS$(USE_GCOV))
|
|
|
|
|
|
|
|
|
2004-11-27 18:52:16 +03:00
|
|
|
# The directory into which to store package information for
|
|
|
|
|
|
|
|
# Some standard variables and programs
|
|
|
|
#
|
2008-03-07 05:20:56 +03:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
2004-11-27 18:52:16 +03:00
|
|
|
libdir = @libdir@
|
2008-08-04 08:28:18 +04:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2008-03-06 11:09:12 +03:00
|
|
|
bindir = @bindir@
|
|
|
|
includedir = @includedir@
|
2004-11-27 18:52:16 +03:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
LIBTOOL = ./libtool
|
|
|
|
ALLOWRELEASE = @ALLOWRELEASE@
|
|
|
|
|
|
|
|
# libtool compile/link/install
|
2008-04-01 06:45:22 +04:00
|
|
|
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(TCC) $(LTCOMPILE_EXTRAS)
|
2008-10-12 05:49:41 +04:00
|
|
|
LTLINK = $(LIBTOOL) --mode=link $(TCC) $(LTCOMPILE_EXTRAS) @LDFLAGS@ $(LTLINK_EXTRAS)
|
2004-11-27 18:52:16 +03:00
|
|
|
LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
# You should not have to change anything below this line
|
|
|
|
###############################################################################
|
2004-11-27 18:52:16 +03:00
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
USE_AMALGAMATION = @USE_AMALGAMATION@
|
2021-07-14 00:59:22 +03:00
|
|
|
AMALGAMATION_LINE_MACROS = @AMALGAMATION_LINE_MACROS@
|
2010-07-07 00:37:09 +04:00
|
|
|
|
2008-03-04 22:03:08 +03:00
|
|
|
# Object files for the SQLite library (non-amalgamation).
|
|
|
|
#
|
2010-07-07 00:37:09 +04:00
|
|
|
LIBOBJS0 = alter.lo analyze.lo attach.lo auth.lo \
|
|
|
|
backup.lo bitvec.lo btmutex.lo btree.lo build.lo \
|
2017-10-11 16:48:11 +03:00
|
|
|
callback.lo complete.lo ctime.lo \
|
|
|
|
date.lo dbpage.lo dbstat.lo delete.lo \
|
2010-10-21 16:34:29 +04:00
|
|
|
expr.lo fault.lo fkey.lo \
|
2012-05-28 19:32:09 +04: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-04-22 19:30:37 +04:00
|
|
|
fts3_tokenize_vtab.lo \
|
2012-05-28 19:32:09 +04:00
|
|
|
fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \
|
2015-06-25 23:36:36 +03:00
|
|
|
fts5.lo \
|
2010-07-07 00:37:09 +04:00
|
|
|
func.lo global.lo hash.lo \
|
2022-01-06 04:40:09 +03:00
|
|
|
icu.lo insert.lo json.lo legacy.lo loadext.lo \
|
2010-07-07 00:37:09 +04:00
|
|
|
main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \
|
2018-01-03 04:28:46 +03:00
|
|
|
memdb.lo memjournal.lo \
|
2012-06-21 17:00:37 +04:00
|
|
|
mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \
|
2022-09-10 21:20:59 +03:00
|
|
|
notify.lo opcodes.lo os.lo os_kv.lo os_unix.lo os_win.lo \
|
2010-07-07 00:37:09 +04:00
|
|
|
pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \
|
2013-03-13 15:42:00 +04:00
|
|
|
random.lo resolve.lo rowset.lo rtree.lo \
|
2017-06-29 17:33:51 +03:00
|
|
|
sqlite3session.lo select.lo sqlite3rbu.lo status.lo stmt.lo \
|
2015-06-08 18:08:15 +03:00
|
|
|
table.lo threads.lo tokenize.lo treeview.lo trigger.lo \
|
2018-11-28 11:24:41 +03:00
|
|
|
update.lo userauth.lo upsert.lo util.lo vacuum.lo \
|
2011-08-12 20:34:42 +04:00
|
|
|
vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \
|
2020-05-01 21:58:21 +03:00
|
|
|
vdbetrace.lo vdbevtab.lo \
|
2020-03-23 18:49:22 +03:00
|
|
|
wal.lo walker.lo where.lo wherecode.lo whereexpr.lo \
|
2018-06-09 20:58:51 +03:00
|
|
|
window.lo utf.lo vtab.lo
|
2008-03-04 22:03:08 +03:00
|
|
|
|
|
|
|
# Object files for the amalgamation.
|
|
|
|
#
|
2010-07-07 00:37:09 +04:00
|
|
|
LIBOBJS1 = sqlite3.lo
|
2008-03-04 22:03:08 +03:00
|
|
|
|
|
|
|
# Determine the real value of LIBOBJ based on the 'configure' script
|
|
|
|
#
|
2010-07-07 00:37:09 +04:00
|
|
|
LIBOBJ = $(LIBOBJS$(USE_AMALGAMATION))
|
2008-03-04 22:03:08 +03:00
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
# All of the source code files.
|
|
|
|
#
|
|
|
|
SRC = \
|
2005-02-15 23:47:57 +03:00
|
|
|
$(TOP)/src/alter.c \
|
2005-07-08 16:13:04 +04:00
|
|
|
$(TOP)/src/analyze.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/attach.c \
|
|
|
|
$(TOP)/src/auth.c \
|
2009-02-03 19:51:24 +03:00
|
|
|
$(TOP)/src/backup.c \
|
2008-02-26 06:45:59 +03:00
|
|
|
$(TOP)/src/bitvec.c \
|
2007-08-28 06:27:51 +04:00
|
|
|
$(TOP)/src/btmutex.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/btree.c \
|
|
|
|
$(TOP)/src/btree.h \
|
2008-03-13 21:28:03 +03:00
|
|
|
$(TOP)/src/btreeInt.h \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/build.c \
|
2005-05-24 16:01:00 +04:00
|
|
|
$(TOP)/src/callback.c \
|
2005-08-14 21:53:20 +04:00
|
|
|
$(TOP)/src/complete.c \
|
2010-02-23 23:08:35 +03:00
|
|
|
$(TOP)/src/ctime.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/date.c \
|
2017-10-11 16:48:11 +03:00
|
|
|
$(TOP)/src/dbpage.c \
|
2015-05-04 21:31:09 +03:00
|
|
|
$(TOP)/src/dbstat.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/delete.c \
|
|
|
|
$(TOP)/src/expr.c \
|
2008-01-23 00:30:53 +03:00
|
|
|
$(TOP)/src/fault.c \
|
2009-09-19 21:59:59 +04:00
|
|
|
$(TOP)/src/fkey.c \
|
2008-08-21 22:49:27 +04:00
|
|
|
$(TOP)/src/func.c \
|
2008-06-13 22:24:27 +04:00
|
|
|
$(TOP)/src/global.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/hash.c \
|
|
|
|
$(TOP)/src/hash.h \
|
2008-05-30 00:22:37 +04:00
|
|
|
$(TOP)/src/hwtime.h \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/insert.c \
|
2022-01-06 04:40:09 +03:00
|
|
|
$(TOP)/src/json.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/legacy.c \
|
2006-06-08 19:28:43 +04:00
|
|
|
$(TOP)/src/loadext.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/main.c \
|
2007-05-07 17:11:10 +04:00
|
|
|
$(TOP)/src/malloc.c \
|
2008-10-28 21:58:20 +03:00
|
|
|
$(TOP)/src/mem0.c \
|
2007-08-28 03:38:43 +04:00
|
|
|
$(TOP)/src/mem1.c \
|
|
|
|
$(TOP)/src/mem2.c \
|
2007-10-19 21:47:24 +04:00
|
|
|
$(TOP)/src/mem3.c \
|
2008-03-02 08:34:10 +03:00
|
|
|
$(TOP)/src/mem5.c \
|
2018-01-03 04:28:46 +03:00
|
|
|
$(TOP)/src/memdb.c \
|
2008-10-21 08:30:31 +04:00
|
|
|
$(TOP)/src/memjournal.c \
|
2015-01-12 21:02:52 +03:00
|
|
|
$(TOP)/src/msvc.h \
|
2007-08-28 03:38:43 +04:00
|
|
|
$(TOP)/src/mutex.c \
|
2008-03-13 21:28:03 +03:00
|
|
|
$(TOP)/src/mutex.h \
|
2008-10-07 19:25:48 +04:00
|
|
|
$(TOP)/src/mutex_noop.c \
|
2007-08-28 20:34:42 +04:00
|
|
|
$(TOP)/src/mutex_unix.c \
|
|
|
|
$(TOP)/src/mutex_w32.c \
|
2009-03-16 17:48:18 +03:00
|
|
|
$(TOP)/src/notify.c \
|
2005-11-30 06:20:31 +03:00
|
|
|
$(TOP)/src/os.c \
|
2008-03-13 21:28:03 +03:00
|
|
|
$(TOP)/src/os.h \
|
|
|
|
$(TOP)/src/os_common.h \
|
2013-11-26 05:00:31 +04:00
|
|
|
$(TOP)/src/os_setup.h \
|
2022-09-10 21:20:59 +03:00
|
|
|
$(TOP)/src/os_kv.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/os_unix.c \
|
|
|
|
$(TOP)/src/os_win.c \
|
2013-11-25 13:36:07 +04:00
|
|
|
$(TOP)/src/os_win.h \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/pager.c \
|
|
|
|
$(TOP)/src/pager.h \
|
|
|
|
$(TOP)/src/parse.y \
|
2008-08-20 18:49:23 +04:00
|
|
|
$(TOP)/src/pcache.c \
|
|
|
|
$(TOP)/src/pcache.h \
|
2008-11-13 17:28:28 +03:00
|
|
|
$(TOP)/src/pcache1.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/pragma.c \
|
2015-02-03 00:34:54 +03:00
|
|
|
$(TOP)/src/pragma.h \
|
2005-05-25 08:11:56 +04:00
|
|
|
$(TOP)/src/prepare.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/printf.c \
|
|
|
|
$(TOP)/src/random.c \
|
2008-08-20 20:35:10 +04:00
|
|
|
$(TOP)/src/resolve.c \
|
2008-12-04 23:40:10 +03:00
|
|
|
$(TOP)/src/rowset.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/select.c \
|
2008-06-19 04:16:08 +04:00
|
|
|
$(TOP)/src/status.c \
|
2017-10-12 16:47:48 +03:00
|
|
|
$(TOP)/src/shell.c.in \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/sqlite.h.in \
|
2008-03-13 21:28:03 +03:00
|
|
|
$(TOP)/src/sqlite3ext.h \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/sqliteInt.h \
|
2008-03-13 21:28:03 +03:00
|
|
|
$(TOP)/src/sqliteLimit.h \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/table.c \
|
|
|
|
$(TOP)/src/tclsqlite.c \
|
2015-10-09 04:42:49 +03:00
|
|
|
$(TOP)/src/threads.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/tokenize.c \
|
2015-06-08 18:08:15 +03:00
|
|
|
$(TOP)/src/treeview.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/trigger.c \
|
|
|
|
$(TOP)/src/utf.c \
|
|
|
|
$(TOP)/src/update.c \
|
2018-04-13 00:42:51 +03:00
|
|
|
$(TOP)/src/upsert.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(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 20:38:30 +04:00
|
|
|
$(TOP)/src/vdbeblob.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/vdbemem.c \
|
2011-08-12 20:34:42 +04:00
|
|
|
$(TOP)/src/vdbesort.c \
|
2009-11-25 21:03:42 +03:00
|
|
|
$(TOP)/src/vdbetrace.c \
|
2020-03-23 18:49:22 +03:00
|
|
|
$(TOP)/src/vdbevtab.c \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/vdbeInt.h \
|
2006-06-12 03:41:55 +04:00
|
|
|
$(TOP)/src/vtab.c \
|
2015-03-03 01:06:43 +03:00
|
|
|
$(TOP)/src/vxworks.h \
|
2010-04-26 04:19:45 +04:00
|
|
|
$(TOP)/src/wal.c \
|
|
|
|
$(TOP)/src/wal.h \
|
2008-08-20 20:35:10 +04:00
|
|
|
$(TOP)/src/walker.c \
|
2013-11-12 22:37:25 +04:00
|
|
|
$(TOP)/src/where.c \
|
2015-06-06 23:12:09 +03:00
|
|
|
$(TOP)/src/wherecode.c \
|
2015-06-08 17:23:15 +03:00
|
|
|
$(TOP)/src/whereexpr.c \
|
2018-06-09 20:58:51 +03:00
|
|
|
$(TOP)/src/whereInt.h \
|
|
|
|
$(TOP)/src/window.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2006-10-03 23:12:32 +04:00
|
|
|
# Source code for extensions
|
|
|
|
#
|
2008-03-02 08:40:05 +03:00
|
|
|
SRC += \
|
|
|
|
$(TOP)/ext/fts3/fts3.c \
|
|
|
|
$(TOP)/ext/fts3/fts3.h \
|
2009-11-19 18:25:25 +03:00
|
|
|
$(TOP)/ext/fts3/fts3Int.h \
|
2011-02-09 18:25:17 +03:00
|
|
|
$(TOP)/ext/fts3/fts3_aux.c \
|
2009-01-02 18:47:01 +03:00
|
|
|
$(TOP)/ext/fts3/fts3_expr.c \
|
2008-03-02 08:40:05 +03: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-11-19 18:25:25 +03:00
|
|
|
$(TOP)/ext/fts3/fts3_snippet.c \
|
2008-03-02 08:40:05 +03:00
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer.h \
|
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer.c \
|
2009-11-19 18:25:25 +03:00
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer1.c \
|
2013-04-22 19:30:37 +04:00
|
|
|
$(TOP)/ext/fts3/fts3_tokenize_vtab.c \
|
2012-05-28 19:32:09 +04:00
|
|
|
$(TOP)/ext/fts3/fts3_unicode.c \
|
|
|
|
$(TOP)/ext/fts3/fts3_unicode2.c \
|
2009-11-19 18:25:25 +03:00
|
|
|
$(TOP)/ext/fts3/fts3_write.c
|
2008-03-02 08:40:05 +03:00
|
|
|
SRC += \
|
2008-09-08 12:08:09 +04:00
|
|
|
$(TOP)/ext/icu/sqliteicu.h \
|
2008-03-02 08:40:05 +03:00
|
|
|
$(TOP)/ext/icu/icu.c
|
2008-05-28 21:31:17 +04:00
|
|
|
SRC += \
|
|
|
|
$(TOP)/ext/rtree/rtree.h \
|
2018-05-25 22:22:47 +03:00
|
|
|
$(TOP)/ext/rtree/rtree.c \
|
|
|
|
$(TOP)/ext/rtree/geopoly.c
|
2013-03-13 15:42:00 +04:00
|
|
|
SRC += \
|
|
|
|
$(TOP)/ext/session/sqlite3session.c \
|
|
|
|
$(TOP)/ext/session/sqlite3session.h
|
2018-11-28 11:24:41 +03:00
|
|
|
SRC += \
|
|
|
|
$(TOP)/ext/userauth/userauth.c \
|
|
|
|
$(TOP)/ext/userauth/sqlite3userauth.h
|
2015-04-16 17:33:09 +03:00
|
|
|
SRC += \
|
2015-07-23 23:44:49 +03:00
|
|
|
$(TOP)/ext/rbu/sqlite3rbu.h \
|
|
|
|
$(TOP)/ext/rbu/sqlite3rbu.c
|
2015-10-08 22:29:18 +03:00
|
|
|
SRC += \
|
2017-06-29 17:33:51 +03:00
|
|
|
$(TOP)/ext/misc/stmt.c
|
2010-07-07 00:37:09 +04:00
|
|
|
|
|
|
|
# Generated source code files
|
2004-06-30 15:41:55 +04:00
|
|
|
#
|
2010-07-07 00:37:09 +04:00
|
|
|
SRC += \
|
|
|
|
keywordhash.h \
|
|
|
|
opcodes.c \
|
|
|
|
opcodes.h \
|
|
|
|
parse.c \
|
|
|
|
parse.h \
|
2022-10-04 13:35:10 +03:00
|
|
|
sqlite_cfg.h \
|
2017-10-12 16:47:48 +03:00
|
|
|
shell.c \
|
2010-07-07 00:37:09 +04:00
|
|
|
sqlite3.h
|
2008-03-14 07:11:03 +03:00
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
# Source code to the test files.
|
2008-03-14 07:11:03 +03:00
|
|
|
#
|
|
|
|
TESTSRC = \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/test1.c \
|
|
|
|
$(TOP)/src/test2.c \
|
|
|
|
$(TOP)/src/test3.c \
|
|
|
|
$(TOP)/src/test4.c \
|
|
|
|
$(TOP)/src/test5.c \
|
2005-11-26 03:25:00 +03:00
|
|
|
$(TOP)/src/test6.c \
|
2006-06-12 03:41:55 +04:00
|
|
|
$(TOP)/src/test8.c \
|
2007-03-29 16:19:11 +04:00
|
|
|
$(TOP)/src/test9.c \
|
2006-08-24 00:07:20 +04:00
|
|
|
$(TOP)/src/test_autoext.c \
|
2006-01-10 02:50:11 +03:00
|
|
|
$(TOP)/src/test_async.c \
|
2009-02-03 19:51:24 +03:00
|
|
|
$(TOP)/src/test_backup.c \
|
2016-03-04 05:59:35 +03:00
|
|
|
$(TOP)/src/test_bestindex.c \
|
2014-12-05 03:17:39 +03:00
|
|
|
$(TOP)/src/test_blob.c \
|
2007-05-05 22:39:25 +04:00
|
|
|
$(TOP)/src/test_btree.c \
|
2007-05-08 05:08:49 +04:00
|
|
|
$(TOP)/src/test_config.c \
|
2016-09-09 23:00:40 +03:00
|
|
|
$(TOP)/src/test_delete.c \
|
2010-05-06 19:35:59 +04:00
|
|
|
$(TOP)/src/test_demovfs.c \
|
2008-01-22 14:50:13 +03:00
|
|
|
$(TOP)/src/test_devsym.c \
|
2013-03-04 00:26:46 +04:00
|
|
|
$(TOP)/src/test_fs.c \
|
2008-03-19 19:08:53 +03:00
|
|
|
$(TOP)/src/test_func.c \
|
2007-04-06 19:02:13 +04:00
|
|
|
$(TOP)/src/test_hexio.c \
|
2009-08-21 06:07:09 +04:00
|
|
|
$(TOP)/src/test_init.c \
|
2009-11-10 20:24:37 +03:00
|
|
|
$(TOP)/src/test_intarray.c \
|
2008-12-22 13:58:46 +03:00
|
|
|
$(TOP)/src/test_journal.c \
|
2007-08-28 03:38:43 +04:00
|
|
|
$(TOP)/src/test_malloc.c \
|
2017-10-13 18:06:06 +03:00
|
|
|
$(TOP)/src/test_md5.c \
|
2010-11-05 03:00:42 +03:00
|
|
|
$(TOP)/src/test_multiplex.c \
|
2008-07-09 02:15:49 +04:00
|
|
|
$(TOP)/src/test_mutex.c \
|
2007-10-05 19:04:12 +04:00
|
|
|
$(TOP)/src/test_onefile.c \
|
2008-04-14 03:13:39 +04:00
|
|
|
$(TOP)/src/test_osinst.c \
|
2008-11-19 04:20:26 +03:00
|
|
|
$(TOP)/src/test_pcache.c \
|
2010-10-07 00:25:00 +04:00
|
|
|
$(TOP)/src/test_quota.c \
|
2010-08-28 22:58:00 +04:00
|
|
|
$(TOP)/src/test_rtree.c \
|
2006-06-15 19:59:19 +04:00
|
|
|
$(TOP)/src/test_schema.c \
|
2010-11-24 16:04:22 +03:00
|
|
|
$(TOP)/src/test_superlock.c \
|
2011-04-02 00:54:38 +04:00
|
|
|
$(TOP)/src/test_syscall.c \
|
2017-10-13 18:06:06 +03:00
|
|
|
$(TOP)/src/test_tclsh.c \
|
2006-06-14 03:51:34 +04:00
|
|
|
$(TOP)/src/test_tclvar.c \
|
2009-08-21 06:07:09 +04:00
|
|
|
$(TOP)/src/test_thread.c \
|
2019-04-01 20:24:20 +03:00
|
|
|
$(TOP)/src/test_vdbecov.c \
|
2010-05-06 19:35:59 +04:00
|
|
|
$(TOP)/src/test_vfs.c \
|
2015-12-01 02:29:07 +03:00
|
|
|
$(TOP)/src/test_windirent.c \
|
2018-06-18 19:55:22 +03:00
|
|
|
$(TOP)/src/test_window.c \
|
2011-05-17 18:41:36 +04:00
|
|
|
$(TOP)/src/test_wsd.c \
|
2011-06-13 13:11:01 +04:00
|
|
|
$(TOP)/ext/fts3/fts3_term.c \
|
2013-03-13 15:42:00 +04:00
|
|
|
$(TOP)/ext/fts3/fts3_test.c \
|
2015-05-20 01:42:23 +03:00
|
|
|
$(TOP)/ext/session/test_session.c \
|
2022-09-14 23:45:46 +03:00
|
|
|
$(TOP)/ext/recover/sqlite3recover.c \
|
2022-10-19 21:03:39 +03:00
|
|
|
$(TOP)/ext/recover/dbdata.c \
|
2022-09-14 23:45:46 +03:00
|
|
|
$(TOP)/ext/recover/test_recover.c \
|
2022-12-23 22:04:59 +03:00
|
|
|
$(TOP)/ext/rbu/test_rbu.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2013-04-25 18:31:46 +04:00
|
|
|
# Statically linked extensions
|
|
|
|
#
|
|
|
|
TESTSRC += \
|
2017-05-03 15:15:20 +03:00
|
|
|
$(TOP)/ext/expert/sqlite3expert.c \
|
|
|
|
$(TOP)/ext/expert/test_expert.c \
|
2013-04-25 20:42:55 +04:00
|
|
|
$(TOP)/ext/misc/amatch.c \
|
2021-03-07 02:36:47 +03:00
|
|
|
$(TOP)/ext/misc/appendvfs.c \
|
2022-11-22 22:04:09 +03:00
|
|
|
$(TOP)/ext/misc/basexx.c \
|
2016-07-03 05:35:47 +03:00
|
|
|
$(TOP)/ext/misc/carray.c \
|
2020-11-18 21:36:43 +03:00
|
|
|
$(TOP)/ext/misc/cksumvfs.c \
|
2013-04-25 20:42:55 +04:00
|
|
|
$(TOP)/ext/misc/closure.c \
|
2016-06-03 02:13:21 +03:00
|
|
|
$(TOP)/ext/misc/csv.c \
|
2020-06-22 22:12:23 +03:00
|
|
|
$(TOP)/ext/misc/decimal.c \
|
2014-11-10 19:49:56 +03:00
|
|
|
$(TOP)/ext/misc/eval.c \
|
2018-09-16 19:18:01 +03:00
|
|
|
$(TOP)/ext/misc/explain.c \
|
2014-06-16 16:44:32 +04:00
|
|
|
$(TOP)/ext/misc/fileio.c \
|
2013-04-25 18:31:46 +04:00
|
|
|
$(TOP)/ext/misc/fuzzer.c \
|
2015-06-25 23:36:36 +03:00
|
|
|
$(TOP)/ext/fts5/fts5_tcl.c \
|
2015-08-04 23:29:00 +03:00
|
|
|
$(TOP)/ext/fts5/fts5_test_mi.c \
|
2016-01-14 23:05:59 +03:00
|
|
|
$(TOP)/ext/fts5/fts5_test_tok.c \
|
2013-04-25 20:42:55 +04:00
|
|
|
$(TOP)/ext/misc/ieee754.c \
|
2017-09-18 19:28:56 +03:00
|
|
|
$(TOP)/ext/misc/mmapwarm.c \
|
2013-04-25 23:31:33 +04:00
|
|
|
$(TOP)/ext/misc/nextchar.c \
|
2018-01-08 23:04:57 +03:00
|
|
|
$(TOP)/ext/misc/normalize.c \
|
2013-05-29 00:25:54 +04:00
|
|
|
$(TOP)/ext/misc/percentile.c \
|
2019-01-14 23:44:00 +03:00
|
|
|
$(TOP)/ext/misc/prefixes.c \
|
2022-01-20 20:10:59 +03:00
|
|
|
$(TOP)/ext/misc/qpvtab.c \
|
2013-04-25 18:31:46 +04:00
|
|
|
$(TOP)/ext/misc/regexp.c \
|
2016-08-10 00:08:42 +03:00
|
|
|
$(TOP)/ext/misc/remember.c \
|
2015-08-19 16:54:20 +03:00
|
|
|
$(TOP)/ext/misc/series.c \
|
2013-04-25 18:59:01 +04:00
|
|
|
$(TOP)/ext/misc/spellfix.c \
|
2013-10-15 01:14:42 +04:00
|
|
|
$(TOP)/ext/misc/totype.c \
|
2017-07-15 23:48:30 +03:00
|
|
|
$(TOP)/ext/misc/unionvtab.c \
|
2018-01-05 22:49:54 +03:00
|
|
|
$(TOP)/ext/misc/wholenumber.c \
|
2018-11-28 11:24:41 +03:00
|
|
|
$(TOP)/ext/misc/zipfile.c \
|
2021-09-17 23:43:27 +03:00
|
|
|
$(TOP)/ext/userauth/userauth.c \
|
|
|
|
$(TOP)/ext/rtree/test_rtreedoc.c
|
2013-04-25 18:31:46 +04:00
|
|
|
|
2010-07-07 00:37:09 +04: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 \
|
2017-10-11 16:48:11 +03:00
|
|
|
$(TOP)/src/dbpage.c \
|
2015-05-04 21:31:09 +03:00
|
|
|
$(TOP)/src/dbstat.c \
|
2010-07-07 00:37:09 +04:00
|
|
|
$(TOP)/src/expr.c \
|
|
|
|
$(TOP)/src/func.c \
|
2018-11-26 21:09:15 +03:00
|
|
|
$(TOP)/src/global.c \
|
2010-07-07 00:37:09 +04:00
|
|
|
$(TOP)/src/insert.c \
|
|
|
|
$(TOP)/src/wal.c \
|
2013-05-16 00:35:13 +04:00
|
|
|
$(TOP)/src/main.c \
|
2010-07-07 00:37:09 +04:00
|
|
|
$(TOP)/src/mem5.c \
|
|
|
|
$(TOP)/src/os.c \
|
2022-09-10 21:20:59 +03:00
|
|
|
$(TOP)/src/os_kv.c \
|
2010-07-07 00:37:09 +04:00
|
|
|
$(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 \
|
2022-07-12 18:10:16 +03:00
|
|
|
$(TOP)/src/treeview.c \
|
2010-07-07 00:37:09 +04:00
|
|
|
$(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 \
|
2020-03-23 18:49:22 +03:00
|
|
|
$(TOP)/src/vdbevtab.c \
|
2010-07-07 00:37:09 +04:00
|
|
|
$(TOP)/src/where.c \
|
2015-06-06 23:12:09 +03:00
|
|
|
$(TOP)/src/wherecode.c \
|
2015-06-08 17:23:15 +03:00
|
|
|
$(TOP)/src/whereexpr.c \
|
2018-06-09 20:58:51 +03:00
|
|
|
$(TOP)/src/window.c \
|
2010-07-07 00:37:09 +04:00
|
|
|
parse.c \
|
|
|
|
$(TOP)/ext/fts3/fts3.c \
|
2011-02-09 18:25:17 +03:00
|
|
|
$(TOP)/ext/fts3/fts3_aux.c \
|
2010-07-07 00:37:09 +04:00
|
|
|
$(TOP)/ext/fts3/fts3_expr.c \
|
2011-05-13 01:01:12 +04:00
|
|
|
$(TOP)/ext/fts3/fts3_term.c \
|
2010-07-07 00:37:09 +04:00
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer.c \
|
|
|
|
$(TOP)/ext/fts3/fts3_write.c \
|
2013-03-13 15:42:00 +04:00
|
|
|
$(TOP)/ext/async/sqlite3async.c \
|
2017-07-14 22:12:26 +03:00
|
|
|
$(TOP)/ext/session/sqlite3session.c \
|
2021-04-06 20:51:18 +03:00
|
|
|
$(TOP)/ext/misc/stmt.c \
|
|
|
|
fts5.c
|
2010-07-07 00:37:09 +04:00
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
# Header files used by all library source files.
|
|
|
|
#
|
|
|
|
HDR = \
|
|
|
|
$(TOP)/src/btree.h \
|
2007-05-05 15:48:52 +04:00
|
|
|
$(TOP)/src/btreeInt.h \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/hash.h \
|
2008-05-30 00:22:37 +04:00
|
|
|
$(TOP)/src/hwtime.h \
|
2010-07-07 00:37:09 +04:00
|
|
|
keywordhash.h \
|
2015-01-12 21:02:52 +03:00
|
|
|
$(TOP)/src/msvc.h \
|
2007-08-28 20:34:42 +04:00
|
|
|
$(TOP)/src/mutex.h \
|
2004-06-30 15:41:55 +04:00
|
|
|
opcodes.h \
|
|
|
|
$(TOP)/src/os.h \
|
|
|
|
$(TOP)/src/os_common.h \
|
2013-11-26 05:00:31 +04:00
|
|
|
$(TOP)/src/os_setup.h \
|
2013-11-25 13:36:07 +04:00
|
|
|
$(TOP)/src/os_win.h \
|
2010-07-07 00:37:09 +04:00
|
|
|
$(TOP)/src/pager.h \
|
|
|
|
$(TOP)/src/pcache.h \
|
|
|
|
parse.h \
|
2015-02-03 00:34:54 +03:00
|
|
|
$(TOP)/src/pragma.h \
|
2010-07-07 00:37:09 +04:00
|
|
|
sqlite3.h \
|
2006-06-08 19:28:43 +04:00
|
|
|
$(TOP)/src/sqlite3ext.h \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/sqliteInt.h \
|
2010-07-07 00:37:09 +04:00
|
|
|
$(TOP)/src/sqliteLimit.h \
|
2004-06-30 15:41:55 +04:00
|
|
|
$(TOP)/src/vdbe.h \
|
2008-03-13 21:28:03 +03:00
|
|
|
$(TOP)/src/vdbeInt.h \
|
2015-03-03 01:06:43 +03:00
|
|
|
$(TOP)/src/vxworks.h \
|
2013-11-12 22:37:25 +04:00
|
|
|
$(TOP)/src/whereInt.h \
|
2022-10-04 13:35:10 +03:00
|
|
|
sqlite_cfg.h
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2006-10-03 23:12:32 +04:00
|
|
|
# Header files used by extensions
|
|
|
|
#
|
2010-07-07 00:37:09 +04:00
|
|
|
EXTHDR += \
|
2008-03-02 08:40:05 +03:00
|
|
|
$(TOP)/ext/fts3/fts3.h \
|
2009-11-19 18:25:25 +03:00
|
|
|
$(TOP)/ext/fts3/fts3Int.h \
|
2008-03-02 08:40:05 +03:00
|
|
|
$(TOP)/ext/fts3/fts3_hash.h \
|
|
|
|
$(TOP)/ext/fts3/fts3_tokenizer.h
|
2010-07-07 00:37:09 +04:00
|
|
|
EXTHDR += \
|
2018-05-25 22:22:47 +03:00
|
|
|
$(TOP)/ext/rtree/rtree.h \
|
|
|
|
$(TOP)/ext/rtree/geopoly.c
|
2010-07-07 00:37:09 +04:00
|
|
|
EXTHDR += \
|
2008-09-08 12:08:09 +04:00
|
|
|
$(TOP)/ext/icu/sqliteicu.h
|
2010-08-28 22:58:00 +04:00
|
|
|
EXTHDR += \
|
|
|
|
$(TOP)/ext/rtree/sqlite3rtree.h
|
2018-11-28 11:24:41 +03:00
|
|
|
EXTHDR += \
|
|
|
|
$(TOP)/ext/userauth/sqlite3userauth.h
|
2006-10-03 23:12:32 +04:00
|
|
|
|
2015-05-11 19:27:33 +03:00
|
|
|
# executables needed for testing
|
2015-05-11 15:15:45 +03:00
|
|
|
#
|
|
|
|
TESTPROGS = \
|
|
|
|
testfixture$(TEXE) \
|
|
|
|
sqlite3$(TEXE) \
|
|
|
|
sqlite3_analyzer$(TEXE) \
|
2016-06-08 04:03:05 +03:00
|
|
|
sqldiff$(TEXE) \
|
2017-12-14 22:24:00 +03:00
|
|
|
dbhash$(TEXE) \
|
|
|
|
sqltclsh$(TEXE)
|
2015-05-11 15:15:45 +03:00
|
|
|
|
2015-05-26 21:15:08 +03:00
|
|
|
# Databases containing fuzzer test cases
|
|
|
|
#
|
|
|
|
FUZZDATA = \
|
|
|
|
$(TOP)/test/fuzzdata1.db \
|
|
|
|
$(TOP)/test/fuzzdata2.db \
|
2015-09-23 14:59:50 +03:00
|
|
|
$(TOP)/test/fuzzdata3.db \
|
2016-11-14 21:27:41 +03:00
|
|
|
$(TOP)/test/fuzzdata4.db \
|
2018-05-08 15:49:53 +03:00
|
|
|
$(TOP)/test/fuzzdata5.db \
|
2018-10-31 04:12:06 +03:00
|
|
|
$(TOP)/test/fuzzdata6.db \
|
2019-01-25 07:00:14 +03:00
|
|
|
$(TOP)/test/fuzzdata7.db \
|
|
|
|
$(TOP)/test/fuzzdata8.db
|
2015-05-11 15:15:45 +03:00
|
|
|
|
2015-06-10 21:53:09 +03:00
|
|
|
# Standard options to testfixture
|
|
|
|
#
|
|
|
|
TESTOPTS = --verbose=file --output=test-out.txt
|
|
|
|
|
2015-10-08 22:29:18 +03:00
|
|
|
# Extra compiler options for various shell tools
|
|
|
|
#
|
2023-02-09 18:32:24 +03:00
|
|
|
SHELL_OPT += -DSQLITE_DQS=0
|
|
|
|
SHELL_OPT += -DSQLITE_ENABLE_FTS4
|
2018-01-10 22:15:21 +03:00
|
|
|
#SHELL_OPT += -DSQLITE_ENABLE_FTS5
|
|
|
|
SHELL_OPT += -DSQLITE_ENABLE_RTREE
|
2016-02-09 20:12:22 +03:00
|
|
|
SHELL_OPT += -DSQLITE_ENABLE_EXPLAIN_COMMENTS
|
2016-08-04 15:35:17 +03:00
|
|
|
SHELL_OPT += -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
|
2017-06-29 17:33:51 +03:00
|
|
|
SHELL_OPT += -DSQLITE_ENABLE_STMTVTAB
|
2017-10-11 20:13:29 +03:00
|
|
|
SHELL_OPT += -DSQLITE_ENABLE_DBPAGE_VTAB
|
|
|
|
SHELL_OPT += -DSQLITE_ENABLE_DBSTAT_VTAB
|
2020-03-23 18:49:22 +03:00
|
|
|
SHELL_OPT += -DSQLITE_ENABLE_BYTECODE_VTAB
|
2017-12-29 18:04:49 +03:00
|
|
|
SHELL_OPT += -DSQLITE_ENABLE_OFFSET_SQL_FUNC
|
2023-06-07 11:40:31 +03:00
|
|
|
FUZZERSHELL_OPT =
|
2022-10-28 21:35:06 +03:00
|
|
|
FUZZCHECK_OPT += -I$(TOP)/test
|
|
|
|
FUZZCHECK_OPT += -I$(TOP)/ext/recover
|
2023-03-07 02:38:44 +03:00
|
|
|
FUZZCHECK_OPT += \
|
|
|
|
-DSQLITE_OSS_FUZZ \
|
|
|
|
-DSQLITE_ENABLE_BYTECODE_VTAB \
|
|
|
|
-DSQLITE_ENABLE_DBPAGE_VTAB \
|
|
|
|
-DSQLITE_ENABLE_DBSTAT_VTAB \
|
|
|
|
-DSQLITE_ENABLE_BYTECODE_VTAB \
|
|
|
|
-DSQLITE_ENABLE_DESERIALIZE \
|
|
|
|
-DSQLITE_ENABLE_EXPLAIN_COMMENTS \
|
|
|
|
-DSQLITE_ENABLE_FTS3_PARENTHESIS \
|
|
|
|
-DSQLITE_ENABLE_FTS4 \
|
|
|
|
-DSQLITE_ENABLE_FTS5 \
|
|
|
|
-DSQLITE_ENABLE_GEOPOLY \
|
|
|
|
-DSQLITE_ENABLE_MATH_FUNCTIONS \
|
|
|
|
-DSQLITE_ENABLE_MEMSYS5 \
|
|
|
|
-DSQLITE_ENABLE_NORMALIZE \
|
|
|
|
-DSQLITE_ENABLE_OFFSET_SQL_FUNC \
|
|
|
|
-DSQLITE_ENABLE_PREUPDATE_HOOK \
|
|
|
|
-DSQLITE_ENABLE_RTREE \
|
|
|
|
-DSQLITE_ENABLE_SESSION \
|
|
|
|
-DSQLITE_ENABLE_STMTVTAB \
|
|
|
|
-DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION \
|
|
|
|
-DSQLITE_ENABLE_STAT4 \
|
|
|
|
-DSQLITE_ENABLE_STMT_SCANSTATUS \
|
|
|
|
-DSQLITE_MAX_MEMORY=50000000 \
|
|
|
|
-DSQLITE_MAX_MMAP_SIZE=0 \
|
|
|
|
-DSQLITE_OMIT_LOAD_EXTENSION \
|
|
|
|
-DSQLITE_PRINTF_PRECISION_LIMIT=1000 \
|
|
|
|
-DSQLITE_PRIVATE=""
|
|
|
|
|
2022-10-28 21:35:06 +03:00
|
|
|
FUZZCHECK_SRC += $(TOP)/test/fuzzcheck.c
|
|
|
|
FUZZCHECK_SRC += $(TOP)/test/ossfuzz.c
|
|
|
|
FUZZCHECK_SRC += $(TOP)/test/fuzzinvariants.c
|
|
|
|
FUZZCHECK_SRC += $(TOP)/ext/recover/dbdata.c
|
|
|
|
FUZZCHECK_SRC += $(TOP)/ext/recover/sqlite3recover.c
|
|
|
|
FUZZCHECK_SRC += $(TOP)/test/vt02.c
|
2018-10-29 20:53:23 +03:00
|
|
|
DBFUZZ_OPT =
|
2022-10-09 14:42:12 +03:00
|
|
|
ST_OPT = -DSQLITE_OS_KV_OPTIONAL
|
2015-10-08 22:29:18 +03:00
|
|
|
|
2022-12-10 09:44:48 +03:00
|
|
|
|
|
|
|
# In wasi-sdk builds, disable the CLI shell build in the "all" target.
|
|
|
|
SQLITE3_SHELL_TARGET_ = sqlite3$(TEXE)
|
|
|
|
SQLITE3_SHELL_TARGET_1 =
|
|
|
|
SQLITE3_SHELL_TARGET = $(SQLITE3_SHELL_TARGET_@HAVE_WASI_SDK@)
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
# This is the default Makefile target. The objects listed here
|
|
|
|
# are what get build when you type just "make" with no arguments.
|
|
|
|
#
|
2022-12-10 09:44:48 +03:00
|
|
|
all: sqlite3.h libsqlite3.la $(SQLITE3_SHELL_TARGET) \
|
|
|
|
$(HAVE_TCL:1=libtclsqlite3.la)
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
Makefile: $(TOP)/Makefile.in
|
|
|
|
./config.status
|
|
|
|
|
2009-01-26 23:59:02 +03:00
|
|
|
sqlite3.pc: $(TOP)/sqlite3.pc.in
|
|
|
|
./config.status
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
libsqlite3.la: $(LIBOBJ)
|
2013-10-12 02:19:55 +04:00
|
|
|
$(LTLINK) -no-undefined -o $@ $(LIBOBJ) $(TLIBS) \
|
2008-03-13 22:55:20 +03:00
|
|
|
${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8"
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
libtclsqlite3.la: tclsqlite.lo libsqlite3.la
|
2013-10-12 02:19:55 +04:00
|
|
|
$(LTLINK) -no-undefined -o $@ tclsqlite.lo \
|
2008-07-25 16:49:44 +04:00
|
|
|
libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
|
2009-01-28 07:46:14 +03:00
|
|
|
-rpath "$(TCLLIBDIR)" \
|
|
|
|
-version-info "8:6:8" \
|
|
|
|
-avoid-version
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2017-10-12 16:47:48 +03:00
|
|
|
sqlite3$(TEXE): shell.c sqlite3.c
|
2015-10-08 22:29:18 +03:00
|
|
|
$(LTLINK) $(READLINE_FLAGS) $(SHELL_OPT) -o $@ \
|
2017-10-12 16:47:48 +03:00
|
|
|
shell.c sqlite3.c \
|
2008-03-13 22:55:20 +03:00
|
|
|
$(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
|
2007-12-13 21:20:46 +03:00
|
|
|
|
2016-06-24 05:50:44 +03:00
|
|
|
sqldiff$(TEXE): $(TOP)/tool/sqldiff.c sqlite3.lo sqlite3.h
|
|
|
|
$(LTLINK) -o $@ $(TOP)/tool/sqldiff.c sqlite3.lo $(TLIBS)
|
2015-04-09 16:34:29 +03:00
|
|
|
|
2016-06-24 05:50:44 +03:00
|
|
|
dbhash$(TEXE): $(TOP)/tool/dbhash.c sqlite3.lo sqlite3.h
|
|
|
|
$(LTLINK) -o $@ $(TOP)/tool/dbhash.c sqlite3.lo $(TLIBS)
|
2016-06-08 04:03:05 +03:00
|
|
|
|
2016-06-24 05:50:44 +03:00
|
|
|
scrub$(TEXE): $(TOP)/ext/misc/scrub.c sqlite3.lo
|
2016-05-05 20:15:23 +03:00
|
|
|
$(LTLINK) -o $@ -I. -DSCRUB_STANDALONE \
|
2016-06-24 05:50:44 +03:00
|
|
|
$(TOP)/ext/misc/scrub.c sqlite3.lo $(TLIBS)
|
2016-05-05 20:15:23 +03:00
|
|
|
|
2016-02-07 01:32:06 +03:00
|
|
|
srcck1$(BEXE): $(TOP)/tool/srcck1.c
|
|
|
|
$(BCC) -o srcck1$(BEXE) $(TOP)/tool/srcck1.c
|
|
|
|
|
|
|
|
sourcetest: srcck1$(BEXE) sqlite3.c
|
|
|
|
./srcck1 sqlite3.c
|
|
|
|
|
2023-06-05 01:41:52 +03:00
|
|
|
src-verify: $(TOP)/tool/src-verify.c
|
|
|
|
$(BCC) -o src-verify$(BEXE) $(TOP)/tool/src-verify.c
|
|
|
|
|
|
|
|
verify-source: ./src-verify
|
|
|
|
./src-verify $(TOP)
|
|
|
|
|
2015-10-08 22:29:18 +03:00
|
|
|
fuzzershell$(TEXE): $(TOP)/tool/fuzzershell.c sqlite3.c sqlite3.h
|
|
|
|
$(LTLINK) -o $@ $(FUZZERSHELL_OPT) \
|
|
|
|
$(TOP)/tool/fuzzershell.c sqlite3.c $(TLIBS)
|
2015-04-17 17:30:49 +03:00
|
|
|
|
2022-10-28 21:35:06 +03:00
|
|
|
fuzzcheck$(TEXE): $(FUZZCHECK_SRC) sqlite3.c sqlite3.h $(FUZZCHECK_DEP)
|
2016-11-14 21:27:41 +03:00
|
|
|
$(LTLINK) -o $@ $(FUZZCHECK_OPT) $(FUZZCHECK_SRC) sqlite3.c $(TLIBS)
|
2023-03-21 14:56:04 +03:00
|
|
|
|
|
|
|
fuzzcheck-asan$(TEXE): $(FUZZCHECK_SRC) sqlite3.c sqlite3.h $(FUZZCHECK_DEP)
|
|
|
|
$(LTLINK) -o $@ -fsanitize=address $(FUZZCHECK_OPT) $(FUZZCHECK_SRC) sqlite3.c $(TLIBS)
|
2016-11-14 21:27:41 +03:00
|
|
|
|
2023-10-27 20:40:46 +03:00
|
|
|
fuzzcheck-ubsan$(TEXE): $(FUZZCHECK_SRC) sqlite3.c sqlite3.h $(FUZZCHECK_DEP)
|
|
|
|
$(LTLINK) -o $@ -fsanitize=undefined $(FUZZCHECK_OPT) $(FUZZCHECK_SRC) sqlite3.c $(TLIBS)
|
|
|
|
|
2016-11-14 21:27:41 +03:00
|
|
|
ossshell$(TEXE): $(TOP)/test/ossfuzz.c $(TOP)/test/ossshell.c sqlite3.c sqlite3.h
|
2017-03-17 17:15:06 +03:00
|
|
|
$(LTLINK) -o $@ $(FUZZCHECK_OPT) $(TOP)/test/ossshell.c \
|
|
|
|
$(TOP)/test/ossfuzz.c sqlite3.c $(TLIBS)
|
2015-04-09 16:34:29 +03:00
|
|
|
|
2018-03-07 23:48:21 +03:00
|
|
|
sessionfuzz$(TEXE): $(TOP)/test/sessionfuzz.c sqlite3.c sqlite3.h
|
2018-12-13 15:28:01 +03:00
|
|
|
$(LTLINK) -o $@ $(TOP)/test/sessionfuzz.c $(TLIBS)
|
2018-03-07 23:48:21 +03:00
|
|
|
|
2016-12-17 23:27:22 +03:00
|
|
|
dbfuzz$(TEXE): $(TOP)/test/dbfuzz.c sqlite3.c sqlite3.h
|
|
|
|
$(LTLINK) -o $@ $(DBFUZZ_OPT) $(TOP)/test/dbfuzz.c sqlite3.c $(TLIBS)
|
|
|
|
|
2018-10-27 19:02:16 +03:00
|
|
|
DBFUZZ2_OPTS = \
|
|
|
|
-DSQLITE_THREADSAFE=0 \
|
|
|
|
-DSQLITE_OMIT_LOAD_EXTENSION \
|
|
|
|
-DSQLITE_DEBUG \
|
|
|
|
-DSQLITE_ENABLE_DBSTAT_VTAB \
|
2020-03-23 18:49:22 +03:00
|
|
|
-DSQLITE_ENABLE_BYTECODE_VTAB \
|
2018-10-27 19:02:16 +03:00
|
|
|
-DSQLITE_ENABLE_RTREE \
|
|
|
|
-DSQLITE_ENABLE_FTS4 \
|
2019-01-11 16:03:06 +03:00
|
|
|
-DSQLITE_ENABLE_FTS5
|
2018-10-27 19:02:16 +03:00
|
|
|
|
2019-01-11 16:03:06 +03:00
|
|
|
dbfuzz2$(TEXE): $(TOP)/test/dbfuzz2.c sqlite3.c sqlite3.h
|
|
|
|
$(CC) $(OPT_FEATURE_FLAGS) $(OPTS) -I. -g -O0 \
|
|
|
|
-DSTANDALONE -o dbfuzz2 \
|
|
|
|
$(DBFUZZ2_OPTS) $(TOP)/test/dbfuzz2.c sqlite3.c $(TLIBS)
|
|
|
|
mkdir -p dbfuzz2-dir
|
|
|
|
cp $(TOP)/test/dbfuzz2-seed* dbfuzz2-dir
|
|
|
|
|
|
|
|
dbfuzz2-asan: $(TOP)/test/dbfuzz2.c sqlite3.c sqlite3.h
|
|
|
|
clang-6.0 $(OPT_FEATURE_FLAGS) $(OPTS) -I. -g -O0 \
|
|
|
|
-fsanitize=fuzzer,undefined,address -o dbfuzz2-asan \
|
|
|
|
$(DBFUZZ2_OPTS) $(TOP)/test/dbfuzz2.c sqlite3.c $(TLIBS)
|
|
|
|
mkdir -p dbfuzz2-dir
|
|
|
|
cp $(TOP)/test/dbfuzz2-seed* dbfuzz2-dir
|
|
|
|
|
|
|
|
dbfuzz2-msan: $(TOP)/test/dbfuzz2.c sqlite3.c sqlite3.h
|
2018-12-13 15:37:13 +03:00
|
|
|
clang-6.0 $(OPT_FEATURE_FLAGS) $(OPTS) -I. -g -O0 \
|
2019-01-11 16:03:06 +03:00
|
|
|
-fsanitize=fuzzer,undefined,memory -o dbfuzz2-msan \
|
|
|
|
$(DBFUZZ2_OPTS) $(TOP)/test/dbfuzz2.c sqlite3.c $(TLIBS)
|
2018-10-27 19:02:16 +03:00
|
|
|
mkdir -p dbfuzz2-dir
|
|
|
|
cp $(TOP)/test/dbfuzz2-seed* dbfuzz2-dir
|
|
|
|
|
2016-06-24 05:50:44 +03:00
|
|
|
mptester$(TEXE): sqlite3.lo $(TOP)/mptest/mptest.c
|
|
|
|
$(LTLINK) -o $@ -I. $(TOP)/mptest/mptest.c sqlite3.lo \
|
2013-04-08 18:28:33 +04:00
|
|
|
$(TLIBS) -rpath "$(libdir)"
|
|
|
|
|
2015-05-05 04:09:06 +03:00
|
|
|
MPTEST1=./mptester$(TEXE) mptest.db $(TOP)/mptest/crash01.test --repeat 20
|
|
|
|
MPTEST2=./mptester$(TEXE) mptest.db $(TOP)/mptest/multiwrite01.test --repeat 20
|
|
|
|
mptest: mptester$(TEXE)
|
2015-03-11 17:34:38 +03:00
|
|
|
rm -f mptest.db
|
|
|
|
$(MPTEST1) --journalmode DELETE
|
|
|
|
$(MPTEST2) --journalmode WAL
|
|
|
|
$(MPTEST1) --journalmode WAL
|
|
|
|
$(MPTEST2) --journalmode PERSIST
|
|
|
|
$(MPTEST1) --journalmode PERSIST
|
|
|
|
$(MPTEST2) --journalmode TRUNCATE
|
|
|
|
$(MPTEST1) --journalmode TRUNCATE
|
|
|
|
$(MPTEST2) --journalmode DELETE
|
|
|
|
|
2013-04-08 18:28:33 +04:00
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
has_tclsh84:
|
|
|
|
sh $(TOP)/tool/cktclsh.sh 8.4 $(TCLSH_CMD)
|
|
|
|
touch has_tclsh84
|
|
|
|
|
|
|
|
has_tclsh85:
|
|
|
|
sh $(TOP)/tool/cktclsh.sh 8.5 $(TCLSH_CMD)
|
|
|
|
touch has_tclsh85
|
|
|
|
|
2023-10-04 14:52:44 +03:00
|
|
|
|
2004-06-30 15:41:55 +04: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.
|
|
|
|
#
|
2023-10-04 15:49:08 +03:00
|
|
|
.target_source: $(SRC) $(TOP)/tool/vdbe-compress.tcl has_tclsh84 fts5.c
|
2004-06-30 15:41:55 +04:00
|
|
|
rm -rf tsrc
|
2010-07-07 00:37:09 +04:00
|
|
|
mkdir tsrc
|
|
|
|
cp -f $(SRC) tsrc
|
2004-06-30 15:41:55 +04:00
|
|
|
rm tsrc/sqlite.h.in tsrc/parse.y
|
2013-12-11 04:59:10 +04:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/vdbe-compress.tcl $(OPTS) <tsrc/vdbe.c >vdbe.new
|
2009-06-02 19:21:42 +04:00
|
|
|
mv vdbe.new tsrc/vdbe.c
|
2015-10-08 22:29:18 +03:00
|
|
|
cp fts5.c fts5.h tsrc
|
2008-03-04 22:03:08 +03:00
|
|
|
touch .target_source
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl src-verify has_tclsh84
|
2021-07-14 00:59:22 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl $(AMALGAMATION_LINE_MACROS)
|
2017-10-31 15:20:43 +03:00
|
|
|
cp tsrc/sqlite3ext.h .
|
2013-03-19 19:23:18 +04:00
|
|
|
cp $(TOP)/ext/session/sqlite3session.h .
|
2007-04-05 22:34:58 +04:00
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
sqlite3r.h: sqlite3.h has_tclsh84
|
2022-11-22 19:12:53 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mksqlite3h.tcl $(TOP) --enable-recover >sqlite3r.h
|
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
sqlite3r.c: sqlite3.c sqlite3r.h has_tclsh84
|
2022-11-22 19:12:53 +03:00
|
|
|
cp $(TOP)/ext/recover/sqlite3recover.c tsrc/
|
|
|
|
cp $(TOP)/ext/recover/sqlite3recover.h tsrc/
|
|
|
|
cp $(TOP)/ext/recover/dbdata.c tsrc/
|
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl --enable-recover $(AMALGAMATION_LINE_MACROS)
|
|
|
|
|
2015-09-26 20:44:59 +03:00
|
|
|
sqlite3ext.h: .target_source
|
|
|
|
cp tsrc/sqlite3ext.h .
|
|
|
|
|
2011-11-07 20:46:43 +04: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
|
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl has_tclsh84
|
2011-07-22 15:16:39 +04:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/split-sqlite3c.tcl
|
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
# Rule to build the amalgamation
|
|
|
|
#
|
|
|
|
sqlite3.lo: sqlite3.c
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
# Rules to build the LEMON compiler generator
|
|
|
|
#
|
2015-11-09 22:33:42 +03:00
|
|
|
lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
|
2008-03-14 02:28:22 +03:00
|
|
|
$(BCC) -o $@ $(TOP)/tool/lemon.c
|
2015-11-09 22:33:42 +03:00
|
|
|
cp $(TOP)/tool/lempar.c .
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2017-08-22 22:19:00 +03:00
|
|
|
# Rules to build the program that generates the source-id
|
|
|
|
#
|
|
|
|
mksourceid$(BEXE): $(TOP)/tool/mksourceid.c
|
|
|
|
$(BCC) -o $@ $(TOP)/tool/mksourceid.c
|
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
# Rules to build individual *.o files from generated *.c files. This
|
|
|
|
# applies to:
|
2008-03-04 22:03:08 +03:00
|
|
|
#
|
2010-07-07 00:37:09 +04:00
|
|
|
# parse.o
|
|
|
|
# opcodes.o
|
|
|
|
#
|
|
|
|
parse.lo: parse.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c parse.c
|
2008-03-04 22:03:08 +03:00
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
opcodes.lo: opcodes.c
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c opcodes.c
|
|
|
|
|
|
|
|
# Rules to build individual *.o files from files in the src directory.
|
2004-06-30 15:41:55 +04:00
|
|
|
#
|
2005-02-15 23:47:57 +03:00
|
|
|
alter.lo: $(TOP)/src/alter.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/alter.c
|
2005-02-15 23:47:57 +03:00
|
|
|
|
2005-07-08 16:13:04 +04:00
|
|
|
analyze.lo: $(TOP)/src/analyze.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/analyze.c
|
2005-07-08 16:13:04 +04:00
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
attach.lo: $(TOP)/src/attach.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/attach.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
auth.lo: $(TOP)/src/auth.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/auth.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2009-02-21 01:27:41 +03:00
|
|
|
backup.lo: $(TOP)/src/backup.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/backup.c
|
|
|
|
|
2008-02-27 06:22:49 +03:00
|
|
|
bitvec.lo: $(TOP)/src/bitvec.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/bitvec.c
|
2008-02-27 06:22:49 +03:00
|
|
|
|
2007-08-28 06:27:51 +04:00
|
|
|
btmutex.lo: $(TOP)/src/btmutex.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btmutex.c
|
2007-08-28 06:27:51 +04:00
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
btree.lo: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btree.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
build.lo: $(TOP)/src/build.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/build.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2005-05-24 16:01:00 +04:00
|
|
|
callback.lo: $(TOP)/src/callback.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/callback.c
|
2005-05-24 16:01:00 +04:00
|
|
|
|
2005-08-14 21:53:20 +04:00
|
|
|
complete.lo: $(TOP)/src/complete.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/complete.c
|
2005-08-14 21:53:20 +04:00
|
|
|
|
2010-02-23 23:08:35 +03:00
|
|
|
ctime.lo: $(TOP)/src/ctime.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/ctime.c
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
date.lo: $(TOP)/src/date.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2017-10-11 16:48:11 +03:00
|
|
|
dbpage.lo: $(TOP)/src/dbpage.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/dbpage.c
|
|
|
|
|
2015-05-04 21:31:09 +03:00
|
|
|
dbstat.lo: $(TOP)/src/dbstat.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/dbstat.c
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
delete.lo: $(TOP)/src/delete.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
expr.lo: $(TOP)/src/expr.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/expr.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-01-23 00:30:53 +03:00
|
|
|
fault.lo: $(TOP)/src/fault.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fault.c
|
2008-01-23 00:30:53 +03:00
|
|
|
|
2009-09-19 21:59:59 +04:00
|
|
|
fkey.lo: $(TOP)/src/fkey.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fkey.c
|
|
|
|
|
2008-08-21 22:49:27 +04:00
|
|
|
func.lo: $(TOP)/src/func.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/func.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-06-13 22:24:27 +04:00
|
|
|
global.lo: $(TOP)/src/global.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/global.c
|
2008-06-13 22:24:27 +04:00
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
hash.lo: $(TOP)/src/hash.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/hash.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
insert.lo: $(TOP)/src/insert.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/insert.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2022-06-27 14:28:25 +03:00
|
|
|
json.lo: $(TOP)/src/json.c $(HDR)
|
2022-01-06 04:40:09 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/json.c
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
legacy.lo: $(TOP)/src/legacy.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/legacy.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2006-06-08 19:28:43 +04:00
|
|
|
loadext.lo: $(TOP)/src/loadext.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/loadext.c
|
2006-06-08 19:28:43 +04:00
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
main.lo: $(TOP)/src/main.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/main.c
|
|
|
|
|
2007-05-05 15:48:52 +04:00
|
|
|
malloc.lo: $(TOP)/src/malloc.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/malloc.c
|
|
|
|
|
2008-10-28 21:58:20 +03:00
|
|
|
mem0.lo: $(TOP)/src/mem0.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem0.c
|
|
|
|
|
2007-08-28 03:38:43 +04: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 21:47:24 +04:00
|
|
|
mem3.lo: $(TOP)/src/mem3.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem3.c
|
|
|
|
|
2008-03-02 08:34:10 +03:00
|
|
|
mem5.lo: $(TOP)/src/mem5.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem5.c
|
|
|
|
|
2018-01-03 04:28:46 +03:00
|
|
|
memdb.lo: $(TOP)/src/memdb.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/memdb.c
|
|
|
|
|
2008-10-21 08:30:31 +04:00
|
|
|
memjournal.lo: $(TOP)/src/memjournal.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/memjournal.c
|
2008-10-21 08:30:31 +04:00
|
|
|
|
2007-08-28 03:38:43 +04:00
|
|
|
mutex.lo: $(TOP)/src/mutex.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex.c
|
|
|
|
|
2008-10-07 19:25:48 +04:00
|
|
|
mutex_noop.lo: $(TOP)/src/mutex_noop.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_noop.c
|
|
|
|
|
2007-08-28 20:34:42 +04: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-03-16 17:48:18 +03:00
|
|
|
notify.lo: $(TOP)/src/notify.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/notify.c
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
pager.lo: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pager.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-08-20 18:49:23 +04:00
|
|
|
pcache.lo: $(TOP)/src/pcache.c $(HDR) $(TOP)/src/pcache.h
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache.c
|
2008-08-20 18:49:23 +04:00
|
|
|
|
2008-11-13 17:28:28 +03:00
|
|
|
pcache1.lo: $(TOP)/src/pcache1.c $(HDR) $(TOP)/src/pcache.h
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache1.c
|
2008-11-13 17:28:28 +03:00
|
|
|
|
2005-11-30 06:20:31 +03:00
|
|
|
os.lo: $(TOP)/src/os.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os.c
|
2005-11-30 06:20:31 +03:00
|
|
|
|
2022-09-10 21:20:59 +03:00
|
|
|
os_kv.lo: $(TOP)/src/os_kv.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_kv.c
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
os_unix.lo: $(TOP)/src/os_unix.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_unix.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
os_win.lo: $(TOP)/src/os_win.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_win.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
pragma.lo: $(TOP)/src/pragma.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pragma.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2005-05-25 08:11:56 +04:00
|
|
|
prepare.lo: $(TOP)/src/prepare.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/prepare.c
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
printf.lo: $(TOP)/src/printf.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/printf.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
random.lo: $(TOP)/src/random.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/random.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-08-20 20:35:10 +04:00
|
|
|
resolve.lo: $(TOP)/src/resolve.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/resolve.c
|
2008-08-20 20:35:10 +04:00
|
|
|
|
2008-12-04 23:40:10 +03:00
|
|
|
rowset.lo: $(TOP)/src/rowset.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/rowset.c
|
2008-12-04 23:40:10 +03:00
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
select.lo: $(TOP)/src/select.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/select.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-06-19 04:16:08 +04:00
|
|
|
status.lo: $(TOP)/src/status.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/status.c
|
2008-06-19 04:16:08 +04:00
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
table.lo: $(TOP)/src/table.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2012-07-21 23:40:42 +04:00
|
|
|
threads.lo: $(TOP)/src/threads.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/threads.c
|
|
|
|
|
2005-01-18 07:00:42 +03:00
|
|
|
tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/tokenize.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2015-06-08 18:08:15 +03:00
|
|
|
treeview.lo: $(TOP)/src/treeview.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/treeview.c
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
trigger.lo: $(TOP)/src/trigger.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/trigger.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
update.lo: $(TOP)/src/update.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/update.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2018-04-13 00:42:51 +03:00
|
|
|
upsert.lo: $(TOP)/src/upsert.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/upsert.c
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
utf.lo: $(TOP)/src/utf.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/utf.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
util.lo: $(TOP)/src/util.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/util.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
vacuum.lo: $(TOP)/src/vacuum.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vacuum.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-03-13 21:28:03 +03:00
|
|
|
vdbe.lo: $(TOP)/src/vdbe.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbe.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-03-13 21:28:03 +03:00
|
|
|
vdbeapi.lo: $(TOP)/src/vdbeapi.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeapi.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-03-13 21:28:03 +03:00
|
|
|
vdbeaux.lo: $(TOP)/src/vdbeaux.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeaux.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-03-13 21:28:03 +03:00
|
|
|
vdbeblob.lo: $(TOP)/src/vdbeblob.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeblob.c
|
2007-05-17 20:38:30 +04:00
|
|
|
|
2008-03-13 21:28:03 +03:00
|
|
|
vdbemem.lo: $(TOP)/src/vdbemem.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbemem.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2011-08-12 20:34:42 +04:00
|
|
|
vdbesort.lo: $(TOP)/src/vdbesort.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbesort.c
|
|
|
|
|
2009-11-25 21:03:42 +03:00
|
|
|
vdbetrace.lo: $(TOP)/src/vdbetrace.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbetrace.c
|
|
|
|
|
2020-03-23 18:49:22 +03:00
|
|
|
vdbevtab.lo: $(TOP)/src/vdbevtab.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbevtab.c
|
|
|
|
|
2008-03-13 21:28:03 +03:00
|
|
|
vtab.lo: $(TOP)/src/vtab.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vtab.c
|
2006-06-12 03:41:55 +04:00
|
|
|
|
2010-04-26 04:19:45 +04:00
|
|
|
wal.lo: $(TOP)/src/wal.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wal.c
|
|
|
|
|
2008-08-20 20:35:10 +04:00
|
|
|
walker.lo: $(TOP)/src/walker.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/walker.c
|
2008-08-20 20:35:10 +04:00
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
where.lo: $(TOP)/src/where.c $(HDR)
|
2009-01-19 21:18:40 +03:00
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/where.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2015-06-06 23:12:09 +03:00
|
|
|
wherecode.lo: $(TOP)/src/wherecode.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wherecode.c
|
|
|
|
|
2015-06-08 17:23:15 +03:00
|
|
|
whereexpr.lo: $(TOP)/src/whereexpr.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/whereexpr.c
|
|
|
|
|
2018-06-09 20:58:51 +03:00
|
|
|
window.lo: $(TOP)/src/window.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/window.c
|
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR)
|
|
|
|
$(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c
|
|
|
|
|
2004-11-25 16:50:01 +03:00
|
|
|
tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR)
|
2017-10-13 23:14:06 +03:00
|
|
|
$(LTCOMPILE) -DTCLSH -o $@ -c $(TOP)/src/tclsqlite.c
|
2004-11-25 16:50:01 +03:00
|
|
|
|
|
|
|
tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR)
|
2010-08-19 18:41:58 +04:00
|
|
|
$(LTCOMPILE) -DUSE_TCL_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2008-03-14 02:28:22 +03:00
|
|
|
tclsqlite3$(TEXE): tclsqlite-shell.lo libsqlite3.la
|
|
|
|
$(LTLINK) -o $@ tclsqlite-shell.lo \
|
2004-06-30 15:41:55 +04:00
|
|
|
libsqlite3.la $(LIBTCL)
|
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
# Rules to build opcodes.c and opcodes.h
|
|
|
|
#
|
2023-10-04 15:49:08 +03:00
|
|
|
opcodes.c: opcodes.h $(TOP)/tool/mkopcodec.tcl has_tclsh84
|
2015-10-07 15:11:36 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mkopcodec.tcl opcodes.h >opcodes.c
|
2010-07-07 00:37:09 +04:00
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/tool/mkopcodeh.tcl has_tclsh84
|
2015-10-07 05:52:09 +03:00
|
|
|
cat parse.h $(TOP)/src/vdbe.c | $(TCLSH_CMD) $(TOP)/tool/mkopcodeh.tcl >opcodes.h
|
2010-07-07 00:37:09 +04:00
|
|
|
|
|
|
|
# Rules to build parse.c and parse.h - the outputs of lemon.
|
|
|
|
#
|
|
|
|
parse.h: parse.c
|
|
|
|
|
2019-04-05 23:56:46 +03:00
|
|
|
parse.c: $(TOP)/src/parse.y lemon$(BEXE)
|
2010-07-07 00:37:09 +04:00
|
|
|
cp $(TOP)/src/parse.y .
|
2019-11-26 05:22:39 +03:00
|
|
|
./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) -S parse.y
|
2010-07-07 00:37:09 +04:00
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest mksourceid$(BEXE) $(TOP)/VERSION has_tclsh84
|
2011-07-22 14:33:04 +04:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h
|
2010-07-07 00:37:09 +04:00
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
sqlite3rc.h: $(TOP)/src/sqlite3.rc $(TOP)/VERSION has_tclsh84
|
2020-06-19 18:33:23 +03:00
|
|
|
echo '#ifndef SQLITE_RESOURCE_VERSION' >$@
|
|
|
|
echo -n '#define SQLITE_RESOURCE_VERSION ' >>$@
|
|
|
|
cat $(TOP)/VERSION | $(TCLSH_CMD) $(TOP)/tool/replace.tcl exact . , >>$@
|
|
|
|
echo '#endif' >>sqlite3rc.h
|
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
keywordhash.h: $(TOP)/tool/mkkeywordhash.c
|
|
|
|
$(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/mkkeywordhash.c
|
|
|
|
./mkkeywordhash$(BEXE) >keywordhash.h
|
|
|
|
|
2017-10-12 16:47:48 +03:00
|
|
|
# Source files that go into making shell.c
|
|
|
|
SHELL_SRC = \
|
|
|
|
$(TOP)/src/shell.c.in \
|
2018-01-07 23:38:10 +03:00
|
|
|
$(TOP)/ext/misc/appendvfs.c \
|
2020-06-24 18:06:29 +03:00
|
|
|
$(TOP)/ext/misc/completion.c \
|
2020-06-22 22:12:23 +03:00
|
|
|
$(TOP)/ext/misc/decimal.c \
|
2022-12-23 22:04:59 +03:00
|
|
|
$(TOP)/ext/misc/basexx.c \
|
|
|
|
$(TOP)/ext/misc/base64.c \
|
|
|
|
$(TOP)/ext/misc/base85.c \
|
2017-10-12 16:47:48 +03:00
|
|
|
$(TOP)/ext/misc/fileio.c \
|
2020-06-24 18:06:29 +03:00
|
|
|
$(TOP)/ext/misc/ieee754.c \
|
2021-06-04 19:17:38 +03:00
|
|
|
$(TOP)/ext/misc/regexp.c \
|
2020-11-25 19:28:04 +03:00
|
|
|
$(TOP)/ext/misc/series.c \
|
2020-06-24 18:06:29 +03:00
|
|
|
$(TOP)/ext/misc/shathree.c \
|
2018-01-05 19:23:43 +03:00
|
|
|
$(TOP)/ext/misc/sqlar.c \
|
2020-04-14 18:53:58 +03:00
|
|
|
$(TOP)/ext/misc/uint.c \
|
2018-01-05 19:23:43 +03:00
|
|
|
$(TOP)/ext/expert/sqlite3expert.c \
|
|
|
|
$(TOP)/ext/expert/sqlite3expert.h \
|
|
|
|
$(TOP)/ext/misc/zipfile.c \
|
2019-01-21 17:55:03 +03:00
|
|
|
$(TOP)/ext/misc/memtrace.c \
|
2023-06-21 17:11:25 +03:00
|
|
|
$(TOP)/ext/misc/pcachetrace.c \
|
2022-10-19 21:03:39 +03:00
|
|
|
$(TOP)/ext/recover/dbdata.c \
|
2022-09-14 23:45:46 +03:00
|
|
|
$(TOP)/ext/recover/sqlite3recover.c \
|
|
|
|
$(TOP)/ext/recover/sqlite3recover.h \
|
2018-01-05 19:23:43 +03:00
|
|
|
$(TOP)/src/test_windirent.c
|
2017-10-12 16:47:48 +03:00
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
shell.c: $(SHELL_SRC) $(TOP)/tool/mkshellc.tcl has_tclsh84
|
2017-10-12 16:47:48 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mkshellc.tcl >shell.c
|
|
|
|
|
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
|
|
|
|
|
|
|
|
# Rules to build the extension objects.
|
|
|
|
#
|
|
|
|
icu.lo: $(TOP)/ext/icu/icu.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/icu/icu.c
|
|
|
|
|
|
|
|
fts3.lo: $(TOP)/ext/fts3/fts3.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3.c
|
|
|
|
|
2011-02-09 18:25:17 +03:00
|
|
|
fts3_aux.lo: $(TOP)/ext/fts3/fts3_aux.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_aux.c
|
|
|
|
|
2010-07-07 00:37:09 +04: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
|
|
|
|
|
2011-05-13 01:01:12 +04:00
|
|
|
fts3_porter.lo: $(TOP)/ext/fts3/fts3_porter.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_porter.c
|
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
fts3_snippet.lo: $(TOP)/ext/fts3/fts3_snippet.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_snippet.c
|
|
|
|
|
|
|
|
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-16 22:33:06 +04: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
|
2013-04-22 19:30:37 +04:00
|
|
|
|
2012-06-09 22:52:29 +04: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-07 00:37:09 +04: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
|
|
|
|
|
2019-03-08 23:26:12 +03:00
|
|
|
userauth.lo: $(TOP)/ext/userauth/userauth.c $(HDR) $(EXTHDR)
|
2018-11-28 11:24:41 +03:00
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/userauth/userauth.c
|
|
|
|
|
2019-03-08 23:26:12 +03:00
|
|
|
sqlite3session.lo: $(TOP)/ext/session/sqlite3session.c $(HDR) $(EXTHDR)
|
2013-03-13 15:42:00 +04:00
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/session/sqlite3session.c
|
|
|
|
|
2017-06-29 17:33:51 +03:00
|
|
|
stmt.lo: $(TOP)/ext/misc/stmt.c
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/misc/stmt.c
|
2017-06-28 18:47:29 +03:00
|
|
|
|
2015-06-25 23:36:36 +03:00
|
|
|
# FTS5 things
|
|
|
|
#
|
|
|
|
FTS5_SRC = \
|
|
|
|
$(TOP)/ext/fts5/fts5.h \
|
|
|
|
$(TOP)/ext/fts5/fts5Int.h \
|
|
|
|
$(TOP)/ext/fts5/fts5_aux.c \
|
|
|
|
$(TOP)/ext/fts5/fts5_buffer.c \
|
|
|
|
$(TOP)/ext/fts5/fts5_main.c \
|
|
|
|
$(TOP)/ext/fts5/fts5_config.c \
|
|
|
|
$(TOP)/ext/fts5/fts5_expr.c \
|
|
|
|
$(TOP)/ext/fts5/fts5_hash.c \
|
|
|
|
$(TOP)/ext/fts5/fts5_index.c \
|
|
|
|
fts5parse.c fts5parse.h \
|
|
|
|
$(TOP)/ext/fts5/fts5_storage.c \
|
|
|
|
$(TOP)/ext/fts5/fts5_tokenize.c \
|
|
|
|
$(TOP)/ext/fts5/fts5_unicode2.c \
|
|
|
|
$(TOP)/ext/fts5/fts5_varint.c \
|
|
|
|
$(TOP)/ext/fts5/fts5_vocab.c \
|
|
|
|
|
2019-12-26 04:10:17 +03:00
|
|
|
fts5parse.c: $(TOP)/ext/fts5/fts5parse.y lemon$(BEXE)
|
2015-05-19 14:38:32 +03:00
|
|
|
cp $(TOP)/ext/fts5/fts5parse.y .
|
|
|
|
rm -f fts5parse.h
|
2019-11-26 05:22:39 +03:00
|
|
|
./lemon$(BEXE) $(OPTS) -S fts5parse.y
|
2015-05-19 14:38:32 +03:00
|
|
|
|
|
|
|
fts5parse.h: fts5parse.c
|
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
fts5.c: $(FTS5_SRC) has_tclsh84
|
2015-06-25 23:36:36 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)/ext/fts5/tool/mkfts5c.tcl
|
2015-07-02 23:12:34 +03:00
|
|
|
cp $(TOP)/ext/fts5/fts5.h .
|
2015-06-25 23:36:36 +03:00
|
|
|
|
|
|
|
fts5.lo: fts5.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c fts5.c
|
|
|
|
|
2016-01-14 16:22:24 +03:00
|
|
|
sqlite3rbu.lo: $(TOP)/ext/rbu/sqlite3rbu.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/rbu/sqlite3rbu.c
|
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
|
|
|
|
# Rules to build the 'testfixture' application.
|
|
|
|
#
|
|
|
|
# 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).
|
|
|
|
#
|
2017-10-13 23:14:06 +03:00
|
|
|
TESTFIXTURE_FLAGS = -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1
|
|
|
|
TESTFIXTURE_FLAGS += -DTCLSH_INIT_PROC=sqlite3TestInit
|
2018-10-29 20:53:23 +03:00
|
|
|
TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE
|
2011-09-23 20:34:49 +04:00
|
|
|
TESTFIXTURE_FLAGS += -DBUILD_sqlite
|
2016-03-02 06:28:07 +03:00
|
|
|
TESTFIXTURE_FLAGS += -DSQLITE_SERIES_CONSTRAINT_VERIFY=1
|
2016-03-04 06:43:10 +03:00
|
|
|
TESTFIXTURE_FLAGS += -DSQLITE_DEFAULT_PAGE_SIZE=1024
|
2017-06-29 17:33:51 +03:00
|
|
|
TESTFIXTURE_FLAGS += -DSQLITE_ENABLE_STMTVTAB
|
2017-10-13 18:56:26 +03:00
|
|
|
TESTFIXTURE_FLAGS += -DSQLITE_ENABLE_DBPAGE_VTAB
|
2020-03-23 18:49:22 +03:00
|
|
|
TESTFIXTURE_FLAGS += -DSQLITE_ENABLE_BYTECODE_VTAB
|
2020-11-18 21:36:43 +03:00
|
|
|
TESTFIXTURE_FLAGS += -DSQLITE_CKSUMVFS_STATIC
|
2010-07-07 00:37:09 +04:00
|
|
|
|
|
|
|
TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la
|
|
|
|
TESTFIXTURE_SRC1 = sqlite3.c
|
2013-03-19 19:23:18 +04:00
|
|
|
TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c
|
|
|
|
TESTFIXTURE_SRC += $(TESTFIXTURE_SRC$(USE_AMALGAMATION))
|
2010-07-07 00:37:09 +04:00
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
testfixture$(TEXE): has_tclsh85 $(TESTFIXTURE_SRC)
|
2010-07-07 00:37:09 +04:00
|
|
|
$(LTLINK) -DSQLITE_NO_SYNC=1 $(TEMP_STORE) $(TESTFIXTURE_FLAGS) \
|
2008-05-13 04:57:21 +04:00
|
|
|
-o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS)
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2018-10-29 20:53:23 +03:00
|
|
|
coretestprogs: $(TESTPROGS)
|
|
|
|
|
|
|
|
testprogs: coretestprogs srcck1$(BEXE) fuzzcheck$(TEXE) sessionfuzz$(TEXE)
|
|
|
|
|
2015-01-08 04:05:42 +03:00
|
|
|
# A very detailed test running most or all test cases
|
2021-10-07 22:27:17 +03:00
|
|
|
fulltest: alltest fuzztest
|
|
|
|
|
|
|
|
# Run most or all tcl test cases
|
|
|
|
alltest: $(TESTPROGS)
|
2015-06-10 21:53:09 +03:00
|
|
|
./testfixture$(TEXE) $(TOP)/test/all.test $(TESTOPTS)
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2015-01-08 04:05:42 +03:00
|
|
|
# Really really long testing
|
2015-05-26 21:15:08 +03:00
|
|
|
soaktest: $(TESTPROGS)
|
2015-06-10 21:53:09 +03:00
|
|
|
./testfixture$(TEXE) $(TOP)/test/all.test -soak=1 $(TESTOPTS)
|
2010-07-07 00:37:09 +04:00
|
|
|
|
2015-05-11 19:27:33 +03:00
|
|
|
# Do extra testing but not everything.
|
2015-07-24 20:26:13 +03:00
|
|
|
fulltestonly: $(TESTPROGS) fuzztest
|
2012-09-13 05:51:02 +04:00
|
|
|
./testfixture$(TEXE) $(TOP)/test/full.test
|
|
|
|
|
2015-04-24 19:09:12 +03:00
|
|
|
# Fuzz testing
|
2023-08-27 00:04:54 +03:00
|
|
|
#
|
|
|
|
# WARNING: When the "fuzztest" target is run by the testrunner.tcl script,
|
|
|
|
# it does not actually run this code. Instead, it schedules equivalent
|
|
|
|
# commands. Therefore, if this target is updated, then code in
|
|
|
|
# testrunner_data.tcl (search for "trd_fuzztest_data") must also be updated.
|
|
|
|
#
|
2023-08-25 14:06:26 +03:00
|
|
|
fuzztest: fuzzcheck$(TEXE) $(FUZZDATA) sessionfuzz$(TEXE)
|
2015-05-26 21:15:08 +03:00
|
|
|
./fuzzcheck$(TEXE) $(FUZZDATA)
|
2018-03-07 23:48:21 +03:00
|
|
|
./sessionfuzz$(TEXE) run $(TOP)/test/sessionfuzz-data1.db
|
2015-04-25 16:39:29 +03:00
|
|
|
|
2023-08-25 14:06:26 +03:00
|
|
|
valgrindfuzz: fuzzcheck$(TEXT) $(FUZZDATA) sessionfuzz$(TEXE)
|
2021-03-03 19:46:03 +03:00
|
|
|
valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M $(FUZZDATA)
|
2018-03-07 23:48:21 +03:00
|
|
|
valgrind ./sessionfuzz$(TEXE) run $(TOP)/test/sessionfuzz-data1.db
|
2015-06-08 22:15:50 +03:00
|
|
|
|
2016-12-14 14:23:51 +03:00
|
|
|
# The veryquick.test TCL tests.
|
|
|
|
#
|
|
|
|
tcltest: ./testfixture$(TEXE)
|
|
|
|
./testfixture$(TEXE) $(TOP)/test/veryquick.test $(TESTOPTS)
|
2016-11-14 21:27:41 +03:00
|
|
|
|
2022-07-18 21:13:02 +03:00
|
|
|
# Runs all the same tests cases as the "tcltest" target but uses
|
|
|
|
# the testrunner.tcl script to run them in multiple cores
|
|
|
|
# concurrently.
|
|
|
|
testrunner: testfixture$(TEXE)
|
|
|
|
./testfixture$(TEXE) $(TOP)/test/testrunner.tcl
|
|
|
|
|
2023-02-05 20:40:03 +03:00
|
|
|
# Runs both fuzztest and testrunner, consecutively.
|
|
|
|
#
|
2023-10-09 17:56:15 +03:00
|
|
|
devtest: srctree-check testfixture$(TEXE) fuzztest testrunner
|
2023-02-05 20:40:03 +03:00
|
|
|
|
2023-10-09 17:56:15 +03:00
|
|
|
mdevtest: srctree-check has_tclsh85
|
2023-08-12 20:36:57 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)/test/testrunner.tcl mdevtest
|
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
sdevtest: has_tclsh85
|
2023-08-22 18:19:50 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)/test/testrunner.tcl sdevtest
|
|
|
|
|
2023-10-09 17:56:15 +03:00
|
|
|
# Validate that various generated files in the source tree
|
|
|
|
# are up-to-date.
|
|
|
|
#
|
|
|
|
srctree-check: $(TOP)/tool/srctree-check.tcl
|
|
|
|
$(TCLSH_CMD) $(TOP)/tool/srctree-check.tcl
|
|
|
|
|
2023-02-06 17:11:18 +03:00
|
|
|
# Testing for a release
|
|
|
|
#
|
2023-10-09 17:56:15 +03:00
|
|
|
releasetest: srctree-check testfixture$(TEXE)
|
2023-02-06 17:16:15 +03:00
|
|
|
./testfixture$(TEXE) $(TOP)/test/testrunner.tcl release
|
2023-02-06 17:11:18 +03:00
|
|
|
|
2015-06-10 21:53:09 +03:00
|
|
|
# Minimal testing that runs in less than 3 minutes
|
|
|
|
#
|
|
|
|
quicktest: ./testfixture$(TEXE)
|
|
|
|
./testfixture$(TEXE) $(TOP)/test/extraquick.test $(TESTOPTS)
|
|
|
|
|
|
|
|
# This is the common case. Run many tests that do not take too long,
|
|
|
|
# including fuzzcheck, sqlite3_analyzer, and sqldiff tests.
|
2015-01-08 04:05:42 +03:00
|
|
|
#
|
2023-10-09 17:56:15 +03:00
|
|
|
test: srctree-check fuzztest sourcetest $(TESTPROGS) tcltest
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2015-01-08 04:05:42 +03:00
|
|
|
# Run a test using valgrind. This can take a really long time
|
|
|
|
# because valgrind is so much slower than a native machine.
|
|
|
|
#
|
2015-06-08 22:15:50 +03:00
|
|
|
valgrindtest: $(TESTPROGS) valgrindfuzz
|
2015-06-10 21:53:09 +03:00
|
|
|
OMIT_MISUSE=1 valgrind -v ./testfixture$(TEXE) $(TOP)/test/permutations.test valgrind $(TESTOPTS)
|
2015-01-07 17:09:41 +03:00
|
|
|
|
2015-01-08 04:05:42 +03:00
|
|
|
# A very fast test that checks basic sanity. The name comes from
|
|
|
|
# the 60s-era electronics testing: "Turn it on and see if smoke
|
|
|
|
# comes out."
|
|
|
|
#
|
2015-05-26 21:15:08 +03:00
|
|
|
smoketest: $(TESTPROGS) fuzzcheck$(TEXE)
|
2015-06-10 21:53:09 +03:00
|
|
|
./testfixture$(TEXE) $(TOP)/test/main.test $(TESTOPTS)
|
2015-01-08 04:05:42 +03:00
|
|
|
|
2020-05-29 22:39:35 +03:00
|
|
|
shelltest: $(TESTPROGS)
|
|
|
|
./testfixture$(TEXT) $(TOP)/test/permutations.test shell
|
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
sqlite3_analyzer.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqlite3_analyzer.c.in has_tclsh85
|
2017-10-13 21:58:55 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqlite3_analyzer.c.in >sqlite3_analyzer.c
|
2011-09-21 21:04:21 +04:00
|
|
|
|
2011-09-21 22:29:49 +04:00
|
|
|
sqlite3_analyzer$(TEXE): sqlite3_analyzer.c
|
2011-09-21 21:04:21 +04:00
|
|
|
$(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS)
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
sqltclsh.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/sqltclsh.tcl $(TOP)/ext/misc/appendvfs.c $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqltclsh.c.in has_tclsh85
|
2017-12-14 22:24:00 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqltclsh.c.in >sqltclsh.c
|
|
|
|
|
|
|
|
sqltclsh$(TEXE): sqltclsh.c
|
|
|
|
$(LTLINK) sqltclsh.c -o $@ $(LIBTCL) $(TLIBS)
|
|
|
|
|
2017-05-03 15:15:20 +03:00
|
|
|
sqlite3_expert$(TEXE): $(TOP)/ext/expert/sqlite3expert.h $(TOP)/ext/expert/sqlite3expert.c $(TOP)/ext/expert/expert.c sqlite3.c
|
|
|
|
$(LTLINK) $(TOP)/ext/expert/sqlite3expert.h $(TOP)/ext/expert/sqlite3expert.c $(TOP)/ext/expert/expert.c sqlite3.c -o sqlite3_expert $(TLIBS)
|
|
|
|
|
2017-10-31 18:49:19 +03:00
|
|
|
CHECKER_DEPS =\
|
|
|
|
$(TOP)/tool/mkccode.tcl \
|
|
|
|
sqlite3.c \
|
|
|
|
$(TOP)/src/tclsqlite.c \
|
|
|
|
$(TOP)/ext/repair/sqlite3_checker.tcl \
|
|
|
|
$(TOP)/ext/repair/checkindex.c \
|
2017-10-31 21:09:40 +03:00
|
|
|
$(TOP)/ext/repair/checkfreelist.c \
|
2017-10-31 18:49:19 +03:00
|
|
|
$(TOP)/ext/misc/btreeinfo.c \
|
|
|
|
$(TOP)/ext/repair/sqlite3_checker.c.in
|
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
sqlite3_checker.c: $(CHECKER_DEPS) has_tclsh85
|
2017-10-31 18:49:19 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)/tool/mkccode.tcl $(TOP)/ext/repair/sqlite3_checker.c.in >$@
|
|
|
|
|
|
|
|
sqlite3_checker$(TEXE): sqlite3_checker.c
|
|
|
|
$(LTLINK) sqlite3_checker.c -o $@ $(LIBTCL) $(TLIBS)
|
|
|
|
|
2017-03-13 22:26:34 +03:00
|
|
|
dbdump$(TEXE): $(TOP)/ext/misc/dbdump.c sqlite3.lo
|
|
|
|
$(LTLINK) -DDBDUMP_STANDALONE -o $@ \
|
|
|
|
$(TOP)/ext/misc/dbdump.c sqlite3.lo $(TLIBS)
|
|
|
|
|
2018-12-13 18:06:26 +03:00
|
|
|
dbtotxt$(TEXE): $(TOP)/tool/dbtotxt.c
|
|
|
|
$(LTLINK)-o $@ $(TOP)/tool/dbtotxt.c
|
|
|
|
|
2014-06-30 15:14:26 +04:00
|
|
|
showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo
|
|
|
|
$(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS)
|
|
|
|
|
|
|
|
showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo
|
|
|
|
$(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS)
|
|
|
|
|
|
|
|
showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo
|
|
|
|
$(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS)
|
|
|
|
|
|
|
|
showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo
|
|
|
|
$(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS)
|
|
|
|
|
2017-10-31 02:25:06 +03:00
|
|
|
showshm$(TEXE): $(TOP)/tool/showshm.c
|
|
|
|
$(LTLINK) -o $@ $(TOP)/tool/showshm.c
|
|
|
|
|
2018-12-04 19:51:42 +03:00
|
|
|
index_usage$(TEXE): $(TOP)/tool/index_usage.c sqlite3.lo
|
2019-01-30 17:01:43 +03:00
|
|
|
$(LTLINK) $(SHELL_OPT) -o $@ $(TOP)/tool/index_usage.c sqlite3.lo $(TLIBS)
|
2018-12-04 19:51:42 +03:00
|
|
|
|
2014-08-19 00:23:29 +04:00
|
|
|
changeset$(TEXE): $(TOP)/ext/session/changeset.c sqlite3.lo
|
|
|
|
$(LTLINK) -o $@ $(TOP)/ext/session/changeset.c sqlite3.lo $(TLIBS)
|
|
|
|
|
2018-11-05 23:37:33 +03:00
|
|
|
changesetfuzz$(TEXE): $(TOP)/ext/session/changesetfuzz.c sqlite3.lo
|
|
|
|
$(LTLINK) -o $@ $(TOP)/ext/session/changesetfuzz.c sqlite3.lo $(TLIBS)
|
|
|
|
|
2014-06-30 15:14:26 +04:00
|
|
|
rollback-test$(TEXE): $(TOP)/tool/rollback-test.c sqlite3.lo
|
|
|
|
$(LTLINK) -o $@ $(TOP)/tool/rollback-test.c sqlite3.lo $(TLIBS)
|
2013-11-07 22:37:31 +04:00
|
|
|
|
2018-08-23 23:09:19 +03:00
|
|
|
atrc$(TEXX): $(TOP)/test/atrc.c sqlite3.lo
|
|
|
|
$(LTLINK) -o $@ $(TOP)/test/atrc.c sqlite3.lo $(TLIBS)
|
|
|
|
|
2014-06-18 22:10:12 +04:00
|
|
|
LogEst$(TEXE): $(TOP)/tool/logest.c sqlite3.h
|
|
|
|
$(LTLINK) -I. -o $@ $(TOP)/tool/logest.c
|
2013-11-07 22:37:31 +04:00
|
|
|
|
2016-06-24 05:50:44 +03:00
|
|
|
wordcount$(TEXE): $(TOP)/test/wordcount.c sqlite3.lo
|
|
|
|
$(LTLINK) -o $@ $(TOP)/test/wordcount.c sqlite3.lo $(TLIBS)
|
2013-11-07 22:37:31 +04:00
|
|
|
|
2022-10-09 14:42:12 +03:00
|
|
|
speedtest1$(TEXE): $(TOP)/test/speedtest1.c sqlite3.c Makefile
|
2017-01-23 22:11:38 +03:00
|
|
|
$(LTLINK) $(ST_OPT) -o $@ $(TOP)/test/speedtest1.c sqlite3.c $(TLIBS)
|
|
|
|
|
2021-01-01 18:13:17 +03:00
|
|
|
startup$(TEXE): $(TOP)/test/startup.c sqlite3.c
|
2021-01-01 21:32:15 +03:00
|
|
|
$(CC) -Os -g -DSQLITE_THREADSAFE=0 -o $@ $(TOP)/test/startup.c sqlite3.c $(TLIBS)
|
2021-01-01 18:13:17 +03:00
|
|
|
|
2017-01-23 22:11:38 +03:00
|
|
|
KV_OPT += -DSQLITE_DIRECT_OVERFLOW_READ
|
|
|
|
|
|
|
|
kvtest$(TEXE): $(TOP)/test/kvtest.c sqlite3.c
|
|
|
|
$(LTLINK) $(KV_OPT) -o $@ $(TOP)/test/kvtest.c sqlite3.c $(TLIBS)
|
2013-11-23 08:16:58 +04:00
|
|
|
|
2018-10-29 20:53:23 +03:00
|
|
|
rbu$(EXE): $(TOP)/ext/rbu/rbu.c $(TOP)/ext/rbu/sqlite3rbu.c sqlite3.lo
|
2016-01-14 16:22:24 +03:00
|
|
|
$(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c sqlite3.lo $(TLIBS)
|
|
|
|
|
|
|
|
loadfts$(EXE): $(TOP)/tool/loadfts.c libsqlite3.la
|
|
|
|
$(LTLINK) $(TOP)/tool/loadfts.c libsqlite3.la -o $@ $(TLIBS)
|
|
|
|
|
2014-12-23 22:52:26 +03:00
|
|
|
# This target will fail if the SQLite amalgamation contains any exported
|
|
|
|
# symbols that do not begin with "sqlite3_". It is run as part of the
|
|
|
|
# releasetest.tcl script.
|
|
|
|
#
|
2016-04-26 16:13:53 +03:00
|
|
|
VALIDIDS=' sqlite3(changeset|changegroup|session)?_'
|
2019-04-11 09:50:52 +03:00
|
|
|
checksymbols: sqlite3.o
|
|
|
|
nm -g --defined-only sqlite3.o
|
|
|
|
nm -g --defined-only sqlite3.o | egrep -v $(VALIDIDS); test $$? -ne 0
|
2014-12-29 05:55:58 +03:00
|
|
|
echo '0 errors out of 1 tests'
|
2014-12-23 22:52:26 +03:00
|
|
|
|
2016-02-10 01:39:39 +03:00
|
|
|
# Build the amalgamation-autoconf package. The amalamgation-tarball target builds
|
|
|
|
# a tarball named for the version number. Ex: sqlite-autoconf-3110000.tar.gz.
|
|
|
|
# The snapshot-tarball target builds a tarball named by the SHA1 hash
|
2015-01-15 18:47:06 +03:00
|
|
|
#
|
2020-06-19 18:33:23 +03:00
|
|
|
amalgamation-tarball: sqlite3.c sqlite3rc.h
|
2016-02-10 01:39:39 +03:00
|
|
|
TOP=$(TOP) sh $(TOP)/tool/mkautoconfamal.sh --normal
|
|
|
|
|
2020-06-19 18:33:23 +03:00
|
|
|
snapshot-tarball: sqlite3.c sqlite3rc.h
|
2016-02-10 01:39:39 +03:00
|
|
|
TOP=$(TOP) sh $(TOP)/tool/mkautoconfamal.sh --snapshot
|
2015-01-15 18:47:06 +03:00
|
|
|
|
2023-09-07 16:43:46 +03:00
|
|
|
# Build a ZIP archive containing various command-line tools.
|
|
|
|
#
|
2023-10-27 18:31:44 +03:00
|
|
|
tool-zip: testfixture sqlite3 sqldiff sqlite3_analyzer $(TOP)/tool/mktoolzip.tcl
|
2023-09-07 16:43:46 +03:00
|
|
|
./testfixture $(TOP)/tool/mktoolzip.tcl
|
|
|
|
|
2014-12-23 23:31:43 +03:00
|
|
|
# The next two rules are used to support the "threadtest" target. Building
|
|
|
|
# threadtest runs a few thread-safety tests that are implemented in C. This
|
|
|
|
# target is invoked by the releasetest.tcl script.
|
2018-10-29 20:53:23 +03:00
|
|
|
#
|
2014-12-23 23:31:43 +03:00
|
|
|
THREADTEST3_SRC = $(TOP)/test/threadtest3.c \
|
|
|
|
$(TOP)/test/tt3_checkpoint.c \
|
|
|
|
$(TOP)/test/tt3_index.c \
|
|
|
|
$(TOP)/test/tt3_vacuum.c \
|
|
|
|
$(TOP)/test/tt3_stress.c \
|
|
|
|
$(TOP)/test/tt3_lookaside1.c
|
|
|
|
|
2014-12-24 00:03:09 +03:00
|
|
|
threadtest3$(TEXE): sqlite3.lo $(THREADTEST3_SRC)
|
2015-12-03 15:01:54 +03:00
|
|
|
$(LTLINK) $(TOP)/test/threadtest3.c $(TOP)/src/test_multiplex.c sqlite3.lo -o $@ $(TLIBS)
|
2014-12-23 23:31:43 +03:00
|
|
|
|
|
|
|
threadtest: threadtest3$(TEXE)
|
|
|
|
./threadtest3$(TEXE)
|
|
|
|
|
2021-05-12 17:17:20 +03:00
|
|
|
threadtest5: sqlite3.c $(TOP)/test/threadtest5.c
|
|
|
|
$(LTLINK) $(TOP)/test/threadtest5.c sqlite3.c -o $@ $(TLIBS)
|
|
|
|
|
2010-07-07 00:37:09 +04:00
|
|
|
# Standard install and cleanup targets
|
|
|
|
#
|
2009-02-18 07:33:59 +03:00
|
|
|
lib_install: libsqlite3.la
|
2004-09-18 01:07:34 +04:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(libdir)
|
|
|
|
$(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir)
|
2018-10-29 20:53:23 +03:00
|
|
|
|
2016-01-21 21:56:10 +03:00
|
|
|
install: sqlite3$(TEXE) lib_install sqlite3.h sqlite3.pc ${HAVE_TCL:1=tcl_install}
|
2008-03-06 11:09:12 +03:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(bindir)
|
2016-01-21 21:56:10 +03:00
|
|
|
$(LTINSTALL) sqlite3$(TEXE) $(DESTDIR)$(bindir)
|
2008-03-06 11:09:12 +03:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(includedir)
|
|
|
|
$(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir)
|
|
|
|
$(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir)
|
2008-08-04 08:28:18 +04:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(pkgconfigdir)
|
|
|
|
$(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir)
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2009-01-28 07:46:14 +03:00
|
|
|
pkgIndex.tcl:
|
2019-02-26 15:29:25 +03:00
|
|
|
echo 'package ifneeded sqlite3 $(RELEASE) [list load [file join $$dir libtclsqlite3[info sharedlibextension]] sqlite3]' > $@
|
2009-02-18 07:33:59 +03:00
|
|
|
tcl_install: lib_install libtclsqlite3.la pkgIndex.tcl
|
2009-01-28 07:46:14 +03: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)
|
2004-11-27 18:52:16 +03:00
|
|
|
|
2018-10-29 20:53:23 +03:00
|
|
|
clean:
|
2004-11-25 16:50:01 +03:00
|
|
|
rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la
|
2004-06-30 15:41:55 +04:00
|
|
|
rm -f sqlite3.h opcodes.*
|
2010-07-07 00:37:09 +04:00
|
|
|
rm -rf .libs .deps
|
2004-11-03 06:59:57 +03:00
|
|
|
rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz
|
2005-01-18 07:00:42 +03:00
|
|
|
rm -f mkkeywordhash$(BEXE) keywordhash.h
|
2022-08-23 19:55:19 +03:00
|
|
|
rm -f mksourceid$(BEXE)
|
2004-06-30 15:41:55 +04:00
|
|
|
rm -f *.da *.bb *.bbg gmon.out
|
2010-07-07 00:37:09 +04:00
|
|
|
rm -rf tsrc .target_source
|
2011-09-22 04:06:44 +04:00
|
|
|
rm -f tclsqlite3$(TEXE)
|
2004-11-25 16:50:01 +03:00
|
|
|
rm -f testfixture$(TEXE) test.db
|
2014-07-19 01:02:54 +04:00
|
|
|
rm -f LogEst$(TEXE) fts3view$(TEXE) rollback-test$(TEXE) showdb$(TEXE)
|
|
|
|
rm -f showjournal$(TEXE) showstat4$(TEXE) showwal$(TEXE) speedtest1$(TEXE)
|
2014-08-19 00:23:29 +04:00
|
|
|
rm -f wordcount$(TEXE) changeset$(TEXE)
|
2023-08-10 20:32:37 +03:00
|
|
|
rm -f version-info$(TEXT)
|
2011-09-22 04:06:44 +04:00
|
|
|
rm -f sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def
|
2010-07-07 00:37:09 +04:00
|
|
|
rm -f sqlite3.c
|
2013-03-29 23:52:04 +04:00
|
|
|
rm -f sqlite3rc.h
|
|
|
|
rm -f shell.c sqlite3ext.h
|
2011-09-22 04:06:44 +04:00
|
|
|
rm -f sqlite3_analyzer$(TEXE) sqlite3_analyzer.c
|
2012-10-20 13:35:57 +04:00
|
|
|
rm -f sqlite-*-output.vsix
|
2013-04-10 07:06:43 +04:00
|
|
|
rm -f mptester mptester.exe
|
2016-01-20 21:47:59 +03:00
|
|
|
rm -f rbu rbu.exe
|
2016-02-07 23:39:27 +03:00
|
|
|
rm -f srcck1 srcck1.exe
|
2015-05-11 19:27:33 +03:00
|
|
|
rm -f fuzzershell fuzzershell.exe
|
2015-05-26 06:24:33 +03:00
|
|
|
rm -f fuzzcheck fuzzcheck.exe
|
2015-05-11 19:27:33 +03:00
|
|
|
rm -f sqldiff sqldiff.exe
|
2016-06-08 04:03:05 +03:00
|
|
|
rm -f dbhash dbhash.exe
|
2015-07-15 00:56:53 +03:00
|
|
|
rm -f fts5.* fts5parse.*
|
2021-05-12 17:17:20 +03:00
|
|
|
rm -f threadtest5
|
2023-06-05 01:41:52 +03:00
|
|
|
rm -f src-verify
|
2023-06-07 20:03:22 +03:00
|
|
|
rm -f custom.rws
|
2023-10-04 15:49:08 +03:00
|
|
|
rm -f has_tclsh84 has_tclsh85
|
2004-06-30 15:41:55 +04:00
|
|
|
|
|
|
|
distclean: clean
|
2022-10-04 13:35:10 +03:00
|
|
|
rm -f sqlite_cfg.h config.log config.status libtool Makefile sqlite3.pc \
|
2022-08-23 19:55:19 +03:00
|
|
|
$(TESTPROGS)
|
2006-09-03 02:14:11 +04: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 02:28:22 +03:00
|
|
|
$(TCC) -shared -o $@ sqlite3.def \
|
2006-09-03 02:14:11 +04:00
|
|
|
-Wl,"--strip-all" $(REAL_LIBOBJ)
|
2022-05-18 20:14:24 +03:00
|
|
|
|
|
|
|
#
|
2022-09-21 11:39:03 +03:00
|
|
|
# Fiddle app
|
|
|
|
#
|
|
|
|
fiddle: sqlite3.c shell.c
|
2022-10-25 19:04:44 +03:00
|
|
|
make -C ext/wasm fiddle emcc_opt=-Os
|
2023-06-07 11:40:31 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Spell-checking for source comments
|
|
|
|
# The sources checked are either C sources or C source templates.
|
|
|
|
# Their comments are extracted and processed through aspell using
|
|
|
|
# a custom dictionary that contains scads of odd identifiers that
|
|
|
|
# find their way into the comments.
|
|
|
|
#
|
|
|
|
# Currently, this target is setup to be "made" in-tree only.
|
|
|
|
# The output is ephemeral. Redirect it to guide spelling fixups,
|
|
|
|
# either to correct spelling or add words to tool/custom.txt.
|
|
|
|
#
|
|
|
|
./custom.rws: ./tool/custom.txt
|
|
|
|
@echo 'Updating custom dictionary from tool/custom.txt'
|
|
|
|
aspell --lang=en create master ./custom.rws < $<
|
|
|
|
|
2023-10-04 15:49:08 +03:00
|
|
|
misspell: ./custom.rws has_tclsh84
|
2023-06-07 11:40:31 +03:00
|
|
|
$(TCLSH_CMD) ./tool/spellsift.tcl ./src/*.c ./src/*.h ./src/*.in
|
2023-08-10 20:32:37 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# tool/version-info: a utility for emitting sqlite3 version info
|
|
|
|
# in various forms.
|
|
|
|
#
|
|
|
|
version-info$(TEXE): $(TOP)/tool/version-info.c Makefile sqlite3.h
|
|
|
|
$(LTLINK) $(ST_OPT) -o $@ $(TOP)/tool/version-info.c
|