2011-06-17 09:07:24 +02:00
|
|
|
#
|
2011-06-17 20:52:07 +02:00
|
|
|
# nmake Makefile for SQLite
|
2011-06-17 09:07:24 +02:00
|
|
|
#
|
2014-05-09 22:51:17 +02:00
|
|
|
###############################################################################
|
|
|
|
############################## START OF OPTIONS ###############################
|
|
|
|
###############################################################################
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# The toplevel directory of the source tree. This is the directory
|
|
|
|
# that contains this "Makefile.msc".
|
|
|
|
#
|
|
|
|
TOP = .
|
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-06-17 17:57:07 +02:00
|
|
|
# Set this non-0 to create and use the SQLite amalgamation file.
|
|
|
|
#
|
2012-10-12 20:06:07 +02:00
|
|
|
!IFNDEF USE_AMALGAMATION
|
2011-06-17 17:57:07 +02:00
|
|
|
USE_AMALGAMATION = 1
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-06-17 17:57:07 +02:00
|
|
|
|
2015-01-12 19:02:52 +01:00
|
|
|
# Set this non-0 to enable full warnings (-W4, etc) when compiling.
|
|
|
|
#
|
|
|
|
!IFNDEF USE_FULLWARN
|
|
|
|
USE_FULLWARN = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2015-03-21 03:22:37 +01:00
|
|
|
# Set this non-0 to use "stdcall" calling convention for the core library
|
|
|
|
# and shell executable.
|
|
|
|
#
|
|
|
|
!IFNDEF USE_STDCALL
|
|
|
|
USE_STDCALL = 0
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# 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 06:50:30 +02: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 19:02:52 +01:00
|
|
|
# If necessary, create a list of harmless compiler warnings to disable when
|
2015-03-21 03:22:37 +01:00
|
|
|
# compiling the various tools. For the SQLite source code itself, warnings,
|
2015-01-12 19:02:52 +01:00
|
|
|
# if any, will be disabled from within it.
|
|
|
|
#
|
|
|
|
!IFNDEF NO_WARN
|
|
|
|
!IF $(USE_FULLWARN)!=0
|
2015-04-10 23:16:11 +02:00
|
|
|
NO_WARN = -wd4054 -wd4055 -wd4100 -wd4127 -wd4130 -wd4152 -wd4189 -wd4206
|
2015-12-17 00:30:30 +01:00
|
|
|
NO_WARN = $(NO_WARN) -wd4210 -wd4232 -wd4305 -wd4306 -wd4702 -wd4706
|
2015-01-12 19:02:52 +01:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2014-05-13 00:36:50 +02:00
|
|
|
# Set this non-0 to use the library paths and other options necessary for
|
|
|
|
# Windows Phone 8.1.
|
2014-05-10 01:31:55 +02:00
|
|
|
#
|
|
|
|
!IFNDEF USE_WP81_OPTS
|
|
|
|
USE_WP81_OPTS = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2013-10-12 01:01:18 +02: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 01:02:13 +02:00
|
|
|
SPLIT_AMALGAMATION = 0
|
2013-10-12 01:01:18 +02:00
|
|
|
!ENDIF
|
2011-06-17 17:57:07 +02:00
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-10-02 07:23:16 +02:00
|
|
|
# Set this non-0 to use the International Components for Unicode (ICU).
|
|
|
|
#
|
2012-10-12 20:06:07 +02:00
|
|
|
!IFNDEF USE_ICU
|
2011-10-02 07:23:16 +02:00
|
|
|
USE_ICU = 0
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-10-02 07:23:16 +02:00
|
|
|
|
2012-06-21 06:21:35 +02:00
|
|
|
# Set this non-0 to dynamically link to the MSVC runtime library.
|
|
|
|
#
|
2012-10-12 20:06:07 +02:00
|
|
|
!IFNDEF USE_CRT_DLL
|
2012-06-21 06:21:35 +02:00
|
|
|
USE_CRT_DLL = 0
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2012-06-21 06:21:35 +02:00
|
|
|
|
2015-01-21 01:48:46 +01:00
|
|
|
# Set this non-0 to link to the RPCRT4 library.
|
|
|
|
#
|
|
|
|
!IFNDEF USE_RPCRT4_LIB
|
|
|
|
USE_RPCRT4_LIB = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2013-09-06 23:41:11 +02: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 03:44:13 +02: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 20:06:07 +02:00
|
|
|
!IFNDEF XCOMPILE
|
2012-08-28 03:44:13 +02:00
|
|
|
XCOMPILE = 0
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2012-06-21 06:21:35 +02:00
|
|
|
|
2012-07-01 00:22:34 +02: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 20:06:07 +02:00
|
|
|
!IFNDEF USE_NATIVE_LIBPATHS
|
2012-07-01 00:22:34 +02:00
|
|
|
USE_NATIVE_LIBPATHS = 0
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2012-07-01 00:22:34 +02:00
|
|
|
|
2012-10-06 05:48:25 +02:00
|
|
|
# Set this 0 to skip the compiling and embedding of version resources.
|
|
|
|
#
|
2012-10-12 20:06:07 +02:00
|
|
|
!IFNDEF USE_RC
|
2012-10-06 05:48:25 +02:00
|
|
|
USE_RC = 1
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2012-07-01 00:22:34 +02:00
|
|
|
|
2012-03-23 13:28:21 +01: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 20:06:07 +02:00
|
|
|
!IFNDEF FOR_WINRT
|
2012-03-23 13:28:21 +01:00
|
|
|
FOR_WINRT = 0
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2012-03-23 13:28:21 +01:00
|
|
|
|
2015-04-22 03:33:53 +02:00
|
|
|
# Set this non-0 to compile binaries suitable for the UAP environment.
|
|
|
|
# This setting does not apply to any binaries that require Tcl to operate
|
|
|
|
# properly (i.e. the text fixture, etc).
|
|
|
|
#
|
|
|
|
!IFNDEF FOR_UAP
|
|
|
|
FOR_UAP = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
# Set this non-0 to compile binaries suitable for the Windows 10 platform.
|
2016-01-22 02:25:15 +01:00
|
|
|
#
|
|
|
|
!IFNDEF FOR_WIN10
|
|
|
|
FOR_WIN10 = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2012-07-27 09:13:25 +02:00
|
|
|
# Set this non-0 to skip attempting to look for and/or link with the Tcl
|
|
|
|
# runtime library.
|
|
|
|
#
|
2012-10-12 20:06:07 +02:00
|
|
|
!IFNDEF NO_TCL
|
2012-07-27 09:13:25 +02:00
|
|
|
NO_TCL = 0
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2012-07-27 09:13:25 +02:00
|
|
|
|
2011-08-26 07:40:31 +02:00
|
|
|
# Set this to non-0 to create and use PDBs.
|
|
|
|
#
|
2012-10-12 20:06:07 +02:00
|
|
|
!IFNDEF SYMBOLS
|
2011-08-26 07:40:31 +02:00
|
|
|
SYMBOLS = 1
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2011-08-26 07:40:31 +02:00
|
|
|
|
2012-08-22 02:39:34 +02:00
|
|
|
# Set this to non-0 to use the SQLite debugging heap subsystem.
|
|
|
|
#
|
2012-10-12 20:06:07 +02:00
|
|
|
!IFNDEF MEMDEBUG
|
2012-08-22 02:39:34 +02:00
|
|
|
MEMDEBUG = 0
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2012-08-22 02:39:34 +02:00
|
|
|
|
|
|
|
# Set this to non-0 to use the Win32 native heap subsystem.
|
|
|
|
#
|
2012-10-12 20:06:07 +02:00
|
|
|
!IFNDEF WIN32HEAP
|
2012-08-22 02:39:34 +02:00
|
|
|
WIN32HEAP = 0
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2011-08-26 07:40:31 +02:00
|
|
|
|
2015-04-16 18:27:29 +02:00
|
|
|
# Set this to non-0 to enable OSTRACE() macros, which can be useful when
|
|
|
|
# debugging.
|
|
|
|
#
|
|
|
|
!IFNDEF OSTRACE
|
|
|
|
OSTRACE = 0
|
|
|
|
!ENDIF
|
|
|
|
|
2011-08-25 06:09:12 +02: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-20 22:14:14 +01: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 06:09:12 +02:00
|
|
|
#
|
2012-10-12 20:06:07 +02:00
|
|
|
!IFNDEF DEBUG
|
2011-08-25 06:09:12 +02:00
|
|
|
DEBUG = 0
|
2012-10-12 20:06:07 +02:00
|
|
|
!ENDIF
|
2011-06-17 17:57:07 +02:00
|
|
|
|
2013-08-29 03:03:38 +02: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
|
2011-06-17 17:57:07 +02:00
|
|
|
|
2016-01-22 04:54:36 +01: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 02:25:15 +01:00
|
|
|
# This is the name to use for the SQLite dynamic link library (DLL).
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE3DLL
|
|
|
|
SQLITE3DLL = sqlite3.dll
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# This is the name to use for the SQLite import library (LIB).
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE3LIB
|
|
|
|
SQLITE3LIB = sqlite3.lib
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# This is the name to use for the SQLite shell executable (EXE).
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE3EXE
|
|
|
|
SQLITE3EXE = sqlite3.exe
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# This is the argument used to set the program database (PDB) file for the
|
|
|
|
# SQLite shell executable (EXE).
|
|
|
|
#
|
|
|
|
!IFNDEF SQLITE3EXEPDB
|
|
|
|
SQLITE3EXEPDB = /pdb:sqlite3sh.pdb
|
|
|
|
!ENDIF
|
|
|
|
|
2014-05-09 22:51:17 +02:00
|
|
|
# These are the "standard" SQLite compilation options used when compiling for
|
|
|
|
# the Windows platform.
|
|
|
|
#
|
|
|
|
!IFNDEF OPT_FEATURE_FLAGS
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS3=1
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RTREE=1
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_COLUMN_METADATA=1
|
|
|
|
!ENDIF
|
|
|
|
|
2016-01-22 02:25:15 +01: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-09 22:51:17 +02:00
|
|
|
###############################################################################
|
|
|
|
############################### END OF OPTIONS ################################
|
|
|
|
###############################################################################
|
|
|
|
|
2014-05-10 01:31:55 +02: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 18:22:05 +02:00
|
|
|
# Check for the predefined command macro CC. This should point to the compiler
|
2012-07-01 00:22:34 +02:00
|
|
|
# binary for the target platform. If it is not defined, simply define it to
|
2012-06-30 18:22:05 +02:00
|
|
|
# the legacy default value 'cl.exe'.
|
|
|
|
#
|
|
|
|
!IFNDEF CC
|
|
|
|
CC = cl.exe
|
|
|
|
!ENDIF
|
|
|
|
|
2012-06-30 21:24:09 +02:00
|
|
|
# Check for the command macro LD. This should point to the linker binary for
|
2012-07-01 00:22:34 +02:00
|
|
|
# the target platform. If it is not defined, simply define it to the legacy
|
2012-06-30 21:24:09 +02:00
|
|
|
# default value 'link.exe'.
|
|
|
|
#
|
|
|
|
!IFNDEF LD
|
|
|
|
LD = link.exe
|
|
|
|
!ENDIF
|
|
|
|
|
2012-09-03 12:32:32 +02: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
|
|
|
|
|
2014-05-09 22:51:17 +02:00
|
|
|
# Check for the MSVC runtime library path macro. Othertise, this value will
|
|
|
|
# default to the 'lib' directory underneath the MSVC installation directory.
|
|
|
|
#
|
|
|
|
!IFNDEF CRTLIBPATH
|
|
|
|
CRTLIBPATH = $(VCINSTALLDIR)\lib
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
CRTLIBPATH = $(CRTLIBPATH:\\=\)
|
|
|
|
|
2012-06-30 18:22:05 +02:00
|
|
|
# Check for the command macro NCC. This should point to the compiler binary
|
2012-07-01 00:22:34 +02: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 18:22:05 +02: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 00:22:34 +02:00
|
|
|
# line similar to the following could be used (all on one line):
|
2012-06-30 18:22:05 +02:00
|
|
|
#
|
2012-08-17 13:47:32 +02:00
|
|
|
# nmake /f Makefile.msc sqlite3.dll
|
2012-08-28 03:44:13 +02: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 00:22:34 +02:00
|
|
|
# "NCC=""%VCINSTALLDIR%\bin\cl.exe"""
|
|
|
|
# USE_NATIVE_LIBPATHS=1
|
2012-06-30 18:22:05 +02:00
|
|
|
#
|
2012-07-27 10:21:45 +02:00
|
|
|
!IFDEF NCC
|
|
|
|
NCC = $(NCC:\\=\)
|
2012-08-28 03:44:13 +02:00
|
|
|
!ELSEIF $(XCOMPILE)!=0
|
2013-12-04 00:33:29 +01:00
|
|
|
NCC = "$(VCINSTALLDIR)\bin\$(CC)"
|
2012-08-28 03:44:13 +02:00
|
|
|
NCC = $(NCC:\\=\)
|
2012-07-27 10:21:45 +02:00
|
|
|
!ELSE
|
2012-06-30 18:22:05 +02:00
|
|
|
NCC = $(CC)
|
|
|
|
!ENDIF
|
|
|
|
|
2014-05-09 22:51:17 +02:00
|
|
|
# Check for the MSVC native runtime library path macro. Othertise,
|
|
|
|
# this value will default to the 'lib' directory underneath the MSVC
|
2012-07-01 00:22:34 +02:00
|
|
|
# installation directory.
|
|
|
|
#
|
|
|
|
!IFNDEF NCRTLIBPATH
|
|
|
|
NCRTLIBPATH = $(VCINSTALLDIR)\lib
|
|
|
|
!ENDIF
|
|
|
|
|
2012-07-28 01:03:47 +02:00
|
|
|
NCRTLIBPATH = $(NCRTLIBPATH:\\=\)
|
|
|
|
|
2012-07-01 00:22:34 +02:00
|
|
|
# Check for the Platform SDK library path macro. Othertise, this
|
|
|
|
# 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 01:03:47 +02:00
|
|
|
NSDKLIBPATH = $(NSDKLIBPATH:\\=\)
|
|
|
|
|
2012-07-01 00:22:34 +02:00
|
|
|
# C compiler and options for use in building executables that
|
2011-06-17 09:07:24 +02:00
|
|
|
# will run on the platform that is doing the build.
|
|
|
|
#
|
2015-01-12 19:02:52 +01:00
|
|
|
!IF $(USE_FULLWARN)!=0
|
2015-10-16 22:13:57 +02:00
|
|
|
BCC = $(NCC) -nologo -W4 $(CCOPTS) $(BCCOPTS)
|
2015-01-12 19:02:52 +01:00
|
|
|
!ELSE
|
2015-10-16 22:13:57 +02:00
|
|
|
BCC = $(NCC) -nologo -W3 $(CCOPTS) $(BCCOPTS)
|
2015-01-12 19:02:52 +01:00
|
|
|
!ENDIF
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2013-09-06 23:41:11 +02: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 00:22:34 +02: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 08:18:10 +02:00
|
|
|
|
|
|
|
!IFDEF NUCRTLIBPATH
|
|
|
|
NUCRTLIBPATH = $(NUCRTLIBPATH:\\=\)
|
|
|
|
NLTLIBPATHS = $(NLTLIBPATHS) "/LIBPATH:$(NUCRTLIBPATH)"
|
|
|
|
!ENDIF
|
2012-07-01 00:22:34 +02:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# C compiler and options for use in building executables that
|
2011-06-17 09:07:24 +02:00
|
|
|
# will run on the target platform. (BCC and TCC are usually the
|
|
|
|
# same unless your are cross-compiling.)
|
|
|
|
#
|
2015-01-12 19:02:52 +01:00
|
|
|
!IF $(USE_FULLWARN)!=0
|
2015-10-16 22:13:57 +02:00
|
|
|
TCC = $(CC) -nologo -W4 -DINCLUDE_MSVC_H=1 $(CCOPTS) $(TCCOPTS)
|
2015-01-12 19:02:52 +01:00
|
|
|
!ELSE
|
2015-10-16 22:13:57 +02:00
|
|
|
TCC = $(CC) -nologo -W3 $(CCOPTS) $(TCCOPTS)
|
2015-01-12 19:02:52 +01:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-22 02:25:15 +01:00
|
|
|
TCC = $(TCC) -DSQLITE_OS_WIN=1 -I$(TOP) -I$(TOP)\src -fp:precise
|
2015-10-16 22:13:57 +02:00
|
|
|
RCC = $(RC) -DSQLITE_OS_WIN=1 -I$(TOP) -I$(TOP)\src $(RCOPTS) $(RCCOPTS)
|
2011-06-17 17:57:07 +02:00
|
|
|
|
2016-01-22 02:25:15 +01:00
|
|
|
# Adjust the names of the primary targets for use with Windows 10.
|
|
|
|
#
|
|
|
|
!IF $(FOR_WIN10)!=0
|
|
|
|
SQLITE3DLL = winsqlite3.dll
|
|
|
|
SQLITE3LIB = winsqlite3.lib
|
|
|
|
SQLITE3EXE = winsqlite3shell.exe
|
|
|
|
SQLITE3EXEPDB =
|
|
|
|
!ENDIF
|
|
|
|
|
2015-03-21 03:22:37 +01: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 02:25:15 +01:00
|
|
|
!IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
|
2015-03-21 03:22:37 +01:00
|
|
|
!IF "$(PLATFORM)"=="x86"
|
2015-03-24 22:27:27 +01:00
|
|
|
CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall
|
|
|
|
SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall
|
2015-03-21 03:22:37 +01:00
|
|
|
!ELSE
|
|
|
|
!IFNDEF PLATFORM
|
2015-03-24 22:27:27 +01:00
|
|
|
CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall
|
|
|
|
SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall
|
2015-03-21 03:22:37 +01:00
|
|
|
!ELSE
|
|
|
|
CORE_CCONV_OPTS =
|
|
|
|
SHELL_CCONV_OPTS =
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
CORE_CCONV_OPTS =
|
|
|
|
SHELL_CCONV_OPTS =
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# These are additional compiler options used for the core library.
|
|
|
|
#
|
|
|
|
!IFNDEF CORE_COMPILE_OPTS
|
2016-01-22 02:25:15 +01:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
|
2015-03-21 03:22:37 +01: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-01-22 02:25:15 +01:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
|
2015-03-21 03:22:37 +01:00
|
|
|
CORE_LINK_DEP =
|
|
|
|
!ELSE
|
|
|
|
CORE_LINK_DEP = sqlite3.def
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# These are additional linker options used for the core library.
|
|
|
|
#
|
|
|
|
!IFNDEF CORE_LINK_OPTS
|
2016-01-22 02:25:15 +01:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
|
2015-03-21 03:22:37 +01:00
|
|
|
CORE_LINK_OPTS =
|
|
|
|
!ELSE
|
|
|
|
CORE_LINK_OPTS = /DEF:sqlite3.def
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# These are additional compiler options used for the shell executable.
|
|
|
|
#
|
2015-10-09 16:23:56 +02:00
|
|
|
!IFNDEF SHELL_COMPILE_OPTS
|
2016-01-22 02:25:15 +01:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
|
2016-01-22 04:54:36 +01:00
|
|
|
SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS) -DSQLITE_API=__declspec(dllimport)
|
2015-03-21 03:22:37 +01:00
|
|
|
!ELSE
|
2016-01-22 04:54:36 +01: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 =
|
|
|
|
!ELSE
|
|
|
|
SHELL_CORE_SRC = $(SQLITE3C)
|
2015-03-21 03:22:37 +01:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# This is the core library that the shell executable should depend on.
|
|
|
|
#
|
|
|
|
!IFNDEF SHELL_CORE_DEP
|
2016-01-22 02:25:15 +01:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
|
|
|
|
SHELL_CORE_DEP = $(SQLITE3DLL)
|
2015-03-21 03:22:37 +01:00
|
|
|
!ELSE
|
2016-01-22 04:54:36 +01:00
|
|
|
SHELL_CORE_DEP =
|
2015-03-21 03:22:37 +01:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# This is the core library that the shell executable should link with.
|
|
|
|
#
|
|
|
|
!IFNDEF SHELL_CORE_LIB
|
2016-01-22 02:25:15 +01:00
|
|
|
!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
|
|
|
|
SHELL_CORE_LIB = $(SQLITE3LIB)
|
2015-03-21 03:22:37 +01:00
|
|
|
!ELSE
|
2016-01-22 04:54:36 +01:00
|
|
|
SHELL_CORE_LIB =
|
2015-03-21 03:22:37 +01: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-06 23:41:11 +02: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
|
2011-06-17 17:57:07 +02:00
|
|
|
|
2012-03-20 03:18:42 +01:00
|
|
|
# When compiling the library for use in the WinRT environment,
|
2012-03-23 13:28:21 +01:00
|
|
|
# the following compile-time options must be used as well to
|
2012-03-20 03:18:42 +01: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 13:28:21 +01:00
|
|
|
!IF $(FOR_WINRT)!=0
|
2012-06-21 06:21:35 +02:00
|
|
|
TCC = $(TCC) -DSQLITE_OS_WINRT=1
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DSQLITE_OS_WINRT=1
|
2012-10-06 05:48:25 +02:00
|
|
|
TCC = $(TCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP
|
|
|
|
RCC = $(RCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP
|
2012-06-21 06:21:35 +02:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
# C compiler options for the Windows 10 platform (needs MSVC 2015).
|
2016-01-22 02:25:15 +01:00
|
|
|
#
|
|
|
|
!IF $(FOR_WIN10)!=0
|
|
|
|
TCC = $(TCC) /guard:cf -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
|
|
|
|
BCC = $(BCC) /guard:cf -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
|
|
|
|
!ENDIF
|
|
|
|
|
2012-06-21 06:21:35 +02: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-01-22 04:54:36 +01:00
|
|
|
!IF $(FOR_WINRT)!=0 || $(FOR_WIN10)!=0 || $(USE_CRT_DLL)!=0
|
2014-12-20 22:14:14 +01:00
|
|
|
!IF $(DEBUG)>1
|
2012-06-21 06:21:35 +02:00
|
|
|
TCC = $(TCC) -MDd
|
2012-10-06 05:48:25 +02:00
|
|
|
BCC = $(BCC) -MDd
|
2012-06-21 06:21:35 +02:00
|
|
|
!ELSE
|
|
|
|
TCC = $(TCC) -MD
|
2012-10-06 05:48:25 +02:00
|
|
|
BCC = $(BCC) -MD
|
2012-06-21 06:21:35 +02:00
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
2014-12-20 22:14:14 +01:00
|
|
|
!IF $(DEBUG)>1
|
2012-06-21 06:21:35 +02:00
|
|
|
TCC = $(TCC) -MTd
|
2012-10-06 05:48:25 +02:00
|
|
|
BCC = $(BCC) -MTd
|
2012-06-21 06:21:35 +02:00
|
|
|
!ELSE
|
|
|
|
TCC = $(TCC) -MT
|
2012-10-06 05:48:25 +02:00
|
|
|
BCC = $(BCC) -MT
|
2012-06-21 06:21:35 +02:00
|
|
|
!ENDIF
|
2012-03-23 13:28:21 +01:00
|
|
|
!ENDIF
|
2012-03-20 03:18:42 +01:00
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2012-03-20 03:18:42 +01:00
|
|
|
# The mksqlite3c.tcl and mksqlite3h.tcl scripts will pull in
|
2011-06-17 17:57:07 +02: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 12:32:32 +02:00
|
|
|
RCC = $(RCC) -I$(TOP)\ext\fts3
|
2011-06-17 17:57:07 +02:00
|
|
|
TCC = $(TCC) -I$(TOP)\ext\rtree
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -I$(TOP)\ext\rtree
|
2011-06-17 17:57:07 +02:00
|
|
|
!ENDIF
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2014-01-30 12:12:52 +01: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.
|
|
|
|
#
|
2015-04-10 23:16:11 +02:00
|
|
|
!IFNDEF MKSQLITE3C_ARGS
|
2014-12-20 22:14:14 +01:00
|
|
|
!IF $(DEBUG)>1
|
2014-01-30 12:12:52 +01:00
|
|
|
MKSQLITE3C_ARGS = --linemacros
|
|
|
|
!ELSE
|
|
|
|
MKSQLITE3C_ARGS =
|
2011-06-17 17:57:07 +02:00
|
|
|
!ENDIF
|
2015-04-10 23:16:11 +02:00
|
|
|
!ENDIF
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-06-17 09:07:24 +02: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 04:02:25 +02:00
|
|
|
!IF $(DEBUG)==0
|
2011-06-17 09:07:24 +02:00
|
|
|
TCC = $(TCC) -DNDEBUG
|
2012-04-18 12:29:21 +02:00
|
|
|
BCC = $(BCC) -DNDEBUG
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DNDEBUG
|
2011-08-25 04:02:25 +02:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-22 02:25:15 +01:00
|
|
|
!IF $(DEBUG)>0 || $(API_ARMOR)!=0 || $(FOR_WIN10)!=0
|
2015-05-13 06:50:30 +02:00
|
|
|
TCC = $(TCC) -DSQLITE_ENABLE_API_ARMOR=1
|
|
|
|
RCC = $(RCC) -DSQLITE_ENABLE_API_ARMOR=1
|
2014-12-20 22:14:14 +01:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IF $(DEBUG)>2
|
2015-05-13 06:50:30 +02:00
|
|
|
TCC = $(TCC) -DSQLITE_DEBUG=1
|
|
|
|
RCC = $(RCC) -DSQLITE_DEBUG=1
|
2011-08-25 04:02:25 +02:00
|
|
|
!ENDIF
|
|
|
|
|
2015-04-16 18:27:29 +02: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 04:02:25 +02:00
|
|
|
!ENDIF
|
|
|
|
|
2014-12-20 22:14:14 +01:00
|
|
|
!IF $(DEBUG)>5
|
2015-05-13 06:50:30 +02:00
|
|
|
TCC = $(TCC) -DSQLITE_ENABLE_IOTRACE=1
|
|
|
|
RCC = $(RCC) -DSQLITE_ENABLE_IOTRACE=1
|
2011-08-25 04:02:25 +02:00
|
|
|
!ENDIF
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2012-07-01 00:22:34 +02:00
|
|
|
# Prevent warnings about "insecure" MSVC runtime library functions
|
|
|
|
# being used.
|
2011-08-03 01:34:00 +02:00
|
|
|
#
|
|
|
|
TCC = $(TCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
|
2012-04-18 12:29:21 +02:00
|
|
|
BCC = $(BCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
|
2011-08-03 01:34:00 +02:00
|
|
|
|
2012-07-01 00:22:34 +02: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 12:32:32 +02:00
|
|
|
RCC = $(RCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
|
2012-07-01 00:22:34 +02:00
|
|
|
|
2012-08-22 02:39:34 +02:00
|
|
|
# Use the SQLite debugging heap subsystem?
|
2011-08-24 18:13:57 +02:00
|
|
|
#
|
2012-08-22 02:39:34 +02:00
|
|
|
!IF $(MEMDEBUG)!=0
|
|
|
|
TCC = $(TCC) -DSQLITE_MEMDEBUG=1
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DSQLITE_MEMDEBUG=1
|
2012-08-22 02:39:34 +02:00
|
|
|
|
|
|
|
# Use native Win32 heap subsystem instead of malloc/free?
|
|
|
|
#
|
|
|
|
!ELSEIF $(WIN32HEAP)!=0
|
|
|
|
TCC = $(TCC) -DSQLITE_WIN32_MALLOC=1
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DSQLITE_WIN32_MALLOC=1
|
2011-08-25 04:02:25 +02:00
|
|
|
|
|
|
|
# Validate the heap on every call into the native Win32 heap subsystem?
|
|
|
|
#
|
2014-12-20 22:14:14 +01:00
|
|
|
!IF $(DEBUG)>3
|
2011-08-25 04:02:25 +02:00
|
|
|
TCC = $(TCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1
|
2011-08-25 04:02:25 +02:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2011-08-24 18:13:57 +02:00
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-06-25 03:14:36 +02: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 09:07:24 +02:00
|
|
|
#
|
2012-06-30 18:22:05 +02:00
|
|
|
!IFNDEF TCLINCDIR
|
2011-06-17 09:07:24 +02:00
|
|
|
TCLINCDIR = c:\tcl\include
|
2012-06-30 18:22:05 +02:00
|
|
|
!ENDIF
|
2011-06-25 03:14:36 +02:00
|
|
|
|
2012-06-30 18:22:05 +02:00
|
|
|
!IFNDEF TCLLIBDIR
|
2011-06-17 09:07:24 +02:00
|
|
|
TCLLIBDIR = c:\tcl\lib
|
2012-06-30 18:22:05 +02:00
|
|
|
!ENDIF
|
2011-06-25 03:14:36 +02:00
|
|
|
|
2012-06-30 18:22:05 +02:00
|
|
|
!IFNDEF LIBTCL
|
2011-06-25 03:14:36 +02:00
|
|
|
LIBTCL = tcl85.lib
|
2012-06-30 18:22:05 +02:00
|
|
|
!ENDIF
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-10-11 01:39:55 +02:00
|
|
|
!IFNDEF LIBTCLSTUB
|
|
|
|
LIBTCLSTUB = tclstub85.lib
|
|
|
|
!ENDIF
|
|
|
|
|
2015-10-15 01:04:08 +02:00
|
|
|
!IFNDEF LIBTCLPATH
|
|
|
|
LIBTCLPATH = c:\tcl\bin
|
|
|
|
!ENDIF
|
|
|
|
|
2011-10-02 07:23:16 +02: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.
|
|
|
|
#
|
2012-06-30 18:22:05 +02:00
|
|
|
!IFNDEF ICUINCDIR
|
2011-10-02 07:23:16 +02:00
|
|
|
ICUINCDIR = c:\icu\include
|
2012-06-30 18:22:05 +02:00
|
|
|
!ENDIF
|
2011-10-02 07:23:16 +02:00
|
|
|
|
2012-06-30 18:22:05 +02:00
|
|
|
!IFNDEF ICULIBDIR
|
2011-10-02 07:23:16 +02:00
|
|
|
ICULIBDIR = c:\icu\lib
|
2012-06-30 18:22:05 +02:00
|
|
|
!ENDIF
|
2011-10-02 07:23:16 +02:00
|
|
|
|
2012-06-30 18:22:05 +02:00
|
|
|
!IFNDEF LIBICU
|
2011-10-02 07:23:16 +02:00
|
|
|
LIBICU = icuuc.lib icuin.lib
|
2012-06-30 18:22:05 +02:00
|
|
|
!ENDIF
|
2011-10-02 07:23:16 +02:00
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
# This is the command to use for tclsh - normally just "tclsh", but we may
|
2011-06-25 03:14:36 +02: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 09:07:24 +02:00
|
|
|
#
|
2012-06-30 18:22:05 +02:00
|
|
|
!IFNDEF TCLSH_CMD
|
2011-06-17 09:07:24 +02:00
|
|
|
TCLSH_CMD = tclsh85
|
2012-06-30 18:22:05 +02:00
|
|
|
!ENDIF
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Compiler options needed for programs that use the readline() library.
|
|
|
|
#
|
2013-08-29 03:03:38 +02:00
|
|
|
!IFNDEF READLINE_FLAGS
|
2011-06-17 17:57:07 +02:00
|
|
|
READLINE_FLAGS = -DHAVE_READLINE=0
|
2013-08-29 03:03:38 +02:00
|
|
|
!ENDIF
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# The library that programs using readline() must link against.
|
|
|
|
#
|
2013-08-29 03:03:38 +02:00
|
|
|
!IFNDEF LIBREADLINE
|
2011-06-17 17:57:07 +02:00
|
|
|
LIBREADLINE =
|
2013-08-29 03:03:38 +02:00
|
|
|
!ENDIF
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Should the database engine be compiled threadsafe
|
|
|
|
#
|
|
|
|
TCC = $(TCC) -DSQLITE_THREADSAFE=1
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DSQLITE_THREADSAFE=1
|
2011-06-17 09:07:24 +02: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 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Any target libraries which libsqlite must be linked against
|
2011-06-17 17:57:07 +02:00
|
|
|
#
|
2012-06-30 18:22:05 +02:00
|
|
|
!IFNDEF TLIBS
|
2011-06-17 17:57:07 +02:00
|
|
|
TLIBS =
|
2012-06-30 18:22:05 +02:00
|
|
|
!ENDIF
|
2011-06-17 09:07:24 +02: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 17:57:07 +02:00
|
|
|
TCC = $(TCC) -DSQLITE_TEMP_STORE=1
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DSQLITE_TEMP_STORE=1
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Enable/disable loadable extensions, and other optional features
|
2011-06-17 17:57:07 +02:00
|
|
|
# based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*).
|
|
|
|
# The same set of OMIT and ENABLE flags should be passed to the
|
2011-06-17 09:07:24 +02:00
|
|
|
# LEMON parser generator and the mkkeywordhash tool as well.
|
|
|
|
|
2014-05-09 22:51:17 +02: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 09:07:24 +02:00
|
|
|
|
2015-01-21 01:48:46 +01: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-09 22:51:17 +02: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 02:25:15 +01: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 09:07:24 +02:00
|
|
|
|
2014-05-09 22:51:17 +02: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 09:07:24 +02:00
|
|
|
TCC = $(TCC) $(OPTS)
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) $(OPTS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2013-08-29 03:03:38 +02:00
|
|
|
# If compiling for debugging, add some defines.
|
2014-05-09 22:51:17 +02:00
|
|
|
#
|
2014-12-20 22:14:14 +01:00
|
|
|
!IF $(DEBUG)>1
|
2013-08-29 03:03:38 +02:00
|
|
|
TCC = $(TCC) -D_DEBUG
|
|
|
|
BCC = $(BCC) -D_DEBUG
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -D_DEBUG
|
2013-08-29 03:03:38 +02:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# If optimizations are enabled or disabled (either implicitly or
|
|
|
|
# explicitly), add the necessary flags.
|
2014-05-09 22:51:17 +02:00
|
|
|
#
|
2014-12-20 22:14:14 +01:00
|
|
|
!IF $(DEBUG)>1 || $(OPTIMIZATIONS)==0
|
2013-08-29 03:03:38 +02:00
|
|
|
TCC = $(TCC) -Od
|
|
|
|
BCC = $(BCC) -Od
|
|
|
|
!ELSEIF $(OPTIMIZATIONS)>=3
|
|
|
|
TCC = $(TCC) -Ox
|
|
|
|
BCC = $(BCC) -Ox
|
|
|
|
!ELSEIF $(OPTIMIZATIONS)==2
|
2011-08-26 07:40:31 +02:00
|
|
|
TCC = $(TCC) -O2
|
2012-04-18 12:29:21 +02:00
|
|
|
BCC = $(BCC) -O2
|
2013-08-29 03:03:38 +02:00
|
|
|
!ELSEIF $(OPTIMIZATIONS)==1
|
|
|
|
TCC = $(TCC) -O1
|
|
|
|
BCC = $(BCC) -O1
|
2011-08-26 07:40:31 +02:00
|
|
|
!ENDIF
|
|
|
|
|
2013-08-29 03:03:38 +02:00
|
|
|
# If symbols are enabled (or compiling for debugging), enable PDBs.
|
2014-05-09 22:51:17 +02:00
|
|
|
#
|
2014-12-20 22:14:14 +01:00
|
|
|
!IF $(DEBUG)>1 || $(SYMBOLS)!=0
|
2011-08-26 07:40:31 +02:00
|
|
|
TCC = $(TCC) -Zi
|
2012-04-18 12:29:21 +02:00
|
|
|
BCC = $(BCC) -Zi
|
2011-08-25 04:02:25 +02:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-10-02 07:23:16 +02:00
|
|
|
# If ICU support is enabled, add the compiler options for it.
|
2014-05-09 22:51:17 +02:00
|
|
|
#
|
2011-10-02 07:23:16 +02:00
|
|
|
!IF $(USE_ICU)!=0
|
|
|
|
TCC = $(TCC) -DSQLITE_ENABLE_ICU=1
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DSQLITE_ENABLE_ICU=1
|
2011-10-02 07:23:16 +02:00
|
|
|
TCC = $(TCC) -I$(TOP)\ext\icu
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -I$(TOP)\ext\icu
|
2011-10-02 07:23:16 +02:00
|
|
|
TCC = $(TCC) -I$(ICUINCDIR)
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -I$(ICUINCDIR)
|
2011-10-02 07:23:16 +02:00
|
|
|
!ENDIF
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-10-02 07:23:16 +02:00
|
|
|
|
2012-09-03 12:32:32 +02:00
|
|
|
# Command line prefixes for compiling code, compiling resources,
|
|
|
|
# linking, etc.
|
2014-05-09 22:51:17 +02:00
|
|
|
#
|
2011-06-17 09:07:24 +02:00
|
|
|
LTCOMPILE = $(TCC) -Fo$@
|
2012-09-03 12:32:32 +02:00
|
|
|
LTRCOMPILE = $(RCC) -r
|
2011-06-17 09:07:24 +02:00
|
|
|
LTLIB = lib.exe
|
2011-06-20 22:52:32 +02:00
|
|
|
LTLINK = $(TCC) -Fe$@
|
|
|
|
|
2015-01-21 01:48:46 +01:00
|
|
|
# If requested, link to the RPCRT4 library.
|
|
|
|
#
|
|
|
|
!IF $(USE_RPCRT4_LIB)!=0
|
|
|
|
LTLINK = $(LTLINK) rpcrt4.lib
|
|
|
|
!ENDIF
|
|
|
|
|
2011-06-20 22:52:32 +02: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 18:22:05 +02:00
|
|
|
!IFDEF PLATFORM
|
2015-03-21 03:22:37 +01:00
|
|
|
LTLINKOPTS = /NOLOGO /MACHINE:$(PLATFORM)
|
|
|
|
LTLIBOPTS = /NOLOGO /MACHINE:$(PLATFORM)
|
|
|
|
!ELSE
|
|
|
|
LTLINKOPTS = /NOLOGO
|
|
|
|
LTLIBOPTS = /NOLOGO
|
2011-06-20 22:52:32 +02:00
|
|
|
!ENDIF
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2012-04-17 23:00:12 +02: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 03:33:53 +02:00
|
|
|
!IF "$(VISUALSTUDIOVERSION)"=="12.0" || "$(VISUALSTUDIOVERSION)"=="14.0"
|
2014-05-05 22:24:34 +02:00
|
|
|
!IFNDEF STORELIBPATH
|
2013-07-10 21:39:02 +02:00
|
|
|
!IF "$(PLATFORM)"=="x86"
|
2014-05-09 22:51:17 +02:00
|
|
|
STORELIBPATH = $(CRTLIBPATH)\store
|
2013-07-10 21:39:02 +02:00
|
|
|
!ELSEIF "$(PLATFORM)"=="x64"
|
2014-05-09 22:51:17 +02:00
|
|
|
STORELIBPATH = $(CRTLIBPATH)\store\amd64
|
2013-07-10 23:33:25 +02:00
|
|
|
!ELSEIF "$(PLATFORM)"=="ARM"
|
2014-05-09 22:51:17 +02:00
|
|
|
STORELIBPATH = $(CRTLIBPATH)\store\arm
|
2013-07-10 23:33:25 +02:00
|
|
|
!ELSE
|
2014-05-09 22:51:17 +02:00
|
|
|
STORELIBPATH = $(CRTLIBPATH)\store
|
2013-07-10 21:39:02 +02:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2014-05-05 22:24:34 +02:00
|
|
|
STORELIBPATH = $(STORELIBPATH:\\=\)
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(STORELIBPATH)"
|
|
|
|
!ENDIF
|
2012-04-17 23:00:12 +02:00
|
|
|
!ENDIF
|
|
|
|
|
2014-05-10 01:31:55 +02: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
|
|
|
|
|
2015-04-22 03:33:53 +02:00
|
|
|
# When compiling for UAP, some extra linker options are also required.
|
|
|
|
#
|
2016-01-27 08:28:33 +01:00
|
|
|
!IF $(FOR_UAP)!=0 || $(FOR_WIN10)!=0
|
2015-04-22 03:33:53 +02:00
|
|
|
LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE /NODEFAULTLIB:kernel32.lib
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) mincore.lib
|
|
|
|
!IFDEF PSDKLIBPATH
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(PSDKLIBPATH)"
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2012-04-18 12:29:21 +02:00
|
|
|
# If either debugging or symbols are enabled, enable PDBs.
|
2014-05-09 22:51:17 +02:00
|
|
|
#
|
2014-12-20 22:14:14 +01:00
|
|
|
!IF $(DEBUG)>1 || $(SYMBOLS)!=0
|
2015-10-16 22:13:57 +02:00
|
|
|
LDFLAGS = /DEBUG $(LDOPTS)
|
|
|
|
!ELSE
|
|
|
|
LDFLAGS = $(LDOPTS)
|
2011-08-25 04:02:25 +02:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-10-02 07:23:16 +02:00
|
|
|
# Start with the Tcl related linker options.
|
2014-05-09 22:51:17 +02:00
|
|
|
#
|
2012-07-27 09:13:25 +02:00
|
|
|
!IF $(NO_TCL)==0
|
2011-10-02 07:23:16 +02:00
|
|
|
LTLIBPATHS = /LIBPATH:$(TCLLIBDIR)
|
|
|
|
LTLIBS = $(LIBTCL)
|
2012-07-27 09:13:25 +02:00
|
|
|
!ENDIF
|
2011-10-02 07:23:16 +02:00
|
|
|
|
|
|
|
# If ICU support is enabled, add the linker options for it.
|
2014-05-09 22:51:17 +02:00
|
|
|
#
|
2011-10-02 07:23:16 +02:00
|
|
|
!IF $(USE_ICU)!=0
|
|
|
|
LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ICULIBDIR)
|
|
|
|
LTLIBS = $(LTLIBS) $(LIBICU)
|
|
|
|
!ENDIF
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-10-02 07:23:16 +02:00
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
# You should not have to change anything below this line
|
|
|
|
###############################################################################
|
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
# Object files for the SQLite library (non-amalgamation).
|
|
|
|
#
|
2013-07-29 21:03:20 +02:00
|
|
|
LIBOBJS0 = vdbe.lo parse.lo alter.lo analyze.lo attach.lo auth.lo \
|
2011-06-17 09:07:24 +02:00
|
|
|
backup.lo bitvec.lo btmutex.lo btree.lo build.lo \
|
2015-05-04 20:31:09 +02:00
|
|
|
callback.lo complete.lo ctime.lo date.lo dbstat.lo delete.lo \
|
2011-06-17 09:07:24 +02:00
|
|
|
expr.lo fault.lo fkey.lo \
|
2012-05-28 22:22:16 +02:00
|
|
|
fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \
|
|
|
|
fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \
|
2013-04-22 19:07:56 +02:00
|
|
|
fts3_tokenize_vtab.lo fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \
|
2015-06-26 06:34:36 +02:00
|
|
|
fts5.lo \
|
2011-06-17 09:07:24 +02:00
|
|
|
func.lo global.lo hash.lo \
|
|
|
|
icu.lo insert.lo journal.lo legacy.lo loadext.lo \
|
|
|
|
main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \
|
|
|
|
memjournal.lo \
|
2012-06-21 17:09:20 +02:00
|
|
|
mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \
|
|
|
|
notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \
|
2013-07-29 21:03:20 +02:00
|
|
|
pager.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \
|
2016-01-14 14:22:24 +01:00
|
|
|
random.lo resolve.lo rowset.lo rtree.lo select.lo sqlite3rbu.lo status.lo \
|
2015-06-08 17:08:15 +02:00
|
|
|
table.lo threads.lo tokenize.lo treeview.lo trigger.lo \
|
2011-06-17 09:07:24 +02:00
|
|
|
update.lo util.lo vacuum.lo \
|
2013-07-29 21:03:20 +02:00
|
|
|
vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \
|
2015-06-08 16:23:15 +02:00
|
|
|
vdbetrace.lo wal.lo walker.lo where.lo wherecode.lo whereexpr.lo \
|
|
|
|
utf.lo vtab.lo
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Object files for the amalgamation.
|
|
|
|
#
|
|
|
|
LIBOBJS1 = sqlite3.lo
|
|
|
|
|
|
|
|
# Determine the real value of LIBOBJ based on the 'configure' script
|
|
|
|
#
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
!IF $(USE_AMALGAMATION)==0
|
|
|
|
LIBOBJ = $(LIBOBJS0)
|
|
|
|
!ELSE
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
LIBOBJ = $(LIBOBJS1)
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
!ENDIF
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2012-10-06 05:48:25 +02:00
|
|
|
# Determine if embedded resource compilation and usage are enabled.
|
|
|
|
#
|
|
|
|
!IF $(USE_RC)!=0
|
|
|
|
LIBRESOBJS = sqlite3res.lo
|
|
|
|
!ELSE
|
|
|
|
LIBRESOBJS =
|
|
|
|
!ENDIF
|
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
# All of the source code files.
|
|
|
|
#
|
2015-01-29 19:38:05 +01:00
|
|
|
SRC1 = \
|
2011-06-17 09:07:24 +02: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\btree.h \
|
|
|
|
$(TOP)\src\btreeInt.h \
|
|
|
|
$(TOP)\src\build.c \
|
|
|
|
$(TOP)\src\callback.c \
|
|
|
|
$(TOP)\src\complete.c \
|
|
|
|
$(TOP)\src\ctime.c \
|
|
|
|
$(TOP)\src\date.c \
|
2015-05-04 20:31:09 +02:00
|
|
|
$(TOP)\src\dbstat.c \
|
2011-06-17 09:07:24 +02: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\hash.h \
|
|
|
|
$(TOP)\src\hwtime.h \
|
|
|
|
$(TOP)\src\insert.c \
|
|
|
|
$(TOP)\src\journal.c \
|
|
|
|
$(TOP)\src\legacy.c \
|
|
|
|
$(TOP)\src\loadext.c \
|
|
|
|
$(TOP)\src\main.c \
|
|
|
|
$(TOP)\src\malloc.c \
|
|
|
|
$(TOP)\src\mem0.c \
|
|
|
|
$(TOP)\src\mem1.c \
|
|
|
|
$(TOP)\src\mem2.c \
|
|
|
|
$(TOP)\src\mem3.c \
|
|
|
|
$(TOP)\src\mem5.c \
|
|
|
|
$(TOP)\src\memjournal.c \
|
2015-01-12 19:02:52 +01:00
|
|
|
$(TOP)\src\msvc.h \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\mutex.c \
|
|
|
|
$(TOP)\src\mutex.h \
|
|
|
|
$(TOP)\src\mutex_noop.c \
|
|
|
|
$(TOP)\src\mutex_unix.c \
|
|
|
|
$(TOP)\src\mutex_w32.c \
|
|
|
|
$(TOP)\src\notify.c \
|
|
|
|
$(TOP)\src\os.c \
|
|
|
|
$(TOP)\src\os.h \
|
|
|
|
$(TOP)\src\os_common.h \
|
2013-11-26 02:00:31 +01:00
|
|
|
$(TOP)\src\os_setup.h \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\os_unix.c \
|
|
|
|
$(TOP)\src\os_win.c \
|
2015-01-29 19:38:05 +01:00
|
|
|
$(TOP)\src\os_win.h
|
|
|
|
SRC2 = \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\pager.c \
|
|
|
|
$(TOP)\src\pager.h \
|
|
|
|
$(TOP)\src\parse.y \
|
|
|
|
$(TOP)\src\pcache.c \
|
|
|
|
$(TOP)\src\pcache.h \
|
|
|
|
$(TOP)\src\pcache1.c \
|
|
|
|
$(TOP)\src\pragma.c \
|
2015-02-02 22:34:54 +01:00
|
|
|
$(TOP)\src\pragma.h \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(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\shell.c \
|
|
|
|
$(TOP)\src\sqlite.h.in \
|
|
|
|
$(TOP)\src\sqlite3ext.h \
|
|
|
|
$(TOP)\src\sqliteInt.h \
|
|
|
|
$(TOP)\src\sqliteLimit.h \
|
|
|
|
$(TOP)\src\table.c \
|
2012-07-21 21:40:42 +02:00
|
|
|
$(TOP)\src\threads.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\tclsqlite.c \
|
|
|
|
$(TOP)\src\tokenize.c \
|
2015-06-08 17:08:15 +02:00
|
|
|
$(TOP)\src\treeview.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\trigger.c \
|
|
|
|
$(TOP)\src\utf.c \
|
|
|
|
$(TOP)\src\update.c \
|
|
|
|
$(TOP)\src\util.c \
|
|
|
|
$(TOP)\src\vacuum.c \
|
|
|
|
$(TOP)\src\vdbe.c \
|
|
|
|
$(TOP)\src\vdbe.h \
|
|
|
|
$(TOP)\src\vdbeapi.c \
|
|
|
|
$(TOP)\src\vdbeaux.c \
|
|
|
|
$(TOP)\src\vdbeblob.c \
|
|
|
|
$(TOP)\src\vdbemem.c \
|
2011-08-17 04:19:54 +02:00
|
|
|
$(TOP)\src\vdbesort.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\vdbetrace.c \
|
|
|
|
$(TOP)\src\vdbeInt.h \
|
|
|
|
$(TOP)\src\vtab.c \
|
2015-03-02 23:06:43 +01:00
|
|
|
$(TOP)\src\vxworks.h \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\wal.c \
|
|
|
|
$(TOP)\src\wal.h \
|
|
|
|
$(TOP)\src\walker.c \
|
2013-11-12 19:37:25 +01:00
|
|
|
$(TOP)\src\where.c \
|
2015-06-06 22:12:09 +02:00
|
|
|
$(TOP)\src\wherecode.c \
|
2015-06-08 16:23:15 +02:00
|
|
|
$(TOP)\src\whereexpr.c \
|
2013-11-12 19:37:25 +01:00
|
|
|
$(TOP)\src\whereInt.h
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Source code for extensions
|
|
|
|
#
|
2015-01-29 19:38:05 +01:00
|
|
|
SRC3 = \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\ext\fts1\fts1.c \
|
|
|
|
$(TOP)\ext\fts1\fts1.h \
|
|
|
|
$(TOP)\ext\fts1\fts1_hash.c \
|
|
|
|
$(TOP)\ext\fts1\fts1_hash.h \
|
|
|
|
$(TOP)\ext\fts1\fts1_porter.c \
|
|
|
|
$(TOP)\ext\fts1\fts1_tokenizer.h \
|
2015-01-29 19:38:05 +01:00
|
|
|
$(TOP)\ext\fts1\fts1_tokenizer1.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\ext\fts2\fts2.c \
|
|
|
|
$(TOP)\ext\fts2\fts2.h \
|
|
|
|
$(TOP)\ext\fts2\fts2_hash.c \
|
|
|
|
$(TOP)\ext\fts2\fts2_hash.h \
|
|
|
|
$(TOP)\ext\fts2\fts2_icu.c \
|
|
|
|
$(TOP)\ext\fts2\fts2_porter.c \
|
|
|
|
$(TOP)\ext\fts2\fts2_tokenizer.h \
|
|
|
|
$(TOP)\ext\fts2\fts2_tokenizer.c \
|
|
|
|
$(TOP)\ext\fts2\fts2_tokenizer1.c
|
2015-01-29 19:38:05 +01:00
|
|
|
SRC4 = \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\ext\fts3\fts3.c \
|
|
|
|
$(TOP)\ext\fts3\fts3.h \
|
|
|
|
$(TOP)\ext\fts3\fts3Int.h \
|
|
|
|
$(TOP)\ext\fts3\fts3_aux.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_expr.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_hash.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_hash.h \
|
|
|
|
$(TOP)\ext\fts3\fts3_icu.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_porter.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_snippet.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_tokenizer.h \
|
|
|
|
$(TOP)\ext\fts3\fts3_tokenizer.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_tokenizer1.c \
|
2013-04-22 19:07:56 +02:00
|
|
|
$(TOP)\ext\fts3\fts3_tokenize_vtab.c \
|
2012-05-28 22:22:16 +02:00
|
|
|
$(TOP)\ext\fts3\fts3_unicode.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_unicode2.c \
|
2015-01-29 19:38:05 +01:00
|
|
|
$(TOP)\ext\fts3\fts3_write.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\ext\icu\sqliteicu.h \
|
2015-01-29 19:38:05 +01:00
|
|
|
$(TOP)\ext\icu\icu.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\ext\rtree\rtree.h \
|
2015-05-20 00:56:45 +02:00
|
|
|
$(TOP)\ext\rtree\rtree.c \
|
2015-07-23 22:44:49 +02:00
|
|
|
$(TOP)\ext\rbu\sqlite3rbu.h \
|
2015-10-08 21:29:18 +02:00
|
|
|
$(TOP)\ext\rbu\sqlite3rbu.c \
|
|
|
|
$(TOP)\ext\misc\json1.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Generated source code files
|
|
|
|
#
|
2015-01-29 19:38:05 +01:00
|
|
|
SRC5 = \
|
2011-06-17 09:07:24 +02:00
|
|
|
keywordhash.h \
|
|
|
|
opcodes.c \
|
|
|
|
opcodes.h \
|
|
|
|
parse.c \
|
|
|
|
parse.h \
|
2016-01-22 04:54:36 +01:00
|
|
|
$(SQLITE3H)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-01-29 19:38:05 +01:00
|
|
|
# All source code files.
|
|
|
|
#
|
|
|
|
SRC = $(SRC1) $(SRC2) $(SRC3) $(SRC4) $(SRC5)
|
|
|
|
|
2011-06-17 09:07:24 +02: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\test7.c \
|
|
|
|
$(TOP)\src\test8.c \
|
|
|
|
$(TOP)\src\test9.c \
|
|
|
|
$(TOP)\src\test_autoext.c \
|
|
|
|
$(TOP)\src\test_async.c \
|
|
|
|
$(TOP)\src\test_backup.c \
|
2014-12-05 01:17:39 +01:00
|
|
|
$(TOP)\src\test_blob.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\test_btree.c \
|
|
|
|
$(TOP)\src\test_config.c \
|
|
|
|
$(TOP)\src\test_demovfs.c \
|
|
|
|
$(TOP)\src\test_devsym.c \
|
2013-01-17 04:18:14 +01:00
|
|
|
$(TOP)\src\test_fs.c \
|
2011-06-17 09:07:24 +02: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 \
|
|
|
|
$(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_server.c \
|
|
|
|
$(TOP)\src\test_superlock.c \
|
|
|
|
$(TOP)\src\test_syscall.c \
|
|
|
|
$(TOP)\src\test_tclvar.c \
|
|
|
|
$(TOP)\src\test_thread.c \
|
|
|
|
$(TOP)\src\test_vfs.c \
|
2015-12-01 00:29:07 +01:00
|
|
|
$(TOP)\src\test_windirent.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\test_wsd.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_term.c \
|
2015-05-20 00:56:45 +02:00
|
|
|
$(TOP)\ext\fts3\fts3_test.c \
|
2015-07-23 22:44:49 +02:00
|
|
|
$(TOP)\ext\rbu\test_rbu.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2013-04-25 16:31:46 +02:00
|
|
|
# Statically linked extensions
|
|
|
|
#
|
2013-04-25 16:36:28 +02:00
|
|
|
TESTEXT = \
|
2013-04-25 18:42:55 +02:00
|
|
|
$(TOP)\ext\misc\amatch.c \
|
|
|
|
$(TOP)\ext\misc\closure.c \
|
2014-11-10 17:49:56 +01:00
|
|
|
$(TOP)\ext\misc\eval.c \
|
2014-06-16 14:44:32 +02:00
|
|
|
$(TOP)\ext\misc\fileio.c \
|
2013-04-25 16:31:46 +02:00
|
|
|
$(TOP)\ext\misc\fuzzer.c \
|
2015-06-26 06:34:36 +02:00
|
|
|
$(TOP)\ext\fts5\fts5_tcl.c \
|
2015-08-04 22:29:00 +02:00
|
|
|
$(TOP)\ext\fts5\fts5_test_mi.c \
|
2016-01-14 21:05:59 +01:00
|
|
|
$(TOP)\ext\fts5\fts5_test_tok.c \
|
2013-04-25 18:42:55 +02:00
|
|
|
$(TOP)\ext\misc\ieee754.c \
|
2013-04-25 21:31:33 +02:00
|
|
|
$(TOP)\ext\misc\nextchar.c \
|
2013-05-28 22:25:54 +02:00
|
|
|
$(TOP)\ext\misc\percentile.c \
|
2013-04-25 16:31:46 +02:00
|
|
|
$(TOP)\ext\misc\regexp.c \
|
2015-08-19 15:54:20 +02:00
|
|
|
$(TOP)\ext\misc\series.c \
|
2013-04-25 16:59:01 +02:00
|
|
|
$(TOP)\ext\misc\spellfix.c \
|
2013-10-14 23:14:42 +02:00
|
|
|
$(TOP)\ext\misc\totype.c \
|
2013-04-25 16:31:46 +02:00
|
|
|
$(TOP)\ext\misc\wholenumber.c
|
|
|
|
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
# Source code to the library files needed by the test fixture
|
|
|
|
#
|
|
|
|
TESTSRC2 = \
|
|
|
|
$(TOP)\src\attach.c \
|
|
|
|
$(TOP)\src\backup.c \
|
|
|
|
$(TOP)\src\bitvec.c \
|
|
|
|
$(TOP)\src\btree.c \
|
|
|
|
$(TOP)\src\build.c \
|
|
|
|
$(TOP)\src\ctime.c \
|
|
|
|
$(TOP)\src\date.c \
|
2015-05-04 20:31:09 +02:00
|
|
|
$(TOP)\src\dbstat.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\expr.c \
|
|
|
|
$(TOP)\src\func.c \
|
|
|
|
$(TOP)\src\insert.c \
|
|
|
|
$(TOP)\src\wal.c \
|
2013-05-15 22:35:13 +02:00
|
|
|
$(TOP)\src\main.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\mem5.c \
|
|
|
|
$(TOP)\src\os.c \
|
|
|
|
$(TOP)\src\os_unix.c \
|
|
|
|
$(TOP)\src\os_win.c \
|
|
|
|
$(TOP)\src\pager.c \
|
|
|
|
$(TOP)\src\pragma.c \
|
|
|
|
$(TOP)\src\prepare.c \
|
|
|
|
$(TOP)\src\printf.c \
|
|
|
|
$(TOP)\src\random.c \
|
|
|
|
$(TOP)\src\pcache.c \
|
|
|
|
$(TOP)\src\pcache1.c \
|
|
|
|
$(TOP)\src\select.c \
|
|
|
|
$(TOP)\src\tokenize.c \
|
|
|
|
$(TOP)\src\utf.c \
|
|
|
|
$(TOP)\src\util.c \
|
|
|
|
$(TOP)\src\vdbeapi.c \
|
|
|
|
$(TOP)\src\vdbeaux.c \
|
|
|
|
$(TOP)\src\vdbe.c \
|
|
|
|
$(TOP)\src\vdbemem.c \
|
2011-08-17 04:19:54 +02:00
|
|
|
$(TOP)\src\vdbesort.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\vdbetrace.c \
|
|
|
|
$(TOP)\src\where.c \
|
2015-06-06 22:12:09 +02:00
|
|
|
$(TOP)\src\wherecode.c \
|
2015-06-08 16:23:15 +02:00
|
|
|
$(TOP)\src\whereexpr.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
parse.c \
|
|
|
|
$(TOP)\ext\fts3\fts3.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_aux.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_expr.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_tokenizer.c \
|
2013-04-22 19:07:56 +02:00
|
|
|
$(TOP)\ext\fts3\fts3_tokenize_vtab.c \
|
2012-05-28 22:22:16 +02:00
|
|
|
$(TOP)\ext\fts3\fts3_unicode.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_unicode2.c \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\ext\fts3\fts3_write.c \
|
|
|
|
$(TOP)\ext\async\sqlite3async.c
|
|
|
|
|
|
|
|
# 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 19:02:52 +01:00
|
|
|
$(TOP)\src\msvc.h \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\mutex.h \
|
|
|
|
opcodes.h \
|
|
|
|
$(TOP)\src\os.h \
|
|
|
|
$(TOP)\src\os_common.h \
|
2013-11-26 02:00:31 +01:00
|
|
|
$(TOP)\src\os_setup.h \
|
2013-11-25 10:36:07 +01:00
|
|
|
$(TOP)\src\os_win.h \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\pager.h \
|
|
|
|
$(TOP)\src\pcache.h \
|
2011-06-17 17:57:07 +02:00
|
|
|
parse.h \
|
2015-02-02 22:34:54 +01:00
|
|
|
$(TOP)\src\pragma.h \
|
2016-01-22 04:54:36 +01:00
|
|
|
$(SQLITE3H) \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\sqlite3ext.h \
|
2011-06-17 17:57:07 +02:00
|
|
|
$(TOP)\src\sqliteInt.h \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\src\sqliteLimit.h \
|
|
|
|
$(TOP)\src\vdbe.h \
|
2013-11-12 19:37:25 +01:00
|
|
|
$(TOP)\src\vdbeInt.h \
|
2015-03-02 23:06:43 +01:00
|
|
|
$(TOP)\src\vxworks.h \
|
2013-11-12 19:37:25 +01:00
|
|
|
$(TOP)\src\whereInt.h
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Header files used by extensions
|
|
|
|
#
|
|
|
|
EXTHDR = $(EXTHDR) \
|
|
|
|
$(TOP)\ext\fts1\fts1.h \
|
|
|
|
$(TOP)\ext\fts1\fts1_hash.h \
|
|
|
|
$(TOP)\ext\fts1\fts1_tokenizer.h
|
|
|
|
EXTHDR = $(EXTHDR) \
|
|
|
|
$(TOP)\ext\fts2\fts2.h \
|
|
|
|
$(TOP)\ext\fts2\fts2_hash.h \
|
|
|
|
$(TOP)\ext\fts2\fts2_tokenizer.h
|
|
|
|
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) \
|
|
|
|
$(TOP)\ext\rtree\rtree.h
|
|
|
|
EXTHDR = $(EXTHDR) \
|
|
|
|
$(TOP)\ext\icu\sqliteicu.h
|
|
|
|
EXTHDR = $(EXTHDR) \
|
|
|
|
$(TOP)\ext\rtree\sqlite3rtree.h
|
|
|
|
|
2015-05-11 18:27:33 +02:00
|
|
|
# executables needed for testing
|
2015-05-11 14:15:45 +02:00
|
|
|
#
|
|
|
|
TESTPROGS = \
|
|
|
|
testfixture.exe \
|
2016-01-22 02:25:15 +01:00
|
|
|
$(SQLITE3EXE) \
|
2015-05-11 14:15:45 +02:00
|
|
|
sqlite3_analyzer.exe \
|
|
|
|
sqldiff.exe
|
|
|
|
|
2015-05-26 20:15:08 +02:00
|
|
|
# Databases containing fuzzer test cases
|
|
|
|
#
|
|
|
|
FUZZDATA = \
|
|
|
|
$(TOP)\test\fuzzdata1.db \
|
|
|
|
$(TOP)\test\fuzzdata2.db \
|
2015-09-23 13:59:50 +02:00
|
|
|
$(TOP)\test\fuzzdata3.db \
|
|
|
|
$(TOP)\test\fuzzdata4.db
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2015-05-26 20:15:08 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
# Additional compiler options for the shell. These are only effective
|
|
|
|
# when the shell is not being dynamically linked.
|
2015-09-19 16:32:51 +02:00
|
|
|
#
|
2016-01-22 04:54:36 +01:00
|
|
|
!IF $(DYNAMIC_SHELL)==0 && $(FOR_WIN10)==0
|
2016-01-22 05:22:36 +01:00
|
|
|
SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_SHELL_JSON1 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5
|
2016-01-22 02:25:15 +01:00
|
|
|
!ENDIF
|
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2016-01-22 04:54:36 +01:00
|
|
|
# Extra compiler options for various test tools.
|
|
|
|
#
|
|
|
|
MPTESTER_COMPILE_OPTS = -DSQLITE_SHELL_JSON1 -DSQLITE_ENABLE_FTS5
|
2015-10-09 16:23:56 +02:00
|
|
|
FUZZERSHELL_COMPILE_OPTS = -DSQLITE_ENABLE_JSON1
|
2016-01-05 04:39:52 +01:00
|
|
|
FUZZCHECK_COMPILE_OPTS = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5
|
2015-09-19 16:32:51 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
# Standard options to testfixture.
|
2015-06-10 20:53:09 +02:00
|
|
|
#
|
|
|
|
TESTOPTS = --verbose=file --output=test-out.txt
|
2016-01-27 08:28:33 +01:00
|
|
|
|
|
|
|
# Extra targets for the "all" target that require Tcl.
|
|
|
|
#
|
|
|
|
!IF $(NO_TCL)==0
|
|
|
|
ALL_TCL_TARGETS = libtclsqlite3.lib
|
|
|
|
!ELSE
|
|
|
|
ALL_TCL_TARGETS =
|
|
|
|
!ENDIF
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2015-05-11 14:15:45 +02:00
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
# This is the default Makefile target. The objects listed here
|
|
|
|
# are what get build when you type just "make" with no arguments.
|
|
|
|
#
|
2016-01-27 08:28:33 +01:00
|
|
|
all: dll libsqlite3.lib shell $(ALL_TCL_TARGETS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2016-01-22 23:16:50 +01:00
|
|
|
# Dynamic link library section.
|
|
|
|
#
|
|
|
|
dll: $(SQLITE3DLL)
|
|
|
|
|
|
|
|
# Shell executable.
|
|
|
|
#
|
|
|
|
shell: $(SQLITE3EXE)
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
libsqlite3.lib: $(LIBOBJ)
|
2011-06-21 20:12:07 +02:00
|
|
|
$(LTLIB) $(LTLIBOPTS) /OUT:$@ $(LIBOBJ) $(TLIBS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
libtclsqlite3.lib: tclsqlite.lo libsqlite3.lib
|
2015-10-11 01:39:55 +02:00
|
|
|
$(LTLIB) $(LTLIBOPTS) $(LTLIBPATHS) /OUT:$@ tclsqlite.lo libsqlite3.lib $(LIBTCLSTUB) $(TLIBS)
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2016-01-22 23:16:50 +01:00
|
|
|
$(SQLITE3DLL): $(LIBOBJ) $(LIBRESOBJS) $(CORE_LINK_DEP)
|
|
|
|
$(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL $(CORE_LINK_OPTS) /OUT:$@ $(LIBOBJ) $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
|
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2016-01-22 23:16:50 +01:00
|
|
|
sqlite3.def: libsqlite3.lib
|
|
|
|
echo EXPORTS > sqlite3.def
|
|
|
|
dumpbin /all libsqlite3.lib \
|
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl include "^\s+1 _?(sqlite3_.*)$$" \1 \
|
|
|
|
| sort >> sqlite3.def
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2016-01-22 23:16:50 +01:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
$(SQLITE3EXE): $(TOP)\src\shell.c $(SHELL_CORE_DEP) $(LIBRESOBJS) $(SHELL_CORE_SRC) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(SHELL_COMPILE_OPTS) $(READLINE_FLAGS) $(TOP)\src\shell.c $(SHELL_CORE_SRC) \
|
2016-01-22 02:25:15 +01:00
|
|
|
/link $(SQLITE3EXEPDB) $(LDFLAGS) $(LTLINKOPTS) $(SHELL_LINK_OPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LIBREADLINE) $(LTLIBS) $(TLIBS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2016-01-22 04:54:36 +01:00
|
|
|
sqldiff.exe: $(TOP)\tool\sqldiff.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) $(TOP)\tool\sqldiff.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2015-04-09 15:34:29 +02:00
|
|
|
|
2016-02-07 01:08:08 +01:00
|
|
|
srcck1.exe: $(TOP)\tool\srcck1.c
|
|
|
|
$(BCC) $(NO_WARN) -Fe$@ $(TOP)\tool\srcck1.c
|
|
|
|
|
|
|
|
sourcetest: srcck1.exe sqlite3.c
|
|
|
|
srcck1.exe sqlite3.c
|
|
|
|
|
2016-01-22 04:54:36 +01: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 16:30:49 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
fuzzcheck.exe: $(TOP)\test\fuzzcheck.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) $(FUZZCHECK_COMPILE_OPTS) $(TOP)\test\fuzzcheck.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2015-05-26 00:29:26 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
mptester.exe: $(TOP)\mptest\mptest.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) $(MPTESTER_COMPILE_OPTS) $(TOP)\mptest\mptest.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-03-31 19:45:44 +02:00
|
|
|
MPTEST1 = mptester mptest.db $(TOP)\mptest\crash01.test --repeat 20
|
|
|
|
MPTEST2 = mptester mptest.db $(TOP)\mptest\multiwrite01.test --repeat 20
|
2015-03-31 18:42:16 +02:00
|
|
|
|
2015-03-31 15:46:13 +02:00
|
|
|
mptest: mptester.exe
|
2015-03-31 18:42:16 +02:00
|
|
|
del /Q mptest.db 2>NUL
|
2015-03-31 15:46:13 +02: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 09:07:24 +02:00
|
|
|
# This target creates a directory named "tsrc" and fills it with
|
|
|
|
# copies of all of the C source code and header files needed to
|
|
|
|
# build on the target system. Some of the C source code and header
|
|
|
|
# files are automatically generated. This target takes care of
|
|
|
|
# all that automatic generation.
|
|
|
|
#
|
2015-10-08 21:29:18 +02:00
|
|
|
.target_source: $(SRC) $(TOP)\tool\vdbe-compress.tcl fts5.c
|
2015-03-21 03:22:37 +01:00
|
|
|
-rmdir /Q/S tsrc 2>NUL
|
2011-06-17 09:07:24 +02:00
|
|
|
-mkdir tsrc
|
2015-01-29 19:38:05 +01:00
|
|
|
for %i in ($(SRC1)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC2)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC3)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC4)) do copy /Y %i tsrc
|
|
|
|
for %i in ($(SRC5)) do copy /Y %i tsrc
|
2015-10-08 21:29:18 +02:00
|
|
|
copy /Y fts5.c tsrc
|
|
|
|
copy /Y fts5.h tsrc
|
2015-03-21 03:22:37 +01:00
|
|
|
del /Q tsrc\sqlite.h.in tsrc\parse.y 2>NUL
|
2013-12-11 01:59:10 +01:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\vdbe-compress.tcl $(OPTS) < tsrc\vdbe.c > vdbe.new
|
2011-06-17 09:07:24 +02:00
|
|
|
move vdbe.new tsrc\vdbe.c
|
|
|
|
echo > .target_source
|
|
|
|
|
2015-09-22 01:53:42 +02:00
|
|
|
sqlite3.c: .target_source sqlite3ext.h $(TOP)\tool\mksqlite3c.tcl
|
2015-05-04 20:31:09 +02:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\mksqlite3c.tcl $(MKSQLITE3C_ARGS)
|
2013-03-19 17:12:40 +01:00
|
|
|
copy tsrc\shell.c .
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2012-12-06 05:33:13 +01:00
|
|
|
sqlite3-all.c: sqlite3.c $(TOP)\tool\split-sqlite3c.tcl
|
|
|
|
$(TCLSH_CMD) $(TOP)\tool\split-sqlite3c.tcl
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-07-22 13:23:49 +02:00
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
# Rule to build the amalgamation
|
|
|
|
#
|
2013-10-12 01:01:18 +02:00
|
|
|
sqlite3.lo: $(SQLITE3C)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(SQLITE3C)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
# Rules to build the LEMON compiler generator
|
|
|
|
#
|
2015-11-09 20:33:42 +01:00
|
|
|
lempar.c: $(TOP)\tool\lempar.c
|
|
|
|
copy $(TOP)\tool\lempar.c .
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
lemon.exe: $(TOP)\tool\lemon.c lempar.c
|
2015-01-12 19:02:52 +01:00
|
|
|
$(BCC) $(NO_WARN) -Daccess=_access \
|
2015-10-15 00:46:37 +02:00
|
|
|
-Fe$@ $(TOP)\tool\lemon.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS)
|
2011-06-17 09:07:24 +02: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 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c parse.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
opcodes.lo: opcodes.c
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c opcodes.c
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2012-09-03 12:32:32 +02:00
|
|
|
# Rule to build the Win32 resources object file.
|
|
|
|
#
|
2012-10-06 05:48:25 +02:00
|
|
|
!IF $(USE_RC)!=0
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<block1>>
|
2016-01-22 23:16:50 +01:00
|
|
|
$(LIBRESOBJS): $(TOP)\src\sqlite3.rc $(SQLITE3H)
|
2012-09-03 12:32:32 +02:00
|
|
|
echo #ifndef SQLITE_RESOURCE_VERSION > sqlite3rc.h
|
2012-09-27 23:03:53 +02:00
|
|
|
for /F %%V in ('type "$(TOP)\VERSION"') do ( \
|
2012-09-03 12:32:32 +02:00
|
|
|
echo #define SQLITE_RESOURCE_VERSION %%V \
|
2015-10-10 03:55:57 +02:00
|
|
|
| $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact . ^, >> sqlite3rc.h \
|
2012-09-03 12:32:32 +02:00
|
|
|
)
|
|
|
|
echo #endif >> sqlite3rc.h
|
2012-10-06 05:48:25 +02:00
|
|
|
$(LTRCOMPILE) -fo $(LIBRESOBJS) $(TOP)\src\sqlite3.rc
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</block1>>
|
2012-10-06 05:48:25 +02:00
|
|
|
!ENDIF
|
2012-09-03 12:32:32 +02:00
|
|
|
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2011-06-17 09:07:24 +02:00
|
|
|
# Rules to build individual *.lo files from files in the src directory.
|
|
|
|
#
|
|
|
|
alter.lo: $(TOP)\src\alter.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\alter.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
analyze.lo: $(TOP)\src\analyze.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\analyze.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
attach.lo: $(TOP)\src\attach.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\attach.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
auth.lo: $(TOP)\src\auth.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\auth.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
backup.lo: $(TOP)\src\backup.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\backup.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
bitvec.lo: $(TOP)\src\bitvec.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\bitvec.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
btmutex.lo: $(TOP)\src\btmutex.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btmutex.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
btree.lo: $(TOP)\src\btree.c $(HDR) $(TOP)\src\pager.h
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btree.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
build.lo: $(TOP)\src\build.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\build.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
callback.lo: $(TOP)\src\callback.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\callback.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
complete.lo: $(TOP)\src\complete.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\complete.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
ctime.lo: $(TOP)\src\ctime.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\ctime.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
date.lo: $(TOP)\src\date.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\date.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-05-04 20:31:09 +02:00
|
|
|
dbstat.lo: $(TOP)\src\date.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\dbstat.c
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
delete.lo: $(TOP)\src\delete.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\delete.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
expr.lo: $(TOP)\src\expr.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\expr.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fault.lo: $(TOP)\src\fault.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fault.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fkey.lo: $(TOP)\src\fkey.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fkey.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
func.lo: $(TOP)\src\func.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\func.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
global.lo: $(TOP)\src\global.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\global.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
hash.lo: $(TOP)\src\hash.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\hash.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
insert.lo: $(TOP)\src\insert.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\insert.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
journal.lo: $(TOP)\src\journal.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\journal.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
legacy.lo: $(TOP)\src\legacy.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\legacy.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
loadext.lo: $(TOP)\src\loadext.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\loadext.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
main.lo: $(TOP)\src\main.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\main.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
malloc.lo: $(TOP)\src\malloc.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\malloc.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mem0.lo: $(TOP)\src\mem0.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem0.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mem1.lo: $(TOP)\src\mem1.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem1.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mem2.lo: $(TOP)\src\mem2.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem2.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mem3.lo: $(TOP)\src\mem3.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem3.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mem5.lo: $(TOP)\src\mem5.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem5.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
memjournal.lo: $(TOP)\src\memjournal.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\memjournal.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mutex.lo: $(TOP)\src\mutex.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mutex_noop.lo: $(TOP)\src\mutex_noop.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_noop.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mutex_unix.lo: $(TOP)\src\mutex_unix.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_unix.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mutex_w32.lo: $(TOP)\src\mutex_w32.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_w32.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
notify.lo: $(TOP)\src\notify.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\notify.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
pager.lo: $(TOP)\src\pager.c $(HDR) $(TOP)\src\pager.h
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pager.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
pcache.lo: $(TOP)\src\pcache.c $(HDR) $(TOP)\src\pcache.h
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
pcache1.lo: $(TOP)\src\pcache1.c $(HDR) $(TOP)\src\pcache.h
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache1.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
os.lo: $(TOP)\src\os.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
os_unix.lo: $(TOP)\src\os_unix.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_unix.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
os_win.lo: $(TOP)\src\os_win.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_win.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
pragma.lo: $(TOP)\src\pragma.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pragma.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
prepare.lo: $(TOP)\src\prepare.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\prepare.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
printf.lo: $(TOP)\src\printf.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\printf.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
random.lo: $(TOP)\src\random.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\random.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
resolve.lo: $(TOP)\src\resolve.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\resolve.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
rowset.lo: $(TOP)\src\rowset.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\rowset.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
select.lo: $(TOP)\src\select.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\select.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
status.lo: $(TOP)\src\status.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\status.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
table.lo: $(TOP)\src\table.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\table.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2012-07-21 21:40:42 +02:00
|
|
|
threads.lo: $(TOP)\src\threads.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\threads.c
|
2012-07-21 21:40:42 +02:00
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
tokenize.lo: $(TOP)\src\tokenize.c keywordhash.h $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\tokenize.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-06-08 17:08:15 +02:00
|
|
|
treeview.lo: $(TOP)\src\treeview.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\treeview.c
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
trigger.lo: $(TOP)\src\trigger.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\trigger.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
update.lo: $(TOP)\src\update.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\update.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
utf.lo: $(TOP)\src\utf.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\utf.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
util.lo: $(TOP)\src\util.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\util.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vacuum.lo: $(TOP)\src\vacuum.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vacuum.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vdbe.lo: $(TOP)\src\vdbe.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbe.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vdbeapi.lo: $(TOP)\src\vdbeapi.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeapi.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vdbeaux.lo: $(TOP)\src\vdbeaux.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeaux.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vdbeblob.lo: $(TOP)\src\vdbeblob.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeblob.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vdbemem.lo: $(TOP)\src\vdbemem.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbemem.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2011-08-17 04:19:54 +02:00
|
|
|
vdbesort.lo: $(TOP)\src\vdbesort.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbesort.c
|
2011-08-17 04:19:54 +02:00
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
vdbetrace.lo: $(TOP)\src\vdbetrace.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbetrace.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vtab.lo: $(TOP)\src\vtab.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vtab.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
wal.lo: $(TOP)\src\wal.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\wal.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
walker.lo: $(TOP)\src\walker.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\walker.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
where.lo: $(TOP)\src\where.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\where.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-06-06 22:12:09 +02:00
|
|
|
wherecode.lo: $(TOP)\src\wherecode.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\wherecode.c
|
|
|
|
|
2015-06-08 16:23:15 +02:00
|
|
|
whereexpr.lo: $(TOP)\src\whereexpr.c $(HDR)
|
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\whereexpr.c
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
tclsqlite.lo: $(TOP)\src\tclsqlite.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(NO_WARN) -DUSE_TCL_STUBS=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
tclsqlite-shell.lo: $(TOP)\src\tclsqlite.c $(HDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(NO_WARN) -DTCLSH=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
tclsqlite3.exe: tclsqlite-shell.lo $(SQLITE3C) $(SQLITE3H) $(LIBRESOBJS)
|
2015-10-14 22:01:12 +02:00
|
|
|
$(LTLINK) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /OUT:$@ tclsqlite-shell.lo $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Rules to build opcodes.c and opcodes.h
|
|
|
|
#
|
2015-10-07 14:11:36 +02:00
|
|
|
opcodes.c: opcodes.h $(TOP)\tool\mkopcodec.tcl
|
|
|
|
$(TCLSH_CMD) $(TOP)\tool\mkopcodec.tcl opcodes.h > opcodes.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-10-07 04:52:09 +02:00
|
|
|
opcodes.h: parse.h $(TOP)\src\vdbe.c $(TOP)\tool\mkopcodeh.tcl
|
2015-10-10 03:55:57 +02:00
|
|
|
type parse.h $(TOP)\src\vdbe.c | $(TCLSH_CMD) $(TOP)\tool\mkopcodeh.tcl > opcodes.h
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Rules to build parse.c and parse.h - the outputs of lemon.
|
|
|
|
#
|
|
|
|
parse.h: parse.c
|
|
|
|
|
2015-10-07 14:21:14 +02:00
|
|
|
parse.c: $(TOP)\src\parse.y lemon.exe $(TOP)\tool\addopcodes.tcl
|
2015-03-21 03:22:37 +01:00
|
|
|
del /Q parse.y parse.h parse.h.temp 2>NUL
|
2011-06-17 09:07:24 +02:00
|
|
|
copy $(TOP)\src\parse.y .
|
2016-01-22 02:25:15 +01:00
|
|
|
.\lemon.exe $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) parse.y
|
2011-06-17 09:07:24 +02:00
|
|
|
move parse.h parse.h.temp
|
2015-10-07 14:21:14 +02:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\addopcodes.tcl parse.h.temp > parse.h
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
$(SQLITE3H): $(TOP)\src\sqlite.h.in $(TOP)\manifest.uuid $(TOP)\VERSION
|
|
|
|
$(TCLSH_CMD) $(TOP)\tool\mksqlite3h.tcl $(TOP:\=/) > $(SQLITE3H)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-09-22 01:49:35 +02:00
|
|
|
sqlite3ext.h: .target_source
|
|
|
|
copy tsrc\sqlite3ext.h .
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
mkkeywordhash.exe: $(TOP)\tool\mkkeywordhash.c
|
2016-01-22 02:25:15 +01:00
|
|
|
$(BCC) $(NO_WARN) -Fe$@ $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) \
|
2015-10-15 00:46:37 +02:00
|
|
|
$(TOP)\tool\mkkeywordhash.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
keywordhash.h: $(TOP)\tool\mkkeywordhash.c mkkeywordhash.exe
|
2011-06-25 03:14:36 +02:00
|
|
|
.\mkkeywordhash.exe > keywordhash.h
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Rules to build the extension objects.
|
|
|
|
#
|
|
|
|
icu.lo: $(TOP)\ext\icu\icu.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\icu\icu.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts2.lo: $(TOP)\ext\fts2\fts2.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts2_hash.lo: $(TOP)\ext\fts2\fts2_hash.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_hash.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts2_icu.lo: $(TOP)\ext\fts2\fts2_icu.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_icu.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts2_porter.lo: $(TOP)\ext\fts2\fts2_porter.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_porter.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts2_tokenizer.lo: $(TOP)\ext\fts2\fts2_tokenizer.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts2_tokenizer1.lo: $(TOP)\ext\fts2\fts2_tokenizer1.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer1.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts3.lo: $(TOP)\ext\fts3\fts3.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts3_aux.lo: $(TOP)\ext\fts3\fts3_aux.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_aux.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts3_expr.lo: $(TOP)\ext\fts3\fts3_expr.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_expr.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts3_hash.lo: $(TOP)\ext\fts3\fts3_hash.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_hash.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts3_icu.lo: $(TOP)\ext\fts3\fts3_icu.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_icu.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts3_snippet.lo: $(TOP)\ext\fts3\fts3_snippet.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_snippet.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts3_porter.lo: $(TOP)\ext\fts3\fts3_porter.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_porter.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts3_tokenizer.lo: $(TOP)\ext\fts3\fts3_tokenizer.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fts3_tokenizer1.lo: $(TOP)\ext\fts3\fts3_tokenizer1.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer1.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2013-04-22 19:07:56 +02:00
|
|
|
fts3_tokenize_vtab.lo: $(TOP)\ext\fts3\fts3_tokenize_vtab.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenize_vtab.c
|
2013-04-22 19:07:56 +02:00
|
|
|
|
2012-05-28 22:22:16 +02:00
|
|
|
fts3_unicode.lo: $(TOP)\ext\fts3\fts3_unicode.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode.c
|
2012-05-28 22:22:16 +02:00
|
|
|
|
|
|
|
fts3_unicode2.lo: $(TOP)\ext\fts3\fts3_unicode2.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode2.c
|
2012-05-28 22:22:16 +02:00
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
fts3_write.lo: $(TOP)\ext\fts3\fts3_write.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_write.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
rtree.lo: $(TOP)\ext\rtree\rtree.c $(HDR) $(EXTHDR)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\rtree\rtree.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-06-26 06:34:36 +02: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
|
|
|
|
|
|
|
|
fts5parse.c: $(TOP)\ext\fts5\fts5parse.y lemon.exe
|
|
|
|
copy $(TOP)\ext\fts5\fts5parse.y .
|
|
|
|
del /Q fts5parse.h 2>NUL
|
2016-01-22 02:25:15 +01:00
|
|
|
.\lemon.exe $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) fts5parse.y
|
2015-06-26 06:34:36 +02:00
|
|
|
|
|
|
|
fts5parse.h: fts5parse.c
|
|
|
|
|
|
|
|
fts5.c: $(FTS5_SRC)
|
|
|
|
$(TCLSH_CMD) $(TOP)\ext\fts5\tool\mkfts5c.tcl
|
2015-07-02 22:12:34 +02:00
|
|
|
copy $(TOP)\ext\fts5\fts5.h .
|
2015-06-26 06:34:36 +02:00
|
|
|
|
|
|
|
fts5.lo: fts5.c $(HDR) $(EXTHDR)
|
2015-06-26 22:45:43 +02:00
|
|
|
$(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c fts5.c
|
|
|
|
|
|
|
|
fts5_ext.lo: fts5.c $(HDR) $(EXTHDR)
|
2015-07-02 18:50:43 +02:00
|
|
|
$(LTCOMPILE) $(NO_WARN) -c fts5.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-06-26 22:45:43 +02:00
|
|
|
fts5.dll: fts5_ext.lo
|
|
|
|
$(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /OUT:$@ fts5_ext.lo
|
2015-06-26 18:17:36 +02:00
|
|
|
|
2016-01-14 19:01:16 +01:00
|
|
|
sqlite3rbu.lo: $(TOP)\ext\rbu\sqlite3rbu.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\rbu\sqlite3rbu.c
|
2016-01-14 14:22:24 +01:00
|
|
|
|
2011-06-17 09:07:24 +02: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).
|
|
|
|
#
|
|
|
|
TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1
|
2015-01-12 20:49:46 +01:00
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERVER=1 -DSQLITE_PRIVATE=""
|
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_CORE $(NO_WARN)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-03-21 03:22:37 +01:00
|
|
|
TESTFIXTURE_SRC0 = $(TESTEXT) $(TESTSRC2) $(SHELL_CORE_DEP)
|
2013-10-12 01:01:18 +02:00
|
|
|
TESTFIXTURE_SRC1 = $(TESTEXT) $(SQLITE3C)
|
2011-06-17 09:07:24 +02: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-01-22 04:54:36 +01:00
|
|
|
testfixture.exe: $(TESTFIXTURE_SRC) $(SQLITE3H) $(LIBRESOBJS) $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTLINK) -DSQLITE_NO_SYNC=1 $(TESTFIXTURE_FLAGS) \
|
2011-06-17 09:07:24 +02:00
|
|
|
-DBUILD_sqlite -I$(TCLINCDIR) \
|
2011-06-20 22:52:32 +02:00
|
|
|
$(TESTFIXTURE_SRC) \
|
2015-10-14 22:01:12 +02:00
|
|
|
/link $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2014-02-24 22:20:25 +01:00
|
|
|
extensiontest: testfixture.exe testloadext.dll
|
2015-10-15 01:04:08 +02:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 20:53:09 +02:00
|
|
|
.\testfixture.exe $(TOP)\test\loadext.test $(TESTOPTS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-05-11 14:15:45 +02:00
|
|
|
fulltest: $(TESTPROGS) fuzztest
|
2015-10-15 01:04:08 +02:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 20:53:09 +02:00
|
|
|
.\testfixture.exe $(TOP)\test\all.test $(TESTOPTS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-05-26 20:15:08 +02:00
|
|
|
soaktest: $(TESTPROGS)
|
2015-10-15 01:04:08 +02:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 20:53:09 +02:00
|
|
|
.\testfixture.exe $(TOP)\test\all.test -soak=1 $(TESTOPTS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-05-11 14:15:45 +02:00
|
|
|
fulltestonly: $(TESTPROGS) fuzztest
|
2015-10-15 01:04:08 +02:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2012-09-13 03:51:02 +02:00
|
|
|
.\testfixture.exe $(TOP)\test\full.test
|
|
|
|
|
2016-01-22 02:25:15 +01:00
|
|
|
queryplantest: testfixture.exe shell
|
2015-10-15 01:04:08 +02:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 20:53:09 +02:00
|
|
|
.\testfixture.exe $(TOP)\test\permutations.test queryplanner $(TESTOPTS)
|
2013-07-20 02:34:31 +02:00
|
|
|
|
2015-05-26 20:15:08 +02:00
|
|
|
fuzztest: fuzzcheck.exe
|
2015-07-24 19:26:13 +02:00
|
|
|
.\fuzzcheck.exe $(FUZZDATA)
|
|
|
|
|
|
|
|
fastfuzztest: fuzzcheck.exe
|
2015-07-24 17:49:23 +02:00
|
|
|
.\fuzzcheck.exe --limit-mem 100M $(FUZZDATA)
|
2015-04-25 15:39:29 +02:00
|
|
|
|
2015-06-10 20:53:09 +02:00
|
|
|
# Minimal testing that runs in less than 3 minutes (on a fast machine)
|
|
|
|
#
|
2016-02-07 01:08:08 +01:00
|
|
|
quicktest: testfixture.exe sourcetest
|
2015-10-15 01:04:08 +02:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 20:53:09 +02: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.
|
|
|
|
#
|
2016-02-07 01:08:08 +01:00
|
|
|
test: $(TESTPROGS) sourcetest fastfuzztest
|
2015-10-15 01:04:08 +02:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 20:53:09 +02:00
|
|
|
.\testfixture.exe $(TOP)\test\veryquick.test $(TESTOPTS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2015-05-26 20:15:08 +02:00
|
|
|
smoketest: $(TESTPROGS)
|
2015-10-15 01:04:08 +02:00
|
|
|
@set PATH=$(LIBTCLPATH);$(PATH)
|
2015-06-10 20:53:09 +02:00
|
|
|
.\testfixture.exe $(TOP)\test\main.test $(TESTOPTS)
|
2015-04-04 02:02:07 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
sqlite3_analyzer.c: $(SQLITE3C) $(SQLITE3H) $(TOP)\src\tclsqlite.c $(TOP)\tool\spaceanal.tcl
|
2015-05-11 18:27:33 +02:00
|
|
|
echo #define TCLSH 2 > $@
|
|
|
|
echo #define SQLITE_ENABLE_DBSTAT_VTAB 1 >> $@
|
|
|
|
copy $@ + $(SQLITE3C) + $(TOP)\src\tclsqlite.c $@
|
2011-09-22 02:06:44 +02:00
|
|
|
echo static const char *tclsh_main_loop(void){ >> $@
|
|
|
|
echo static const char *zMainloop = >> $@
|
2015-10-07 14:36:42 +02:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\tostr.tcl $(TOP)\tool\spaceanal.tcl >> $@
|
2011-09-22 02:06:44 +02:00
|
|
|
echo ; return zMainloop; } >> $@
|
|
|
|
|
2012-10-06 05:48:25 +02:00
|
|
|
sqlite3_analyzer.exe: sqlite3_analyzer.c $(LIBRESOBJS)
|
2015-05-11 18:27:33 +02:00
|
|
|
$(LTLINK) $(NO_WARN) -DBUILD_sqlite -I$(TCLINCDIR) sqlite3_analyzer.c \
|
2015-10-14 22:01:12 +02:00
|
|
|
/link $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2014-02-24 22:20:25 +01:00
|
|
|
testloadext.lo: $(TOP)\src\test_loadext.c
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTCOMPILE) $(NO_WARN) -c $(TOP)\src\test_loadext.c
|
2014-02-24 22:20:25 +01:00
|
|
|
|
|
|
|
testloadext.dll: testloadext.lo
|
|
|
|
$(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /OUT:$@ testloadext.lo
|
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
showdb.exe: $(TOP)\tool\showdb.c $(SQLITE3C) $(SQLITE3H)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \
|
2015-10-14 22:01:12 +02:00
|
|
|
$(TOP)\tool\showdb.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2013-11-07 19:37:31 +01:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
showstat4.exe: $(TOP)\tool\showstat4.c $(SQLITE3C) $(SQLITE3H)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \
|
2015-10-14 22:01:12 +02:00
|
|
|
$(TOP)\tool\showstat4.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-06-30 13:14:26 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
showjournal.exe: $(TOP)\tool\showjournal.c $(SQLITE3C) $(SQLITE3H)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \
|
2015-10-14 22:01:12 +02:00
|
|
|
$(TOP)\tool\showjournal.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-06-30 13:14:26 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
showwal.exe: $(TOP)\tool\showwal.c $(SQLITE3C) $(SQLITE3H)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \
|
2015-10-14 22:01:12 +02:00
|
|
|
$(TOP)\tool\showwal.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-06-30 13:14:26 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
fts3view.exe: $(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) $(SQLITE3H)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \
|
2015-10-14 22:01:12 +02:00
|
|
|
$(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-07-07 19:57:50 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
rollback-test.exe: $(TOP)\tool\rollback-test.c $(SQLITE3C) $(SQLITE3H)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \
|
2015-10-14 22:01:12 +02:00
|
|
|
$(TOP)\tool\rollback-test.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-06-30 13:14:26 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
LogEst.exe: $(TOP)\tool\logest.c $(SQLITE3H)
|
2015-10-14 22:01:12 +02:00
|
|
|
$(LTLINK) $(NO_WARN) -Fe$@ $(TOP)\tool\LogEst.c /link $(LDFLAGS) $(LTLINKOPTS)
|
2014-06-18 20:10:12 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
wordcount.exe: $(TOP)\test\wordcount.c $(SQLITE3C) $(SQLITE3H)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \
|
2015-10-14 22:01:12 +02:00
|
|
|
$(TOP)\test\wordcount.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2013-11-07 19:37:31 +01:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
speedtest1.exe: $(TOP)\test\speedtest1.c $(SQLITE3C) $(SQLITE3H)
|
2015-03-21 03:22:37 +01:00
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \
|
2015-10-14 22:01:12 +02:00
|
|
|
$(TOP)\test\speedtest1.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2016-01-22 04:54:36 +01:00
|
|
|
rbu.exe: $(TOP)\ext\rbu\rbu.c $(TOP)\ext\rbu\sqlite3rbu.c $(SQLITE3C) $(SQLITE3H)
|
|
|
|
$(LTLINK) $(NO_WARN) -DSQLITE_ENABLE_RBU -Fe$@ \
|
|
|
|
$(TOP)\ext\rbu\rbu.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|
2016-01-14 14:22:24 +01:00
|
|
|
|
2011-06-17 17:57:07 +02:00
|
|
|
clean:
|
2015-05-16 05:41:41 +02:00
|
|
|
del /Q *.exp *.lo *.ilk *.lib *.obj *.ncb *.pdb *.sdf *.suo 2>NUL
|
2016-01-23 01:07:51 +01:00
|
|
|
del /Q *.bsc *.cod *.da *.bb *.bbg *.vc gmon.out 2>NUL
|
2016-01-23 08:53:04 +01:00
|
|
|
# <<mark>>
|
2016-01-22 04:54:36 +01:00
|
|
|
del /Q $(SQLITE3C) $(SQLITE3H) opcodes.c opcodes.h 2>NUL
|
2015-02-25 02:06:08 +01:00
|
|
|
del /Q lemon.* lempar.c parse.* 2>NUL
|
|
|
|
del /Q mkkeywordhash.* keywordhash.h 2>NUL
|
|
|
|
del /Q notasharedlib.* 2>NUL
|
|
|
|
-rmdir /Q/S .deps 2>NUL
|
|
|
|
-rmdir /Q/S .libs 2>NUL
|
|
|
|
-rmdir /Q/S quota2a 2>NUL
|
|
|
|
-rmdir /Q/S quota2b 2>NUL
|
|
|
|
-rmdir /Q/S quota2c 2>NUL
|
|
|
|
-rmdir /Q/S tsrc 2>NUL
|
|
|
|
del /Q .target_source 2>NUL
|
2015-03-21 03:22:37 +01:00
|
|
|
del /Q tclsqlite3.exe 2>NUL
|
|
|
|
del /Q testloadext.dll 2>NUL
|
|
|
|
del /Q testfixture.exe test.db 2>NUL
|
2015-02-25 02:06:08 +01:00
|
|
|
del /Q LogEst.exe fts3view.exe rollback-test.exe showdb.exe 2>NUL
|
|
|
|
del /Q showjournal.exe showstat4.exe showwal.exe speedtest1.exe 2>NUL
|
2016-01-20 19:47:59 +01:00
|
|
|
del /Q mptester.exe wordcount.exe rbu.exe 2>NUL
|
2016-01-22 02:25:15 +01:00
|
|
|
del /Q $(SQLITE3EXE) $(SQLITE3DLL) sqlite3.def 2>NUL
|
2015-02-25 02:06:08 +01:00
|
|
|
del /Q sqlite3.c sqlite3-*.c 2>NUL
|
|
|
|
del /Q sqlite3rc.h 2>NUL
|
|
|
|
del /Q shell.c sqlite3ext.h 2>NUL
|
2015-03-21 03:22:37 +01:00
|
|
|
del /Q sqlite3_analyzer.exe sqlite3_analyzer.c 2>NUL
|
2015-02-25 02:06:08 +01:00
|
|
|
del /Q sqlite-*-output.vsix 2>NUL
|
2015-05-26 05:24:33 +02:00
|
|
|
del /Q fuzzershell.exe fuzzcheck.exe sqldiff.exe 2>NUL
|
2015-07-14 23:56:53 +02:00
|
|
|
del /Q fts5.* fts5parse.* 2>NUL
|
2016-01-23 08:53:04 +01:00
|
|
|
# <</mark>>
|