2011-06-17 11:07:24 +04:00
|
|
|
#
|
2011-06-17 22:52:07 +04:00
|
|
|
# nmake Makefile for SQLite
|
2011-06-17 11:07:24 +04:00
|
|
|
#
|
2014-05-10 00:51:17 +04:00
|
|
|
###############################################################################
|
|
|
|
############################## START OF OPTIONS ###############################
|
|
|
|
###############################################################################
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# The toplevel directory of the source tree. This is the directory
|
|
|
|
# that contains this "Makefile.msc".
|
|
|
|
#
|
|
|
|
TOP = .
|
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2011-06-17 19:57:07 +04:00
|
|
|
# Set this non-0 to create and use the SQLite amalgamation file.
|
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF USE_AMALGAMATION
|
2011-06-17 19:57:07 +04:00
|
|
|
USE_AMALGAMATION = 1
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2011-06-17 19:57:07 +04:00
|
|
|
|
2024-02-27 14:02:31 +03:00
|
|
|
# Optionally set EXTRA_SRC to a list of C files to append to
|
|
|
|
# the generated sqlite3.c.
|
|
|
|
#
|
2023-09-03 00:55:10 +03:00
|
|
|
!IFNDEF EXTRA_SRC
|
|
|
|
EXTRA_SRC =
|
|
|
|
!ENDIF
|
2011-06-17 19:57:07 +04:00
|
|
|
|
2015-01-12 21:02:52 +03:00
|
|
|
# Set this non-0 to enable full warnings (-W4, etc) when compiling.
|
|
|
|
#
|
|
|
|
!IFNDEF USE_FULLWARN
|
2017-04-14 17:50:34 +03:00
|
|
|
USE_FULLWARN = 1
|
2015-01-12 21:02:52 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2017-02-02 01:32:49 +03:00
|
|
|
# Set this non-0 to enable treating warnings as errors (-WX, etc) when
|
|
|
|
# compiling.
|
|
|
|
#
|
|
|
|
!IFNDEF USE_FATAL_WARN
|
|
|
|
USE_FATAL_WARN = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2016-08-24 21:21:58 +03:00
|
|
|
# Set this non-0 to enable full runtime error checks (-RTC1, etc). This
|
|
|
|
# has no effect if (any) optimizations are enabled.
|
|
|
|
#
|
|
|
|
!IFNDEF USE_RUNTIME_CHECKS
|
|
|
|
USE_RUNTIME_CHECKS = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2016-08-24 22:58:46 +03:00
|
|
|
# Set this non-0 to create a SQLite amalgamation file that excludes the
|
|
|
|
# various built-in extensions.
|
|
|
|
#
|
|
|
|
!IFNDEF MINIMAL_AMALGAMATION
|
|
|
|
MINIMAL_AMALGAMATION = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2015-03-21 05:22:37 +03:00
|
|
|
# Set this non-0 to use "stdcall" calling convention for the core library
|
|
|
|
# and shell executable.
|
|
|
|
#
|
|
|
|
!IFNDEF USE_STDCALL
|
|
|
|
USE_STDCALL = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2023-10-09 17:05:21 +03:00
|
|
|
# Use the USE_SEH=0 option on the nmake command line to omit structured
|
|
|
|
# exception handling (SEH) support. SEH is on by default.
|
2023-07-10 22:21:09 +03:00
|
|
|
#
|
|
|
|
!IFNDEF USE_SEH
|
2023-08-14 15:05:38 +03:00
|
|
|
USE_SEH = 1
|
2023-07-10 22:21:09 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2015-03-21 05:22:37 +03:00
|
|
|
# Set this non-0 to have the shell executable link against the core dynamic
|
|
|
|
# link library.
|
|
|
|
#
|
|
|
|
!IFNDEF DYNAMIC_SHELL
|
|
|
|
DYNAMIC_SHELL = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2015-05-13 07:50:30 +03:00
|
|
|
# Set this non-0 to enable extra code that attempts to detect misuse of the
|
|
|
|
# SQLite API.
|
|
|
|
#
|
|
|
|
!IFNDEF API_ARMOR
|
|
|
|
API_ARMOR = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2015-01-12 21:02:52 +03:00
|
|
|
# If necessary, create a list of harmless compiler warnings to disable when
|
2015-03-21 05:22:37 +03:00
|
|
|
# compiling the various tools. For the SQLite source code itself, warnings,
|
2015-01-12 21:02:52 +03:00
|
|
|
# if any, will be disabled from within it.
|
|
|
|
#
|
|
|
|
!IFNDEF NO_WARN
|
|
|
|
!IF $(USE_FULLWARN)!=0
|
2015-04-11 00:16:11 +03:00
|
|
|
NO_WARN = -wd4054 -wd4055 -wd4100 -wd4127 -wd4130 -wd4152 -wd4189 -wd4206
|
2019-07-29 05:52:11 +03:00
|
|
|
NO_WARN = $(NO_WARN) -wd4210 -wd4232 -wd4244 -wd4305 -wd4306 -wd4702 -wd4706
|
2015-01-12 21:02:52 +03:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2014-05-13 02:36:50 +04:00
|
|
|
# Set this non-0 to use the library paths and other options necessary for
|
|
|
|
# Windows Phone 8.1.
|
2014-05-10 03:31:55 +04:00
|
|
|
#
|
|
|
|
!IFNDEF USE_WP81_OPTS
|
|
|
|
USE_WP81_OPTS = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2013-10-12 03:01:18 +04:00
|
|
|
# Set this non-0 to split the SQLite amalgamation file into chunks to
|
|
|
|
# be used for debugging with Visual Studio.
|
|
|
|
#
|
|
|
|
!IFNDEF SPLIT_AMALGAMATION
|
2013-10-12 03:02:13 +04:00
|
|
|
SPLIT_AMALGAMATION = 0
|
2013-10-12 03:01:18 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2017-12-05 22:07:30 +03:00
|
|
|
# Set this non-0 to have this makefile assume the Tcl shell executable
|
2018-01-05 04:22:37 +03:00
|
|
|
# (tclsh*.exe) is available in the PATH. By default, this is disabled
|
2017-12-05 22:07:30 +03:00
|
|
|
# for compatibility with older build environments. This setting only
|
|
|
|
# applies if TCLSH_CMD is not set manually.
|
|
|
|
#
|
|
|
|
!IFNDEF USE_TCLSH_IN_PATH
|
2018-01-05 04:22:37 +03:00
|
|
|
USE_TCLSH_IN_PATH = 0
|
2017-12-05 22:07:30 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2017-12-05 21:54:12 +03:00
|
|
|
# Set this non-0 to use zlib, possibly compiling it from source code.
|
|
|
|
#
|
|
|
|
!IFNDEF USE_ZLIB
|
|
|
|
USE_ZLIB = 0
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# Set this non-0 to build zlib from source code. This is enabled by
|
|
|
|
# default and in that case it will be assumed that the ZLIBDIR macro
|
|
|
|
# points to the top-level source code directory for zlib.
|
|
|
|
#
|
|
|
|
!IFNDEF BUILD_ZLIB
|
|
|
|
BUILD_ZLIB = 1
|
|
|
|
!ENDIF
|
|
|
|
|
2011-10-02 09:23:16 +04:00
|
|
|
# Set this non-0 to use the International Components for Unicode (ICU).
|
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF USE_ICU
|
2011-10-02 09:23:16 +04:00
|
|
|
USE_ICU = 0
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2011-10-02 09:23:16 +04:00
|
|
|
|
2012-06-21 08:21:35 +04:00
|
|
|
# Set this non-0 to dynamically link to the MSVC runtime library.
|
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF USE_CRT_DLL
|
2012-06-21 08:21:35 +04:00
|
|
|
USE_CRT_DLL = 0
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2012-06-21 08:21:35 +04:00
|
|
|
|
2015-01-21 03:48:46 +03:00
|
|
|
# Set this non-0 to link to the RPCRT4 library.
|
|
|
|
#
|
|
|
|
!IFNDEF USE_RPCRT4_LIB
|
|
|
|
USE_RPCRT4_LIB = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2013-09-07 01:41:11 +04:00
|
|
|
# Set this non-0 to generate assembly code listings for the source code
|
|
|
|
# files.
|
|
|
|
#
|
|
|
|
!IFNDEF USE_LISTINGS
|
|
|
|
USE_LISTINGS = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2012-08-28 05:44:13 +04:00
|
|
|
# Set this non-0 to attempt setting the native compiler automatically
|
|
|
|
# for cross-compiling the command line tools needed during the compilation
|
|
|
|
# process.
|
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF XCOMPILE
|
2012-08-28 05:44:13 +04:00
|
|
|
XCOMPILE = 0
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2012-08-28 05:44:13 +04:00
|
|
|
|
2012-07-01 02:22:34 +04:00
|
|
|
# Set this non-0 to use the native libraries paths for cross-compiling
|
|
|
|
# the command line tools needed during the compilation process.
|
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF USE_NATIVE_LIBPATHS
|
2012-07-01 02:22:34 +04:00
|
|
|
USE_NATIVE_LIBPATHS = 0
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2012-07-01 02:22:34 +04:00
|
|
|
|
2012-10-06 07:48:25 +04:00
|
|
|
# Set this 0 to skip the compiling and embedding of version resources.
|
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF USE_RC
|
2012-10-06 07:48:25 +04:00
|
|
|
USE_RC = 1
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2012-10-06 07:48:25 +04:00
|
|
|
|
2012-03-23 16:28:21 +04:00
|
|
|
# Set this non-0 to compile binaries suitable for the WinRT environment.
|
|
|
|
# This setting does not apply to any binaries that require Tcl to operate
|
|
|
|
# properly (i.e. the text fixture, etc).
|
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF FOR_WINRT
|
2012-03-23 16:28:21 +04:00
|
|
|
FOR_WINRT = 0
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2012-03-23 16:28:21 +04:00
|
|
|
|
2016-02-12 08:19:29 +03:00
|
|
|
# Set this non-0 to compile binaries suitable for the UWP environment.
|
2015-04-22 04:33:53 +03:00
|
|
|
# This setting does not apply to any binaries that require Tcl to operate
|
|
|
|
# properly (i.e. the text fixture, etc).
|
|
|
|
#
|
2016-02-12 08:19:29 +03:00
|
|
|
!IFNDEF FOR_UWP
|
|
|
|
FOR_UWP = 0
|
2015-04-22 04:33:53 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
# Set this non-0 to compile binaries suitable for the Windows 10 platform.
|
2016-01-22 04:25:15 +03:00
|
|
|
#
|
|
|
|
!IFNDEF FOR_WIN10
|
|
|
|
FOR_WIN10 = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2012-07-27 11:13:25 +04:00
|
|
|
# Set this non-0 to skip attempting to look for and/or link with the Tcl
|
|
|
|
# runtime library.
|
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF NO_TCL
|
2012-07-27 11:13:25 +04:00
|
|
|
NO_TCL = 0
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2012-07-27 11:13:25 +04:00
|
|
|
|
2011-08-26 09:40:31 +04:00
|
|
|
# Set this to non-0 to create and use PDBs.
|
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF SYMBOLS
|
2011-08-26 09:40:31 +04:00
|
|
|
SYMBOLS = 1
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2011-08-26 09:40:31 +04:00
|
|
|
|
2012-08-22 04:39:34 +04:00
|
|
|
# Set this to non-0 to use the SQLite debugging heap subsystem.
|
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF MEMDEBUG
|
2012-08-22 04:39:34 +04:00
|
|
|
MEMDEBUG = 0
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2012-08-22 04:39:34 +04:00
|
|
|
|
|
|
|
# Set this to non-0 to use the Win32 native heap subsystem.
|
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF WIN32HEAP
|
2012-08-22 04:39:34 +04:00
|
|
|
WIN32HEAP = 0
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2012-08-22 04:39:34 +04:00
|
|
|
|
2015-04-16 19:27:29 +03:00
|
|
|
# Set this to non-0 to enable OSTRACE() macros, which can be useful when
|
|
|
|
# debugging.
|
|
|
|
#
|
|
|
|
!IFNDEF OSTRACE
|
|
|
|
OSTRACE = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2023-08-17 18:11:59 +03:00
|
|
|
# enable address sanitizer using ASAN=1 on the command-line.
|
|
|
|
#
|
|
|
|
!IFNDEF ASAN
|
|
|
|
ASAN = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2011-08-25 08:09:12 +04:00
|
|
|
# Set this to one of the following values to enable various debugging
|
|
|
|
# features. Each level includes the debugging options from the previous
|
|
|
|
# levels. Currently, the recognized values for DEBUG are:
|
|
|
|
#
|
|
|
|
# 0 == NDEBUG: Disables assert() and other runtime diagnostics.
|
2014-12-21 00:14:14 +03:00
|
|
|
# 1 == SQLITE_ENABLE_API_ARMOR: extra attempts to detect misuse of the API.
|
|
|
|
# 2 == Disables NDEBUG and all optimizations and then enables PDBs.
|
|
|
|
# 3 == SQLITE_DEBUG: Enables various diagnostics messages and code.
|
|
|
|
# 4 == SQLITE_WIN32_MALLOC_VALIDATE: Validate the Win32 native heap per call.
|
|
|
|
# 5 == SQLITE_DEBUG_OS_TRACE: Enables output from the OSTRACE() macros.
|
|
|
|
# 6 == SQLITE_ENABLE_IOTRACE: Enables output from the IOTRACE() macros.
|
2011-08-25 08:09:12 +04:00
|
|
|
#
|
2012-10-12 22:06:07 +04:00
|
|
|
!IFNDEF DEBUG
|
2011-08-25 08:09:12 +04:00
|
|
|
DEBUG = 0
|
2012-10-12 22:06:07 +04:00
|
|
|
!ENDIF
|
2011-06-17 19:57:07 +04:00
|
|
|
|
2020-05-15 04:18:07 +03:00
|
|
|
# <<mark>>
|
2021-07-14 00:59:22 +03:00
|
|
|
# By default, use --linemacros=1 argument to the mksqlite3c.tcl tool, which
|
2021-07-13 23:55:26 +03:00
|
|
|
# is used to build the amalgamation. This can be turned off to ease debug
|
|
|
|
# of the amalgamation away from the source tree.
|
2020-05-15 04:18:07 +03:00
|
|
|
#
|
|
|
|
!IFNDEF NO_LINEMACROS
|
|
|
|
NO_LINEMACROS = 0
|
|
|
|
!ENDIF
|
|
|
|
# <</mark>>
|
|
|
|
|
2013-08-29 05:03:38 +04:00
|
|
|
# Enable use of available compiler optimizations? Normally, this should be
|
|
|
|
# non-zero. Setting this to zero, thus disabling all compiler optimizations,
|
|
|
|
# can be useful for testing.
|
|
|
|
#
|
|
|
|
!IFNDEF OPTIMIZATIONS
|
|
|
|
OPTIMIZATIONS = 2
|
|
|
|
!ENDIF
|
|
|
|
|
2016-05-03 22:40:54 +03:00
|
|
|
# Set this to non-0 to enable support for the session extension.
|
|
|
|
#
|
|
|
|
!IFNDEF SESSION
|
|
|
|
SESSION = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2019-12-20 20:41:15 +03:00
|
|
|
# Set this to non-0 to enable support for the rbu extension.
|
|
|
|
#
|
|
|
|
!IFNDEF RBU
|
|
|
|
RBU = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
# Set the source code file to be used by executables and libraries when
|
|
|
|
# they need the amalgamation.
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE3C
|
|
|
|
!IF $(SPLIT_AMALGAMATION)!=0
|
|
|
|
SQLITE3C = sqlite3-all.c
|
|
|
|
!ELSE
|
|
|
|
SQLITE3C = sqlite3.c
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# Set the include code file to be used by executables and libraries when
|
|
|
|
# they need SQLite.
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE3H
|
|
|
|
SQLITE3H = sqlite3.h
|
|
|
|
!ENDIF
|
|
|
|
|
2016-01-22 04:25:15 +03:00
|
|
|
# This is the name to use for the SQLite dynamic link library (DLL).
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE3DLL
|
2016-02-19 08:07:56 +03:00
|
|
|
!IF $(FOR_WIN10)!=0
|
|
|
|
SQLITE3DLL = winsqlite3.dll
|
|
|
|
!ELSE
|
2016-01-22 04:25:15 +03:00
|
|
|
SQLITE3DLL = sqlite3.dll
|
|
|
|
!ENDIF
|
2016-02-19 08:07:56 +03:00
|
|
|
!ENDIF
|
2016-01-22 04:25:15 +03:00
|
|
|
|
|
|
|
# This is the name to use for the SQLite import library (LIB).
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE3LIB
|
2016-02-19 08:07:56 +03:00
|
|
|
!IF $(FOR_WIN10)!=0
|
|
|
|
SQLITE3LIB = winsqlite3.lib
|
|
|
|
!ELSE
|
2016-01-22 04:25:15 +03:00
|
|
|
SQLITE3LIB = sqlite3.lib
|
|
|
|
!ENDIF
|
2016-02-19 08:07:56 +03:00
|
|
|
!ENDIF
|
2016-01-22 04:25:15 +03:00
|
|
|
|
|
|
|
# This is the name to use for the SQLite shell executable (EXE).
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE3EXE
|
2016-02-19 08:07:56 +03:00
|
|
|
!IF $(FOR_WIN10)!=0
|
|
|
|
SQLITE3EXE = winsqlite3shell.exe
|
|
|
|
!ELSE
|
2016-01-22 04:25:15 +03:00
|
|
|
SQLITE3EXE = sqlite3.exe
|
|
|
|
!ENDIF
|
2016-02-19 08:07:56 +03:00
|
|
|
!ENDIF
|
2016-01-22 04:25:15 +03:00
|
|
|
|
|
|
|
# This is the argument used to set the program database (PDB) file for the
|
|
|
|
# SQLite shell executable (EXE).
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE3EXEPDB
|
2016-02-19 08:07:56 +03:00
|
|
|
!IF $(FOR_WIN10)!=0
|
|
|
|
SQLITE3EXEPDB =
|
|
|
|
!ELSE
|
2016-01-22 04:25:15 +03:00
|
|
|
SQLITE3EXEPDB = /pdb:sqlite3sh.pdb
|
|
|
|
!ENDIF
|
2016-02-19 08:07:56 +03:00
|
|
|
!ENDIF
|
2016-01-22 04:25:15 +03:00
|
|
|
|
2016-09-05 23:46:02 +03:00
|
|
|
# <<mark>>
|
2016-08-24 22:58:46 +03:00
|
|
|
# These are the names of the customized Tcl header files used by various parts
|
|
|
|
# of this makefile when the stdcall calling convention is in use. It is not
|
|
|
|
# used for any other purpose.
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITETCLH
|
|
|
|
SQLITETCLH = sqlite_tcl.h
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF SQLITETCLDECLSH
|
|
|
|
SQLITETCLDECLSH = sqlite_tclDecls.h
|
|
|
|
!ENDIF
|
|
|
|
|
2019-03-22 04:25:16 +03:00
|
|
|
# This is the name to use for the dynamic link library (DLL) containing the
|
|
|
|
# Tcl bindings for SQLite.
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE3TCLDLL
|
|
|
|
SQLITE3TCLDLL = tclsqlite3.dll
|
|
|
|
!ENDIF
|
|
|
|
|
2016-08-24 22:58:46 +03:00
|
|
|
# These are the additional targets that the targets that integrate with the
|
|
|
|
# Tcl library should depend on when compiling, etc.
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE_TCL_DEP
|
|
|
|
!IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
|
|
|
|
SQLITE_TCL_DEP = $(SQLITETCLDECLSH) $(SQLITETCLH)
|
|
|
|
!ELSE
|
|
|
|
SQLITE_TCL_DEP =
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2016-09-05 23:46:02 +03:00
|
|
|
# <</mark>>
|
2016-08-24 22:58:46 +03:00
|
|
|
|
2014-05-10 00:51:17 +04:00
|
|
|
# These are the "standard" SQLite compilation options used when compiling for
|
|
|
|
# the Windows platform.
|
|
|
|
#
|
|
|
|
!IFNDEF OPT_FEATURE_FLAGS
|
2024-08-29 21:32:56 +03:00
|
|
|
OPT_FEATURE_FLAGS = $(OPT_XTRA)
|
2016-08-24 22:58:46 +03:00
|
|
|
!IF $(MINIMAL_AMALGAMATION)==0
|
2014-05-10 00:51:17 +04:00
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS3=1
|
2023-10-30 20:13:12 +03:00
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS5=1
|
2018-09-12 03:48:17 +03:00
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RTREE=1
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_GEOPOLY=1
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_STMTVTAB=1
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_DBPAGE_VTAB=1
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_DBSTAT_VTAB=1
|
2020-03-23 18:49:22 +03:00
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_BYTECODE_VTAB=1
|
2016-08-24 22:58:46 +03:00
|
|
|
!ENDIF
|
2014-05-10 00:51:17 +04:00
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_COLUMN_METADATA=1
|
2016-05-03 16:14:18 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2024-08-29 21:32:56 +03:00
|
|
|
# Additional feature-options above and beyond what are normally used can be
|
|
|
|
# be added using OPTIONS=.... on the command-line. These values are
|
|
|
|
# appended to the OPT_FEATURE_FLAGS variable.
|
|
|
|
#
|
|
|
|
!IFDEF OPTIONS
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) $(OPTIONS)
|
|
|
|
!ENDIF
|
|
|
|
|
2016-05-03 22:40:54 +03:00
|
|
|
# Should the session extension be enabled? If so, add compilation options
|
|
|
|
# to enable it.
|
2016-05-03 16:14:18 +03:00
|
|
|
#
|
|
|
|
!IF $(SESSION)!=0
|
2016-03-30 19:23:06 +03:00
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_SESSION=1
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_PREUPDATE_HOOK=1
|
2014-05-10 00:51:17 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2020-12-07 20:15:32 +03:00
|
|
|
# Always enable math functions on Windows
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_MATH_FUNCTIONS
|
|
|
|
|
2019-12-20 20:41:15 +03:00
|
|
|
# Should the rbu extension be enabled? If so, add compilation options
|
|
|
|
# to enable it.
|
|
|
|
#
|
|
|
|
!IF $(RBU)!=0
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RBU=1
|
|
|
|
!ENDIF
|
|
|
|
|
2023-07-10 22:21:09 +03:00
|
|
|
# Should structured exception handling (SEH) be enabled for WAL mode in
|
2023-10-09 17:05:21 +03:00
|
|
|
# the core library? It is on by default. Only omit it if the
|
|
|
|
# USE_SEH=0 option is provided on the nmake command-line.
|
2023-07-10 22:21:09 +03:00
|
|
|
#
|
2023-10-09 17:05:21 +03:00
|
|
|
!IF $(USE_SEH)==0
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_OMIT_SEH=1
|
2023-07-10 22:21:09 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-22 04:25:15 +03:00
|
|
|
# These are the "extended" SQLite compilation options used when compiling for
|
|
|
|
# the Windows 10 platform.
|
|
|
|
#
|
|
|
|
!IFNDEF EXT_FEATURE_FLAGS
|
|
|
|
!IF $(FOR_WIN10)!=0
|
|
|
|
EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS4=1
|
|
|
|
EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_SYSTEM_MALLOC=1
|
|
|
|
EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_OMIT_LOCALTIME=1
|
|
|
|
!ELSE
|
|
|
|
EXT_FEATURE_FLAGS =
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2014-05-10 00:51:17 +04:00
|
|
|
###############################################################################
|
|
|
|
############################### END OF OPTIONS ################################
|
|
|
|
###############################################################################
|
|
|
|
|
2016-02-08 23:40:57 +03:00
|
|
|
# When compiling for the Windows 10 platform, the PLATFORM macro must be set
|
|
|
|
# to an appropriate value (e.g. x86, x64, arm, arm64, etc).
|
|
|
|
#
|
|
|
|
!IF $(FOR_WIN10)!=0
|
|
|
|
!IFNDEF PLATFORM
|
|
|
|
!ERROR Using the FOR_WIN10 option requires a value for PLATFORM.
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2014-05-10 03:31:55 +04:00
|
|
|
# This assumes that MSVC is always installed in 32-bit Program Files directory
|
|
|
|
# and sets the variable for use in locating other 32-bit installs accordingly.
|
|
|
|
#
|
|
|
|
PROGRAMFILES_X86 = $(VCINSTALLDIR)\..\..
|
|
|
|
PROGRAMFILES_X86 = $(PROGRAMFILES_X86:\\=\)
|
|
|
|
|
2012-06-30 20:22:05 +04:00
|
|
|
# Check for the predefined command macro CC. This should point to the compiler
|
2012-07-01 02:22:34 +04:00
|
|
|
# binary for the target platform. If it is not defined, simply define it to
|
2012-06-30 20:22:05 +04:00
|
|
|
# the legacy default value 'cl.exe'.
|
|
|
|
#
|
|
|
|
!IFNDEF CC
|
|
|
|
CC = cl.exe
|
|
|
|
!ENDIF
|
|
|
|
|
2016-02-27 02:13:16 +03:00
|
|
|
# Check for the predefined command macro CSC. This should point to a working
|
|
|
|
# C Sharp compiler binary. If it is not defined, simply define it to the
|
|
|
|
# legacy default value 'csc.exe'.
|
|
|
|
#
|
|
|
|
!IFNDEF CSC
|
|
|
|
CSC = csc.exe
|
|
|
|
!ENDIF
|
|
|
|
|
2012-06-30 23:24:09 +04:00
|
|
|
# Check for the command macro LD. This should point to the linker binary for
|
2012-07-01 02:22:34 +04:00
|
|
|
# the target platform. If it is not defined, simply define it to the legacy
|
2012-06-30 23:24:09 +04:00
|
|
|
# default value 'link.exe'.
|
|
|
|
#
|
|
|
|
!IFNDEF LD
|
|
|
|
LD = link.exe
|
|
|
|
!ENDIF
|
|
|
|
|
2012-09-03 14:32:32 +04:00
|
|
|
# Check for the predefined command macro RC. This should point to the resource
|
|
|
|
# compiler binary for the target platform. If it is not defined, simply define
|
|
|
|
# it to the legacy default value 'rc.exe'.
|
|
|
|
#
|
|
|
|
!IFNDEF RC
|
|
|
|
RC = rc.exe
|
|
|
|
!ENDIF
|
|
|
|
|
2016-02-08 23:45:37 +03:00
|
|
|
# Check for the MSVC runtime library path macro. Otherwise, this value will
|
2014-05-10 00:51:17 +04:00
|
|
|
# default to the 'lib' directory underneath the MSVC installation directory.
|
|
|
|
#
|
|
|
|
!IFNDEF CRTLIBPATH
|
|
|
|
CRTLIBPATH = $(VCINSTALLDIR)\lib
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
CRTLIBPATH = $(CRTLIBPATH:\\=\)
|
|
|
|
|
2012-06-30 20:22:05 +04:00
|
|
|
# Check for the command macro NCC. This should point to the compiler binary
|
2012-07-01 02:22:34 +04:00
|
|
|
# for the platform the compilation process is taking place on. If it is not
|
|
|
|
# defined, simply define it to have the same value as the CC macro. When
|
2012-06-30 20:22:05 +04:00
|
|
|
# cross-compiling, it is suggested that this macro be modified via the command
|
|
|
|
# line (since nmake itself does not provide a built-in method to guess it).
|
|
|
|
# For example, to use the x86 compiler when cross-compiling for x64, a command
|
2012-07-01 02:22:34 +04:00
|
|
|
# line similar to the following could be used (all on one line):
|
2012-06-30 20:22:05 +04:00
|
|
|
#
|
2012-08-17 15:47:32 +04:00
|
|
|
# nmake /f Makefile.msc sqlite3.dll
|
2012-08-28 05:44:13 +04:00
|
|
|
# XCOMPILE=1 USE_NATIVE_LIBPATHS=1
|
|
|
|
#
|
|
|
|
# Alternatively, the full path and file name to the compiler binary for the
|
|
|
|
# platform the compilation process is taking place may be specified (all on
|
|
|
|
# one line):
|
|
|
|
#
|
|
|
|
# nmake /f Makefile.msc sqlite3.dll
|
2012-07-01 02:22:34 +04:00
|
|
|
# "NCC=""%VCINSTALLDIR%\bin\cl.exe"""
|
|
|
|
# USE_NATIVE_LIBPATHS=1
|
2012-06-30 20:22:05 +04:00
|
|
|
#
|
2012-07-27 12:21:45 +04:00
|
|
|
!IFDEF NCC
|
|
|
|
NCC = $(NCC:\\=\)
|
2012-08-28 05:44:13 +04:00
|
|
|
!ELSEIF $(XCOMPILE)!=0
|
2013-12-04 03:33:29 +04:00
|
|
|
NCC = "$(VCINSTALLDIR)\bin\$(CC)"
|
2012-08-28 05:44:13 +04:00
|
|
|
NCC = $(NCC:\\=\)
|
2012-07-27 12:21:45 +04:00
|
|
|
!ELSE
|
2012-06-30 20:22:05 +04:00
|
|
|
NCC = $(CC)
|
|
|
|
!ENDIF
|
|
|
|
|
2016-02-08 23:45:37 +03:00
|
|
|
# Check for the MSVC native runtime library path macro. Otherwise,
|
2014-05-10 00:51:17 +04:00
|
|
|
# this value will default to the 'lib' directory underneath the MSVC
|
2012-07-01 02:22:34 +04:00
|
|
|
# installation directory.
|
|
|
|
#
|
|
|
|
!IFNDEF NCRTLIBPATH
|
|
|
|
NCRTLIBPATH = $(VCINSTALLDIR)\lib
|
|
|
|
!ENDIF
|
|
|
|
|
2012-07-28 03:03:47 +04:00
|
|
|
NCRTLIBPATH = $(NCRTLIBPATH:\\=\)
|
|
|
|
|
2016-02-08 23:45:37 +03:00
|
|
|
# Check for the Platform SDK library path macro. Otherwise, this
|
2012-07-01 02:22:34 +04:00
|
|
|
# value will default to the 'lib' directory underneath the Windows
|
|
|
|
# SDK installation directory (the environment variable used appears
|
|
|
|
# to be available when using Visual C++ 2008 or later via the
|
|
|
|
# command line).
|
|
|
|
#
|
|
|
|
!IFNDEF NSDKLIBPATH
|
|
|
|
NSDKLIBPATH = $(WINDOWSSDKDIR)\lib
|
|
|
|
!ENDIF
|
|
|
|
|
2012-07-28 03:03:47 +04:00
|
|
|
NSDKLIBPATH = $(NSDKLIBPATH:\\=\)
|
|
|
|
|
2016-02-08 23:45:37 +03:00
|
|
|
# Check for the UCRT library path macro. Otherwise, this value will
|
2016-02-05 22:40:23 +03:00
|
|
|
# default to the version-specific, platform-specific 'lib' directory
|
|
|
|
# underneath the Windows SDK installation directory.
|
|
|
|
#
|
|
|
|
!IFNDEF UCRTLIBPATH
|
|
|
|
UCRTLIBPATH = $(WINDOWSSDKDIR)\lib\$(WINDOWSSDKLIBVERSION)\ucrt\$(PLATFORM)
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
UCRTLIBPATH = $(UCRTLIBPATH:\\=\)
|
|
|
|
|
2012-07-01 02:22:34 +04:00
|
|
|
# C compiler and options for use in building executables that
|
2011-06-17 11:07:24 +04:00
|
|
|
# will run on the platform that is doing the build.
|
|
|
|
#
|
2015-01-12 21:02:52 +03:00
|
|
|
!IF $(USE_FULLWARN)!=0
|
2019-03-22 04:25:16 +03:00
|
|
|
BCC = $(NCC) -nologo -W4 -Fd$*.pdb $(CCOPTS) $(BCCOPTS)
|
2015-01-12 21:02:52 +03:00
|
|
|
!ELSE
|
2019-03-22 04:25:16 +03:00
|
|
|
BCC = $(NCC) -nologo -W3 -Fd$*.pdb $(CCOPTS) $(BCCOPTS)
|
2015-01-12 21:02:52 +03:00
|
|
|
!ENDIF
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2013-09-07 01:41:11 +04:00
|
|
|
# Check if assembly code listings should be generated for the source
|
|
|
|
# code files to be compiled.
|
|
|
|
#
|
|
|
|
!IF $(USE_LISTINGS)!=0
|
|
|
|
BCC = $(BCC) -FAcs
|
|
|
|
!ENDIF
|
|
|
|
|
2012-07-01 02:22:34 +04:00
|
|
|
# Check if the native library paths should be used when compiling
|
|
|
|
# the command line tools used during the compilation process. If
|
|
|
|
# so, set the necessary macro now.
|
|
|
|
#
|
|
|
|
!IF $(USE_NATIVE_LIBPATHS)!=0
|
|
|
|
NLTLIBPATHS = "/LIBPATH:$(NCRTLIBPATH)" "/LIBPATH:$(NSDKLIBPATH)"
|
2015-04-19 09:18:10 +03:00
|
|
|
|
|
|
|
!IFDEF NUCRTLIBPATH
|
|
|
|
NUCRTLIBPATH = $(NUCRTLIBPATH:\\=\)
|
|
|
|
NLTLIBPATHS = $(NLTLIBPATHS) "/LIBPATH:$(NUCRTLIBPATH)"
|
|
|
|
!ENDIF
|
2012-07-01 02:22:34 +04:00
|
|
|
!ENDIF
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2012-07-01 02:22:34 +04:00
|
|
|
# C compiler and options for use in building executables that
|
2011-06-17 11:07:24 +04:00
|
|
|
# will run on the target platform. (BCC and TCC are usually the
|
|
|
|
# same unless your are cross-compiling.)
|
|
|
|
#
|
2015-01-12 21:02:52 +03:00
|
|
|
!IF $(USE_FULLWARN)!=0
|
2015-10-16 23:13:57 +03:00
|
|
|
TCC = $(CC) -nologo -W4 -DINCLUDE_MSVC_H=1 $(CCOPTS) $(TCCOPTS)
|
2015-01-12 21:02:52 +03:00
|
|
|
!ELSE
|
2015-10-16 23:13:57 +03:00
|
|
|
TCC = $(CC) -nologo -W3 $(CCOPTS) $(TCCOPTS)
|
2015-01-12 21:02:52 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2017-02-02 01:32:49 +03:00
|
|
|
# Check if warnings should be treated as errors when compiling.
|
|
|
|
#
|
|
|
|
!IF $(USE_FATAL_WARN)!=0
|
|
|
|
TCC = $(TCC) -WX
|
|
|
|
!ENDIF
|
|
|
|
|
2016-02-11 00:45:25 +03:00
|
|
|
TCC = $(TCC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -I$(TOP)\src -fp:precise
|
|
|
|
RCC = $(RC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -I$(TOP)\src $(RCOPTS) $(RCCOPTS)
|
2011-06-17 19:57:07 +04:00
|
|
|
|
2015-03-21 05:22:37 +03:00
|
|
|
# Check if we want to use the "stdcall" calling convention when compiling.
|
|
|
|
# This is not supported by the compilers for non-x86 platforms. It should
|
|
|
|
# also be noted here that building any target with these "stdcall" options
|
|
|
|
# will most likely fail if the Tcl library is also required. This is due
|
|
|
|
# to how the Tcl library functions are declared and exported (i.e. without
|
|
|
|
# an explicit calling convention, which results in "cdecl").
|
|
|
|
#
|
2016-01-22 04:25:15 +03:00
|
|
|
!IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
|
2015-03-21 05:22:37 +03:00
|
|
|
!IF "$(PLATFORM)"=="x86"
|
2022-01-06 20:13:56 +03:00
|
|
|
CORE_CCONV_OPTS = -Gz -guard:cf -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
|
|
|
|
SHELL_CCONV_OPTS = -Gz -guard:cf -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
|
2016-07-28 19:09:52 +03:00
|
|
|
# <<mark>>
|
2022-01-06 20:13:56 +03:00
|
|
|
TEST_CCONV_OPTS = -Gz -guard:cf -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall -DINCLUDE_SQLITE_TCL_H=1 -DSQLITE_TCLAPI=__cdecl
|
2016-07-28 19:09:52 +03:00
|
|
|
# <</mark>>
|
2015-03-21 05:22:37 +03:00
|
|
|
!ELSE
|
|
|
|
!IFNDEF PLATFORM
|
2022-01-06 20:13:56 +03:00
|
|
|
CORE_CCONV_OPTS = -Gz -guard:cf -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
|
|
|
|
SHELL_CCONV_OPTS = -Gz -guard:cf -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
|
2016-07-28 19:09:52 +03:00
|
|
|
# <<mark>>
|
2022-01-06 20:13:56 +03:00
|
|
|
TEST_CCONV_OPTS = -Gz -guard:cf -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall -DINCLUDE_SQLITE_TCL_H=1 -DSQLITE_TCLAPI=__cdecl
|
2016-07-28 19:09:52 +03:00
|
|
|
# <</mark>>
|
2015-03-21 05:22:37 +03:00
|
|
|
!ELSE
|
|
|
|
CORE_CCONV_OPTS =
|
|
|
|
SHELL_CCONV_OPTS =
|
2016-07-28 19:09:52 +03:00
|
|
|
# <<mark>>
|
2016-07-28 07:14:37 +03:00
|
|
|
TEST_CCONV_OPTS =
|
2016-07-28 19:09:52 +03:00
|
|
|
# <</mark>>
|
2015-03-21 05:22:37 +03:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
CORE_CCONV_OPTS =
|
|
|
|
SHELL_CCONV_OPTS =
|
2016-07-28 19:09:52 +03:00
|
|
|
# <<mark>>
|
2016-07-28 07:14:37 +03:00
|
|
|
TEST_CCONV_OPTS =
|
2016-07-28 19:09:52 +03:00
|
|
|
# <</mark>>
|
2015-03-21 05:22:37 +03:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# These are additional compiler options used for the core library.
|
|
|
|
#
|
|
|
|
!IFNDEF CORE_COMPILE_OPTS
|
2016-01-22 04:25:15 +03:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
|
2015-03-21 05:22:37 +03:00
|
|
|
CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS) -DSQLITE_API=__declspec(dllexport)
|
|
|
|
!ELSE
|
|
|
|
CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS)
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# These are the additional targets that the core library should depend on
|
|
|
|
# when linking.
|
|
|
|
#
|
|
|
|
!IFNDEF CORE_LINK_DEP
|
2016-02-27 00:01:37 +03:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0
|
2015-03-21 05:22:37 +03:00
|
|
|
CORE_LINK_DEP =
|
2016-02-27 00:01:37 +03:00
|
|
|
!ELSEIF $(FOR_WIN10)==0 || "$(PLATFORM)"=="x86"
|
2015-03-21 05:22:37 +03:00
|
|
|
CORE_LINK_DEP = sqlite3.def
|
2016-02-27 00:01:37 +03:00
|
|
|
!ELSE
|
|
|
|
CORE_LINK_DEP =
|
2015-03-21 05:22:37 +03:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# These are additional linker options used for the core library.
|
|
|
|
#
|
|
|
|
!IFNDEF CORE_LINK_OPTS
|
2016-02-27 00:01:37 +03:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0
|
2015-03-21 05:22:37 +03:00
|
|
|
CORE_LINK_OPTS =
|
2016-02-27 00:01:37 +03:00
|
|
|
!ELSEIF $(FOR_WIN10)==0 || "$(PLATFORM)"=="x86"
|
2015-03-21 05:22:37 +03:00
|
|
|
CORE_LINK_OPTS = /DEF:sqlite3.def
|
2016-02-27 00:01:37 +03:00
|
|
|
!ELSE
|
|
|
|
CORE_LINK_OPTS =
|
2015-03-21 05:22:37 +03:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# These are additional compiler options used for the shell executable.
|
|
|
|
#
|
|
|
|
!IFNDEF SHELL_COMPILE_OPTS
|
2016-01-22 04:25:15 +03:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
|
2016-01-22 06:54:36 +03:00
|
|
|
SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS) -DSQLITE_API=__declspec(dllimport)
|
2015-03-21 05:22:37 +03:00
|
|
|
!ELSE
|
2016-01-22 06:54:36 +03:00
|
|
|
SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS)
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# This is the source code that the shell executable should be compiled
|
|
|
|
# with.
|
|
|
|
#
|
|
|
|
!IFNDEF SHELL_CORE_SRC
|
|
|
|
!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
|
|
|
|
SHELL_CORE_SRC =
|
2018-07-27 23:45:28 +03:00
|
|
|
# <<mark>>
|
|
|
|
!ELSEIF $(USE_AMALGAMATION)==0
|
|
|
|
SHELL_CORE_SRC =
|
|
|
|
# <</mark>>
|
2015-03-21 05:22:37 +03:00
|
|
|
!ELSE
|
2016-01-22 06:54:36 +03:00
|
|
|
SHELL_CORE_SRC = $(SQLITE3C)
|
2015-03-21 05:22:37 +03:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# This is the core library that the shell executable should depend on.
|
|
|
|
#
|
|
|
|
!IFNDEF SHELL_CORE_DEP
|
2016-01-22 04:25:15 +03:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
|
|
|
|
SHELL_CORE_DEP = $(SQLITE3DLL)
|
2018-07-27 23:45:28 +03:00
|
|
|
# <<mark>>
|
|
|
|
!ELSEIF $(USE_AMALGAMATION)==0
|
|
|
|
SHELL_CORE_DEP = libsqlite3.lib
|
|
|
|
# <</mark>>
|
2015-03-21 05:22:37 +03:00
|
|
|
!ELSE
|
2016-01-22 06:54:36 +03:00
|
|
|
SHELL_CORE_DEP =
|
2015-03-21 05:22:37 +03:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2017-12-05 21:54:12 +03:00
|
|
|
# <<mark>>
|
2018-01-05 20:12:13 +03:00
|
|
|
# If zlib support is enabled, add the dependencies for it.
|
2017-12-05 21:54:12 +03:00
|
|
|
#
|
|
|
|
!IF $(USE_ZLIB)!=0 && $(BUILD_ZLIB)!=0
|
|
|
|
SHELL_CORE_DEP = zlib $(SHELL_CORE_DEP)
|
2018-01-05 20:12:13 +03:00
|
|
|
TESTFIXTURE_DEP = zlib $(TESTFIXTURE_DEP)
|
2017-12-05 21:54:12 +03:00
|
|
|
!ENDIF
|
|
|
|
# <</mark>>
|
|
|
|
|
2015-03-21 05:22:37 +03:00
|
|
|
# This is the core library that the shell executable should link with.
|
|
|
|
#
|
|
|
|
!IFNDEF SHELL_CORE_LIB
|
2016-01-22 04:25:15 +03:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
|
|
|
|
SHELL_CORE_LIB = $(SQLITE3LIB)
|
2018-07-27 23:45:28 +03:00
|
|
|
# <<mark>>
|
|
|
|
!ELSEIF $(USE_AMALGAMATION)==0
|
|
|
|
SHELL_CORE_LIB = libsqlite3.lib
|
|
|
|
# <</mark>>
|
2015-03-21 05:22:37 +03:00
|
|
|
!ELSE
|
2016-01-22 06:54:36 +03:00
|
|
|
SHELL_CORE_LIB =
|
2015-03-21 05:22:37 +03:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# These are additional linker options used for the shell executable.
|
|
|
|
#
|
|
|
|
!IFNDEF SHELL_LINK_OPTS
|
|
|
|
SHELL_LINK_OPTS = $(SHELL_CORE_LIB)
|
|
|
|
!ENDIF
|
|
|
|
|
2013-09-07 01:41:11 +04:00
|
|
|
# Check if assembly code listings should be generated for the source
|
|
|
|
# code files to be compiled.
|
|
|
|
#
|
|
|
|
!IF $(USE_LISTINGS)!=0
|
|
|
|
TCC = $(TCC) -FAcs
|
|
|
|
!ENDIF
|
|
|
|
|
2012-03-20 06:18:42 +04:00
|
|
|
# When compiling the library for use in the WinRT environment,
|
2012-03-23 16:28:21 +04:00
|
|
|
# the following compile-time options must be used as well to
|
2012-03-20 06:18:42 +04:00
|
|
|
# disable use of Win32 APIs that are not available and to enable
|
|
|
|
# use of Win32 APIs that are specific to Windows 8 and/or WinRT.
|
|
|
|
#
|
2012-03-23 16:28:21 +04:00
|
|
|
!IF $(FOR_WINRT)!=0
|
2012-06-21 08:21:35 +04:00
|
|
|
TCC = $(TCC) -DSQLITE_OS_WINRT=1
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -DSQLITE_OS_WINRT=1
|
2012-10-06 07:48:25 +04:00
|
|
|
TCC = $(TCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP
|
|
|
|
RCC = $(RCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP
|
2012-06-21 08:21:35 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
# C compiler options for the Windows 10 platform (needs MSVC 2015).
|
2016-01-22 04:25:15 +03:00
|
|
|
#
|
|
|
|
!IF $(FOR_WIN10)!=0
|
2016-02-09 21:28:20 +03:00
|
|
|
TCC = $(TCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
|
|
|
|
BCC = $(BCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
|
2016-01-22 04:25:15 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2012-06-21 08:21:35 +04:00
|
|
|
# Also, we need to dynamically link to the correct MSVC runtime
|
|
|
|
# when compiling for WinRT (e.g. debug or release) OR if the
|
|
|
|
# USE_CRT_DLL option is set to force dynamically linking to the
|
|
|
|
# MSVC runtime library.
|
|
|
|
#
|
2016-02-05 22:40:23 +03:00
|
|
|
!IF $(FOR_WINRT)!=0 || $(USE_CRT_DLL)!=0
|
2014-12-21 00:14:14 +03:00
|
|
|
!IF $(DEBUG)>1
|
2012-06-21 08:21:35 +04:00
|
|
|
TCC = $(TCC) -MDd
|
2012-10-06 07:48:25 +04:00
|
|
|
BCC = $(BCC) -MDd
|
2012-06-21 08:21:35 +04:00
|
|
|
!ELSE
|
|
|
|
TCC = $(TCC) -MD
|
2012-10-06 07:48:25 +04:00
|
|
|
BCC = $(BCC) -MD
|
2012-06-21 08:21:35 +04:00
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
2014-12-21 00:14:14 +03:00
|
|
|
!IF $(DEBUG)>1
|
2012-06-21 08:21:35 +04:00
|
|
|
TCC = $(TCC) -MTd
|
2012-10-06 07:48:25 +04:00
|
|
|
BCC = $(BCC) -MTd
|
2012-06-21 08:21:35 +04:00
|
|
|
!ELSE
|
|
|
|
TCC = $(TCC) -MT
|
2012-10-06 07:48:25 +04:00
|
|
|
BCC = $(BCC) -MT
|
2012-06-21 08:21:35 +04:00
|
|
|
!ENDIF
|
2012-03-23 16:28:21 +04:00
|
|
|
!ENDIF
|
2012-03-20 06:18:42 +04:00
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2012-03-20 06:18:42 +04:00
|
|
|
# The mksqlite3c.tcl and mksqlite3h.tcl scripts will pull in
|
2011-06-17 19:57:07 +04:00
|
|
|
# any extension header files by default. For non-amalgamation
|
|
|
|
# builds, we need to make sure the compiler can find these.
|
|
|
|
#
|
|
|
|
!IF $(USE_AMALGAMATION)==0
|
|
|
|
TCC = $(TCC) -I$(TOP)\ext\fts3
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -I$(TOP)\ext\fts3
|
2011-06-17 19:57:07 +04:00
|
|
|
TCC = $(TCC) -I$(TOP)\ext\rtree
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -I$(TOP)\ext\rtree
|
2013-03-13 15:42:00 +04:00
|
|
|
TCC = $(TCC) -I$(TOP)\ext\session
|
2013-03-13 23:02:39 +04:00
|
|
|
RCC = $(RCC) -I$(TOP)\ext\session
|
2011-06-17 19:57:07 +04:00
|
|
|
!ENDIF
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2014-01-30 15:12:52 +04:00
|
|
|
# The mksqlite3c.tcl script accepts some options on the command
|
|
|
|
# line. When compiling with debugging enabled, some of these
|
|
|
|
# options are necessary in order to allow debugging symbols to
|
|
|
|
# work correctly with Visual Studio when using the amalgamation.
|
|
|
|
#
|
2016-08-24 22:58:46 +03:00
|
|
|
!IFNDEF MKSQLITE3C_TOOL
|
|
|
|
!IF $(MINIMAL_AMALGAMATION)!=0
|
|
|
|
MKSQLITE3C_TOOL = $(TOP)\tool\mksqlite3c-noext.tcl
|
|
|
|
!ELSE
|
|
|
|
MKSQLITE3C_TOOL = $(TOP)\tool\mksqlite3c.tcl
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2015-04-11 00:16:11 +03:00
|
|
|
!IFNDEF MKSQLITE3C_ARGS
|
2021-07-14 00:59:22 +03:00
|
|
|
!IF $(DEBUG)>1 && $(NO_LINEMACROS)==0
|
|
|
|
MKSQLITE3C_ARGS = --linemacros=1
|
2014-01-30 15:12:52 +04:00
|
|
|
!ELSE
|
2021-07-14 00:59:22 +03:00
|
|
|
MKSQLITE3C_ARGS = --linemacros=0
|
2014-01-30 15:12:52 +04:00
|
|
|
!ENDIF
|
2016-08-24 22:58:46 +03:00
|
|
|
!IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
|
|
|
|
MKSQLITE3C_ARGS = $(MKSQLITE3C_ARGS) --useapicall
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# The mksqlite3h.tcl script accepts some options on the command line.
|
|
|
|
# When compiling with stdcall support, some of these options are
|
|
|
|
# necessary.
|
|
|
|
#
|
|
|
|
!IFNDEF MKSQLITE3H_ARGS
|
|
|
|
!IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
|
|
|
|
MKSQLITE3H_ARGS = --useapicall
|
|
|
|
!ELSE
|
|
|
|
MKSQLITE3H_ARGS =
|
|
|
|
!ENDIF
|
2015-04-11 00:16:11 +03:00
|
|
|
!ENDIF
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2014-01-30 15:12:52 +04:00
|
|
|
|
2011-06-17 11:07:24 +04: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.
|
|
|
|
#
|
2011-08-25 06:02:25 +04:00
|
|
|
!IF $(DEBUG)==0
|
2011-06-17 11:07:24 +04:00
|
|
|
TCC = $(TCC) -DNDEBUG
|
2012-04-18 14:29:21 +04:00
|
|
|
BCC = $(BCC) -DNDEBUG
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -DNDEBUG
|
2011-08-25 06:02:25 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-22 04:25:15 +03:00
|
|
|
!IF $(DEBUG)>0 || $(API_ARMOR)!=0 || $(FOR_WIN10)!=0
|
2015-05-13 07:50:30 +03:00
|
|
|
TCC = $(TCC) -DSQLITE_ENABLE_API_ARMOR=1
|
|
|
|
RCC = $(RCC) -DSQLITE_ENABLE_API_ARMOR=1
|
2014-12-21 00:14:14 +03:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IF $(DEBUG)>2
|
2015-05-13 07:50:30 +03:00
|
|
|
TCC = $(TCC) -DSQLITE_DEBUG=1
|
|
|
|
RCC = $(RCC) -DSQLITE_DEBUG=1
|
2017-03-30 02:22:18 +03:00
|
|
|
!IF $(DYNAMIC_SHELL)==0
|
|
|
|
TCC = $(TCC) -DSQLITE_ENABLE_WHERETRACE -DSQLITE_ENABLE_SELECTTRACE
|
|
|
|
RCC = $(RCC) -DSQLITE_ENABLE_WHERETRACE -DSQLITE_ENABLE_SELECTTRACE
|
|
|
|
!ENDIF
|
2011-08-25 06:02:25 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2015-04-16 19:27:29 +03:00
|
|
|
!IF $(DEBUG)>4 || $(OSTRACE)!=0
|
|
|
|
TCC = $(TCC) -DSQLITE_FORCE_OS_TRACE=1 -DSQLITE_DEBUG_OS_TRACE=1
|
|
|
|
RCC = $(RCC) -DSQLITE_FORCE_OS_TRACE=1 -DSQLITE_DEBUG_OS_TRACE=1
|
2011-08-25 06:02:25 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2014-12-21 00:14:14 +03:00
|
|
|
!IF $(DEBUG)>5
|
2015-05-13 07:50:30 +03:00
|
|
|
TCC = $(TCC) -DSQLITE_ENABLE_IOTRACE=1
|
|
|
|
RCC = $(RCC) -DSQLITE_ENABLE_IOTRACE=1
|
2011-08-25 06:02:25 +04:00
|
|
|
!ENDIF
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2012-07-01 02:22:34 +04:00
|
|
|
# Prevent warnings about "insecure" MSVC runtime library functions
|
|
|
|
# being used.
|
2011-08-03 03:34:00 +04:00
|
|
|
#
|
|
|
|
TCC = $(TCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
|
2012-04-18 14:29:21 +04:00
|
|
|
BCC = $(BCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
|
2011-08-03 03:34:00 +04:00
|
|
|
|
2012-07-01 02:22:34 +04:00
|
|
|
# Prevent warnings about "deprecated" POSIX functions being used.
|
|
|
|
#
|
|
|
|
TCC = $(TCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
|
|
|
|
BCC = $(BCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
|
2012-07-01 02:22:34 +04:00
|
|
|
|
2012-08-22 04:39:34 +04:00
|
|
|
# Use the SQLite debugging heap subsystem?
|
2011-08-24 20:13:57 +04:00
|
|
|
#
|
2012-08-22 04:39:34 +04:00
|
|
|
!IF $(MEMDEBUG)!=0
|
|
|
|
TCC = $(TCC) -DSQLITE_MEMDEBUG=1
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -DSQLITE_MEMDEBUG=1
|
2012-08-22 04:39:34 +04:00
|
|
|
|
|
|
|
# Use native Win32 heap subsystem instead of malloc/free?
|
|
|
|
#
|
|
|
|
!ELSEIF $(WIN32HEAP)!=0
|
|
|
|
TCC = $(TCC) -DSQLITE_WIN32_MALLOC=1
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -DSQLITE_WIN32_MALLOC=1
|
2011-08-25 06:02:25 +04:00
|
|
|
|
|
|
|
# Validate the heap on every call into the native Win32 heap subsystem?
|
|
|
|
#
|
2014-12-21 00:14:14 +03:00
|
|
|
!IF $(DEBUG)>3
|
2011-08-25 06:02:25 +04:00
|
|
|
TCC = $(TCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1
|
2011-08-25 06:02:25 +04:00
|
|
|
!ENDIF
|
2012-08-22 04:39:34 +04:00
|
|
|
!ENDIF
|
2011-08-24 20:13:57 +04:00
|
|
|
|
2023-08-17 18:11:59 +03:00
|
|
|
|
|
|
|
# Address sanitizer if ASAN=1
|
|
|
|
#
|
|
|
|
!IF $(ASAN)>0
|
|
|
|
TCC = $(TCC) /fsanitize=address
|
|
|
|
!ENDIF
|
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2011-06-25 05:14:36 +04:00
|
|
|
# The locations of the Tcl header and library files. Also, the library that
|
|
|
|
# non-stubs enabled programs using Tcl must link against. These variables
|
|
|
|
# (TCLINCDIR, TCLLIBDIR, and LIBTCL) may be overridden via the environment
|
|
|
|
# prior to running nmake in order to match the actual installed location and
|
|
|
|
# version on this machine.
|
2011-06-17 11:07:24 +04:00
|
|
|
#
|
2019-03-23 01:34:16 +03:00
|
|
|
!IFNDEF TCLVERSION
|
|
|
|
TCLVERSION = 86
|
|
|
|
!ENDIF
|
|
|
|
|
2019-03-23 03:38:52 +03:00
|
|
|
!IFNDEF TCLSUFFIX
|
|
|
|
TCLSUFFIX =
|
|
|
|
!ENDIF
|
|
|
|
|
2017-12-05 21:54:12 +03:00
|
|
|
!IFNDEF TCLDIR
|
2024-09-04 21:51:59 +03:00
|
|
|
TCLDIR = C:\Tcl
|
2017-12-05 21:54:12 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2012-06-30 20:22:05 +04:00
|
|
|
!IFNDEF TCLINCDIR
|
2017-12-05 21:54:12 +03:00
|
|
|
TCLINCDIR = $(TCLDIR)\include
|
2012-06-30 20:22:05 +04:00
|
|
|
!ENDIF
|
2011-06-25 05:14:36 +04:00
|
|
|
|
2012-06-30 20:22:05 +04:00
|
|
|
!IFNDEF TCLLIBDIR
|
2017-12-05 21:54:12 +03:00
|
|
|
TCLLIBDIR = $(TCLDIR)\lib
|
2012-06-30 20:22:05 +04:00
|
|
|
!ENDIF
|
2011-06-25 05:14:36 +04:00
|
|
|
|
2012-06-30 20:22:05 +04:00
|
|
|
!IFNDEF LIBTCL
|
2019-03-23 03:38:52 +03:00
|
|
|
LIBTCL = tcl$(TCLVERSION)$(TCLSUFFIX).lib
|
2012-06-30 20:22:05 +04:00
|
|
|
!ENDIF
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2015-10-11 02:39:55 +03:00
|
|
|
!IFNDEF LIBTCLSTUB
|
2019-03-23 03:38:52 +03:00
|
|
|
LIBTCLSTUB = tclstub$(TCLVERSION)$(TCLSUFFIX).lib
|
2015-10-11 02:39:55 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2015-10-15 02:04:08 +03:00
|
|
|
!IFNDEF LIBTCLPATH
|
2017-12-05 21:54:12 +03:00
|
|
|
LIBTCLPATH = $(TCLDIR)\bin
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# The locations of the zlib header and library files. These variables
|
|
|
|
# (ZLIBINCDIR, ZLIBLIBDIR, and ZLIBLIB) may be overridden via the environment
|
|
|
|
# prior to running nmake in order to match the actual installed (or source
|
|
|
|
# code) location on this machine.
|
|
|
|
#
|
|
|
|
!IFNDEF ZLIBDIR
|
|
|
|
ZLIBDIR = $(TOP)\compat\zlib
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF ZLIBINCDIR
|
|
|
|
ZLIBINCDIR = $(ZLIBDIR)
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF ZLIBLIBDIR
|
|
|
|
ZLIBLIBDIR = $(ZLIBDIR)
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF ZLIBLIB
|
|
|
|
!IF $(DYNAMIC_SHELL)!=0
|
|
|
|
ZLIBLIB = zdll.lib
|
|
|
|
!ELSE
|
|
|
|
ZLIBLIB = zlib.lib
|
|
|
|
!ENDIF
|
2015-10-15 02:04:08 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2011-10-02 09:23:16 +04:00
|
|
|
# The locations of the ICU header and library files. These variables
|
|
|
|
# (ICUINCDIR, ICULIBDIR, and LIBICU) may be overridden via the environment
|
|
|
|
# prior to running nmake in order to match the actual installed location on
|
|
|
|
# this machine.
|
|
|
|
#
|
2017-12-05 21:54:12 +03:00
|
|
|
!IFNDEF ICUDIR
|
2017-12-05 22:07:30 +03:00
|
|
|
ICUDIR = $(TOP)\compat\icu
|
2017-12-05 21:54:12 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2012-06-30 20:22:05 +04:00
|
|
|
!IFNDEF ICUINCDIR
|
2017-12-05 21:54:12 +03:00
|
|
|
ICUINCDIR = $(ICUDIR)\include
|
2012-06-30 20:22:05 +04:00
|
|
|
!ENDIF
|
2011-10-02 09:23:16 +04:00
|
|
|
|
2012-06-30 20:22:05 +04:00
|
|
|
!IFNDEF ICULIBDIR
|
2017-12-05 21:54:12 +03:00
|
|
|
ICULIBDIR = $(ICUDIR)\lib
|
2012-06-30 20:22:05 +04:00
|
|
|
!ENDIF
|
2011-10-02 09:23:16 +04:00
|
|
|
|
2012-06-30 20:22:05 +04:00
|
|
|
!IFNDEF LIBICU
|
2011-10-02 09:23:16 +04:00
|
|
|
LIBICU = icuuc.lib icuin.lib
|
2012-06-30 20:22:05 +04:00
|
|
|
!ENDIF
|
2011-10-02 09:23:16 +04:00
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
# This is the command to use for tclsh - normally just "tclsh", but we may
|
2011-06-25 05:14:36 +04:00
|
|
|
# know the specific version we want to use. This variable (TCLSH_CMD) may be
|
|
|
|
# overridden via the environment prior to running nmake in order to select a
|
|
|
|
# specific Tcl shell to use.
|
2011-06-17 11:07:24 +04:00
|
|
|
#
|
2012-06-30 20:22:05 +04:00
|
|
|
!IFNDEF TCLSH_CMD
|
2018-01-05 04:22:37 +03:00
|
|
|
!IF $(USE_TCLSH_IN_PATH)!=0 || !EXIST("$(TCLDIR)\bin\tclsh.exe")
|
2016-11-02 22:49:22 +03:00
|
|
|
TCLSH_CMD = tclsh
|
2017-12-05 22:07:30 +03:00
|
|
|
!ELSE
|
|
|
|
TCLSH_CMD = $(TCLDIR)\bin\tclsh.exe
|
|
|
|
!ENDIF
|
2012-06-30 20:22:05 +04:00
|
|
|
!ENDIF
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Compiler options needed for programs that use the readline() library.
|
|
|
|
#
|
2013-08-29 05:03:38 +04:00
|
|
|
!IFNDEF READLINE_FLAGS
|
2011-06-17 19:57:07 +04:00
|
|
|
READLINE_FLAGS = -DHAVE_READLINE=0
|
2013-08-29 05:03:38 +04:00
|
|
|
!ENDIF
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# The library that programs using readline() must link against.
|
|
|
|
#
|
2013-08-29 05:03:38 +04:00
|
|
|
!IFNDEF LIBREADLINE
|
2011-06-17 19:57:07 +04:00
|
|
|
LIBREADLINE =
|
2013-08-29 05:03:38 +04:00
|
|
|
!ENDIF
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Should the database engine be compiled threadsafe
|
|
|
|
#
|
|
|
|
TCC = $(TCC) -DSQLITE_THREADSAFE=1
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -DSQLITE_THREADSAFE=1
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Do threads override each others locks by default (1), or do we test (-1)
|
|
|
|
#
|
|
|
|
TCC = $(TCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Any target libraries which libsqlite must be linked against
|
2011-06-17 19:57:07 +04:00
|
|
|
#
|
2012-06-30 20:22:05 +04:00
|
|
|
!IFNDEF TLIBS
|
2011-06-17 19:57:07 +04:00
|
|
|
TLIBS =
|
2012-06-30 20:22:05 +04:00
|
|
|
!ENDIF
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Flags controlling use of the in memory btree implementation
|
|
|
|
#
|
|
|
|
# SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
|
|
|
|
# default to file, 2 to default to memory, and 3 to force temporary
|
|
|
|
# tables to always be in memory.
|
|
|
|
#
|
2011-06-17 19:57:07 +04:00
|
|
|
TCC = $(TCC) -DSQLITE_TEMP_STORE=1
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -DSQLITE_TEMP_STORE=1
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Enable/disable loadable extensions, and other optional features
|
2011-06-17 19:57:07 +04:00
|
|
|
# based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*).
|
|
|
|
# The same set of OMIT and ENABLE flags should be passed to the
|
2011-06-17 11:07:24 +04:00
|
|
|
# LEMON parser generator and the mkkeywordhash tool as well.
|
|
|
|
|
2014-05-10 00:51:17 +04:00
|
|
|
# These are the required SQLite compilation options used when compiling for
|
|
|
|
# the Windows platform.
|
|
|
|
#
|
|
|
|
REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_MAX_TRIGGER_DEPTH=100
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2015-01-21 03:48:46 +03:00
|
|
|
# If we are linking to the RPCRT4 library, enable features that need it.
|
|
|
|
#
|
|
|
|
!IF $(USE_RPCRT4_LIB)!=0
|
|
|
|
REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_WIN32_USE_UUID=1
|
|
|
|
!ENDIF
|
|
|
|
|
2014-05-10 00:51:17 +04:00
|
|
|
# Add the required and optional SQLite compilation options into the command
|
|
|
|
# lines used to invoke the MSVC code and resource compilers.
|
|
|
|
#
|
2016-01-22 04:25:15 +03:00
|
|
|
TCC = $(TCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS)
|
|
|
|
RCC = $(RCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2014-05-10 00:51:17 +04:00
|
|
|
# Add in any optional parameters specified on the commane line, e.g.
|
|
|
|
# nmake /f Makefile.msc all "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1"
|
|
|
|
#
|
2011-06-17 11:07:24 +04:00
|
|
|
TCC = $(TCC) $(OPTS)
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) $(OPTS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2013-08-29 05:03:38 +04:00
|
|
|
# If compiling for debugging, add some defines.
|
2014-05-10 00:51:17 +04:00
|
|
|
#
|
2014-12-21 00:14:14 +03:00
|
|
|
!IF $(DEBUG)>1
|
2013-08-29 05:03:38 +04:00
|
|
|
TCC = $(TCC) -D_DEBUG
|
|
|
|
BCC = $(BCC) -D_DEBUG
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -D_DEBUG
|
2013-08-29 05:03:38 +04:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# If optimizations are enabled or disabled (either implicitly or
|
|
|
|
# explicitly), add the necessary flags.
|
2014-05-10 00:51:17 +04:00
|
|
|
#
|
2014-12-21 00:14:14 +03:00
|
|
|
!IF $(DEBUG)>1 || $(OPTIMIZATIONS)==0
|
2013-08-29 05:03:38 +04:00
|
|
|
TCC = $(TCC) -Od
|
|
|
|
BCC = $(BCC) -Od
|
2016-08-24 21:21:58 +03:00
|
|
|
!IF $(USE_RUNTIME_CHECKS)!=0
|
|
|
|
TCC = $(TCC) -RTC1
|
|
|
|
BCC = $(BCC) -RTC1
|
|
|
|
!ENDIF
|
2013-08-29 05:03:38 +04:00
|
|
|
!ELSEIF $(OPTIMIZATIONS)>=3
|
|
|
|
TCC = $(TCC) -Ox
|
|
|
|
BCC = $(BCC) -Ox
|
|
|
|
!ELSEIF $(OPTIMIZATIONS)==2
|
2011-08-26 09:40:31 +04:00
|
|
|
TCC = $(TCC) -O2
|
2012-04-18 14:29:21 +04:00
|
|
|
BCC = $(BCC) -O2
|
2013-08-29 05:03:38 +04:00
|
|
|
!ELSEIF $(OPTIMIZATIONS)==1
|
|
|
|
TCC = $(TCC) -O1
|
|
|
|
BCC = $(BCC) -O1
|
2011-08-26 09:40:31 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2013-08-29 05:03:38 +04:00
|
|
|
# If symbols are enabled (or compiling for debugging), enable PDBs.
|
2014-05-10 00:51:17 +04:00
|
|
|
#
|
2014-12-21 00:14:14 +03:00
|
|
|
!IF $(DEBUG)>1 || $(SYMBOLS)!=0
|
2011-08-26 09:40:31 +04:00
|
|
|
TCC = $(TCC) -Zi
|
2012-04-18 14:29:21 +04:00
|
|
|
BCC = $(BCC) -Zi
|
2011-08-25 06:02:25 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2017-12-05 21:54:12 +03:00
|
|
|
# If zlib support is enabled, add the compiler options for it.
|
|
|
|
#
|
|
|
|
!IF $(USE_ZLIB)!=0
|
|
|
|
TCC = $(TCC) -DSQLITE_HAVE_ZLIB=1
|
|
|
|
RCC = $(RCC) -DSQLITE_HAVE_ZLIB=1
|
|
|
|
TCC = $(TCC) -I$(ZLIBINCDIR)
|
|
|
|
RCC = $(RCC) -I$(ZLIBINCDIR)
|
|
|
|
!ENDIF
|
|
|
|
|
2011-10-02 09:23:16 +04:00
|
|
|
# If ICU support is enabled, add the compiler options for it.
|
2014-05-10 00:51:17 +04:00
|
|
|
#
|
2011-10-02 09:23:16 +04:00
|
|
|
!IF $(USE_ICU)!=0
|
|
|
|
TCC = $(TCC) -DSQLITE_ENABLE_ICU=1
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -DSQLITE_ENABLE_ICU=1
|
2011-10-02 09:23:16 +04:00
|
|
|
TCC = $(TCC) -I$(TOP)\ext\icu
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -I$(TOP)\ext\icu
|
2011-10-02 09:23:16 +04:00
|
|
|
TCC = $(TCC) -I$(ICUINCDIR)
|
2012-09-03 14:32:32 +04:00
|
|
|
RCC = $(RCC) -I$(ICUINCDIR)
|
2011-10-02 09:23:16 +04:00
|
|
|
!ENDIF
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2011-10-02 09:23:16 +04:00
|
|
|
|
2012-09-03 14:32:32 +04:00
|
|
|
# Command line prefixes for compiling code, compiling resources,
|
|
|
|
# linking, etc.
|
2014-05-10 00:51:17 +04:00
|
|
|
#
|
2019-03-22 04:25:16 +03:00
|
|
|
LTCOMPILE = $(TCC) -Fo$@ -Fd$*.pdb
|
2012-09-03 14:32:32 +04:00
|
|
|
LTRCOMPILE = $(RCC) -r
|
2011-06-17 11:07:24 +04:00
|
|
|
LTLIB = lib.exe
|
2011-06-21 00:52:32 +04:00
|
|
|
LTLINK = $(TCC) -Fe$@
|
|
|
|
|
2015-01-21 03:48:46 +03:00
|
|
|
# If requested, link to the RPCRT4 library.
|
|
|
|
#
|
|
|
|
!IF $(USE_RPCRT4_LIB)!=0
|
2017-11-22 00:15:17 +03:00
|
|
|
LTLIBS = $(LTLIBS) rpcrt4.lib
|
2015-01-21 03:48:46 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2011-06-21 00:52:32 +04:00
|
|
|
# If a platform was set, force the linker to target that.
|
|
|
|
# Note that the vcvars*.bat family of batch files typically
|
|
|
|
# set this for you. Otherwise, the linker will attempt
|
|
|
|
# to deduce the binary type based on the object files.
|
2012-06-30 20:22:05 +04:00
|
|
|
!IFDEF PLATFORM
|
2015-03-21 05:22:37 +03:00
|
|
|
LTLINKOPTS = /NOLOGO /MACHINE:$(PLATFORM)
|
|
|
|
LTLIBOPTS = /NOLOGO /MACHINE:$(PLATFORM)
|
2019-03-23 01:34:16 +03:00
|
|
|
!ELSEIF "$(VISUALSTUDIOVERSION)"=="12.0" || \
|
|
|
|
"$(VISUALSTUDIOVERSION)"=="14.0" || \
|
|
|
|
"$(VISUALSTUDIOVERSION)"=="15.0"
|
2019-03-22 19:52:17 +03:00
|
|
|
LTLINKOPTS = /NOLOGO /MACHINE:x86
|
|
|
|
LTLIBOPTS = /NOLOGO /MACHINE:x86
|
|
|
|
!ELSE
|
|
|
|
LTLINKOPTS = /NOLOGO
|
|
|
|
LTLIBOPTS = /NOLOGO
|
|
|
|
!ENDIF
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2012-04-18 01:00:12 +04:00
|
|
|
# When compiling for use in the WinRT environment, the following
|
|
|
|
# linker option must be used to mark the executable as runnable
|
|
|
|
# only in the context of an application container.
|
|
|
|
#
|
|
|
|
!IF $(FOR_WINRT)!=0
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) /APPCONTAINER
|
2015-04-22 04:33:53 +03:00
|
|
|
!IF "$(VISUALSTUDIOVERSION)"=="12.0" || "$(VISUALSTUDIOVERSION)"=="14.0"
|
2014-05-06 00:24:34 +04:00
|
|
|
!IFNDEF STORELIBPATH
|
2013-07-10 23:39:02 +04:00
|
|
|
!IF "$(PLATFORM)"=="x86"
|
2014-05-10 00:51:17 +04:00
|
|
|
STORELIBPATH = $(CRTLIBPATH)\store
|
2013-07-10 23:39:02 +04:00
|
|
|
!ELSEIF "$(PLATFORM)"=="x64"
|
2014-05-10 00:51:17 +04:00
|
|
|
STORELIBPATH = $(CRTLIBPATH)\store\amd64
|
2013-07-11 01:33:25 +04:00
|
|
|
!ELSEIF "$(PLATFORM)"=="ARM"
|
2014-05-10 00:51:17 +04:00
|
|
|
STORELIBPATH = $(CRTLIBPATH)\store\arm
|
2013-07-11 01:33:25 +04:00
|
|
|
!ELSE
|
2014-05-10 00:51:17 +04:00
|
|
|
STORELIBPATH = $(CRTLIBPATH)\store
|
2013-07-10 23:39:02 +04:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2014-05-06 00:24:34 +04:00
|
|
|
STORELIBPATH = $(STORELIBPATH:\\=\)
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(STORELIBPATH)"
|
2013-07-10 23:39:02 +04:00
|
|
|
!ENDIF
|
2012-04-18 01:00:12 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2014-05-10 03:31:55 +04:00
|
|
|
# When compiling for Windows Phone 8.1, an extra library path is
|
|
|
|
# required.
|
|
|
|
#
|
|
|
|
!IF $(USE_WP81_OPTS)!=0
|
|
|
|
!IFNDEF WP81LIBPATH
|
|
|
|
!IF "$(PLATFORM)"=="x86"
|
|
|
|
WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86
|
|
|
|
!ELSEIF "$(PLATFORM)"=="ARM"
|
|
|
|
WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\ARM
|
|
|
|
!ELSE
|
|
|
|
WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# When compiling for Windows Phone 8.1, some extra linker options
|
|
|
|
# are also required.
|
|
|
|
#
|
|
|
|
!IF $(USE_WP81_OPTS)!=0
|
|
|
|
!IFDEF WP81LIBPATH
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(WP81LIBPATH)"
|
|
|
|
!ENDIF
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:kernel32.lib /NODEFAULTLIB:ole32.lib
|
|
|
|
!ENDIF
|
|
|
|
|
2016-02-12 08:19:29 +03:00
|
|
|
# When compiling for UWP or the Windows 10 platform, some extra linker
|
2016-02-08 23:40:57 +03:00
|
|
|
# options are also required.
|
2015-04-22 04:33:53 +03:00
|
|
|
#
|
2016-02-12 08:19:29 +03:00
|
|
|
!IF $(FOR_UWP)!=0 || $(FOR_WIN10)!=0
|
2015-04-22 04:33:53 +03:00
|
|
|
LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE /NODEFAULTLIB:kernel32.lib
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) mincore.lib
|
|
|
|
!IFDEF PSDKLIBPATH
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(PSDKLIBPATH)"
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2016-02-05 22:40:23 +03:00
|
|
|
!IF $(FOR_WIN10)!=0
|
2016-02-09 21:28:20 +03:00
|
|
|
LTLINKOPTS = $(LTLINKOPTS) /guard:cf "/LIBPATH:$(UCRTLIBPATH)"
|
2016-02-05 22:40:23 +03:00
|
|
|
!IF $(DEBUG)>1
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:libucrtd.lib /DEFAULTLIB:ucrtd.lib
|
|
|
|
!ELSE
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:libucrt.lib /DEFAULTLIB:ucrt.lib
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2012-04-18 14:29:21 +04:00
|
|
|
# If either debugging or symbols are enabled, enable PDBs.
|
2014-05-10 00:51:17 +04:00
|
|
|
#
|
2014-12-21 00:14:14 +03:00
|
|
|
!IF $(DEBUG)>1 || $(SYMBOLS)!=0
|
2015-10-16 23:13:57 +03:00
|
|
|
LDFLAGS = /DEBUG $(LDOPTS)
|
|
|
|
!ELSE
|
|
|
|
LDFLAGS = $(LDOPTS)
|
2011-08-25 06:02:25 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2011-10-02 09:23:16 +04:00
|
|
|
# Start with the Tcl related linker options.
|
2014-05-10 00:51:17 +04:00
|
|
|
#
|
2012-07-27 11:13:25 +04:00
|
|
|
!IF $(NO_TCL)==0
|
2018-01-05 19:05:51 +03:00
|
|
|
TCLLIBPATHS = $(TCLLIBPATHS) /LIBPATH:$(TCLLIBDIR)
|
|
|
|
TCLLIBS = $(TCLLIBS) $(LIBTCL)
|
2012-07-27 11:13:25 +04:00
|
|
|
!ENDIF
|
2011-10-02 09:23:16 +04:00
|
|
|
|
2017-12-05 21:54:12 +03:00
|
|
|
# If zlib support is enabled, add the linker options for it.
|
|
|
|
#
|
|
|
|
!IF $(USE_ZLIB)!=0
|
|
|
|
LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ZLIBLIBDIR)
|
|
|
|
LTLIBS = $(LTLIBS) $(ZLIBLIB)
|
2012-07-27 11:13:25 +04:00
|
|
|
!ENDIF
|
2011-10-02 09:23:16 +04:00
|
|
|
|
|
|
|
# If ICU support is enabled, add the linker options for it.
|
2014-05-10 00:51:17 +04:00
|
|
|
#
|
2011-10-02 09:23:16 +04:00
|
|
|
!IF $(USE_ICU)!=0
|
|
|
|
LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ICULIBDIR)
|
|
|
|
LTLIBS = $(LTLIBS) $(LIBICU)
|
|
|
|
!ENDIF
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2011-10-02 09:23:16 +04:00
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
# You should not have to change anything below this line
|
|
|
|
###############################################################################
|
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
# Object files for the SQLite library (non-amalgamation).
|
|
|
|
#
|
2013-07-29 23:03:20 +04:00
|
|
|
LIBOBJS0 = vdbe.lo parse.lo alter.lo analyze.lo attach.lo auth.lo \
|
2011-06-17 11:07:24 +04:00
|
|
|
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 \
|
2011-06-17 11:07:24 +04:00
|
|
|
expr.lo fault.lo fkey.lo \
|
2012-05-29 00:22:16 +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 21:07:56 +04:00
|
|
|
fts3_tokenize_vtab.lo fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \
|
2015-06-26 07:34:36 +03:00
|
|
|
fts5.lo \
|
2011-06-17 11:07:24 +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 \
|
2011-06-17 11:07:24 +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 19:09:20 +04:00
|
|
|
mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \
|
2022-10-12 21:30:08 +03:00
|
|
|
notify.lo opcodes.lo os.lo os_kv.lo os_unix.lo os_win.lo \
|
2013-07-29 23:03:20 +04:00
|
|
|
pager.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 \
|
2018-09-12 03:48:17 +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-04-13 00:42:51 +03:00
|
|
|
update.lo upsert.lo util.lo vacuum.lo \
|
2013-07-29 23:03:20 +04:00
|
|
|
vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \
|
2020-05-18 21:02:37 +03:00
|
|
|
vdbetrace.lo vdbevtab.lo wal.lo walker.lo where.lo wherecode.lo \
|
|
|
|
whereexpr.lo \
|
2018-06-10 10:42:35 +03:00
|
|
|
window.lo utf.lo vtab.lo
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Object files for the amalgamation.
|
|
|
|
#
|
|
|
|
LIBOBJS1 = sqlite3.lo
|
|
|
|
|
|
|
|
# Determine the real value of LIBOBJ based on the 'configure' script
|
|
|
|
#
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
!IF $(USE_AMALGAMATION)==0
|
|
|
|
LIBOBJ = $(LIBOBJS0)
|
|
|
|
!ELSE
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
LIBOBJ = $(LIBOBJS1)
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
!ENDIF
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2012-10-06 07:48:25 +04:00
|
|
|
# Determine if embedded resource compilation and usage are enabled.
|
|
|
|
#
|
|
|
|
!IF $(USE_RC)!=0
|
|
|
|
LIBRESOBJS = sqlite3res.lo
|
|
|
|
!ELSE
|
|
|
|
LIBRESOBJS =
|
|
|
|
!ENDIF
|
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2016-02-12 00:28:16 +03:00
|
|
|
# Core source code files, part 1.
|
2011-06-17 11:07:24 +04:00
|
|
|
#
|
2016-02-12 00:28:16 +03:00
|
|
|
SRC00 = \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\alter.c \
|
|
|
|
$(TOP)\src\analyze.c \
|
|
|
|
$(TOP)\src\attach.c \
|
|
|
|
$(TOP)\src\auth.c \
|
|
|
|
$(TOP)\src\backup.c \
|
|
|
|
$(TOP)\src\bitvec.c \
|
|
|
|
$(TOP)\src\btmutex.c \
|
|
|
|
$(TOP)\src\btree.c \
|
|
|
|
$(TOP)\src\build.c \
|
|
|
|
$(TOP)\src\callback.c \
|
|
|
|
$(TOP)\src\complete.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 \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\delete.c \
|
|
|
|
$(TOP)\src\expr.c \
|
|
|
|
$(TOP)\src\fault.c \
|
|
|
|
$(TOP)\src\fkey.c \
|
|
|
|
$(TOP)\src\func.c \
|
|
|
|
$(TOP)\src\global.c \
|
|
|
|
$(TOP)\src\hash.c \
|
|
|
|
$(TOP)\src\insert.c \
|
2022-01-06 04:40:09 +03:00
|
|
|
$(TOP)\src\json.c \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\legacy.c \
|
|
|
|
$(TOP)\src\loadext.c \
|
|
|
|
$(TOP)\src\main.c \
|
|
|
|
$(TOP)\src\malloc.c \
|
|
|
|
$(TOP)\src\mem0.c \
|
|
|
|
$(TOP)\src\mem1.c \
|
|
|
|
$(TOP)\src\mem2.c \
|
|
|
|
$(TOP)\src\mem3.c \
|
|
|
|
$(TOP)\src\mem5.c \
|
2018-01-03 04:28:46 +03:00
|
|
|
$(TOP)\src\memdb.c \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\memjournal.c \
|
|
|
|
$(TOP)\src\mutex.c \
|
|
|
|
$(TOP)\src\mutex_noop.c \
|
|
|
|
$(TOP)\src\mutex_unix.c \
|
|
|
|
$(TOP)\src\mutex_w32.c \
|
|
|
|
$(TOP)\src\notify.c \
|
|
|
|
$(TOP)\src\os.c \
|
2022-10-12 21:30:08 +03:00
|
|
|
$(TOP)\src\os_kv.c \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\os_unix.c \
|
2016-02-12 00:28:16 +03:00
|
|
|
$(TOP)\src\os_win.c
|
|
|
|
|
|
|
|
# Core source code files, part 2.
|
|
|
|
#
|
|
|
|
SRC01 = \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\pager.c \
|
|
|
|
$(TOP)\src\pcache.c \
|
|
|
|
$(TOP)\src\pcache1.c \
|
|
|
|
$(TOP)\src\pragma.c \
|
|
|
|
$(TOP)\src\prepare.c \
|
|
|
|
$(TOP)\src\printf.c \
|
|
|
|
$(TOP)\src\random.c \
|
|
|
|
$(TOP)\src\resolve.c \
|
|
|
|
$(TOP)\src\rowset.c \
|
|
|
|
$(TOP)\src\select.c \
|
|
|
|
$(TOP)\src\status.c \
|
|
|
|
$(TOP)\src\table.c \
|
2012-07-21 23:40:42 +04:00
|
|
|
$(TOP)\src\threads.c \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\tclsqlite.c \
|
|
|
|
$(TOP)\src\tokenize.c \
|
2015-06-08 18:08:15 +03:00
|
|
|
$(TOP)\src\treeview.c \
|
2011-06-17 11:07:24 +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 \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\util.c \
|
|
|
|
$(TOP)\src\vacuum.c \
|
|
|
|
$(TOP)\src\vdbe.c \
|
|
|
|
$(TOP)\src\vdbeapi.c \
|
|
|
|
$(TOP)\src\vdbeaux.c \
|
|
|
|
$(TOP)\src\vdbeblob.c \
|
|
|
|
$(TOP)\src\vdbemem.c \
|
2011-08-17 06:19:54 +04:00
|
|
|
$(TOP)\src\vdbesort.c \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\vdbetrace.c \
|
2020-03-23 18:49:22 +03:00
|
|
|
$(TOP)\src\vdbevtab.c \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\vtab.c \
|
|
|
|
$(TOP)\src\wal.c \
|
|
|
|
$(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 \
|
2018-06-10 10:42:35 +03:00
|
|
|
$(TOP)\src\whereexpr.c \
|
|
|
|
$(TOP)\src\window.c
|
2016-02-12 00:28:16 +03:00
|
|
|
|
|
|
|
# Core miscellaneous files.
|
|
|
|
#
|
|
|
|
SRC03 = \
|
|
|
|
$(TOP)\src\parse.y
|
|
|
|
|
|
|
|
# Core header files, part 1.
|
|
|
|
#
|
|
|
|
SRC04 = \
|
|
|
|
$(TOP)\src\btree.h \
|
|
|
|
$(TOP)\src\btreeInt.h \
|
|
|
|
$(TOP)\src\hash.h \
|
|
|
|
$(TOP)\src\hwtime.h \
|
|
|
|
$(TOP)\src\msvc.h \
|
|
|
|
$(TOP)\src\mutex.h \
|
|
|
|
$(TOP)\src\os.h \
|
|
|
|
$(TOP)\src\os_common.h \
|
|
|
|
$(TOP)\src\os_setup.h \
|
|
|
|
$(TOP)\src\os_win.h
|
|
|
|
|
|
|
|
# Core header files, part 2.
|
|
|
|
#
|
|
|
|
SRC05 = \
|
|
|
|
$(TOP)\src\pager.h \
|
|
|
|
$(TOP)\src\pcache.h \
|
|
|
|
$(TOP)\src\pragma.h \
|
|
|
|
$(TOP)\src\sqlite.h.in \
|
|
|
|
$(TOP)\src\sqlite3ext.h \
|
|
|
|
$(TOP)\src\sqliteInt.h \
|
|
|
|
$(TOP)\src\sqliteLimit.h \
|
|
|
|
$(TOP)\src\vdbe.h \
|
|
|
|
$(TOP)\src\vdbeInt.h \
|
|
|
|
$(TOP)\src\vxworks.h \
|
|
|
|
$(TOP)\src\wal.h \
|
2013-11-12 22:37:25 +04:00
|
|
|
$(TOP)\src\whereInt.h
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-02-12 00:28:16 +03:00
|
|
|
# Extension source code files, part 2.
|
|
|
|
#
|
|
|
|
SRC07 = \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\ext\fts3\fts3.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_aux.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_expr.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_hash.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_icu.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_porter.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_snippet.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_tokenizer.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_tokenizer1.c \
|
2013-04-22 21:07:56 +04:00
|
|
|
$(TOP)\ext\fts3\fts3_tokenize_vtab.c \
|
2012-05-29 00:22:16 +04:00
|
|
|
$(TOP)\ext\fts3\fts3_unicode.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_unicode2.c \
|
2015-01-29 21:38:05 +03:00
|
|
|
$(TOP)\ext\fts3\fts3_write.c \
|
|
|
|
$(TOP)\ext\icu\icu.c \
|
2015-03-24 22:02:13 +03:00
|
|
|
$(TOP)\ext\rtree\rtree.c \
|
2015-05-20 02:04:26 +03:00
|
|
|
$(TOP)\ext\session\sqlite3session.c \
|
2015-10-08 22:29:18 +03:00
|
|
|
$(TOP)\ext\rbu\sqlite3rbu.c \
|
2017-06-29 17:33:51 +03:00
|
|
|
$(TOP)\ext\misc\stmt.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-02-12 00:28:16 +03:00
|
|
|
# Extension header files, part 2.
|
|
|
|
#
|
|
|
|
SRC09 = \
|
|
|
|
$(TOP)\ext\fts3\fts3.h \
|
|
|
|
$(TOP)\ext\fts3\fts3Int.h \
|
|
|
|
$(TOP)\ext\fts3\fts3_hash.h \
|
|
|
|
$(TOP)\ext\fts3\fts3_tokenizer.h \
|
|
|
|
$(TOP)\ext\icu\sqliteicu.h \
|
|
|
|
$(TOP)\ext\rtree\rtree.h \
|
2018-05-25 22:22:47 +03:00
|
|
|
$(TOP)\ext\rtree\geopoly.c \
|
2016-03-30 19:23:06 +03:00
|
|
|
$(TOP)\ext\rbu\sqlite3rbu.h \
|
|
|
|
$(TOP)\ext\session\sqlite3session.h
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Generated source code files
|
|
|
|
#
|
2016-02-12 00:28:16 +03:00
|
|
|
SRC10 = \
|
2011-06-17 11:07:24 +04:00
|
|
|
opcodes.c \
|
2016-02-12 00:28:16 +03:00
|
|
|
parse.c
|
|
|
|
|
|
|
|
# Generated header files
|
|
|
|
#
|
|
|
|
SRC11 = \
|
|
|
|
keywordhash.h \
|
2011-06-17 11:07:24 +04:00
|
|
|
opcodes.h \
|
|
|
|
parse.h \
|
2017-10-12 16:47:48 +03:00
|
|
|
shell.c \
|
2016-01-22 06:54:36 +03:00
|
|
|
$(SQLITE3H)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-07-28 17:37:04 +03:00
|
|
|
# Generated Tcl header files
|
|
|
|
#
|
2016-08-24 22:58:46 +03:00
|
|
|
!IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
|
2016-07-28 17:37:04 +03:00
|
|
|
SRC12 = \
|
2016-08-24 22:58:46 +03:00
|
|
|
$(SQLITETCLH) \
|
|
|
|
$(SQLITETCLDECLSH)
|
|
|
|
!ELSE
|
|
|
|
SRC12 =
|
|
|
|
!ENDIF
|
2016-07-28 17:37:04 +03:00
|
|
|
|
2015-01-29 21:38:05 +03:00
|
|
|
# All source code files.
|
|
|
|
#
|
2023-01-14 22:53:42 +03:00
|
|
|
SRC = $(SRC00) $(SRC01) $(SRC03) $(SRC04) $(SRC05) $(SRC07) $(SRC09) $(SRC10) $(SRC11) $(SRC12)
|
2015-01-29 21:38:05 +03:00
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
# Source code to the test files.
|
|
|
|
#
|
|
|
|
TESTSRC = \
|
|
|
|
$(TOP)\src\test1.c \
|
|
|
|
$(TOP)\src\test2.c \
|
|
|
|
$(TOP)\src\test3.c \
|
|
|
|
$(TOP)\src\test4.c \
|
|
|
|
$(TOP)\src\test5.c \
|
|
|
|
$(TOP)\src\test6.c \
|
|
|
|
$(TOP)\src\test8.c \
|
|
|
|
$(TOP)\src\test9.c \
|
|
|
|
$(TOP)\src\test_autoext.c \
|
|
|
|
$(TOP)\src\test_async.c \
|
|
|
|
$(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 \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\test_btree.c \
|
|
|
|
$(TOP)\src\test_config.c \
|
2016-09-09 23:00:40 +03:00
|
|
|
$(TOP)\src\test_delete.c \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\test_demovfs.c \
|
|
|
|
$(TOP)\src\test_devsym.c \
|
2013-01-17 07:18:14 +04:00
|
|
|
$(TOP)\src\test_fs.c \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\test_func.c \
|
|
|
|
$(TOP)\src\test_hexio.c \
|
|
|
|
$(TOP)\src\test_init.c \
|
|
|
|
$(TOP)\src\test_intarray.c \
|
|
|
|
$(TOP)\src\test_journal.c \
|
|
|
|
$(TOP)\src\test_malloc.c \
|
2017-10-13 18:06:06 +03:00
|
|
|
$(TOP)\src\test_md5.c \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\test_multiplex.c \
|
|
|
|
$(TOP)\src\test_mutex.c \
|
|
|
|
$(TOP)\src\test_onefile.c \
|
|
|
|
$(TOP)\src\test_osinst.c \
|
|
|
|
$(TOP)\src\test_pcache.c \
|
|
|
|
$(TOP)\src\test_quota.c \
|
|
|
|
$(TOP)\src\test_rtree.c \
|
|
|
|
$(TOP)\src\test_schema.c \
|
|
|
|
$(TOP)\src\test_superlock.c \
|
|
|
|
$(TOP)\src\test_syscall.c \
|
2017-10-13 18:06:06 +03:00
|
|
|
$(TOP)\src\test_tclsh.c \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\test_tclvar.c \
|
|
|
|
$(TOP)\src\test_thread.c \
|
2019-04-01 20:24:20 +03:00
|
|
|
$(TOP)\src\test_vdbecov.c \
|
2011-06-17 11:07:24 +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-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\test_wsd.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_term.c \
|
2012-01-16 16:33:36 +04:00
|
|
|
$(TOP)\ext\fts3\fts3_test.c \
|
2016-03-30 19:23:06 +03:00
|
|
|
$(TOP)\ext\rbu\test_rbu.c \
|
2023-03-07 05:24:43 +03:00
|
|
|
$(TOP)\ext\session\test_session.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-02-12 00:28:16 +03:00
|
|
|
# Statically linked extensions.
|
2013-04-25 18:31:46 +04:00
|
|
|
#
|
2013-04-25 18:36:28 +04:00
|
|
|
TESTEXT = \
|
2017-05-03 15:50:46 +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-10 02:38:27 +03:00
|
|
|
$(TOP)\ext\misc\appendvfs.c \
|
2022-11-29 00:09:49 +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-26 07:34: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 21:08:54 +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 \
|
2023-12-18 17:24:13 +03:00
|
|
|
$(TOP)\ext\misc\randomjson.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 \
|
2024-05-24 17:16:06 +03:00
|
|
|
$(TOP)\ext\misc\stmtrand.c \
|
2013-10-15 01:14:42 +04:00
|
|
|
$(TOP)\ext\misc\totype.c \
|
2017-07-18 23:28:34 +03:00
|
|
|
$(TOP)\ext\misc\unionvtab.c \
|
2021-04-06 20:51:18 +03:00
|
|
|
$(TOP)\ext\misc\wholenumber.c \
|
2021-09-17 23:43:27 +03:00
|
|
|
$(TOP)\ext\rtree\test_rtreedoc.c \
|
2022-09-15 06:54:52 +03:00
|
|
|
$(TOP)\ext\recover\sqlite3recover.c \
|
|
|
|
$(TOP)\ext\recover\test_recover.c \
|
2024-02-17 23:55:01 +03:00
|
|
|
$(TOP)\ext\intck\test_intck.c \
|
|
|
|
$(TOP)\ext\intck\sqlite3intck.c \
|
2023-10-30 21:07:18 +03:00
|
|
|
$(TOP)\ext\recover\dbdata.c
|
2013-04-25 18:31:46 +04:00
|
|
|
|
2018-01-05 19:05:51 +03:00
|
|
|
# If use of zlib is enabled, add the "zipfile.c" source file.
|
|
|
|
#
|
|
|
|
!IF $(USE_ZLIB)!=0
|
|
|
|
TESTEXT = $(TESTEXT) $(TOP)\ext\misc\zipfile.c
|
|
|
|
!ENDIF
|
2013-04-25 18:31:46 +04:00
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
# Source code to the library files needed by the test fixture
|
2012-01-16 16:33:36 +04:00
|
|
|
# (non-amalgamation)
|
2011-06-17 11:07:24 +04:00
|
|
|
#
|
|
|
|
TESTSRC2 = \
|
2016-02-12 00:28:16 +03:00
|
|
|
$(SRC00) \
|
|
|
|
$(SRC01) \
|
|
|
|
$(SRC07) \
|
|
|
|
$(SRC10) \
|
2023-10-31 20:39:10 +03:00
|
|
|
$(TOP)\ext\async\sqlite3async.c \
|
|
|
|
fts5.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Header files used by all library source files.
|
|
|
|
#
|
|
|
|
HDR = \
|
|
|
|
$(TOP)\src\btree.h \
|
|
|
|
$(TOP)\src\btreeInt.h \
|
|
|
|
$(TOP)\src\hash.h \
|
|
|
|
$(TOP)\src\hwtime.h \
|
|
|
|
keywordhash.h \
|
2015-01-12 21:02:52 +03:00
|
|
|
$(TOP)\src\msvc.h \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\mutex.h \
|
|
|
|
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 \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\pager.h \
|
|
|
|
$(TOP)\src\pcache.h \
|
2011-06-17 19:57:07 +04:00
|
|
|
parse.h \
|
2015-02-03 00:34:54 +03:00
|
|
|
$(TOP)\src\pragma.h \
|
2016-01-22 06:54:36 +03:00
|
|
|
$(SQLITE3H) \
|
2016-07-28 22:28:35 +03:00
|
|
|
sqlite3ext.h \
|
2011-06-17 19:57:07 +04:00
|
|
|
$(TOP)\src\sqliteInt.h \
|
2011-06-17 11:07:24 +04:00
|
|
|
$(TOP)\src\sqliteLimit.h \
|
|
|
|
$(TOP)\src\vdbe.h \
|
2013-11-12 22:37:25 +04: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
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Header files used by extensions
|
|
|
|
#
|
|
|
|
EXTHDR = $(EXTHDR) \
|
|
|
|
$(TOP)\ext\fts3\fts3.h \
|
|
|
|
$(TOP)\ext\fts3\fts3Int.h \
|
|
|
|
$(TOP)\ext\fts3\fts3_hash.h \
|
|
|
|
$(TOP)\ext\fts3\fts3_tokenizer.h
|
|
|
|
EXTHDR = $(EXTHDR) \
|
2018-05-25 22:22:47 +03:00
|
|
|
$(TOP)\ext\rtree\rtree.h \
|
|
|
|
$(TOP)\ext\rtree\geopoly.c
|
2011-06-17 11:07:24 +04:00
|
|
|
EXTHDR = $(EXTHDR) \
|
|
|
|
$(TOP)\ext\icu\sqliteicu.h
|
|
|
|
EXTHDR = $(EXTHDR) \
|
|
|
|
$(TOP)\ext\rtree\sqlite3rtree.h
|
2012-01-16 16:33:36 +04:00
|
|
|
EXTHDR = $(EXTHDR) \
|
|
|
|
$(TOP)\ext\session\sqlite3session.h
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2015-05-11 19:27:33 +03:00
|
|
|
# executables needed for testing
|
2015-05-11 15:15:45 +03:00
|
|
|
#
|
|
|
|
TESTPROGS = \
|
|
|
|
testfixture.exe \
|
2016-01-22 04:25:15 +03:00
|
|
|
$(SQLITE3EXE) \
|
2015-05-11 15:15:45 +03:00
|
|
|
sqlite3_analyzer.exe \
|
2017-10-31 18:49:19 +03:00
|
|
|
sqlite3_checker.exe \
|
2016-06-08 04:03:05 +03:00
|
|
|
sqldiff.exe \
|
2018-01-06 07:34:05 +03:00
|
|
|
dbhash.exe \
|
|
|
|
sqltclsh.exe
|
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
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2015-05-26 21:15:08 +03:00
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
# Additional compiler options for the shell. These are only effective
|
|
|
|
# when the shell is not being dynamically linked.
|
2015-09-19 17:32:51 +03:00
|
|
|
#
|
2016-01-22 06:54:36 +03:00
|
|
|
!IF $(DYNAMIC_SHELL)==0 && $(FOR_WIN10)==0
|
2023-02-09 18:32:24 +03:00
|
|
|
SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_DQS=0
|
2018-09-12 03:48:17 +03:00
|
|
|
SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_FTS4=1
|
|
|
|
SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_EXPLAIN_COMMENTS=1
|
|
|
|
SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_OFFSET_SQL_FUNC=1
|
2023-10-30 20:13:12 +03:00
|
|
|
SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION=1
|
|
|
|
SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_STMT_SCANSTATUS=1
|
2023-12-16 18:48:42 +03:00
|
|
|
SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_STRICT_SUBTYPE=1
|
2016-01-22 04:25:15 +03:00
|
|
|
!ENDIF
|
2015-05-26 21:15:08 +03:00
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2016-01-22 06:54:36 +03:00
|
|
|
# Extra compiler options for various test tools.
|
2015-09-19 17:32:51 +03:00
|
|
|
#
|
2022-02-17 17:33:13 +03:00
|
|
|
MPTESTER_COMPILE_OPTS = -DSQLITE_ENABLE_FTS5
|
|
|
|
FUZZERSHELL_COMPILE_OPTS =
|
2022-10-28 21:35:06 +03:00
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -I$(TOP)\test -I$(TOP)\ext\recover
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_MEMSYS5
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_OSS_FUZZ
|
2023-03-07 02:38:44 +03:00
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_BYTECODE_VTAB
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_DBPAGE_VTAB
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_DBSTAT_VTAB
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_BYTECODE_VTAB
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_DESERIALIZE
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_EXPLAIN_COMMENTS
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_FTS3_PARENTHESIS
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_FTS4
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_FTS5
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_GEOPOLY
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_MATH_FUNCTIONS
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_MEMSYS5
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_NORMALIZE
|
2023-03-07 05:24:43 +03:00
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_OFFSET_SQL_FUNC
|
2023-03-07 02:38:44 +03:00
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_PREUPDATE_HOOK
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_RTREE
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_SESSION
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_STMTVTAB
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_STAT4
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_STMT_SCANSTATUS
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_MAX_MEMORY=50000000
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_MAX_MMAP_SIZE=0
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_OMIT_LOAD_EXTENSION
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_PRINTF_PRECISION_LIMIT=1000
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_PRIVATE=""
|
2023-12-16 18:48:42 +03:00
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_STRICT_SUBTYPE=1
|
2023-12-17 23:41:48 +03:00
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_STATIC_RANDOMJSON
|
2023-03-07 02:38:44 +03:00
|
|
|
|
2022-10-28 21:35:06 +03:00
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_MAX_MEMORY=50000000
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_PRINTF_PRECISION_LIMIT=1000
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_OMIT_LOAD_EXTENSION
|
2019-01-25 07:00:14 +03:00
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_FTS4
|
2021-10-21 23:08:00 +03:00
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_FTS5
|
2019-01-25 07:00:14 +03:00
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_RTREE
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_GEOPOLY
|
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_DBSTAT_VTAB
|
2020-03-23 18:49:22 +03:00
|
|
|
FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_BYTECODE_VTAB
|
2022-10-28 21:35:06 +03:00
|
|
|
FUZZCHECK_SRC = $(FUZZCHECK_SRC) $(TOP)\test\fuzzcheck.c
|
|
|
|
FUZZCHECK_SRC = $(FUZZCHECK_SRC) $(TOP)\test\ossfuzz.c
|
|
|
|
FUZZCHECK_SRC = $(FUZZCHECK_SRC) $(TOP)\test\fuzzinvariants.c
|
|
|
|
FUZZCHECK_SRC = $(FUZZCHECK_SRC) $(TOP)\test\vt02.c
|
|
|
|
FUZZCHECK_SRC = $(FUZZCHECK_SRC) $(TOP)\ext\recover\dbdata.c
|
|
|
|
FUZZCHECK_SRC = $(FUZZCHECK_SRC) $(TOP)\ext\recover\sqlite3recover.c
|
2024-08-31 22:24:17 +03:00
|
|
|
FUZZCHECK_SRC = $(FUZZCHECK_SRC) $(TOP)\ext\misc\percentile.c
|
2023-12-17 23:41:48 +03:00
|
|
|
FUZZCHECK_SRC = $(FUZZCHECK_SRC) $(TOP)\ext\misc\randomjson.c
|
2019-01-25 07:00:14 +03:00
|
|
|
|
2016-11-14 21:27:41 +03:00
|
|
|
OSSSHELL_SRC = $(TOP)\test\ossshell.c $(TOP)\test\ossfuzz.c
|
2017-02-08 00:09:34 +03:00
|
|
|
DBFUZZ_COMPILE_OPTS = -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION
|
|
|
|
KV_COMPILE_OPTS = -DSQLITE_THREADSAFE=0 -DSQLITE_DIRECT_OVERFLOW_READ
|
|
|
|
ST_COMPILE_OPTS = -DSQLITE_THREADSAFE=0
|
2015-05-26 21:15:08 +03:00
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
# Standard options to testfixture.
|
2015-06-10 21:53:09 +03:00
|
|
|
#
|
|
|
|
TESTOPTS = --verbose=file --output=test-out.txt
|
2015-05-11 15:15:45 +03:00
|
|
|
|
2016-01-27 10:28:33 +03:00
|
|
|
# Extra targets for the "all" target that require Tcl.
|
|
|
|
#
|
|
|
|
!IF $(NO_TCL)==0
|
2019-03-22 04:25:16 +03:00
|
|
|
ALL_TCL_TARGETS = $(SQLITE3TCLDLL)
|
2016-01-27 10:28:33 +03:00
|
|
|
!ELSE
|
|
|
|
ALL_TCL_TARGETS =
|
|
|
|
!ENDIF
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2015-05-11 15:15:45 +03:00
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
# This is the default Makefile target. The objects listed here
|
|
|
|
# are what get build when you type just "make" with no arguments.
|
|
|
|
#
|
2018-01-05 20:40:38 +03:00
|
|
|
core: dll libsqlite3.lib shell
|
|
|
|
|
|
|
|
# Targets that require the Tcl library.
|
|
|
|
#
|
|
|
|
tcl: $(ALL_TCL_TARGETS)
|
|
|
|
|
|
|
|
# This Makefile target builds all of the standard binaries.
|
|
|
|
#
|
|
|
|
all: core tcl
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-01-23 01:16:50 +03:00
|
|
|
# Dynamic link library section.
|
|
|
|
#
|
2016-02-27 00:01:37 +03:00
|
|
|
dll: $(SQLITE3DLL)
|
2016-01-23 01:16:50 +03:00
|
|
|
|
|
|
|
# Shell executable.
|
|
|
|
#
|
2016-02-27 00:01:37 +03:00
|
|
|
shell: $(SQLITE3EXE)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-02-19 08:07:56 +03:00
|
|
|
# <<mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
libsqlite3.lib: $(LIBOBJ)
|
2011-06-21 22:12:07 +04:00
|
|
|
$(LTLIB) $(LTLIBOPTS) /OUT:$@ $(LIBOBJ) $(TLIBS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
libtclsqlite3.lib: tclsqlite.lo libsqlite3.lib
|
2019-03-22 04:25:16 +03:00
|
|
|
$(LTLIB) $(LTLIBOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) /OUT:$@ tclsqlite.lo libsqlite3.lib $(LIBTCLSTUB) $(TLIBS)
|
|
|
|
|
|
|
|
tclsqlite3.def: tclsqlite.lo
|
|
|
|
echo EXPORTS > tclsqlite3.def
|
|
|
|
dumpbin /all tclsqlite.lo \
|
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl include "^\s+/EXPORT:_?((?:Sqlite3|Tclsqlite3)_[^@]*)(?:@\d+)?$$" \1 \
|
|
|
|
| sort >> tclsqlite3.def
|
|
|
|
|
|
|
|
pkgIndex.tcl: $(TOP)\VERSION
|
|
|
|
for /F %%V in ('type "$(TOP)\VERSION"') do ( \
|
|
|
|
echo package ifneeded sqlite3 @version@ [list load [file join $$dir $(SQLITE3TCLDLL)] sqlite3] \
|
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact @version@ %%V > pkgIndex.tcl \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(SQLITE3TCLDLL): libtclsqlite3.lib $(LIBRESOBJS) tclsqlite3.def pkgIndex.tcl
|
|
|
|
$(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /DEF:tclsqlite3.def /OUT:$@ libtclsqlite3.lib $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
|
2024-08-02 18:28:40 +03:00
|
|
|
|
|
|
|
tclextension: $(SQLITE3TCLDLL)
|
|
|
|
|
|
|
|
tclextension-install: $(SQLITE3TCLDLL)
|
|
|
|
$(TCLSH_CMD) $(TOP)\tool\buildtclext.tcl --install-only
|
|
|
|
|
|
|
|
tclextension-uninstall:
|
|
|
|
$(TCLSH_CMD) $(TOP)\tool\buildtclext.tcl --uninstall
|
|
|
|
|
|
|
|
tclextension-list:
|
|
|
|
$(TCLSH_CMD) $(TOP)\tool\buildtclext.tcl --info
|
|
|
|
|
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-02-27 00:01:37 +03:00
|
|
|
$(SQLITE3DLL): $(LIBOBJ) $(LIBRESOBJS) $(CORE_LINK_DEP)
|
2016-01-23 01:16:50 +03:00
|
|
|
$(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL $(CORE_LINK_OPTS) /OUT:$@ $(LIBOBJ) $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
|
|
|
|
|
2016-02-27 02:13:16 +03:00
|
|
|
# <<block2>>
|
2016-02-27 00:01:37 +03:00
|
|
|
sqlite3.def: libsqlite3.lib
|
2016-01-23 01:16:50 +03:00
|
|
|
echo EXPORTS > sqlite3.def
|
|
|
|
dumpbin /all libsqlite3.lib \
|
2019-12-20 20:41:15 +03:00
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl include "^\s+1 _?(sqlite3(?:session|changeset|changegroup|rebaser|rbu)?_[^@]*)(?:@\d+)?$$" \1 \
|
2016-01-23 01:16:50 +03:00
|
|
|
| sort >> sqlite3.def
|
2016-02-27 02:13:16 +03:00
|
|
|
# <</block2>>
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2017-10-12 16:47:48 +03:00
|
|
|
$(SQLITE3EXE): shell.c $(SHELL_CORE_DEP) $(LIBRESOBJS) $(SHELL_CORE_SRC) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(SHELL_COMPILE_OPTS) $(READLINE_FLAGS) shell.c $(SHELL_CORE_SRC) \
|
2016-01-22 04:25:15 +03:00
|
|
|
/link $(SQLITE3EXEPDB) $(LDFLAGS) $(LTLINKOPTS) $(SHELL_LINK_OPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LIBREADLINE) $(LTLIBS) $(TLIBS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2024-01-03 15:26:02 +03:00
|
|
|
sqldiff.exe: $(TOP)\tool\sqldiff.c $(TOP)\ext\consio\console_io.h $(TOP)\ext\consio\console_io.c $(SQLITE3C) $(SQLITE3H) $(LIBRESOBJS)
|
|
|
|
$(LTLINK) $(NO_WARN) -I$(TOP)\ext\consio $(TOP)\tool\sqldiff.c $(TOP)\ext\consio\console_io.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) $(LIBRESOBJS)
|
2015-04-09 16:34:29 +03:00
|
|
|
|
2016-06-08 04:03:05 +03:00
|
|
|
dbhash.exe: $(TOP)\tool\dbhash.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) $(TOP)\tool\dbhash.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
|
|
|
|
2024-09-11 20:02:44 +03:00
|
|
|
RSYNC_SRC = \
|
|
|
|
$(TOP)\tool\sqlite3-rsync.c \
|
|
|
|
$(SQLITE3C)
|
|
|
|
|
|
|
|
RSYNC_OPT = \
|
2024-09-12 15:04:53 +03:00
|
|
|
-DSQLITE_ENABLE_DBPAGE_VTAB \
|
2024-09-11 20:02:44 +03:00
|
|
|
-DSQLITE_THREADSAFE=0 \
|
|
|
|
-DSQLITE_OMIT_LOAD_EXTENSION \
|
|
|
|
-DSQLITE_OMIT_DEPRECATED
|
|
|
|
|
|
|
|
sqlite3-rsync.exe: $(RSYNC_SRC) $(LIBRESOBJS)
|
|
|
|
$(LTLINK) $(RSYNC_OPT) $(NO_WARN) $(RSYNC_SRC) /link $(LDFLAGS) $(LTLINKOPTS) $(LIBRESOBJS)
|
2024-09-10 20:05:12 +03:00
|
|
|
|
2016-05-05 20:15:23 +03:00
|
|
|
scrub.exe: $(TOP)\ext\misc\scrub.c $(SQLITE3C) $(SQLITE3H)
|
2018-03-07 17:42:17 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DSCRUB_STANDALONE=1 $(TOP)\ext\misc\scrub.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2016-05-05 20:15:23 +03:00
|
|
|
|
2016-02-07 03:08:08 +03:00
|
|
|
srcck1.exe: $(TOP)\tool\srcck1.c
|
|
|
|
$(BCC) $(NO_WARN) -Fe$@ $(TOP)\tool\srcck1.c
|
|
|
|
|
2018-07-27 23:45:28 +03:00
|
|
|
sourcetest: srcck1.exe $(SQLITE3C)
|
|
|
|
srcck1.exe $(SQLITE3C)
|
2016-02-07 03:08:08 +03:00
|
|
|
|
2023-06-05 01:41:52 +03:00
|
|
|
src-verify.exe: $(TOP)\tool\src-verify.c
|
2023-06-05 03:57:38 +03:00
|
|
|
$(LTLINK) $(NO_WARN) $(TOP)\tool\src-verify.c
|
2023-06-05 01:41:52 +03:00
|
|
|
|
|
|
|
verify-source: src-verify.exe
|
|
|
|
src-verify.exe $(TOP)
|
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
fuzzershell.exe: $(TOP)\tool\fuzzershell.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) $(FUZZERSHELL_COMPILE_OPTS) $(TOP)\tool\fuzzershell.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2015-04-17 17:30:49 +03:00
|
|
|
|
2017-02-08 00:09:34 +03:00
|
|
|
dbfuzz.exe: $(TOP)\test\dbfuzz.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) $(DBFUZZ_COMPILE_OPTS) $(TOP)\test\dbfuzz.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
|
|
|
|
2016-11-14 21:27:41 +03:00
|
|
|
fuzzcheck.exe: $(FUZZCHECK_SRC) $(SQLITE3C) $(SQLITE3H)
|
2023-05-15 20:20:21 +03:00
|
|
|
$(LTLINK) /F 8388608 $(NO_WARN) $(FUZZCHECK_OPTS) $(FUZZCHECK_SRC) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2016-11-14 21:27:41 +03:00
|
|
|
|
2023-03-21 15:29:50 +03:00
|
|
|
fuzzcheck-asan.exe: $(FUZZCHECK_SRC) $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) /fsanitize=address $(FUZZCHECK_OPTS) $(FUZZCHECK_SRC) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
|
|
|
|
2024-09-21 20:27:47 +03:00
|
|
|
run-fuzzcheck: fuzzcheck.exe fuzzcheck-asan.exe
|
|
|
|
fuzzcheck --spinner $(FUZZDB)
|
|
|
|
fuzzcheck-asan --spinner $(FUZZDB)
|
|
|
|
|
2016-11-14 21:27:41 +03:00
|
|
|
ossshell.exe: $(OSSSHELL_SRC) $(SQLITE3C) $(SQLITE3H)
|
2019-01-25 07:00:14 +03:00
|
|
|
$(LTLINK) $(NO_WARN) $(FUZZCHECK_OPTS) $(OSSSHELL_SRC) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2015-04-17 17:30:49 +03:00
|
|
|
|
2018-03-08 00:13:49 +03:00
|
|
|
sessionfuzz.exe: zlib $(TOP)\test\sessionfuzz.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) -I$(ZLIBINCDIR) $(TOP)\test\sessionfuzz.c /link $(LDFLAGS) $(LTLINKOPTS) /LIBPATH:$(ZLIBLIBDIR) $(ZLIBLIB)
|
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
mptester.exe: $(TOP)\mptest\mptest.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) $(MPTESTER_COMPILE_OPTS) $(TOP)\mptest\mptest.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2013-04-08 18:28:33 +04:00
|
|
|
|
2015-03-31 20:45:44 +03:00
|
|
|
MPTEST1 = mptester mptest.db $(TOP)\mptest\crash01.test --repeat 20
|
|
|
|
MPTEST2 = mptester mptest.db $(TOP)\mptest\multiwrite01.test --repeat 20
|
2015-03-31 19:42:16 +03:00
|
|
|
|
2015-03-31 16:46:13 +03:00
|
|
|
mptest: mptester.exe
|
2015-03-31 19:42:16 +03:00
|
|
|
del /Q mptest.db 2>NUL
|
2015-03-31 16:46:13 +03:00
|
|
|
$(MPTEST1) --journalmode DELETE
|
|
|
|
$(MPTEST2) --journalmode WAL
|
|
|
|
$(MPTEST1) --journalmode WAL
|
|
|
|
$(MPTEST2) --journalmode PERSIST
|
|
|
|
$(MPTEST1) --journalmode PERSIST
|
|
|
|
$(MPTEST2) --journalmode TRUNCATE
|
|
|
|
$(MPTEST1) --journalmode TRUNCATE
|
|
|
|
$(MPTEST2) --journalmode DELETE
|
|
|
|
|
2011-06-17 11:07:24 +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.
|
|
|
|
#
|
2016-08-24 22:58:46 +03:00
|
|
|
.target_source: $(SRC) $(TOP)\tool\vdbe-compress.tcl fts5.c $(SQLITE_TCL_DEP)
|
2015-03-21 05:22:37 +03:00
|
|
|
-rmdir /Q/S tsrc 2>NUL
|
2011-06-17 11:07:24 +04:00
|
|
|
-mkdir tsrc
|
2016-02-12 00:38:05 +03:00
|
|
|
for %i in ($(SRC00)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC01)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC03)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC04)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC05)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC07)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC09)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC10)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC11)) do copy /Y %i tsrc
|
2016-07-28 17:37:04 +03:00
|
|
|
for %i in ($(SRC12)) do copy /Y %i tsrc
|
2015-10-08 22:29:18 +03:00
|
|
|
copy /Y fts5.c tsrc
|
2020-05-30 00:06:52 +03:00
|
|
|
copy /B tsrc\fts5.c +,,
|
2015-10-08 22:29:18 +03:00
|
|
|
copy /Y fts5.h tsrc
|
2020-05-30 00:06:52 +03:00
|
|
|
copy /B tsrc\fts5.h +,,
|
2015-03-21 05:22:37 +03:00
|
|
|
del /Q tsrc\sqlite.h.in tsrc\parse.y 2>NUL
|
2013-12-11 04:59:10 +04:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\vdbe-compress.tcl $(OPTS) < tsrc\vdbe.c > vdbe.new
|
2011-06-17 11:07:24 +04:00
|
|
|
move vdbe.new tsrc\vdbe.c
|
|
|
|
echo > .target_source
|
|
|
|
|
2023-06-08 18:27:35 +03:00
|
|
|
sqlite3.c: .target_source sqlite3ext.h sqlite3session.h $(MKSQLITE3C_TOOL) src-verify.exe
|
2023-09-03 00:55:10 +03:00
|
|
|
$(TCLSH_CMD) $(MKSQLITE3C_TOOL) $(MKSQLITE3C_ARGS) $(EXTRA_SRC)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2012-12-06 08:33:13 +04:00
|
|
|
sqlite3-all.c: sqlite3.c $(TOP)\tool\split-sqlite3c.tcl
|
|
|
|
$(TCLSH_CMD) $(TOP)\tool\split-sqlite3c.tcl
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2013-10-12 03:01:18 +04:00
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
# Rule to build the amalgamation
|
|
|
|
#
|
2013-10-12 03:01:18 +04:00
|
|
|
sqlite3.lo: $(SQLITE3C)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(SQLITE3C)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
# Rules to build the LEMON compiler generator
|
|
|
|
#
|
2015-11-09 22:33:42 +03:00
|
|
|
lempar.c: $(TOP)\tool\lempar.c
|
2020-05-30 00:06:52 +03:00
|
|
|
copy /Y $(TOP)\tool\lempar.c .
|
|
|
|
copy /B lempar.c +,,
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
lemon.exe: $(TOP)\tool\lemon.c lempar.c
|
2015-01-12 21:02:52 +03:00
|
|
|
$(BCC) $(NO_WARN) -Daccess=_access \
|
2015-10-15 01:46:37 +03:00
|
|
|
-Fe$@ $(TOP)\tool\lemon.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2017-08-22 22:19:00 +03:00
|
|
|
# <<mark>>
|
|
|
|
# Rules to build the source-id generator tool
|
|
|
|
#
|
|
|
|
mksourceid.exe: $(TOP)\tool\mksourceid.c
|
|
|
|
$(BCC) $(NO_WARN) -Fe$@ $(TOP)\tool\mksourceid.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS)
|
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
# Rules to build individual *.lo files from generated *.c files. This
|
|
|
|
# applies to:
|
|
|
|
#
|
|
|
|
# parse.lo
|
|
|
|
# opcodes.lo
|
|
|
|
#
|
|
|
|
parse.lo: parse.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c parse.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
opcodes.lo: opcodes.c
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c opcodes.c
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2012-09-03 14:32:32 +04:00
|
|
|
# Rule to build the Win32 resources object file.
|
|
|
|
#
|
2012-10-06 07:48:25 +04:00
|
|
|
!IF $(USE_RC)!=0
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<block1>>
|
2019-03-22 04:25:16 +03:00
|
|
|
$(LIBRESOBJS): $(TOP)\src\sqlite3.rc $(SQLITE3H) $(TOP)\VERSION
|
2012-09-03 14:32:32 +04:00
|
|
|
echo #ifndef SQLITE_RESOURCE_VERSION > sqlite3rc.h
|
2012-09-28 01:03:53 +04:00
|
|
|
for /F %%V in ('type "$(TOP)\VERSION"') do ( \
|
2012-09-03 14:32:32 +04:00
|
|
|
echo #define SQLITE_RESOURCE_VERSION %%V \
|
2015-10-10 04:55:57 +03:00
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact . ^, >> sqlite3rc.h \
|
2012-09-03 14:32:32 +04:00
|
|
|
)
|
|
|
|
echo #endif >> sqlite3rc.h
|
2012-10-06 07:48:25 +04:00
|
|
|
$(LTRCOMPILE) -fo $(LIBRESOBJS) $(TOP)\src\sqlite3.rc
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</block1>>
|
2012-10-06 07:48:25 +04:00
|
|
|
!ENDIF
|
2012-09-03 14:32:32 +04:00
|
|
|
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2011-06-17 11:07:24 +04:00
|
|
|
# Rules to build individual *.lo files from files in the src directory.
|
|
|
|
#
|
|
|
|
alter.lo: $(TOP)\src\alter.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\alter.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
analyze.lo: $(TOP)\src\analyze.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\analyze.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
attach.lo: $(TOP)\src\attach.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\attach.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
auth.lo: $(TOP)\src\auth.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\auth.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
backup.lo: $(TOP)\src\backup.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\backup.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
bitvec.lo: $(TOP)\src\bitvec.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\bitvec.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
btmutex.lo: $(TOP)\src\btmutex.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btmutex.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
btree.lo: $(TOP)\src\btree.c $(HDR) $(TOP)\src\pager.h
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btree.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
build.lo: $(TOP)\src\build.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\build.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
callback.lo: $(TOP)\src\callback.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\callback.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
complete.lo: $(TOP)\src\complete.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\complete.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
ctime.lo: $(TOP)\src\ctime.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\ctime.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
date.lo: $(TOP)\src\date.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\date.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2017-10-11 16:48:11 +03:00
|
|
|
dbpage.lo: $(TOP)\src\dbpage.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\dbpage.c
|
|
|
|
|
|
|
|
dbstat.lo: $(TOP)\src\dbstat.c $(HDR)
|
2015-05-04 21:31:09 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\dbstat.c
|
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
delete.lo: $(TOP)\src\delete.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\delete.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
expr.lo: $(TOP)\src\expr.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\expr.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
fault.lo: $(TOP)\src\fault.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fault.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
fkey.lo: $(TOP)\src\fkey.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fkey.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
func.lo: $(TOP)\src\func.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\func.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
global.lo: $(TOP)\src\global.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\global.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
hash.lo: $(TOP)\src\hash.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\hash.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
insert.lo: $(TOP)\src\insert.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\insert.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2022-01-06 04:40:09 +03:00
|
|
|
json.lo: $(TOP)\src\json.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\json.c
|
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
legacy.lo: $(TOP)\src\legacy.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\legacy.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
loadext.lo: $(TOP)\src\loadext.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\loadext.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
main.lo: $(TOP)\src\main.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\main.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
malloc.lo: $(TOP)\src\malloc.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\malloc.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
mem0.lo: $(TOP)\src\mem0.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem0.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
mem1.lo: $(TOP)\src\mem1.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem1.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
mem2.lo: $(TOP)\src\mem2.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem2.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
mem3.lo: $(TOP)\src\mem3.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem3.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
mem5.lo: $(TOP)\src\mem5.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem5.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2018-01-03 15:39:35 +03:00
|
|
|
memdb.lo: $(TOP)\src\memdb.c $(HDR)
|
2018-01-03 04:28:46 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\memdb.c
|
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
memjournal.lo: $(TOP)\src\memjournal.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\memjournal.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
mutex.lo: $(TOP)\src\mutex.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
mutex_noop.lo: $(TOP)\src\mutex_noop.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_noop.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
mutex_unix.lo: $(TOP)\src\mutex_unix.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_unix.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
mutex_w32.lo: $(TOP)\src\mutex_w32.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_w32.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
notify.lo: $(TOP)\src\notify.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\notify.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
pager.lo: $(TOP)\src\pager.c $(HDR) $(TOP)\src\pager.h
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pager.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
pcache.lo: $(TOP)\src\pcache.c $(HDR) $(TOP)\src\pcache.h
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
pcache1.lo: $(TOP)\src\pcache1.c $(HDR) $(TOP)\src\pcache.h
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache1.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
os.lo: $(TOP)\src\os.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2022-10-12 21:30:08 +03:00
|
|
|
os_kv.lo: $(TOP)\src\os_kv.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_kv.c
|
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
os_unix.lo: $(TOP)\src\os_unix.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_unix.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
os_win.lo: $(TOP)\src\os_win.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_win.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
pragma.lo: $(TOP)\src\pragma.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pragma.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
prepare.lo: $(TOP)\src\prepare.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\prepare.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
printf.lo: $(TOP)\src\printf.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\printf.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
random.lo: $(TOP)\src\random.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\random.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
resolve.lo: $(TOP)\src\resolve.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\resolve.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
rowset.lo: $(TOP)\src\rowset.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\rowset.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
select.lo: $(TOP)\src\select.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\select.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
status.lo: $(TOP)\src\status.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\status.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
table.lo: $(TOP)\src\table.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\table.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2012-07-21 23:40:42 +04:00
|
|
|
threads.lo: $(TOP)\src\threads.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\threads.c
|
2012-07-21 23:40:42 +04:00
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
tokenize.lo: $(TOP)\src\tokenize.c keywordhash.h $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\tokenize.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2015-06-08 18:08:15 +03:00
|
|
|
treeview.lo: $(TOP)\src\treeview.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\treeview.c
|
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
trigger.lo: $(TOP)\src\trigger.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\trigger.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
update.lo: $(TOP)\src\update.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\update.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2018-04-13 00:42:51 +03:00
|
|
|
upsert.lo: $(TOP)\src\upsert.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\upsert.c
|
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
utf.lo: $(TOP)\src\utf.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\utf.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
util.lo: $(TOP)\src\util.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\util.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
vacuum.lo: $(TOP)\src\vacuum.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vacuum.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
vdbe.lo: $(TOP)\src\vdbe.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbe.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
vdbeapi.lo: $(TOP)\src\vdbeapi.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeapi.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
vdbeaux.lo: $(TOP)\src\vdbeaux.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeaux.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
vdbeblob.lo: $(TOP)\src\vdbeblob.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeblob.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
vdbemem.lo: $(TOP)\src\vdbemem.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbemem.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2011-08-17 06:19:54 +04:00
|
|
|
vdbesort.lo: $(TOP)\src\vdbesort.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbesort.c
|
2011-08-17 06:19:54 +04:00
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
vdbetrace.lo: $(TOP)\src\vdbetrace.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbetrace.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2020-03-23 18:49:22 +03:00
|
|
|
vdbevtab.lo: $(TOP)\src\vdbevtab.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbevtab.c
|
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
vtab.lo: $(TOP)\src\vtab.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vtab.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
wal.lo: $(TOP)\src\wal.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\wal.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
walker.lo: $(TOP)\src\walker.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\walker.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
where.lo: $(TOP)\src\where.c $(HDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\where.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2015-06-06 23:12:09 +03:00
|
|
|
wherecode.lo: $(TOP)\src\wherecode.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\wherecode.c
|
|
|
|
|
2015-06-08 17:23:15 +03:00
|
|
|
whereexpr.lo: $(TOP)\src\whereexpr.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\whereexpr.c
|
|
|
|
|
2018-06-10 10:42:35 +03:00
|
|
|
window.lo: $(TOP)\src\window.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\window.c
|
|
|
|
|
2016-08-24 22:58:46 +03:00
|
|
|
tclsqlite.lo: $(TOP)\src\tclsqlite.c $(HDR) $(SQLITE_TCL_DEP)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(NO_WARN) -DUSE_TCL_STUBS=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-08-24 22:58:46 +03:00
|
|
|
tclsqlite-shell.lo: $(TOP)\src\tclsqlite.c $(HDR) $(SQLITE_TCL_DEP)
|
2017-10-13 23:14:06 +03:00
|
|
|
$(LTCOMPILE) $(NO_WARN) -DTCLSH -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
tclsqlite3.exe: tclsqlite-shell.lo $(SQLITE3C) $(SQLITE3H) $(LIBRESOBJS)
|
2018-01-05 19:05:51 +03:00
|
|
|
$(LTLINK) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) /OUT:$@ tclsqlite-shell.lo $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Rules to build opcodes.c and opcodes.h
|
|
|
|
#
|
2015-10-07 15:11:36 +03:00
|
|
|
opcodes.c: opcodes.h $(TOP)\tool\mkopcodec.tcl
|
|
|
|
$(TCLSH_CMD) $(TOP)\tool\mkopcodec.tcl opcodes.h > opcodes.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2015-10-07 05:52:09 +03:00
|
|
|
opcodes.h: parse.h $(TOP)\src\vdbe.c $(TOP)\tool\mkopcodeh.tcl
|
2015-10-10 04:55:57 +03:00
|
|
|
type parse.h $(TOP)\src\vdbe.c | $(TCLSH_CMD) $(TOP)\tool\mkopcodeh.tcl > opcodes.h
|
2011-06-17 11:07:24 +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.exe
|
2015-03-21 05:22:37 +03:00
|
|
|
del /Q parse.y parse.h parse.h.temp 2>NUL
|
2020-05-30 00:06:52 +03:00
|
|
|
copy /Y $(TOP)\src\parse.y .
|
|
|
|
copy /B parse.y +,,
|
2019-11-26 05:22:39 +03:00
|
|
|
.\lemon.exe $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) -S parse.y
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2017-08-22 22:19:00 +03:00
|
|
|
$(SQLITE3H): $(TOP)\src\sqlite.h.in $(TOP)\manifest mksourceid.exe $(TOP)\VERSION
|
2016-08-24 22:58:46 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\mksqlite3h.tcl $(TOP:\=/) > $(SQLITE3H) $(MKSQLITE3H_ARGS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-02-27 00:01:37 +03:00
|
|
|
sqlite3ext.h: .target_source
|
2016-08-24 22:58:46 +03:00
|
|
|
!IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
|
2016-07-28 21:49:20 +03:00
|
|
|
type tsrc\sqlite3ext.h | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*\)" "(SQLITE_CALLBACK *)" \
|
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*" "(SQLITE_APICALL *" > sqlite3ext.h
|
2016-07-28 22:28:35 +03:00
|
|
|
copy /Y sqlite3ext.h tsrc\sqlite3ext.h
|
2016-08-24 22:58:46 +03:00
|
|
|
!ELSE
|
|
|
|
copy /Y tsrc\sqlite3ext.h sqlite3ext.h
|
2020-05-30 00:06:52 +03:00
|
|
|
copy /B sqlite3ext.h +,,
|
2016-08-24 22:58:46 +03:00
|
|
|
!ENDIF
|
2015-09-22 02:49:35 +03:00
|
|
|
|
2020-05-30 00:06:52 +03:00
|
|
|
sqlite3session.h: $(TOP)\ext\session\sqlite3session.h
|
|
|
|
copy /Y $(TOP)\ext\session\sqlite3session.h .
|
|
|
|
copy /B sqlite3session.h +,,
|
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
mkkeywordhash.exe: $(TOP)\tool\mkkeywordhash.c
|
2016-01-22 04:25:15 +03:00
|
|
|
$(BCC) $(NO_WARN) -Fe$@ $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) \
|
2015-10-15 01:46:37 +03:00
|
|
|
$(TOP)\tool\mkkeywordhash.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
keywordhash.h: $(TOP)\tool\mkkeywordhash.c mkkeywordhash.exe
|
2011-06-25 05:14:36 +04:00
|
|
|
.\mkkeywordhash.exe > keywordhash.h
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2024-03-04 21:22:18 +03:00
|
|
|
# Source and header files that shell.c depends on
|
|
|
|
SHELL_DEP = \
|
|
|
|
$(TOP)\src\shell.c.in \
|
|
|
|
$(TOP)\ext\consio\console_io.c \
|
|
|
|
$(TOP)\ext\consio\console_io.h \
|
|
|
|
$(TOP)\ext\expert\sqlite3expert.c \
|
|
|
|
$(TOP)\ext\expert\sqlite3expert.h \
|
|
|
|
$(TOP)\ext\intck\sqlite3intck.c \
|
|
|
|
$(TOP)\ext\intck\sqlite3intck.h \
|
|
|
|
$(TOP)\ext\misc\appendvfs.c \
|
|
|
|
$(TOP)\ext\misc\base64.c \
|
|
|
|
$(TOP)\ext\misc\base85.c \
|
|
|
|
$(TOP)\ext\misc\completion.c \
|
|
|
|
$(TOP)\ext\misc\decimal.c \
|
|
|
|
$(TOP)\ext\misc\fileio.c \
|
|
|
|
$(TOP)\ext\misc\ieee754.c \
|
|
|
|
$(TOP)\ext\misc\memtrace.c \
|
|
|
|
$(TOP)\ext\misc\pcachetrace.c \
|
2024-08-31 17:31:17 +03:00
|
|
|
$(TOP)\ext\misc\percentile.c \
|
2024-03-04 21:22:18 +03:00
|
|
|
$(TOP)\ext\misc\regexp.c \
|
|
|
|
$(TOP)\ext\misc\series.c \
|
2024-09-12 17:43:05 +03:00
|
|
|
$(TOP)\ext\misc\sha1.c \
|
2024-03-04 21:22:18 +03:00
|
|
|
$(TOP)\ext\misc\shathree.c \
|
|
|
|
$(TOP)\ext\misc\sqlar.c \
|
|
|
|
$(TOP)\ext\misc\uint.c \
|
2024-09-09 18:33:37 +03:00
|
|
|
$(TOP)\ext\misc\vfstrace.c \
|
2024-03-04 21:22:18 +03:00
|
|
|
$(TOP)\ext\misc\zipfile.c \
|
|
|
|
$(TOP)\ext\recover\dbdata.c \
|
|
|
|
$(TOP)\ext\recover\sqlite3recover.c \
|
|
|
|
$(TOP)\ext\recover\sqlite3recover.h \
|
|
|
|
$(TOP)\src\test_windirent.c \
|
|
|
|
$(TOP)\src\test_windirent.h
|
2018-01-05 19:05:51 +03:00
|
|
|
|
|
|
|
# If use of zlib is enabled, add the "zipfile.c" source file.
|
|
|
|
#
|
|
|
|
!IF $(USE_ZLIB)!=0
|
2024-03-04 21:22:18 +03:00
|
|
|
SHELL_DEP = $(SHELL_DEP) $(TOP)\ext\misc\sqlar.c
|
|
|
|
SHELL_DEP = $(SHELL_DEP) $(TOP)\ext\misc\zipfile.c
|
2018-01-05 19:05:51 +03:00
|
|
|
!ENDIF
|
2017-10-12 16:47:48 +03:00
|
|
|
|
2024-03-04 21:22:18 +03:00
|
|
|
shell.c: $(SHELL_DEP) $(TOP)\tool\mkshellc.tcl
|
2017-10-14 22:54:06 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\mkshellc.tcl > shell.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2017-12-05 21:54:12 +03:00
|
|
|
zlib:
|
2018-01-05 04:00:17 +03:00
|
|
|
pushd $(ZLIBDIR) && $(MAKE) /f win32\Makefile.msc clean $(ZLIBLIB) && popd
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
# Rules to build the extension objects.
|
|
|
|
#
|
|
|
|
icu.lo: $(TOP)\ext\icu\icu.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\icu\icu.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
fts3.lo: $(TOP)\ext\fts3\fts3.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
fts3_aux.lo: $(TOP)\ext\fts3\fts3_aux.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_aux.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
fts3_expr.lo: $(TOP)\ext\fts3\fts3_expr.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_expr.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
fts3_hash.lo: $(TOP)\ext\fts3\fts3_hash.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_hash.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
fts3_icu.lo: $(TOP)\ext\fts3\fts3_icu.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_icu.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
fts3_snippet.lo: $(TOP)\ext\fts3\fts3_snippet.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_snippet.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
fts3_porter.lo: $(TOP)\ext\fts3\fts3_porter.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_porter.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
fts3_tokenizer.lo: $(TOP)\ext\fts3\fts3_tokenizer.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
|
|
|
fts3_tokenizer1.lo: $(TOP)\ext\fts3\fts3_tokenizer1.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer1.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2013-04-22 21:07:56 +04:00
|
|
|
fts3_tokenize_vtab.lo: $(TOP)\ext\fts3\fts3_tokenize_vtab.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenize_vtab.c
|
2013-04-22 21:07:56 +04:00
|
|
|
|
2012-05-29 00:22:16 +04:00
|
|
|
fts3_unicode.lo: $(TOP)\ext\fts3\fts3_unicode.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode.c
|
2012-05-29 00:22:16 +04:00
|
|
|
|
|
|
|
fts3_unicode2.lo: $(TOP)\ext\fts3\fts3_unicode2.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode2.c
|
2012-05-29 00:22:16 +04:00
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
fts3_write.lo: $(TOP)\ext\fts3\fts3_write.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_write.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2018-09-12 03:48:17 +03:00
|
|
|
stmt.lo: $(TOP)\ext\misc\stmt.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\misc\stmt.c
|
|
|
|
|
2011-06-17 11:07:24 +04:00
|
|
|
rtree.lo: $(TOP)\ext\rtree\rtree.c $(HDR) $(EXTHDR)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\rtree\rtree.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-04-12 01:23:04 +03:00
|
|
|
sqlite3session.lo: $(TOP)\ext\session\sqlite3session.c $(HDR) $(EXTHDR)
|
2016-03-30 19:23:06 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\session\sqlite3session.c
|
2013-03-13 15:42:00 +04:00
|
|
|
|
2015-06-26 07:34: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
|
|
|
|
|
2017-12-14 01:42:55 +03:00
|
|
|
LSM1_SRC = \
|
|
|
|
$(TOP)\ext\lsm1\lsm.h \
|
|
|
|
$(TOP)\ext\lsm1\lsmInt.h \
|
|
|
|
$(TOP)\ext\lsm1\lsm_ckpt.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_file.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_log.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_main.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_mem.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_mutex.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_shared.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_sorted.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_str.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_tree.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_unix.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_varint.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_vtab.c \
|
|
|
|
$(TOP)\ext\lsm1\lsm_win32.c
|
|
|
|
|
2015-06-26 07:34:36 +03:00
|
|
|
fts5parse.c: $(TOP)\ext\fts5\fts5parse.y lemon.exe
|
2020-05-30 00:06:52 +03:00
|
|
|
copy /Y $(TOP)\ext\fts5\fts5parse.y .
|
|
|
|
copy /B fts5parse.y +,,
|
2015-06-26 07:34:36 +03:00
|
|
|
del /Q fts5parse.h 2>NUL
|
2019-11-26 05:22:39 +03:00
|
|
|
.\lemon.exe $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) -S fts5parse.y
|
2015-06-26 07:34:36 +03:00
|
|
|
|
2016-02-27 00:01:37 +03:00
|
|
|
fts5parse.h: fts5parse.c
|
2015-06-26 07:34:36 +03:00
|
|
|
|
2016-02-27 00:01:37 +03:00
|
|
|
fts5.c: $(FTS5_SRC)
|
2015-06-26 07:34:36 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)\ext\fts5\tool\mkfts5c.tcl
|
2020-05-30 00:06:52 +03:00
|
|
|
copy /Y $(TOP)\ext\fts5\fts5.h .
|
|
|
|
copy /B fts5.h +,,
|
2015-06-26 07:34:36 +03:00
|
|
|
|
2017-12-14 01:42:55 +03:00
|
|
|
lsm1.c: $(LSM1_SRC)
|
|
|
|
$(TCLSH_CMD) $(TOP)\ext\lsm1\tool\mklsm1c.tcl
|
2020-05-30 00:06:52 +03:00
|
|
|
copy /Y $(TOP)\ext\lsm1\lsm.h .
|
|
|
|
copy /B lsm.h +,,
|
2017-12-14 01:42:55 +03:00
|
|
|
|
2015-06-26 07:34:36 +03:00
|
|
|
fts5.lo: fts5.c $(HDR) $(EXTHDR)
|
2015-06-26 23:45:43 +03:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c fts5.c
|
|
|
|
|
|
|
|
fts5_ext.lo: fts5.c $(HDR) $(EXTHDR)
|
2015-07-02 19:50:43 +03:00
|
|
|
$(LTCOMPILE) $(NO_WARN) -c fts5.c
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2015-06-26 23:45:43 +03:00
|
|
|
fts5.dll: fts5_ext.lo
|
|
|
|
$(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /OUT:$@ fts5_ext.lo
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-01-14 21:01:16 +03:00
|
|
|
sqlite3rbu.lo: $(TOP)\ext\rbu\sqlite3rbu.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\rbu\sqlite3rbu.c
|
2016-01-14 16:22:24 +03:00
|
|
|
|
2011-06-17 11:07:24 +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.lib. (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 = -DTCLSH_INIT_PROC=sqlite3TestInit -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1
|
2015-01-12 22:49:46 +03:00
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERVER=1 -DSQLITE_PRIVATE=""
|
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_CORE $(NO_WARN)
|
2016-03-02 06:28:07 +03:00
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERIES_CONSTRAINT_VERIFY=1
|
2016-03-04 06:43:10 +03:00
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_DEFAULT_PAGE_SIZE=1024
|
2018-09-12 03:48:17 +03:00
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_ENABLE_STMTVTAB=1
|
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_ENABLE_DBPAGE_VTAB=1
|
2020-03-23 18:49:22 +03:00
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_ENABLE_BYTECODE_VTAB=1
|
2020-11-18 21:36:43 +03:00
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_CKSUMVFS_STATIC=1
|
2016-07-28 07:14:37 +03:00
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) $(TEST_CCONV_OPTS)
|
2023-12-18 17:24:13 +03:00
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_STATIC_RANDOMJSON
|
2023-12-16 18:48:42 +03:00
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_STRICT_SUBTYPE=1
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-02-12 00:28:16 +03:00
|
|
|
TESTFIXTURE_SRC0 = $(TESTEXT) $(TESTSRC2)
|
2016-03-30 19:23:06 +03:00
|
|
|
TESTFIXTURE_SRC1 = $(TESTEXT) $(SQLITE3C)
|
2011-06-17 11:07:24 +04:00
|
|
|
!IF $(USE_AMALGAMATION)==0
|
|
|
|
TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC0)
|
|
|
|
!ELSE
|
|
|
|
TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC1)
|
|
|
|
!ENDIF
|
|
|
|
|
2016-08-24 22:58:46 +03:00
|
|
|
!IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
|
2016-07-28 17:37:04 +03:00
|
|
|
sqlite_tclDecls.h:
|
2016-08-24 22:58:46 +03:00
|
|
|
echo #ifndef SQLITE_TCLAPI > $(SQLITETCLDECLSH)
|
|
|
|
echo # define SQLITE_TCLAPI >> $(SQLITETCLDECLSH)
|
|
|
|
echo #endif >> $(SQLITETCLDECLSH)
|
2016-07-28 19:09:52 +03:00
|
|
|
type "$(TCLINCDIR)\tclDecls.h" \
|
2016-07-28 21:06:52 +03:00
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "^(EXTERN(?: CONST\d+?)?\s+?[^\(]*?\s+?)Tcl_" "\1 SQLITE_TCLAPI Tcl_" \
|
2016-07-28 19:09:52 +03:00
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "^(EXTERN\s+?(?:void|VOID)\s+?)TclFreeObj" "\1 SQLITE_TCLAPI TclFreeObj" \
|
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*tcl_" "(SQLITE_TCLAPI *tcl_" \
|
2016-07-28 21:18:53 +03:00
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*tclFreeObj" "(SQLITE_TCLAPI *tclFreeObj" \
|
2016-08-24 22:58:46 +03:00
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*" "(SQLITE_TCLAPI *" >> $(SQLITETCLDECLSH)
|
2016-07-28 17:37:04 +03:00
|
|
|
|
2016-08-24 22:58:46 +03:00
|
|
|
sqlite_tcl.h:
|
2016-07-28 19:09:52 +03:00
|
|
|
type "$(TCLINCDIR)\tcl.h" | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact tclDecls.h sqlite_tclDecls.h \
|
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "typedef (.*?)\(Tcl_" "typedef \1 (SQLITE_TCLAPI Tcl_" \
|
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact "void (*freeProc)" "void (SQLITE_TCLAPI *freeProc)" \
|
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact "Tcl_HashEntry *(*findProc)" "Tcl_HashEntry *(SQLITE_TCLAPI *findProc)" \
|
2016-08-24 22:58:46 +03:00
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact "Tcl_HashEntry *(*createProc)" "Tcl_HashEntry *(SQLITE_TCLAPI *createProc)" >> $(SQLITETCLH)
|
|
|
|
!ENDIF
|
2016-07-28 17:37:04 +03:00
|
|
|
|
2018-01-05 20:12:13 +03:00
|
|
|
testfixture.exe: $(TESTFIXTURE_SRC) $(TESTFIXTURE_DEP) $(SQLITE3H) $(LIBRESOBJS) $(HDR) $(SQLITE_TCL_DEP)
|
2011-06-17 19:57:07 +04:00
|
|
|
$(LTLINK) -DSQLITE_NO_SYNC=1 $(TESTFIXTURE_FLAGS) \
|
2011-06-17 11:07:24 +04:00
|
|
|
-DBUILD_sqlite -I$(TCLINCDIR) \
|
2011-06-21 00:52:32 +04:00
|
|
|
$(TESTFIXTURE_SRC) \
|
2018-01-05 19:05:51 +03:00
|
|
|
/link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2016-02-27 00:01:37 +03:00
|
|
|
extensiontest: testfixture.exe testloadext.dll
|
2015-10-15 02:04:08 +03:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 21:53:09 +03:00
|
|
|
.\testfixture.exe $(TOP)\test\loadext.test $(TESTOPTS)
|
2014-02-25 01:20:25 +04:00
|
|
|
|
2023-10-25 23:08:21 +03:00
|
|
|
tool-zip: testfixture.exe sqlite3.exe sqldiff.exe sqlite3_analyzer.exe $(TOP)\tool\mktoolzip.tcl
|
2023-09-07 16:43:46 +03:00
|
|
|
.\testfixture.exe $(TOP)\tool\mktoolzip.tcl
|
|
|
|
|
2024-03-11 21:21:02 +03:00
|
|
|
coretestprogs: testfixture.exe sqlite3.exe
|
2018-10-29 20:53:23 +03:00
|
|
|
|
2024-03-11 21:21:02 +03:00
|
|
|
testprogs: $(TESTPROGS) srcck1.exe fuzzcheck.exe sessionfuzz.exe
|
2018-10-29 20:53:23 +03:00
|
|
|
|
2021-10-07 22:27:17 +03:00
|
|
|
fulltest: alltest fuzztest
|
|
|
|
|
|
|
|
alltest: $(TESTPROGS)
|
2015-10-15 02:04:08 +03:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 21:53:09 +03:00
|
|
|
.\testfixture.exe $(TOP)\test\all.test $(TESTOPTS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2015-05-26 21:15:08 +03:00
|
|
|
soaktest: $(TESTPROGS)
|
2015-10-15 02:04:08 +03:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 21:53:09 +03:00
|
|
|
.\testfixture.exe $(TOP)\test\all.test -soak=1 $(TESTOPTS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2015-05-11 15:15:45 +03:00
|
|
|
fulltestonly: $(TESTPROGS) fuzztest
|
2015-10-15 02:04:08 +03:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2012-09-13 05:51:02 +04:00
|
|
|
.\testfixture.exe $(TOP)\test\full.test
|
|
|
|
|
2016-01-22 04:25:15 +03:00
|
|
|
queryplantest: testfixture.exe shell
|
2015-10-15 02:04:08 +03:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 21:53:09 +03:00
|
|
|
.\testfixture.exe $(TOP)\test\permutations.test queryplanner $(TESTOPTS)
|
2013-07-20 04:34:31 +04:00
|
|
|
|
2015-05-26 21:15:08 +03:00
|
|
|
fuzztest: fuzzcheck.exe
|
|
|
|
.\fuzzcheck.exe $(FUZZDATA)
|
2015-04-25 16:39:29 +03:00
|
|
|
|
2024-08-28 16:51:51 +03:00
|
|
|
# Legacy testing target for third-party integrators. The SQLite
|
|
|
|
# developers seldom use this target themselves. Instead
|
|
|
|
# they use "nmake /f Makefile.msc devtest" which runs tests on
|
|
|
|
# a standard set of options
|
|
|
|
#
|
|
|
|
test: $(TESTPROGS) sourcetest fuzztest tcltest
|
|
|
|
|
2015-06-10 21:53:09 +03:00
|
|
|
# Minimal testing that runs in less than 3 minutes (on a fast machine)
|
|
|
|
#
|
2016-02-07 03:08:08 +03:00
|
|
|
quicktest: testfixture.exe sourcetest
|
2015-10-15 02:04:08 +03:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 21:53:09 +03:00
|
|
|
.\testfixture.exe $(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.
|
|
|
|
#
|
2021-11-24 14:33:01 +03:00
|
|
|
|
|
|
|
# The veryquick.test TCL tests.
|
|
|
|
#
|
|
|
|
tcltest: testfixture.exe
|
2015-10-15 02:04:08 +03:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 21:53:09 +03:00
|
|
|
.\testfixture.exe $(TOP)\test\veryquick.test $(TESTOPTS)
|
2011-06-17 11:07:24 +04: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.exe
|
|
|
|
.\testfixture.exe $(TOP)\test\testrunner.tcl
|
|
|
|
|
2024-08-28 16:51:51 +03:00
|
|
|
# This is the testing target preferred by the core SQLite developers.
|
|
|
|
# It runs tests under a standard configuration. The devs run
|
|
|
|
# "nmake /f Makefile.msc devtest" prior to each check-in, at a minimum.
|
|
|
|
# Probably other tests too, but at least this one.
|
2023-02-05 20:40:03 +03:00
|
|
|
#
|
2024-08-28 16:51:51 +03:00
|
|
|
devtest: srctree-check sourcetest
|
|
|
|
$(TCLSH_CMD) $(TOP)\test\testrunner.tcl mdevtest
|
2023-02-05 20:40:03 +03:00
|
|
|
|
2023-08-12 20:36:57 +03:00
|
|
|
mdevtest:
|
|
|
|
$(TCLSH_CMD) $(TOP)\test\testrunner.tcl mdevtest
|
|
|
|
|
2024-08-28 15:10:51 +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
|
|
|
|
#
|
2024-08-28 15:10:51 +03:00
|
|
|
releasetest:
|
|
|
|
$(TCLSH_CMD) $(TOP)\test\testrunner.tcl release
|
2023-02-06 17:11:18 +03:00
|
|
|
|
|
|
|
|
2015-05-26 21:15:08 +03:00
|
|
|
smoketest: $(TESTPROGS)
|
2015-10-15 02:04:08 +03:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 21:53:09 +03:00
|
|
|
.\testfixture.exe $(TOP)\test\main.test $(TESTOPTS)
|
2015-04-04 03:02:07 +03:00
|
|
|
|
2020-05-29 22:45:03 +03:00
|
|
|
shelltest: $(TESTPROGS)
|
|
|
|
.\testfixture.exe $(TOP)\test\permutations.test shell
|
|
|
|
|
2024-01-03 17:13:27 +03:00
|
|
|
sqlite3_analyzer.c: $(SQLITE3C) $(SQLITE3H) $(TOP)\src\tclsqlite.c $(TOP)\tool\spaceanal.tcl $(TOP)\tool\mkccode.tcl $(TOP)\tool\sqlite3_analyzer.c.in $(TOP)\ext\consio\console_io.h $(TOP)\ext\consio\console_io.c $(SQLITE_TCL_DEP)
|
2017-10-13 21:58:55 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\mkccode.tcl $(TOP)\tool\sqlite3_analyzer.c.in > $@
|
2011-09-22 04:06:44 +04:00
|
|
|
|
2012-10-06 07:48:25 +04:00
|
|
|
sqlite3_analyzer.exe: sqlite3_analyzer.c $(LIBRESOBJS)
|
2015-05-11 19:27:33 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DBUILD_sqlite -I$(TCLINCDIR) sqlite3_analyzer.c \
|
2018-01-05 19:05:51 +03:00
|
|
|
/link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2018-01-06 17:44:29 +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
|
2018-01-06 07:34:05 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\mkccode.tcl $(TOP)\tool\sqltclsh.c.in >sqltclsh.c
|
|
|
|
|
2018-01-08 17:24:08 +03:00
|
|
|
sqltclsh.exe: sqltclsh.c $(SHELL_CORE_DEP) $(LIBRESOBJS)
|
2018-01-06 07:34:05 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DBUILD_sqlite -I$(TCLINCDIR) sqltclsh.c \
|
2018-01-06 17:43:33 +03:00
|
|
|
/link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS)
|
2011-06-17 11:07:24 +04:00
|
|
|
|
2017-05-03 15:50:46 +03:00
|
|
|
sqlite3_expert.exe: $(SQLITE3C) $(TOP)\ext\expert\sqlite3expert.h $(TOP)\ext\expert\sqlite3expert.c $(TOP)\ext\expert\expert.c
|
|
|
|
$(LTLINK) $(NO_WARN) $(TOP)\ext\expert\sqlite3expert.c $(TOP)\ext\expert\expert.c $(SQLITE3C) $(TLIBS)
|
|
|
|
|
2017-10-31 18:49:19 +03:00
|
|
|
CHECKER_DEPS =\
|
2023-06-05 03:57:38 +03:00
|
|
|
$(TOP)\tool\mkccode.tcl \
|
2017-10-31 18:49:19 +03:00
|
|
|
sqlite3.c \
|
2023-06-05 03:57:38 +03:00
|
|
|
$(TOP)\src\tclsqlite.c \
|
|
|
|
$(TOP)\ext\repair\sqlite3_checker.tcl \
|
|
|
|
$(TOP)\ext\repair\checkindex.c \
|
|
|
|
$(TOP)\ext\repair\checkfreelist.c \
|
|
|
|
$(TOP)\ext\misc\btreeinfo.c \
|
|
|
|
$(TOP)\ext\repair\sqlite3_checker.c.in
|
2017-10-31 18:49:19 +03:00
|
|
|
|
|
|
|
sqlite3_checker.c: $(CHECKER_DEPS)
|
2017-10-31 18:55:48 +03:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\mkccode.tcl $(TOP)\ext\repair\sqlite3_checker.c.in > $@
|
2017-10-31 18:49:19 +03:00
|
|
|
|
|
|
|
sqlite3_checker.exe: sqlite3_checker.c $(LIBRESOBJS)
|
|
|
|
$(LTLINK) $(NO_WARN) -DBUILD_sqlite -I$(TCLINCDIR) sqlite3_checker.c \
|
2018-01-05 22:25:52 +03:00
|
|
|
/link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS)
|
2017-10-31 18:49:19 +03:00
|
|
|
|
2018-03-07 17:42:17 +03:00
|
|
|
dbdump.exe: $(TOP)\ext\misc\dbdump.c $(SQLITE3C) $(SQLITE3H) $(LIBRESOBJS)
|
2017-03-14 18:27:56 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DDBDUMP_STANDALONE $(TOP)\ext\misc\dbdump.c $(SQLITE3C) \
|
|
|
|
/link $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS)
|
2017-03-14 01:02:01 +03:00
|
|
|
|
2018-03-07 17:42:17 +03:00
|
|
|
testloadext.lo: $(TOP)\src\test_loadext.c $(SQLITE3H)
|
2015-03-21 05:22:37 +03:00
|
|
|
$(LTCOMPILE) $(NO_WARN) -c $(TOP)\src\test_loadext.c
|
2014-02-25 01:20:25 +04:00
|
|
|
|
2016-02-27 00:01:37 +03:00
|
|
|
testloadext.dll: testloadext.lo
|
2014-02-25 01:20:25 +04:00
|
|
|
$(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /OUT:$@ testloadext.lo
|
|
|
|
|
2018-12-13 18:06:26 +03:00
|
|
|
dbtotxt.exe: $(TOP)\tool\dbtotxt.c
|
|
|
|
$(LTLINK) $(NO_WARN) $(TOP)\tool\dbtotxt.c /link $(LDFLAGS) $(LTLINKOPTS)
|
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
showdb.exe: $(TOP)\tool\showdb.c $(SQLITE3C) $(SQLITE3H)
|
2017-02-08 00:09:34 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
|
2015-10-14 23:01:12 +03:00
|
|
|
$(TOP)\tool\showdb.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2013-11-07 22:37:31 +04:00
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
showstat4.exe: $(TOP)\tool\showstat4.c $(SQLITE3C) $(SQLITE3H)
|
2017-02-08 00:09:34 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
|
2015-10-14 23:01:12 +03:00
|
|
|
$(TOP)\tool\showstat4.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-06-30 15:14:26 +04:00
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
showjournal.exe: $(TOP)\tool\showjournal.c $(SQLITE3C) $(SQLITE3H)
|
2017-02-08 00:09:34 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
|
2015-10-14 23:01:12 +03:00
|
|
|
$(TOP)\tool\showjournal.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-06-30 15:14:26 +04:00
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
showwal.exe: $(TOP)\tool\showwal.c $(SQLITE3C) $(SQLITE3H)
|
2017-02-08 00:09:34 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
|
2015-10-14 23:01:12 +03:00
|
|
|
$(TOP)\tool\showwal.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-06-30 15:14:26 +04:00
|
|
|
|
2017-10-31 02:25:06 +03:00
|
|
|
showshm.exe: $(TOP)\tool\showshm.c
|
|
|
|
$(LTLINK) $(NO_WARN) $(TOP)\tool\showshm.c /link $(LDFLAGS) $(LTLINKOPTS)
|
|
|
|
|
2018-12-04 19:51:42 +03:00
|
|
|
index_usage.exe: $(TOP)\tool\index_usage.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
|
|
|
|
$(TOP)\tool\index_usage.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
|
|
|
|
2017-02-08 00:09:34 +03:00
|
|
|
changeset.exe: $(TOP)\ext\session\changeset.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
|
|
|
|
-DSQLITE_ENABLE_SESSION=1 -DSQLITE_ENABLE_PREUPDATE_HOOK=1 \
|
2016-03-30 19:23:06 +03:00
|
|
|
$(TOP)\ext\session\changeset.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2018-11-05 23:37:33 +03:00
|
|
|
|
|
|
|
changesetfuzz.exe: $(TOP)\ext\session\changesetfuzz.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
|
|
|
|
-DSQLITE_ENABLE_SESSION=1 -DSQLITE_ENABLE_PREUPDATE_HOOK=1 \
|
|
|
|
$(TOP)\ext\session\changesetfuzz.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-08-19 00:23:29 +04:00
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
fts3view.exe: $(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) $(SQLITE3H)
|
2017-02-08 00:09:34 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
|
2015-10-14 23:01:12 +03:00
|
|
|
$(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-07-07 21:57:50 +04:00
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
rollback-test.exe: $(TOP)\tool\rollback-test.c $(SQLITE3C) $(SQLITE3H)
|
2017-02-08 00:09:34 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
|
2015-10-14 23:01:12 +03:00
|
|
|
$(TOP)\tool\rollback-test.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-06-30 15:14:26 +04:00
|
|
|
|
2018-08-23 23:09:19 +03:00
|
|
|
atrc.exe: $(TOP)\test\atrc.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
|
|
|
|
$(TOP)\test\atrc.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
LogEst.exe: $(TOP)\tool\logest.c $(SQLITE3H)
|
2017-02-08 00:09:34 +03:00
|
|
|
$(LTLINK) $(NO_WARN) $(TOP)\tool\LogEst.c /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-06-18 22:10:12 +04:00
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
wordcount.exe: $(TOP)\test\wordcount.c $(SQLITE3C) $(SQLITE3H)
|
2017-02-08 00:09:34 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
|
2015-10-14 23:01:12 +03:00
|
|
|
$(TOP)\test\wordcount.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2013-11-07 22:37:31 +04:00
|
|
|
|
2016-01-22 06:54:36 +03:00
|
|
|
speedtest1.exe: $(TOP)\test\speedtest1.c $(SQLITE3C) $(SQLITE3H)
|
2017-02-08 00:09:34 +03:00
|
|
|
$(LTLINK) $(NO_WARN) $(ST_COMPILE_OPTS) -DSQLITE_OMIT_LOAD_EXTENSION \
|
2015-10-14 23:01:12 +03:00
|
|
|
$(TOP)\test\speedtest1.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2013-11-07 22:37:31 +04:00
|
|
|
|
2017-02-08 00:09:34 +03:00
|
|
|
kvtest.exe: $(TOP)\test\kvtest.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) $(KV_COMPILE_OPTS) \
|
|
|
|
$(TOP)\test\kvtest.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
|
|
|
|
2016-02-27 00:01:37 +03:00
|
|
|
rbu.exe: $(TOP)\ext\rbu\rbu.c $(TOP)\ext\rbu\sqlite3rbu.c $(SQLITE3C) $(SQLITE3H)
|
2017-02-08 00:09:34 +03:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_ENABLE_RBU \
|
2016-01-22 06:54:36 +03:00
|
|
|
$(TOP)\ext\rbu\rbu.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2016-02-27 00:01:37 +03:00
|
|
|
|
2021-07-20 03:18:22 +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
|
2021-07-19 19:49:13 +03:00
|
|
|
|
2021-07-20 03:18:22 +03:00
|
|
|
threadtest3.exe: $(THREADTEST3_SRC) $(TOP)\src\test_multiplex.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) $(TOP)\test\threadtest3.c $(TOP)\src\test_multiplex.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2021-07-19 19:49:13 +03:00
|
|
|
|
2017-06-27 08:59:47 +03:00
|
|
|
LSMDIR=$(TOP)\ext\lsm1
|
|
|
|
!INCLUDE $(LSMDIR)\Makefile.msc
|
|
|
|
|
2016-02-27 00:01:37 +03:00
|
|
|
moreclean: clean
|
|
|
|
del /Q $(SQLITE3C) $(SQLITE3H) 2>NUL
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|
2016-01-14 16:22:24 +03:00
|
|
|
|
2011-06-17 19:57:07 +04:00
|
|
|
clean:
|
2015-05-16 06:41:41 +03:00
|
|
|
del /Q *.exp *.lo *.ilk *.lib *.obj *.ncb *.pdb *.sdf *.suo 2>NUL
|
2016-02-19 22:03:04 +03:00
|
|
|
del /Q *.bsc *.def *.cod *.da *.bb *.bbg *.vc gmon.out 2>NUL
|
2016-02-27 03:21:44 +03:00
|
|
|
del /Q $(SQLITE3EXE) $(SQLITE3DLL) Replace.exe 2>NUL
|
2016-01-23 10:53:04 +03:00
|
|
|
# <<mark>>
|
2019-03-22 04:25:16 +03:00
|
|
|
del /Q $(SQLITE3TCLDLL) pkgIndex.tcl 2>NUL
|
2016-02-27 00:01:37 +03:00
|
|
|
del /Q opcodes.c opcodes.h 2>NUL
|
2015-02-25 04:06:08 +03:00
|
|
|
del /Q lemon.* lempar.c parse.* 2>NUL
|
2017-09-04 21:44:54 +03:00
|
|
|
del /Q mksourceid.* mkkeywordhash.* keywordhash.h 2>NUL
|
2015-02-25 04:06:08 +03:00
|
|
|
del /Q notasharedlib.* 2>NUL
|
|
|
|
-rmdir /Q/S .deps 2>NUL
|
|
|
|
-rmdir /Q/S .libs 2>NUL
|
|
|
|
-rmdir /Q/S tsrc 2>NUL
|
|
|
|
del /Q .target_source 2>NUL
|
2016-08-24 22:58:46 +03:00
|
|
|
del /Q tclsqlite3.exe $(SQLITETCLH) $(SQLITETCLDECLSH) 2>NUL
|
2017-07-07 22:02:51 +03:00
|
|
|
del /Q lsm.dll lsmtest.exe 2>NUL
|
2019-04-01 06:07:21 +03:00
|
|
|
del /Q atrc.exe changesetfuzz.exe dbtotxt.exe index_usage.exe 2>NUL
|
2015-03-21 05:22:37 +03:00
|
|
|
del /Q testloadext.dll 2>NUL
|
|
|
|
del /Q testfixture.exe test.db 2>NUL
|
2017-03-14 18:27:56 +03:00
|
|
|
del /Q LogEst.exe fts3view.exe rollback-test.exe showdb.exe dbdump.exe 2>NUL
|
2015-03-24 22:02:13 +03:00
|
|
|
del /Q changeset.exe 2>NUL
|
2015-02-25 04:06:08 +03:00
|
|
|
del /Q showjournal.exe showstat4.exe showwal.exe speedtest1.exe 2>NUL
|
2016-02-07 23:39:27 +03:00
|
|
|
del /Q mptester.exe wordcount.exe rbu.exe srcck1.exe 2>NUL
|
2018-07-27 23:45:28 +03:00
|
|
|
del /Q sqlite3.c sqlite3-*.c sqlite3.h 2>NUL
|
2015-02-25 04:06:08 +03:00
|
|
|
del /Q sqlite3rc.h 2>NUL
|
2016-04-01 01:53:37 +03:00
|
|
|
del /Q shell.c sqlite3ext.h sqlite3session.h 2>NUL
|
2024-09-16 17:11:14 +03:00
|
|
|
del /Q sqlite3_analyzer.exe sqlite3_analyzer.c sqlite3-rsync.exe 2>NUL
|
2015-02-25 04:06:08 +03:00
|
|
|
del /Q sqlite-*-output.vsix 2>NUL
|
2016-06-08 04:03:05 +03:00
|
|
|
del /Q fuzzershell.exe fuzzcheck.exe sqldiff.exe dbhash.exe 2>NUL
|
2018-03-07 17:53:36 +03:00
|
|
|
del /Q sqltclsh.* 2>NUL
|
2021-07-20 03:18:22 +03:00
|
|
|
del /Q dbfuzz.exe sessionfuzz.exe threadtest3.exe 2>NUL
|
2018-03-07 17:42:17 +03:00
|
|
|
del /Q kvtest.exe ossshell.exe scrub.exe 2>NUL
|
2018-03-07 17:53:36 +03:00
|
|
|
del /Q showshm.exe sqlite3_checker.* sqlite3_expert.exe 2>NUL
|
2015-07-15 00:56:53 +03:00
|
|
|
del /Q fts5.* fts5parse.* 2>NUL
|
2017-12-14 01:42:55 +03:00
|
|
|
del /Q lsm.h lsm1.c 2>NUL
|
2023-06-05 01:41:52 +03:00
|
|
|
del /q src-verify.exe 2>NUL
|
2016-01-23 10:53:04 +03:00
|
|
|
# <</mark>>
|