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
|
|
|
#
|
|
|
|
|
|
|
|
# The toplevel directory of the source tree. This is the directory
|
|
|
|
# that contains this "Makefile.msc".
|
|
|
|
#
|
|
|
|
TOP = .
|
|
|
|
|
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
|
2011-06-17 17:57:07 +02:00
|
|
|
|
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
|
|
|
|
SPLIT_AMALGAMATION = 1
|
|
|
|
!ENDIF
|
|
|
|
|
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
|
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
|
|
|
|
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-08-28 03:44:13 +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-10-06 05:48:25 +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
|
|
|
|
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
|
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
|
2012-08-22 02:39:34 +02:00
|
|
|
|
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.
|
|
|
|
# 1 == Disables NDEBUG and all optimizations and then enables PDBs.
|
|
|
|
# 2 == SQLITE_DEBUG: Enables various diagnostics messages and code.
|
|
|
|
# 3 == SQLITE_WIN32_MALLOC_VALIDATE: Validate the Win32 native heap per call.
|
|
|
|
# 4 == SQLITE_DEBUG_OS_TRACE: Enables output from the OSTRACE() macros.
|
|
|
|
# 5 == SQLITE_ENABLE_IOTRACE: Enables output from the IOTRACE() macros.
|
|
|
|
#
|
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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
NCC = "$(VCINSTALLDIR)\bin\cl.exe"
|
|
|
|
NCC = $(NCC:\\=\)
|
2012-07-27 10:21:45 +02:00
|
|
|
!ELSE
|
2012-06-30 18:22:05 +02:00
|
|
|
NCC = $(CC)
|
|
|
|
!ENDIF
|
|
|
|
|
2012-07-01 00:22:34 +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 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.
|
|
|
|
#
|
2012-06-30 18:22:05 +02:00
|
|
|
BCC = $(NCC) -W3
|
2011-06-17 09:07:24 +02:00
|
|
|
|
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)"
|
|
|
|
!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.)
|
|
|
|
#
|
2012-09-27 23:03:53 +02:00
|
|
|
TCC = $(CC) -W3 -DSQLITE_OS_WIN=1 -I$(TOP) -I$(TOP)\src -fp:precise
|
|
|
|
RCC = $(RC) -DSQLITE_OS_WIN=1 -I$(TOP) -I$(TOP)\src
|
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
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
!IF $(FOR_WINRT)!=0 || $(USE_CRT_DLL)!=0
|
|
|
|
!IF $(DEBUG)>0
|
|
|
|
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
|
|
|
|
!IF $(DEBUG)>0
|
|
|
|
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
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
!IF $(DEBUG)>1
|
|
|
|
TCC = $(TCC) -DSQLITE_DEBUG
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DSQLITE_DEBUG
|
2011-08-25 04:02:25 +02:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IF $(DEBUG)>3
|
|
|
|
TCC = $(TCC) -DSQLITE_DEBUG_OS_TRACE=1
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DSQLITE_DEBUG_OS_TRACE=1
|
2011-08-25 04:02:25 +02:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IF $(DEBUG)>4
|
|
|
|
TCC = $(TCC) -DSQLITE_ENABLE_IOTRACE
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) -DSQLITE_ENABLE_IOTRACE
|
2011-08-25 04:02:25 +02:00
|
|
|
!ENDIF
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2011-08-03 01:34:00 +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
|
|
|
|
2011-08-24 18:13:57 +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?
|
|
|
|
#
|
|
|
|
!IF $(DEBUG)>2
|
|
|
|
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
|
2012-08-22 02:39:34 +02:00
|
|
|
!ENDIF
|
2011-08-24 18:13:57 +02:00
|
|
|
|
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
|
|
|
|
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
|
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.
|
|
|
|
|
|
|
|
# BEGIN standard options
|
|
|
|
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
|
|
|
|
# END standard options
|
|
|
|
|
|
|
|
# BEGIN required Windows option
|
|
|
|
OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_MAX_TRIGGER_DEPTH=100
|
|
|
|
# END required Windows option
|
|
|
|
|
|
|
|
TCC = $(TCC) $(OPT_FEATURE_FLAGS)
|
2012-09-03 12:32:32 +02:00
|
|
|
RCC = $(RCC) $(OPT_FEATURE_FLAGS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Add in any optional parameters specified on the make commane line
|
|
|
|
# ie. make "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1".
|
|
|
|
TCC = $(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.
|
2011-08-25 06:09:12 +02:00
|
|
|
!IF $(DEBUG)>0
|
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.
|
|
|
|
!IF $(DEBUG)>0 || $(OPTIMIZATIONS)==0
|
|
|
|
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.
|
2011-08-26 07:40:31 +02:00
|
|
|
!IF $(DEBUG)>0 || $(SYMBOLS)!=0
|
|
|
|
TCC = $(TCC) -Zi
|
2012-04-18 12:29:21 +02:00
|
|
|
BCC = $(BCC) -Zi
|
2011-08-25 04:02:25 +02:00
|
|
|
!ENDIF
|
|
|
|
|
2011-10-02 07:23:16 +02:00
|
|
|
# If ICU support is enabled, add the compiler options for it.
|
|
|
|
!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
|
|
|
|
|
2012-09-03 12:32:32 +02:00
|
|
|
# Command line prefixes for compiling code, compiling resources,
|
|
|
|
# linking, etc.
|
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$@
|
|
|
|
|
|
|
|
# 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
|
2011-06-20 22:52:32 +02:00
|
|
|
LTLINKOPTS = /MACHINE:$(PLATFORM)
|
2011-06-21 20:12:07 +02:00
|
|
|
LTLIBOPTS = /MACHINE:$(PLATFORM)
|
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
|
2013-07-11 05:09:45 +02:00
|
|
|
!IF "$(VISUALSTUDIOVERSION)"=="12.0"
|
2013-07-10 21:39:02 +02:00
|
|
|
!IF "$(PLATFORM)"=="x86"
|
2013-07-10 23:33:25 +02:00
|
|
|
LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(VCINSTALLDIR)\lib\store"
|
2013-07-10 21:39:02 +02:00
|
|
|
!ELSEIF "$(PLATFORM)"=="x64"
|
2013-07-10 23:33:25 +02:00
|
|
|
LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(VCINSTALLDIR)\lib\store\amd64"
|
|
|
|
!ELSEIF "$(PLATFORM)"=="ARM"
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(VCINSTALLDIR)\lib\store\arm"
|
|
|
|
!ELSE
|
|
|
|
LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(VCINSTALLDIR)\lib\store"
|
2013-07-10 21:39:02 +02:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2012-04-17 23:00:12 +02:00
|
|
|
!ENDIF
|
|
|
|
|
2012-04-18 12:29:21 +02:00
|
|
|
# If either debugging or symbols are enabled, enable PDBs.
|
2011-08-26 07:40:31 +02:00
|
|
|
!IF $(DEBUG)>0 || $(SYMBOLS)!=0
|
2012-06-30 21:24:09 +02:00
|
|
|
LDFLAGS = /DEBUG
|
2011-08-25 04:02:25 +02:00
|
|
|
!ENDIF
|
|
|
|
|
2011-10-02 07:23:16 +02:00
|
|
|
# Start with the Tcl related linker options.
|
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.
|
|
|
|
!IF $(USE_ICU)!=0
|
|
|
|
LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ICULIBDIR)
|
|
|
|
LTLIBS = $(LTLIBS) $(LIBICU)
|
|
|
|
!ENDIF
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
# nawk compatible awk.
|
2013-08-29 03:03:38 +02:00
|
|
|
!IFNDEF NAWK
|
2011-06-25 03:14:36 +02:00
|
|
|
NAWK = gawk.exe
|
2013-08-29 03:03:38 +02:00
|
|
|
!ENDIF
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# You should not have to change anything below this line
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
# 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 \
|
|
|
|
callback.lo complete.lo ctime.lo date.lo delete.lo \
|
|
|
|
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 \
|
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 \
|
2011-06-17 09:07:24 +02:00
|
|
|
random.lo resolve.lo rowset.lo rtree.lo select.lo status.lo \
|
|
|
|
table.lo tokenize.lo trigger.lo \
|
|
|
|
update.lo util.lo vacuum.lo \
|
2013-07-29 21:03:20 +02:00
|
|
|
vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \
|
2011-08-17 04:19:54 +02:00
|
|
|
vdbetrace.lo wal.lo walker.lo where.lo utf.lo vtab.lo
|
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
|
|
|
|
#
|
|
|
|
!IF $(USE_AMALGAMATION)==0
|
|
|
|
LIBOBJ = $(LIBOBJS0)
|
|
|
|
!ELSE
|
|
|
|
LIBOBJ = $(LIBOBJS1)
|
|
|
|
!ENDIF
|
|
|
|
|
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
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
# All of the source code files.
|
|
|
|
#
|
|
|
|
SRC = \
|
|
|
|
$(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 \
|
|
|
|
$(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 \
|
|
|
|
$(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 \
|
|
|
|
$(TOP)\src\os_unix.c \
|
|
|
|
$(TOP)\src\os_win.c \
|
|
|
|
$(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 \
|
|
|
|
$(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 \
|
|
|
|
$(TOP)\src\tclsqlite.c \
|
|
|
|
$(TOP)\src\tokenize.c \
|
|
|
|
$(TOP)\src\trigger.c \
|
|
|
|
$(TOP)\src\utf.c \
|
|
|
|
$(TOP)\src\update.c \
|
|
|
|
$(TOP)\src\util.c \
|
|
|
|
$(TOP)\src\vacuum.c \
|
|
|
|
$(TOP)\src\vdbe.c \
|
|
|
|
$(TOP)\src\vdbe.h \
|
|
|
|
$(TOP)\src\vdbeapi.c \
|
|
|
|
$(TOP)\src\vdbeaux.c \
|
|
|
|
$(TOP)\src\vdbeblob.c \
|
|
|
|
$(TOP)\src\vdbemem.c \
|
2011-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 \
|
|
|
|
$(TOP)\src\wal.c \
|
|
|
|
$(TOP)\src\wal.h \
|
|
|
|
$(TOP)\src\walker.c \
|
|
|
|
$(TOP)\src\where.c
|
|
|
|
|
|
|
|
# Source code for extensions
|
|
|
|
#
|
|
|
|
SRC = $(SRC) \
|
|
|
|
$(TOP)\ext\fts1\fts1.c \
|
|
|
|
$(TOP)\ext\fts1\fts1.h \
|
|
|
|
$(TOP)\ext\fts1\fts1_hash.c \
|
|
|
|
$(TOP)\ext\fts1\fts1_hash.h \
|
|
|
|
$(TOP)\ext\fts1\fts1_porter.c \
|
|
|
|
$(TOP)\ext\fts1\fts1_tokenizer.h \
|
|
|
|
$(TOP)\ext\fts1\fts1_tokenizer1.c
|
|
|
|
SRC = $(SRC) \
|
|
|
|
$(TOP)\ext\fts2\fts2.c \
|
|
|
|
$(TOP)\ext\fts2\fts2.h \
|
|
|
|
$(TOP)\ext\fts2\fts2_hash.c \
|
|
|
|
$(TOP)\ext\fts2\fts2_hash.h \
|
|
|
|
$(TOP)\ext\fts2\fts2_icu.c \
|
|
|
|
$(TOP)\ext\fts2\fts2_porter.c \
|
|
|
|
$(TOP)\ext\fts2\fts2_tokenizer.h \
|
|
|
|
$(TOP)\ext\fts2\fts2_tokenizer.c \
|
|
|
|
$(TOP)\ext\fts2\fts2_tokenizer1.c
|
|
|
|
SRC = $(SRC) \
|
|
|
|
$(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 \
|
2011-06-17 09:07:24 +02:00
|
|
|
$(TOP)\ext\fts3\fts3_write.c
|
|
|
|
SRC = $(SRC) \
|
|
|
|
$(TOP)\ext\icu\sqliteicu.h \
|
|
|
|
$(TOP)\ext\icu\icu.c
|
|
|
|
SRC = $(SRC) \
|
|
|
|
$(TOP)\ext\rtree\rtree.h \
|
|
|
|
$(TOP)\ext\rtree\rtree.c
|
|
|
|
|
|
|
|
|
|
|
|
# Generated source code files
|
|
|
|
#
|
|
|
|
SRC = $(SRC) \
|
|
|
|
keywordhash.h \
|
|
|
|
opcodes.c \
|
|
|
|
opcodes.h \
|
|
|
|
parse.c \
|
|
|
|
parse.h \
|
|
|
|
sqlite3.h
|
|
|
|
|
|
|
|
# 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 \
|
|
|
|
$(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_stat.c \
|
|
|
|
$(TOP)\src\test_tclvar.c \
|
|
|
|
$(TOP)\src\test_thread.c \
|
|
|
|
$(TOP)\src\test_vfs.c \
|
|
|
|
$(TOP)\src\test_wsd.c \
|
|
|
|
$(TOP)\ext\fts3\fts3_term.c \
|
2011-06-17 17:57:07 +02:00
|
|
|
$(TOP)\ext\fts3\fts3_test.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 \
|
2013-04-25 16:31:46 +02:00
|
|
|
$(TOP)\ext\misc\fuzzer.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 \
|
2013-04-25 16:59:01 +02:00
|
|
|
$(TOP)\ext\misc\spellfix.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 \
|
|
|
|
$(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 \
|
|
|
|
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 \
|
|
|
|
$(TOP)\src\mutex.h \
|
|
|
|
opcodes.h \
|
|
|
|
$(TOP)\src\os.h \
|
|
|
|
$(TOP)\src\os_common.h \
|
|
|
|
$(TOP)\src\pager.h \
|
|
|
|
$(TOP)\src\pcache.h \
|
2011-06-17 17:57:07 +02:00
|
|
|
parse.h \
|
|
|
|
sqlite3.h \
|
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 \
|
|
|
|
$(TOP)\src\vdbeInt.h
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# This is the default Makefile target. The objects listed here
|
|
|
|
# are what get build when you type just "make" with no arguments.
|
|
|
|
#
|
2011-06-25 03:14:36 +02:00
|
|
|
all: dll libsqlite3.lib sqlite3.exe libtclsqlite3.lib
|
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
|
|
|
|
|
|
|
libtclsqlite3.lib: tclsqlite.lo libsqlite3.lib
|
2011-10-02 07:23:16 +02:00
|
|
|
$(LTLIB) $(LTLIBOPTS) $(LTLIBPATHS) /OUT:$@ tclsqlite.lo libsqlite3.lib $(LIBTCL:tcl=tclstub) $(TLIBS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2012-10-06 05:48:25 +02:00
|
|
|
sqlite3.exe: $(TOP)\src\shell.c libsqlite3.lib $(LIBRESOBJS) sqlite3.h
|
2011-06-17 09:07:24 +02:00
|
|
|
$(LTLINK) $(READLINE_FLAGS) \
|
2011-06-20 22:52:32 +02:00
|
|
|
$(TOP)\src\shell.c \
|
2012-10-06 05:48:25 +02:00
|
|
|
/link $(LTLINKOPTS) $(LTLIBPATHS) libsqlite3.lib $(LIBRESOBJS) $(LIBREADLINE) $(LTLIBS) $(TLIBS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2013-04-08 16:28:33 +02:00
|
|
|
mptester.exe: $(TOP)\mptest\mptest.c libsqlite3.lib $(LIBRESOBJS) sqlite3.h
|
|
|
|
$(LTLINK) $(TOP)\mptest\mptest.c \
|
|
|
|
/link $(LTLINKOPTS) $(LTLIBPATHS) libsqlite3.lib $(LIBRESOBJS) $(LIBREADLINE) $(LTLIBS) $(TLIBS)
|
|
|
|
|
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.
|
|
|
|
#
|
|
|
|
.target_source: $(SRC) $(TOP)\tool\vdbe-compress.tcl
|
|
|
|
-rmdir /S/Q tsrc
|
|
|
|
-mkdir tsrc
|
|
|
|
for %i in ($(SRC)) do copy /Y %i tsrc
|
|
|
|
del /Q tsrc\sqlite.h.in tsrc\parse.y
|
2011-06-25 03:14:36 +02:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\vdbe-compress.tcl < tsrc\vdbe.c > vdbe.new
|
2011-06-17 09:07:24 +02:00
|
|
|
move vdbe.new tsrc\vdbe.c
|
|
|
|
echo > .target_source
|
|
|
|
|
|
|
|
sqlite3.c: .target_source $(TOP)\tool\mksqlite3c.tcl
|
|
|
|
$(TCLSH_CMD) $(TOP)\tool\mksqlite3c.tcl
|
2013-03-19 17:12:40 +01:00
|
|
|
copy tsrc\shell.c .
|
|
|
|
copy tsrc\sqlite3ext.h .
|
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
|
2011-07-22 13:23:49 +02:00
|
|
|
|
2013-10-12 01:01:18 +02:00
|
|
|
# Set the source code file to be used by executables and libraries when
|
|
|
|
# they need the amalgamation.
|
|
|
|
#
|
|
|
|
!IF $(SPLIT_AMALGAMATION)!=0
|
|
|
|
SQLITE3C = sqlite3-all.c
|
|
|
|
!ELSE
|
|
|
|
SQLITE3C = sqlite3.c
|
|
|
|
!ENDIF
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
# Rule to build the amalgamation
|
|
|
|
#
|
2013-10-12 01:01:18 +02:00
|
|
|
sqlite3.lo: $(SQLITE3C)
|
|
|
|
$(LTCOMPILE) -c $(SQLITE3C)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Rules to build the LEMON compiler generator
|
|
|
|
#
|
|
|
|
lempar.c: $(TOP)\src\lempar.c
|
|
|
|
copy $(TOP)\src\lempar.c .
|
|
|
|
|
|
|
|
lemon.exe: $(TOP)\tool\lemon.c lempar.c
|
2012-07-01 00:22:34 +02:00
|
|
|
$(BCC) -Daccess=_access -Fe$@ $(TOP)\tool\lemon.c /link $(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)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c parse.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
opcodes.lo: opcodes.c
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c opcodes.c
|
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
|
|
|
|
$(LIBRESOBJS): $(TOP)\src\sqlite3.rc $(HDR)
|
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 \
|
2012-09-03 13:14:53 +02:00
|
|
|
| $(NAWK) "/.*/ { gsub(/[.]/,\",\");print }" >> 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
|
|
|
|
!ENDIF
|
2012-09-03 12:32:32 +02:00
|
|
|
|
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)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\alter.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
analyze.lo: $(TOP)\src\analyze.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\analyze.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
attach.lo: $(TOP)\src\attach.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\attach.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
auth.lo: $(TOP)\src\auth.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\auth.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
backup.lo: $(TOP)\src\backup.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\backup.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
bitvec.lo: $(TOP)\src\bitvec.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\bitvec.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
btmutex.lo: $(TOP)\src\btmutex.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\btmutex.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
btree.lo: $(TOP)\src\btree.c $(HDR) $(TOP)\src\pager.h
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\btree.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
build.lo: $(TOP)\src\build.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\build.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
callback.lo: $(TOP)\src\callback.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\callback.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
complete.lo: $(TOP)\src\complete.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\complete.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
ctime.lo: $(TOP)\src\ctime.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\ctime.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
date.lo: $(TOP)\src\date.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\date.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
delete.lo: $(TOP)\src\delete.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\delete.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
expr.lo: $(TOP)\src\expr.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\expr.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fault.lo: $(TOP)\src\fault.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\fault.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fkey.lo: $(TOP)\src\fkey.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\fkey.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
func.lo: $(TOP)\src\func.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\func.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
global.lo: $(TOP)\src\global.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\global.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
hash.lo: $(TOP)\src\hash.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\hash.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
insert.lo: $(TOP)\src\insert.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\insert.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
journal.lo: $(TOP)\src\journal.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\journal.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
legacy.lo: $(TOP)\src\legacy.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\legacy.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
loadext.lo: $(TOP)\src\loadext.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\loadext.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
main.lo: $(TOP)\src\main.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\main.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
malloc.lo: $(TOP)\src\malloc.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\malloc.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mem0.lo: $(TOP)\src\mem0.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\mem0.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mem1.lo: $(TOP)\src\mem1.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\mem1.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mem2.lo: $(TOP)\src\mem2.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\mem2.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mem3.lo: $(TOP)\src\mem3.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\mem3.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mem5.lo: $(TOP)\src\mem5.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\mem5.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
memjournal.lo: $(TOP)\src\memjournal.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\memjournal.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mutex.lo: $(TOP)\src\mutex.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\mutex.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mutex_noop.lo: $(TOP)\src\mutex_noop.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\mutex_noop.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mutex_unix.lo: $(TOP)\src\mutex_unix.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\mutex_unix.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mutex_w32.lo: $(TOP)\src\mutex_w32.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\mutex_w32.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
notify.lo: $(TOP)\src\notify.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\notify.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
pager.lo: $(TOP)\src\pager.c $(HDR) $(TOP)\src\pager.h
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\pager.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
pcache.lo: $(TOP)\src\pcache.c $(HDR) $(TOP)\src\pcache.h
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\pcache.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
pcache1.lo: $(TOP)\src\pcache1.c $(HDR) $(TOP)\src\pcache.h
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\pcache1.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
os.lo: $(TOP)\src\os.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\os.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
os_unix.lo: $(TOP)\src\os_unix.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\os_unix.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
os_win.lo: $(TOP)\src\os_win.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\os_win.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
pragma.lo: $(TOP)\src\pragma.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\pragma.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
prepare.lo: $(TOP)\src\prepare.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\prepare.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
printf.lo: $(TOP)\src\printf.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\printf.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
random.lo: $(TOP)\src\random.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\random.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
resolve.lo: $(TOP)\src\resolve.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\resolve.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
rowset.lo: $(TOP)\src\rowset.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\rowset.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
select.lo: $(TOP)\src\select.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\select.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
status.lo: $(TOP)\src\status.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\status.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
table.lo: $(TOP)\src\table.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\table.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
tokenize.lo: $(TOP)\src\tokenize.c keywordhash.h $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\tokenize.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
trigger.lo: $(TOP)\src\trigger.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\trigger.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
update.lo: $(TOP)\src\update.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\update.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
utf.lo: $(TOP)\src\utf.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\utf.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
util.lo: $(TOP)\src\util.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\util.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vacuum.lo: $(TOP)\src\vacuum.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\vacuum.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vdbe.lo: $(TOP)\src\vdbe.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\vdbe.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vdbeapi.lo: $(TOP)\src\vdbeapi.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\vdbeapi.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vdbeaux.lo: $(TOP)\src\vdbeaux.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\vdbeaux.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vdbeblob.lo: $(TOP)\src\vdbeblob.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\vdbeblob.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vdbemem.lo: $(TOP)\src\vdbemem.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -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)
|
|
|
|
$(LTCOMPILE) -c $(TOP)\src\vdbesort.c
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
vdbetrace.lo: $(TOP)\src\vdbetrace.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\vdbetrace.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
vtab.lo: $(TOP)\src\vtab.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\vtab.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
wal.lo: $(TOP)\src\wal.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\wal.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
walker.lo: $(TOP)\src\walker.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\walker.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
where.lo: $(TOP)\src\where.c $(HDR)
|
2011-06-17 17:57:07 +02:00
|
|
|
$(LTCOMPILE) -c $(TOP)\src\where.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
tclsqlite.lo: $(TOP)\src\tclsqlite.c $(HDR)
|
|
|
|
$(LTCOMPILE) -DUSE_TCL_STUBS=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c
|
|
|
|
|
|
|
|
tclsqlite-shell.lo: $(TOP)\src\tclsqlite.c $(HDR)
|
|
|
|
$(LTCOMPILE) -DTCLSH=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c
|
|
|
|
|
2012-10-06 05:48:25 +02:00
|
|
|
tclsqlite3.exe: tclsqlite-shell.lo libsqlite3.lib $(LIBRESOBJS)
|
|
|
|
$(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /OUT:$@ libsqlite3.lib tclsqlite-shell.lo $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
# Rules to build opcodes.c and opcodes.h
|
|
|
|
#
|
|
|
|
opcodes.c: opcodes.h $(TOP)\mkopcodec.awk
|
2011-08-30 03:29:04 +02:00
|
|
|
$(NAWK) -f $(TOP)\mkopcodec.awk opcodes.h > opcodes.c
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
opcodes.h: parse.h $(TOP)\src\vdbe.c $(TOP)\mkopcodeh.awk
|
2011-06-25 03:14:36 +02:00
|
|
|
type parse.h $(TOP)\src\vdbe.c | $(NAWK) -f $(TOP)\mkopcodeh.awk > 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
|
|
|
|
|
|
|
|
parse.c: $(TOP)\src\parse.y lemon.exe $(TOP)\addopcodes.awk
|
2011-06-17 17:57:07 +02:00
|
|
|
del /Q parse.y parse.h parse.h.temp
|
2011-06-17 09:07:24 +02:00
|
|
|
copy $(TOP)\src\parse.y .
|
|
|
|
.\lemon.exe $(OPT_FEATURE_FLAGS) $(OPTS) parse.y
|
|
|
|
move parse.h parse.h.temp
|
2011-06-25 03:14:36 +02:00
|
|
|
$(NAWK) -f $(TOP)\addopcodes.awk parse.h.temp > parse.h
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
sqlite3.h: $(TOP)\src\sqlite.h.in $(TOP)\manifest.uuid $(TOP)\VERSION
|
2011-06-25 03:14:36 +02:00
|
|
|
$(TCLSH_CMD) $(TOP)\tool\mksqlite3h.tcl $(TOP) > sqlite3.h
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
mkkeywordhash.exe: $(TOP)\tool\mkkeywordhash.c
|
2012-07-01 00:22:34 +02:00
|
|
|
$(BCC) -Fe$@ $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)\tool\mkkeywordhash.c /link $(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)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\icu\icu.c
|
|
|
|
|
|
|
|
fts2.lo: $(TOP)\ext\fts2\fts2.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2.c
|
|
|
|
|
|
|
|
fts2_hash.lo: $(TOP)\ext\fts2\fts2_hash.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_hash.c
|
|
|
|
|
|
|
|
fts2_icu.lo: $(TOP)\ext\fts2\fts2_icu.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_icu.c
|
|
|
|
|
|
|
|
fts2_porter.lo: $(TOP)\ext\fts2\fts2_porter.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_porter.c
|
|
|
|
|
|
|
|
fts2_tokenizer.lo: $(TOP)\ext\fts2\fts2_tokenizer.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer.c
|
|
|
|
|
|
|
|
fts2_tokenizer1.lo: $(TOP)\ext\fts2\fts2_tokenizer1.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer1.c
|
|
|
|
|
|
|
|
fts3.lo: $(TOP)\ext\fts3\fts3.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3.c
|
|
|
|
|
|
|
|
fts3_aux.lo: $(TOP)\ext\fts3\fts3_aux.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_aux.c
|
|
|
|
|
|
|
|
fts3_expr.lo: $(TOP)\ext\fts3\fts3_expr.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_expr.c
|
|
|
|
|
|
|
|
fts3_hash.lo: $(TOP)\ext\fts3\fts3_hash.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_hash.c
|
|
|
|
|
|
|
|
fts3_icu.lo: $(TOP)\ext\fts3\fts3_icu.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_icu.c
|
|
|
|
|
|
|
|
fts3_snippet.lo: $(TOP)\ext\fts3\fts3_snippet.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_snippet.c
|
|
|
|
|
|
|
|
fts3_porter.lo: $(TOP)\ext\fts3\fts3_porter.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_porter.c
|
|
|
|
|
|
|
|
fts3_tokenizer.lo: $(TOP)\ext\fts3\fts3_tokenizer.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer.c
|
|
|
|
|
|
|
|
fts3_tokenizer1.lo: $(TOP)\ext\fts3\fts3_tokenizer1.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer1.c
|
|
|
|
|
2013-04-22 19:07:56 +02:00
|
|
|
fts3_tokenize_vtab.lo: $(TOP)\ext\fts3\fts3_tokenize_vtab.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenize_vtab.c
|
|
|
|
|
2012-05-28 22:22:16 +02:00
|
|
|
fts3_unicode.lo: $(TOP)\ext\fts3\fts3_unicode.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode.c
|
|
|
|
|
|
|
|
fts3_unicode2.lo: $(TOP)\ext\fts3\fts3_unicode2.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode2.c
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
fts3_write.lo: $(TOP)\ext\fts3\fts3_write.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_write.c
|
|
|
|
|
|
|
|
rtree.lo: $(TOP)\ext\rtree\rtree.c $(HDR) $(EXTHDR)
|
|
|
|
$(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\rtree\rtree.c
|
|
|
|
|
|
|
|
|
|
|
|
# Rules to build the 'testfixture' application.
|
|
|
|
#
|
|
|
|
# If using the amalgamation, use sqlite3.c directly to build the test
|
|
|
|
# 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
|
2011-06-17 17:57:07 +02:00
|
|
|
TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2013-04-25 16:36:28 +02:00
|
|
|
TESTFIXTURE_SRC0 = $(TESTEXT) $(TESTSRC2) libsqlite3.lib
|
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
|
|
|
|
|
2012-10-06 05:48:25 +02:00
|
|
|
testfixture.exe: $(TESTFIXTURE_SRC) $(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) \
|
2012-10-06 05:48:25 +02:00
|
|
|
/link $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
|
|
|
fulltest: testfixture.exe sqlite3.exe
|
|
|
|
.\testfixture.exe $(TOP)\test\all.test
|
|
|
|
|
|
|
|
soaktest: testfixture.exe sqlite3.exe
|
|
|
|
.\testfixture.exe $(TOP)\test\all.test -soak=1
|
|
|
|
|
2012-09-13 03:51:02 +02:00
|
|
|
fulltestonly: testfixture.exe sqlite3.exe
|
|
|
|
.\testfixture.exe $(TOP)\test\full.test
|
|
|
|
|
2013-07-20 02:34:31 +02:00
|
|
|
queryplantest: testfixture.exe sqlite3.exe
|
|
|
|
.\testfixture.exe $(TOP)\test\permutations.test queryplanner
|
|
|
|
|
2011-06-17 09:07:24 +02:00
|
|
|
test: testfixture.exe sqlite3.exe
|
|
|
|
.\testfixture.exe $(TOP)\test\veryquick.test
|
|
|
|
|
2013-10-12 01:01:18 +02:00
|
|
|
sqlite3_analyzer.c: $(SQLITE3C) $(TOP)\src\test_stat.c $(TOP)\src\tclsqlite.c $(TOP)\tool\spaceanal.tcl
|
|
|
|
copy $(SQLITE3C) + $(TOP)\src\test_stat.c + $(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 = >> $@
|
|
|
|
$(NAWK) -f $(TOP)\tool\tostr.awk $(TOP)\tool\spaceanal.tcl >> $@
|
|
|
|
echo ; return zMainloop; } >> $@
|
|
|
|
|
2012-10-06 05:48:25 +02:00
|
|
|
sqlite3_analyzer.exe: sqlite3_analyzer.c $(LIBRESOBJS)
|
2011-09-22 02:06:44 +02:00
|
|
|
$(LTLINK) -DBUILD_sqlite -DTCLSH=2 -I$(TCLINCDIR) sqlite3_analyzer.c \
|
2012-10-06 05:48:25 +02:00
|
|
|
/link $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2011-06-17 17:57:07 +02:00
|
|
|
clean:
|
2011-09-11 12:14:37 +02:00
|
|
|
del /Q *.lo *.ilk *.lib *.obj *.pdb sqlite3.exe libsqlite3.lib
|
2012-02-11 23:19:26 +01:00
|
|
|
del /Q *.da *.bb *.bbg gmon.out
|
2011-06-17 09:07:24 +02:00
|
|
|
del /Q sqlite3.h opcodes.c opcodes.h
|
|
|
|
del /Q lemon.exe lempar.c parse.*
|
|
|
|
del /Q mkkeywordhash.exe keywordhash.h
|
2012-02-11 23:19:26 +01:00
|
|
|
-rmdir /Q/S .deps
|
|
|
|
-rmdir /Q/S .libs
|
2012-03-08 21:00:36 +01:00
|
|
|
-rmdir /Q/S quota2a
|
|
|
|
-rmdir /Q/S quota2b
|
|
|
|
-rmdir /Q/S quota2c
|
2011-06-17 09:07:24 +02:00
|
|
|
-rmdir /Q/S tsrc
|
|
|
|
del /Q .target_source
|
2012-09-03 13:01:21 +02:00
|
|
|
del /Q tclsqlite3.exe tclsqlite3.exp
|
2011-06-17 20:52:07 +02:00
|
|
|
del /Q testfixture.exe testfixture.exp test.db
|
2011-06-17 17:57:07 +02:00
|
|
|
del /Q sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def
|
2013-10-12 01:01:18 +02:00
|
|
|
del /Q sqlite3.c sqlite3-*.c
|
2012-09-03 12:32:32 +02:00
|
|
|
del /Q sqlite3rc.h
|
2013-03-29 20:52:04 +01:00
|
|
|
del /Q shell.c sqlite3ext.h
|
2011-09-22 02:06:44 +02:00
|
|
|
del /Q sqlite3_analyzer.exe sqlite3_analyzer.exp sqlite3_analyzer.c
|
2012-10-20 11:35:57 +02:00
|
|
|
del /Q sqlite-*-output.vsix
|
2013-04-08 16:28:33 +02:00
|
|
|
del /Q mptester.exe
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2012-09-03 12:32:32 +02:00
|
|
|
# Dynamic link library section.
|
2011-06-17 09:07:24 +02:00
|
|
|
#
|
|
|
|
dll: sqlite3.dll
|
|
|
|
|
2011-06-17 17:57:07 +02:00
|
|
|
sqlite3.def: libsqlite3.lib
|
2011-06-25 03:14:36 +02:00
|
|
|
echo EXPORTS > sqlite3.def
|
2011-06-17 17:57:07 +02:00
|
|
|
dumpbin /all libsqlite3.lib \
|
2011-08-17 09:46:48 +02:00
|
|
|
| $(NAWK) "/ 1 _?sqlite3_/ { sub(/^.* _?/,\"\");print }" \
|
2011-06-25 03:14:36 +02:00
|
|
|
| sort >> sqlite3.def
|
2011-06-17 09:07:24 +02:00
|
|
|
|
2012-10-06 05:48:25 +02:00
|
|
|
sqlite3.dll: $(LIBOBJ) $(LIBRESOBJS) sqlite3.def
|
|
|
|
$(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /DEF:sqlite3.def /OUT:$@ $(LIBOBJ) $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
|