2 # nmake Makefile for SQLite
4 ###############################################################################
5 ############################## START OF OPTIONS ###############################
6 ###############################################################################
8 # The toplevel directory of the source tree. This is the directory
9 # that contains this "Makefile.msc".
14 # Set this non-0 to create and use the SQLite amalgamation file.
16 !IFNDEF USE_AMALGAMATION
21 # Set this non-0 to enable full warnings (-W4, etc) when compiling.
27 # Set this non-0 to enable treating warnings as errors (-WX, etc) when
30 !IFNDEF USE_FATAL_WARN
34 # Set this non-0 to enable full runtime error checks (-RTC1, etc). This
35 # has no effect if (any) optimizations are enabled.
37 !IFNDEF USE_RUNTIME_CHECKS
38 USE_RUNTIME_CHECKS = 0
41 # Set this non-0 to create a SQLite amalgamation file that excludes the
42 # various built-in extensions.
44 !IFNDEF MINIMAL_AMALGAMATION
45 MINIMAL_AMALGAMATION = 0
48 # Set this non-0 to use "stdcall" calling convention for the core library
49 # and shell executable.
55 # Set this non-0 to have the shell executable link against the core dynamic
62 # Set this non-0 to enable extra code that attempts to detect misuse of the
69 # If necessary, create a list of harmless compiler warnings to disable when
70 # compiling the various tools. For the SQLite source code itself, warnings,
71 # if any, will be disabled from within it.
74 !IF $(USE_FULLWARN)!=0
75 NO_WARN = -wd4054 -wd4055 -wd4100 -wd4127 -wd4130 -wd4152 -wd4189 -wd4206
76 NO_WARN = $(NO_WARN) -wd4210 -wd4232 -wd4244 -wd4305 -wd4306 -wd4702 -wd4706
80 # Set this non-0 to use the library paths and other options necessary for
87 # Set this non-0 to split the SQLite amalgamation file into chunks to
88 # be used for debugging with Visual Studio.
90 !IFNDEF SPLIT_AMALGAMATION
91 SPLIT_AMALGAMATION = 0
95 # Set this non-0 to have this makefile assume the Tcl shell executable
96 # (tclsh*.exe) is available in the PATH. By default, this is disabled
97 # for compatibility with older build environments. This setting only
98 # applies if TCLSH_CMD is not set manually.
100 !IFNDEF USE_TCLSH_IN_PATH
101 USE_TCLSH_IN_PATH = 0
104 # Set this non-0 to use zlib, possibly compiling it from source code.
110 # Set this non-0 to build zlib from source code. This is enabled by
111 # default and in that case it will be assumed that the ZLIBDIR macro
112 # points to the top-level source code directory for zlib.
118 # Set this non-0 to use the International Components for Unicode (ICU).
125 # Set this non-0 to dynamically link to the MSVC runtime library.
131 # Set this non-0 to link to the RPCRT4 library.
133 !IFNDEF USE_RPCRT4_LIB
137 # Set this non-0 to generate assembly code listings for the source code
144 # Set this non-0 to attempt setting the native compiler automatically
145 # for cross-compiling the command line tools needed during the compilation
152 # Set this non-0 to use the native libraries paths for cross-compiling
153 # the command line tools needed during the compilation process.
155 !IFNDEF USE_NATIVE_LIBPATHS
156 USE_NATIVE_LIBPATHS = 0
159 # Set this 0 to skip the compiling and embedding of version resources.
165 # Set this non-0 to compile binaries suitable for the WinRT environment.
166 # This setting does not apply to any binaries that require Tcl to operate
167 # properly (i.e. the text fixture, etc).
173 # Set this non-0 to compile binaries suitable for the UWP environment.
174 # This setting does not apply to any binaries that require Tcl to operate
175 # properly (i.e. the text fixture, etc).
181 # Set this non-0 to compile binaries suitable for the Windows 10 platform.
188 # Set this non-0 to skip attempting to look for and/or link with the Tcl
196 # Set this to non-0 to create and use PDBs.
202 # Set this to non-0 to use the SQLite debugging heap subsystem.
208 # Set this to non-0 to use the Win32 native heap subsystem.
214 # Set this to non-0 to enable OSTRACE() macros, which can be useful when
221 # Set this to one of the following values to enable various debugging
222 # features. Each level includes the debugging options from the previous
223 # levels. Currently, the recognized values for DEBUG are:
225 # 0 == NDEBUG: Disables assert() and other runtime diagnostics.
226 # 1 == SQLITE_ENABLE_API_ARMOR: extra attempts to detect misuse of the API.
227 # 2 == Disables NDEBUG and all optimizations and then enables PDBs.
228 # 3 == SQLITE_DEBUG: Enables various diagnostics messages and code.
229 # 4 == SQLITE_WIN32_MALLOC_VALIDATE: Validate the Win32 native heap per call.
230 # 5 == SQLITE_DEBUG_OS_TRACE: Enables output from the OSTRACE() macros.
231 # 6 == SQLITE_ENABLE_IOTRACE: Enables output from the IOTRACE() macros.
238 # By default, use --linemacros=1 argument to the mksqlite3c.tcl tool, which
239 # is used to build the amalgamation. This can be turned off to ease debug
240 # of the amalgamation away from the source tree.
242 !IFNDEF NO_LINEMACROS
247 # Enable use of available compiler optimizations? Normally, this should be
248 # non-zero. Setting this to zero, thus disabling all compiler optimizations,
249 # can be useful for testing.
251 !IFNDEF OPTIMIZATIONS
255 # Set this to non-0 to enable support for the session extension.
261 # Set this to non-0 to enable support for the rbu extension.
267 # Set the source code file to be used by executables and libraries when
268 # they need the amalgamation.
271 !IF $(SPLIT_AMALGAMATION)!=0
272 SQLITE3C = sqlite3-all.c
278 # Set the include code file to be used by executables and libraries when
285 # This is the name to use for the SQLite dynamic link library (DLL).
289 SQLITE3DLL = winsqlite3.dll
291 SQLITE3DLL = sqlite3.dll
295 # This is the name to use for the SQLite import library (LIB).
299 SQLITE3LIB = winsqlite3.lib
301 SQLITE3LIB = sqlite3.lib
305 # This is the name to use for the SQLite shell executable (EXE).
309 SQLITE3EXE = winsqlite3shell.exe
311 SQLITE3EXE = sqlite3.exe
315 # This is the argument used to set the program database (PDB) file for the
316 # SQLite shell executable (EXE).
318 !IFNDEF SQLITE3EXEPDB
322 SQLITE3EXEPDB = /pdb:sqlite3sh.pdb
327 # These are the names of the customized Tcl header files used by various parts
328 # of this makefile when the stdcall calling convention is in use. It is not
329 # used for any other purpose.
332 SQLITETCLH = sqlite_tcl.h
335 !IFNDEF SQLITETCLDECLSH
336 SQLITETCLDECLSH = sqlite_tclDecls.h
339 # This is the name to use for the dynamic link library (DLL) containing the
340 # Tcl bindings for SQLite.
342 !IFNDEF SQLITE3TCLDLL
343 SQLITE3TCLDLL = tclsqlite3.dll
346 # These are the additional targets that the targets that integrate with the
347 # Tcl library should depend on when compiling, etc.
349 !IFNDEF SQLITE_TCL_DEP
350 !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
351 SQLITE_TCL_DEP = $(SQLITETCLDECLSH) $(SQLITETCLH)
358 # These are the "standard" SQLite compilation options used when compiling for
359 # the Windows platform.
361 !IFNDEF OPT_FEATURE_FLAGS
362 !IF $(MINIMAL_AMALGAMATION)==0
363 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS3=1
364 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RTREE=1
365 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_GEOPOLY=1
366 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_JSON1=1
367 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_STMTVTAB=1
368 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_DBPAGE_VTAB=1
369 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_DBSTAT_VTAB=1
370 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_BYTECODE_VTAB=1
372 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_COLUMN_METADATA=1
375 # Should the session extension be enabled? If so, add compilation options
379 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_SESSION=1
380 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_PREUPDATE_HOOK=1
383 # Always enable math functions on Windows
384 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_MATH_FUNCTIONS
386 # Should the rbu extension be enabled? If so, add compilation options
390 OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RBU=1
393 # These are the "extended" SQLite compilation options used when compiling for
394 # the Windows 10 platform.
396 !IFNDEF EXT_FEATURE_FLAGS
398 EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS4=1
399 EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_SYSTEM_MALLOC=1
400 EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_OMIT_LOCALTIME=1
406 ###############################################################################
407 ############################### END OF OPTIONS ################################
408 ###############################################################################
410 # When compiling for the Windows 10 platform, the PLATFORM macro must be set
411 # to an appropriate value (e.g. x86, x64, arm, arm64, etc).
415 !ERROR Using the FOR_WIN10 option requires a value for PLATFORM.
419 # This assumes that MSVC is always installed in 32-bit Program Files directory
420 # and sets the variable for use in locating other 32-bit installs accordingly.
422 PROGRAMFILES_X86 = $(VCINSTALLDIR)\..\..
423 PROGRAMFILES_X86 = $(PROGRAMFILES_X86:\\=\)
425 # Check for the predefined command macro CC. This should point to the compiler
426 # binary for the target platform. If it is not defined, simply define it to
427 # the legacy default value 'cl.exe'.
433 # Check for the predefined command macro CSC. This should point to a working
434 # C Sharp compiler binary. If it is not defined, simply define it to the
435 # legacy default value 'csc.exe'.
441 # Check for the command macro LD. This should point to the linker binary for
442 # the target platform. If it is not defined, simply define it to the legacy
443 # default value 'link.exe'.
449 # Check for the predefined command macro RC. This should point to the resource
450 # compiler binary for the target platform. If it is not defined, simply define
451 # it to the legacy default value 'rc.exe'.
457 # Check for the MSVC runtime library path macro. Otherwise, this value will
458 # default to the 'lib' directory underneath the MSVC installation directory.
461 CRTLIBPATH = $(VCINSTALLDIR)\lib
464 CRTLIBPATH = $(CRTLIBPATH:\\=\)
466 # Check for the command macro NCC. This should point to the compiler binary
467 # for the platform the compilation process is taking place on. If it is not
468 # defined, simply define it to have the same value as the CC macro. When
469 # cross-compiling, it is suggested that this macro be modified via the command
470 # line (since nmake itself does not provide a built-in method to guess it).
471 # For example, to use the x86 compiler when cross-compiling for x64, a command
472 # line similar to the following could be used (all on one line):
474 # nmake /f Makefile.msc sqlite3.dll
475 # XCOMPILE=1 USE_NATIVE_LIBPATHS=1
477 # Alternatively, the full path and file name to the compiler binary for the
478 # platform the compilation process is taking place may be specified (all on
481 # nmake /f Makefile.msc sqlite3.dll
482 # "NCC=""%VCINSTALLDIR%\bin\cl.exe"""
483 # USE_NATIVE_LIBPATHS=1
487 !ELSEIF $(XCOMPILE)!=0
488 NCC = "$(VCINSTALLDIR)\bin\$(CC)"
494 # Check for the MSVC native runtime library path macro. Otherwise,
495 # this value will default to the 'lib' directory underneath the MSVC
496 # installation directory.
499 NCRTLIBPATH = $(VCINSTALLDIR)\lib
502 NCRTLIBPATH = $(NCRTLIBPATH:\\=\)
504 # Check for the Platform SDK library path macro. Otherwise, this
505 # value will default to the 'lib' directory underneath the Windows
506 # SDK installation directory (the environment variable used appears
507 # to be available when using Visual C++ 2008 or later via the
511 NSDKLIBPATH = $(WINDOWSSDKDIR)\lib
514 NSDKLIBPATH = $(NSDKLIBPATH:\\=\)
516 # Check for the UCRT library path macro. Otherwise, this value will
517 # default to the version-specific, platform-specific 'lib' directory
518 # underneath the Windows SDK installation directory.
521 UCRTLIBPATH = $(WINDOWSSDKDIR)\lib\$(WINDOWSSDKLIBVERSION)\ucrt\$(PLATFORM)
524 UCRTLIBPATH = $(UCRTLIBPATH:\\=\)
526 # C compiler and options for use in building executables that
527 # will run on the platform that is doing the build.
529 !IF $(USE_FULLWARN)!=0
530 BCC = $(NCC) -nologo -W4 -Fd$*.pdb $(CCOPTS) $(BCCOPTS)
532 BCC = $(NCC) -nologo -W3 -Fd$*.pdb $(CCOPTS) $(BCCOPTS)
535 # Check if assembly code listings should be generated for the source
536 # code files to be compiled.
538 !IF $(USE_LISTINGS)!=0
542 # Check if the native library paths should be used when compiling
543 # the command line tools used during the compilation process. If
544 # so, set the necessary macro now.
546 !IF $(USE_NATIVE_LIBPATHS)!=0
547 NLTLIBPATHS = "/LIBPATH:$(NCRTLIBPATH)" "/LIBPATH:$(NSDKLIBPATH)"
550 NUCRTLIBPATH = $(NUCRTLIBPATH:\\=\)
551 NLTLIBPATHS = $(NLTLIBPATHS) "/LIBPATH:$(NUCRTLIBPATH)"
555 # C compiler and options for use in building executables that
556 # will run on the target platform. (BCC and TCC are usually the
557 # same unless your are cross-compiling.)
559 !IF $(USE_FULLWARN)!=0
560 TCC = $(CC) -nologo -W4 -DINCLUDE_MSVC_H=1 $(CCOPTS) $(TCCOPTS)
562 TCC = $(CC) -nologo -W3 $(CCOPTS) $(TCCOPTS)
565 # Check if warnings should be treated as errors when compiling.
567 !IF $(USE_FATAL_WARN)!=0
571 TCC = $(TCC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -I$(TOP)\src -fp:precise
572 RCC = $(RC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -I$(TOP)\src $(RCOPTS) $(RCCOPTS)
574 # Check if we want to use the "stdcall" calling convention when compiling.
575 # This is not supported by the compilers for non-x86 platforms. It should
576 # also be noted here that building any target with these "stdcall" options
577 # will most likely fail if the Tcl library is also required. This is due
578 # to how the Tcl library functions are declared and exported (i.e. without
579 # an explicit calling convention, which results in "cdecl").
581 !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
582 !IF "$(PLATFORM)"=="x86"
583 CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
584 SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
586 TEST_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall -DINCLUDE_SQLITE_TCL_H=1 -DSQLITE_TCLAPI=__cdecl
590 CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
591 SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
593 TEST_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall -DINCLUDE_SQLITE_TCL_H=1 -DSQLITE_TCLAPI=__cdecl
611 # These are additional compiler options used for the core library.
613 !IFNDEF CORE_COMPILE_OPTS
614 !IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
615 CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS) -DSQLITE_API=__declspec(dllexport)
617 CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS)
621 # These are the additional targets that the core library should depend on
624 !IFNDEF CORE_LINK_DEP
625 !IF $(DYNAMIC_SHELL)!=0
627 !ELSEIF $(FOR_WIN10)==0 || "$(PLATFORM)"=="x86"
628 CORE_LINK_DEP = sqlite3.def
634 # These are additional linker options used for the core library.
636 !IFNDEF CORE_LINK_OPTS
637 !IF $(DYNAMIC_SHELL)!=0
639 !ELSEIF $(FOR_WIN10)==0 || "$(PLATFORM)"=="x86"
640 CORE_LINK_OPTS = /DEF:sqlite3.def
646 # These are additional compiler options used for the shell executable.
648 !IFNDEF SHELL_COMPILE_OPTS
649 !IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
650 SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS) -DSQLITE_API=__declspec(dllimport)
652 SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS)
656 # This is the source code that the shell executable should be compiled
659 !IFNDEF SHELL_CORE_SRC
660 !IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
663 !ELSEIF $(USE_AMALGAMATION)==0
667 SHELL_CORE_SRC = $(SQLITE3C)
671 # This is the core library that the shell executable should depend on.
673 !IFNDEF SHELL_CORE_DEP
674 !IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
675 SHELL_CORE_DEP = $(SQLITE3DLL)
677 !ELSEIF $(USE_AMALGAMATION)==0
678 SHELL_CORE_DEP = libsqlite3.lib
686 # If zlib support is enabled, add the dependencies for it.
688 !IF $(USE_ZLIB)!=0 && $(BUILD_ZLIB)!=0
689 SHELL_CORE_DEP = zlib $(SHELL_CORE_DEP)
690 TESTFIXTURE_DEP = zlib $(TESTFIXTURE_DEP)
694 # This is the core library that the shell executable should link with.
696 !IFNDEF SHELL_CORE_LIB
697 !IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
698 SHELL_CORE_LIB = $(SQLITE3LIB)
700 !ELSEIF $(USE_AMALGAMATION)==0
701 SHELL_CORE_LIB = libsqlite3.lib
708 # These are additional linker options used for the shell executable.
710 !IFNDEF SHELL_LINK_OPTS
711 SHELL_LINK_OPTS = $(SHELL_CORE_LIB)
714 # Check if assembly code listings should be generated for the source
715 # code files to be compiled.
717 !IF $(USE_LISTINGS)!=0
721 # When compiling the library for use in the WinRT environment,
722 # the following compile-time options must be used as well to
723 # disable use of Win32 APIs that are not available and to enable
724 # use of Win32 APIs that are specific to Windows 8 and/or WinRT.
727 TCC = $(TCC) -DSQLITE_OS_WINRT=1
728 RCC = $(RCC) -DSQLITE_OS_WINRT=1
729 TCC = $(TCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP
730 RCC = $(RCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP
733 # C compiler options for the Windows 10 platform (needs MSVC 2015).
736 TCC = $(TCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
737 BCC = $(BCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
740 # Also, we need to dynamically link to the correct MSVC runtime
741 # when compiling for WinRT (e.g. debug or release) OR if the
742 # USE_CRT_DLL option is set to force dynamically linking to the
743 # MSVC runtime library.
745 !IF $(FOR_WINRT)!=0 || $(USE_CRT_DLL)!=0
764 # The mksqlite3c.tcl and mksqlite3h.tcl scripts will pull in
765 # any extension header files by default. For non-amalgamation
766 # builds, we need to make sure the compiler can find these.
768 !IF $(USE_AMALGAMATION)==0
769 TCC = $(TCC) -I$(TOP)\ext\fts3
770 RCC = $(RCC) -I$(TOP)\ext\fts3
771 TCC = $(TCC) -I$(TOP)\ext\rtree
772 RCC = $(RCC) -I$(TOP)\ext\rtree
773 TCC = $(TCC) -I$(TOP)\ext\session
774 RCC = $(RCC) -I$(TOP)\ext\session
777 # The mksqlite3c.tcl script accepts some options on the command
778 # line. When compiling with debugging enabled, some of these
779 # options are necessary in order to allow debugging symbols to
780 # work correctly with Visual Studio when using the amalgamation.
782 !IFNDEF MKSQLITE3C_TOOL
783 !IF $(MINIMAL_AMALGAMATION)!=0
784 MKSQLITE3C_TOOL = $(TOP)\tool\mksqlite3c-noext.tcl
786 MKSQLITE3C_TOOL = $(TOP)\tool\mksqlite3c.tcl
790 !IFNDEF MKSQLITE3C_ARGS
791 !IF $(DEBUG)>1 && $(NO_LINEMACROS)==0
792 MKSQLITE3C_ARGS = --linemacros=1
794 MKSQLITE3C_ARGS = --linemacros=0
796 !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
797 MKSQLITE3C_ARGS = $(MKSQLITE3C_ARGS) --useapicall
801 # The mksqlite3h.tcl script accepts some options on the command line.
802 # When compiling with stdcall support, some of these options are
805 !IFNDEF MKSQLITE3H_ARGS
806 !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
807 MKSQLITE3H_ARGS = --useapicall
814 # Define -DNDEBUG to compile without debugging (i.e., for production usage)
815 # Omitting the define will cause extra debugging code to be inserted and
816 # includes extra comments when "EXPLAIN stmt" is used.
819 TCC = $(TCC) -DNDEBUG
820 BCC = $(BCC) -DNDEBUG
821 RCC = $(RCC) -DNDEBUG
824 !IF $(DEBUG)>0 || $(API_ARMOR)!=0 || $(FOR_WIN10)!=0
825 TCC = $(TCC) -DSQLITE_ENABLE_API_ARMOR=1
826 RCC = $(RCC) -DSQLITE_ENABLE_API_ARMOR=1
830 TCC = $(TCC) -DSQLITE_DEBUG=1
831 RCC = $(RCC) -DSQLITE_DEBUG=1
832 !IF $(DYNAMIC_SHELL)==0
833 TCC = $(TCC) -DSQLITE_ENABLE_WHERETRACE -DSQLITE_ENABLE_SELECTTRACE
834 RCC = $(RCC) -DSQLITE_ENABLE_WHERETRACE -DSQLITE_ENABLE_SELECTTRACE
838 !IF $(DEBUG)>4 || $(OSTRACE)!=0
839 TCC = $(TCC) -DSQLITE_FORCE_OS_TRACE=1 -DSQLITE_DEBUG_OS_TRACE=1
840 RCC = $(RCC) -DSQLITE_FORCE_OS_TRACE=1 -DSQLITE_DEBUG_OS_TRACE=1
844 TCC = $(TCC) -DSQLITE_ENABLE_IOTRACE=1
845 RCC = $(RCC) -DSQLITE_ENABLE_IOTRACE=1
848 # Prevent warnings about "insecure" MSVC runtime library functions
851 TCC = $(TCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
852 BCC = $(BCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
853 RCC = $(RCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
855 # Prevent warnings about "deprecated" POSIX functions being used.
857 TCC = $(TCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
858 BCC = $(BCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
859 RCC = $(RCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
861 # Use the SQLite debugging heap subsystem?
864 TCC = $(TCC) -DSQLITE_MEMDEBUG=1
865 RCC = $(RCC) -DSQLITE_MEMDEBUG=1
867 # Use native Win32 heap subsystem instead of malloc/free?
869 !ELSEIF $(WIN32HEAP)!=0
870 TCC = $(TCC) -DSQLITE_WIN32_MALLOC=1
871 RCC = $(RCC) -DSQLITE_WIN32_MALLOC=1
873 # Validate the heap on every call into the native Win32 heap subsystem?
876 TCC = $(TCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1
877 RCC = $(RCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1
882 # The locations of the Tcl header and library files. Also, the library that
883 # non-stubs enabled programs using Tcl must link against. These variables
884 # (TCLINCDIR, TCLLIBDIR, and LIBTCL) may be overridden via the environment
885 # prior to running nmake in order to match the actual installed location and
886 # version on this machine.
897 TCLDIR = $(TOP)\compat\tcl
901 TCLINCDIR = $(TCLDIR)\include
905 TCLLIBDIR = $(TCLDIR)\lib
909 LIBTCL = tcl$(TCLVERSION)$(TCLSUFFIX).lib
913 LIBTCLSTUB = tclstub$(TCLVERSION)$(TCLSUFFIX).lib
917 LIBTCLPATH = $(TCLDIR)\bin
920 # The locations of the zlib header and library files. These variables
921 # (ZLIBINCDIR, ZLIBLIBDIR, and ZLIBLIB) may be overridden via the environment
922 # prior to running nmake in order to match the actual installed (or source
923 # code) location on this machine.
926 ZLIBDIR = $(TOP)\compat\zlib
930 ZLIBINCDIR = $(ZLIBDIR)
934 ZLIBLIBDIR = $(ZLIBDIR)
938 !IF $(DYNAMIC_SHELL)!=0
945 # The locations of the ICU header and library files. These variables
946 # (ICUINCDIR, ICULIBDIR, and LIBICU) may be overridden via the environment
947 # prior to running nmake in order to match the actual installed location on
951 ICUDIR = $(TOP)\compat\icu
955 ICUINCDIR = $(ICUDIR)\include
959 ICULIBDIR = $(ICUDIR)\lib
963 LIBICU = icuuc.lib icuin.lib
966 # This is the command to use for tclsh - normally just "tclsh", but we may
967 # know the specific version we want to use. This variable (TCLSH_CMD) may be
968 # overridden via the environment prior to running nmake in order to select a
969 # specific Tcl shell to use.
972 !IF $(USE_TCLSH_IN_PATH)!=0 || !EXIST("$(TCLDIR)\bin\tclsh.exe")
975 TCLSH_CMD = $(TCLDIR)\bin\tclsh.exe
980 # Compiler options needed for programs that use the readline() library.
982 !IFNDEF READLINE_FLAGS
983 READLINE_FLAGS = -DHAVE_READLINE=0
986 # The library that programs using readline() must link against.
992 # Should the database engine be compiled threadsafe
994 TCC = $(TCC) -DSQLITE_THREADSAFE=1
995 RCC = $(RCC) -DSQLITE_THREADSAFE=1
997 # Do threads override each others locks by default (1), or do we test (-1)
999 TCC = $(TCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1
1000 RCC = $(RCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1
1002 # Any target libraries which libsqlite must be linked against
1008 # Flags controlling use of the in memory btree implementation
1010 # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
1011 # default to file, 2 to default to memory, and 3 to force temporary
1012 # tables to always be in memory.
1014 TCC = $(TCC) -DSQLITE_TEMP_STORE=1
1015 RCC = $(RCC) -DSQLITE_TEMP_STORE=1
1017 # Enable/disable loadable extensions, and other optional features
1018 # based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*).
1019 # The same set of OMIT and ENABLE flags should be passed to the
1020 # LEMON parser generator and the mkkeywordhash tool as well.
1022 # These are the required SQLite compilation options used when compiling for
1023 # the Windows platform.
1025 REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_MAX_TRIGGER_DEPTH=100
1027 # If we are linking to the RPCRT4 library, enable features that need it.
1029 !IF $(USE_RPCRT4_LIB)!=0
1030 REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_WIN32_USE_UUID=1
1033 # Add the required and optional SQLite compilation options into the command
1034 # lines used to invoke the MSVC code and resource compilers.
1036 TCC = $(TCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS)
1037 RCC = $(RCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS)
1039 # Add in any optional parameters specified on the commane line, e.g.
1040 # nmake /f Makefile.msc all "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1"
1042 TCC = $(TCC) $(OPTS)
1043 RCC = $(RCC) $(OPTS)
1045 # If compiling for debugging, add some defines.
1048 TCC = $(TCC) -D_DEBUG
1049 BCC = $(BCC) -D_DEBUG
1050 RCC = $(RCC) -D_DEBUG
1053 # If optimizations are enabled or disabled (either implicitly or
1054 # explicitly), add the necessary flags.
1056 !IF $(DEBUG)>1 || $(OPTIMIZATIONS)==0
1059 !IF $(USE_RUNTIME_CHECKS)!=0
1063 !ELSEIF $(OPTIMIZATIONS)>=3
1066 !ELSEIF $(OPTIMIZATIONS)==2
1069 !ELSEIF $(OPTIMIZATIONS)==1
1074 # If symbols are enabled (or compiling for debugging), enable PDBs.
1076 !IF $(DEBUG)>1 || $(SYMBOLS)!=0
1082 # If zlib support is enabled, add the compiler options for it.
1085 TCC = $(TCC) -DSQLITE_HAVE_ZLIB=1
1086 RCC = $(RCC) -DSQLITE_HAVE_ZLIB=1
1087 TCC = $(TCC) -I$(ZLIBINCDIR)
1088 RCC = $(RCC) -I$(ZLIBINCDIR)
1091 # If ICU support is enabled, add the compiler options for it.
1094 TCC = $(TCC) -DSQLITE_ENABLE_ICU=1
1095 RCC = $(RCC) -DSQLITE_ENABLE_ICU=1
1096 TCC = $(TCC) -I$(TOP)\ext\icu
1097 RCC = $(RCC) -I$(TOP)\ext\icu
1098 TCC = $(TCC) -I$(ICUINCDIR)
1099 RCC = $(RCC) -I$(ICUINCDIR)
1103 # Command line prefixes for compiling code, compiling resources,
1106 LTCOMPILE = $(TCC) -Fo$@ -Fd$*.pdb
1107 LTRCOMPILE = $(RCC) -r
1109 LTLINK = $(TCC) -Fe$@
1111 # If requested, link to the RPCRT4 library.
1113 !IF $(USE_RPCRT4_LIB)!=0
1114 LTLIBS = $(LTLIBS) rpcrt4.lib
1117 # If a platform was set, force the linker to target that.
1118 # Note that the vcvars*.bat family of batch files typically
1119 # set this for you. Otherwise, the linker will attempt
1120 # to deduce the binary type based on the object files.
1122 LTLINKOPTS = $(LTLINKOPTS) /NOLOGO /MACHINE:$(PLATFORM)
1123 LTLIBOPTS = /NOLOGO /MACHINE:$(PLATFORM)
1124 !ELSEIF "$(VISUALSTUDIOVERSION)"=="12.0" || \
1125 "$(VISUALSTUDIOVERSION)"=="14.0" || \
1126 "$(VISUALSTUDIOVERSION)"=="15.0"
1127 LTLINKOPTS = /NOLOGO /MACHINE:x86
1128 LTLIBOPTS = /NOLOGO /MACHINE:x86
1130 LTLINKOPTS = $(LTLINKOPTS) /NOLOGO
1134 # When compiling for use in the WinRT environment, the following
1135 # linker option must be used to mark the executable as runnable
1136 # only in the context of an application container.
1139 LTLINKOPTS = $(LTLINKOPTS) /APPCONTAINER
1140 !IF "$(VISUALSTUDIOVERSION)"=="12.0" || "$(VISUALSTUDIOVERSION)"=="14.0"
1141 !IFNDEF STORELIBPATH
1142 !IF "$(PLATFORM)"=="x86"
1143 STORELIBPATH = $(CRTLIBPATH)\store
1144 !ELSEIF "$(PLATFORM)"=="x64"
1145 STORELIBPATH = $(CRTLIBPATH)\store\amd64
1146 !ELSEIF "$(PLATFORM)"=="ARM"
1147 STORELIBPATH = $(CRTLIBPATH)\store\arm
1149 STORELIBPATH = $(CRTLIBPATH)\store
1152 STORELIBPATH = $(STORELIBPATH:\\=\)
1153 LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(STORELIBPATH)"
1157 # When compiling for Windows Phone 8.1, an extra library path is
1160 !IF $(USE_WP81_OPTS)!=0
1162 !IF "$(PLATFORM)"=="x86"
1163 WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86
1164 !ELSEIF "$(PLATFORM)"=="ARM"
1165 WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\ARM
1167 WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86
1172 # When compiling for Windows Phone 8.1, some extra linker options
1173 # are also required.
1175 !IF $(USE_WP81_OPTS)!=0
1177 LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(WP81LIBPATH)"
1179 LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE
1180 LTLINKOPTS = $(LTLINKOPTS) WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib
1181 LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:kernel32.lib /NODEFAULTLIB:ole32.lib
1184 # When compiling for UWP or the Windows 10 platform, some extra linker
1185 # options are also required.
1187 !IF $(FOR_UWP)!=0 || $(FOR_WIN10)!=0
1188 LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE /NODEFAULTLIB:kernel32.lib
1189 LTLINKOPTS = $(LTLINKOPTS) mincore.lib
1191 LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(PSDKLIBPATH)"
1196 LTLINKOPTS = $(LTLINKOPTS) /guard:cf "/LIBPATH:$(UCRTLIBPATH)"
1198 LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:libucrtd.lib /DEFAULTLIB:ucrtd.lib
1200 LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:libucrt.lib /DEFAULTLIB:ucrt.lib
1204 # If either debugging or symbols are enabled, enable PDBs.
1206 !IF $(DEBUG)>1 || $(SYMBOLS)!=0
1207 LDFLAGS = /DEBUG $(LDOPTS)
1213 # Start with the Tcl related linker options.
1216 TCLLIBPATHS = $(TCLLIBPATHS) /LIBPATH:$(TCLLIBDIR)
1217 TCLLIBS = $(TCLLIBS) $(LIBTCL)
1220 # If zlib support is enabled, add the linker options for it.
1223 LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ZLIBLIBDIR)
1224 LTLIBS = $(LTLIBS) $(ZLIBLIB)
1227 # If ICU support is enabled, add the linker options for it.
1230 LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ICULIBDIR)
1231 LTLIBS = $(LTLIBS) $(LIBICU)
1235 # You should not have to change anything below this line
1236 ###############################################################################
1239 # Object files for the SQLite library (non-amalgamation).
1241 LIBOBJS0 = vdbe.lo parse.lo alter.lo analyze.lo attach.lo auth.lo \
1242 backup.lo bitvec.lo btmutex.lo btree.lo build.lo \
1243 callback.lo complete.lo ctime.lo \
1244 date.lo dbpage.lo dbstat.lo delete.lo \
1245 expr.lo fault.lo fkey.lo \
1246 fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \
1247 fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \
1248 fts3_tokenize_vtab.lo fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \
1250 func.lo global.lo hash.lo \
1251 icu.lo insert.lo json1.lo legacy.lo loadext.lo \
1252 main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \
1253 memdb.lo memjournal.lo \
1254 mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \
1255 notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \
1256 pager.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \
1257 random.lo resolve.lo rowset.lo rtree.lo \
1258 sqlite3session.lo select.lo sqlite3rbu.lo status.lo stmt.lo \
1259 table.lo threads.lo tokenize.lo treeview.lo trigger.lo \
1260 update.lo upsert.lo util.lo vacuum.lo \
1261 vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \
1262 vdbetrace.lo vdbevtab.lo wal.lo walker.lo where.lo wherecode.lo \
1264 window.lo utf.lo vtab.lo
1267 # Object files for the amalgamation.
1269 LIBOBJS1 = sqlite3.lo
1271 # Determine the real value of LIBOBJ based on the 'configure' script
1274 !IF $(USE_AMALGAMATION)==0
1275 LIBOBJ = $(LIBOBJS0)
1278 LIBOBJ = $(LIBOBJS1)
1283 # Determine if embedded resource compilation and usage are enabled.
1286 LIBRESOBJS = sqlite3res.lo
1292 # Core source code files, part 1.
1295 $(TOP)\src\crypto.c \
1296 $(TOP)\src\crypto_cc.c \
1297 $(TOP)\src\crypto_impl.c \
1298 $(TOP)\src\crypto_libtomcrypt.c \
1299 $(TOP)\src\crypto_nss.c \
1300 $(TOP)\src\crypto_openssl.c \
1301 $(TOP)\src\crypto.h \
1302 $(TOP)\src\sqlcipher.h \
1303 $(TOP)\src\alter.c \
1304 $(TOP)\src\analyze.c \
1305 $(TOP)\src\attach.c \
1307 $(TOP)\src\backup.c \
1308 $(TOP)\src\bitvec.c \
1309 $(TOP)\src\btmutex.c \
1310 $(TOP)\src\btree.c \
1311 $(TOP)\src\build.c \
1312 $(TOP)\src\callback.c \
1313 $(TOP)\src\complete.c \
1314 $(TOP)\src\ctime.c \
1316 $(TOP)\src\dbpage.c \
1317 $(TOP)\src\dbstat.c \
1318 $(TOP)\src\delete.c \
1320 $(TOP)\src\fault.c \
1323 $(TOP)\src\global.c \
1325 $(TOP)\src\insert.c \
1326 $(TOP)\src\legacy.c \
1327 $(TOP)\src\loadext.c \
1329 $(TOP)\src\malloc.c \
1335 $(TOP)\src\memdb.c \
1336 $(TOP)\src\memjournal.c \
1337 $(TOP)\src\mutex.c \
1338 $(TOP)\src\mutex_noop.c \
1339 $(TOP)\src\mutex_unix.c \
1340 $(TOP)\src\mutex_w32.c \
1341 $(TOP)\src\notify.c \
1343 $(TOP)\src\os_unix.c \
1346 # Core source code files, part 2.
1349 $(TOP)\src\pager.c \
1350 $(TOP)\src\pcache.c \
1351 $(TOP)\src\pcache1.c \
1352 $(TOP)\src\pragma.c \
1353 $(TOP)\src\prepare.c \
1354 $(TOP)\src\printf.c \
1355 $(TOP)\src\random.c \
1356 $(TOP)\src\resolve.c \
1357 $(TOP)\src\rowset.c \
1358 $(TOP)\src\select.c \
1359 $(TOP)\src\status.c \
1360 $(TOP)\src\table.c \
1361 $(TOP)\src\threads.c \
1362 $(TOP)\src\tclsqlite.c \
1363 $(TOP)\src\tokenize.c \
1364 $(TOP)\src\treeview.c \
1365 $(TOP)\src\trigger.c \
1367 $(TOP)\src\update.c \
1368 $(TOP)\src\upsert.c \
1370 $(TOP)\src\vacuum.c \
1372 $(TOP)\src\vdbeapi.c \
1373 $(TOP)\src\vdbeaux.c \
1374 $(TOP)\src\vdbeblob.c \
1375 $(TOP)\src\vdbemem.c \
1376 $(TOP)\src\vdbesort.c \
1377 $(TOP)\src\vdbetrace.c \
1378 $(TOP)\src\vdbevtab.c \
1381 $(TOP)\src\walker.c \
1382 $(TOP)\src\where.c \
1383 $(TOP)\src\wherecode.c \
1384 $(TOP)\src\whereexpr.c \
1387 # Core miscellaneous files.
1392 # Core header files, part 1.
1395 $(TOP)\src\btree.h \
1396 $(TOP)\src\btreeInt.h \
1398 $(TOP)\src\hwtime.h \
1400 $(TOP)\src\mutex.h \
1402 $(TOP)\src\os_common.h \
1403 $(TOP)\src\os_setup.h \
1406 # Core header files, part 2.
1409 $(TOP)\src\pager.h \
1410 $(TOP)\src\pcache.h \
1411 $(TOP)\src\pragma.h \
1412 $(TOP)\src\sqlite.h.in \
1413 $(TOP)\src\sqlite3ext.h \
1414 $(TOP)\src\sqliteInt.h \
1415 $(TOP)\src\sqliteLimit.h \
1417 $(TOP)\src\vdbeInt.h \
1418 $(TOP)\src\vxworks.h \
1420 $(TOP)\src\whereInt.h
1422 # Extension source code files, part 1.
1425 $(TOP)\ext\fts1\fts1.c \
1426 $(TOP)\ext\fts1\fts1_hash.c \
1427 $(TOP)\ext\fts1\fts1_porter.c \
1428 $(TOP)\ext\fts1\fts1_tokenizer1.c \
1429 $(TOP)\ext\fts2\fts2.c \
1430 $(TOP)\ext\fts2\fts2_hash.c \
1431 $(TOP)\ext\fts2\fts2_icu.c \
1432 $(TOP)\ext\fts2\fts2_porter.c \
1433 $(TOP)\ext\fts2\fts2_tokenizer.c \
1434 $(TOP)\ext\fts2\fts2_tokenizer1.c
1436 # Extension source code files, part 2.
1439 $(TOP)\ext\fts3\fts3.c \
1440 $(TOP)\ext\fts3\fts3_aux.c \
1441 $(TOP)\ext\fts3\fts3_expr.c \
1442 $(TOP)\ext\fts3\fts3_hash.c \
1443 $(TOP)\ext\fts3\fts3_icu.c \
1444 $(TOP)\ext\fts3\fts3_porter.c \
1445 $(TOP)\ext\fts3\fts3_snippet.c \
1446 $(TOP)\ext\fts3\fts3_tokenizer.c \
1447 $(TOP)\ext\fts3\fts3_tokenizer1.c \
1448 $(TOP)\ext\fts3\fts3_tokenize_vtab.c \
1449 $(TOP)\ext\fts3\fts3_unicode.c \
1450 $(TOP)\ext\fts3\fts3_unicode2.c \
1451 $(TOP)\ext\fts3\fts3_write.c \
1452 $(TOP)\ext\icu\icu.c \
1453 $(TOP)\ext\rtree\rtree.c \
1454 $(TOP)\ext\session\sqlite3session.c \
1455 $(TOP)\ext\rbu\sqlite3rbu.c \
1456 $(TOP)\ext\misc\json1.c \
1457 $(TOP)\ext\misc\stmt.c
1459 # Extension header files, part 1.
1462 $(TOP)\ext\fts1\fts1.h \
1463 $(TOP)\ext\fts1\fts1_hash.h \
1464 $(TOP)\ext\fts1\fts1_tokenizer.h \
1465 $(TOP)\ext\fts2\fts2.h \
1466 $(TOP)\ext\fts2\fts2_hash.h \
1467 $(TOP)\ext\fts2\fts2_tokenizer.h
1469 # Extension header files, part 2.
1472 $(TOP)\ext\fts3\fts3.h \
1473 $(TOP)\ext\fts3\fts3Int.h \
1474 $(TOP)\ext\fts3\fts3_hash.h \
1475 $(TOP)\ext\fts3\fts3_tokenizer.h \
1476 $(TOP)\ext\icu\sqliteicu.h \
1477 $(TOP)\ext\rtree\rtree.h \
1478 $(TOP)\ext\rtree\geopoly.c \
1479 $(TOP)\ext\rbu\sqlite3rbu.h \
1480 $(TOP)\ext\session\sqlite3session.h
1482 # Generated source code files
1488 # Generated header files
1497 # Generated Tcl header files
1499 !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
1507 # All source code files.
1509 SRC = $(SRC00) $(SRC01) $(SRC03) $(SRC04) $(SRC05) $(SRC06) $(SRC07) $(SRC08) $(SRC09) $(SRC10) $(SRC11) $(SRC12)
1511 # Source code to the test files.
1514 $(TOP)\src\test1.c \
1515 $(TOP)\src\test2.c \
1516 $(TOP)\src\test3.c \
1517 $(TOP)\src\test4.c \
1518 $(TOP)\src\test5.c \
1519 $(TOP)\src\test6.c \
1520 $(TOP)\src\test7.c \
1521 $(TOP)\src\test8.c \
1522 $(TOP)\src\test9.c \
1523 $(TOP)\src\test_autoext.c \
1524 $(TOP)\src\test_async.c \
1525 $(TOP)\src\test_backup.c \
1526 $(TOP)\src\test_bestindex.c \
1527 $(TOP)\src\test_blob.c \
1528 $(TOP)\src\test_btree.c \
1529 $(TOP)\src\test_config.c \
1530 $(TOP)\src\test_delete.c \
1531 $(TOP)\src\test_demovfs.c \
1532 $(TOP)\src\test_devsym.c \
1533 $(TOP)\src\test_fs.c \
1534 $(TOP)\src\test_func.c \
1535 $(TOP)\src\test_hexio.c \
1536 $(TOP)\src\test_init.c \
1537 $(TOP)\src\test_intarray.c \
1538 $(TOP)\src\test_journal.c \
1539 $(TOP)\src\test_malloc.c \
1540 $(TOP)\src\test_md5.c \
1541 $(TOP)\src\test_multiplex.c \
1542 $(TOP)\src\test_mutex.c \
1543 $(TOP)\src\test_onefile.c \
1544 $(TOP)\src\test_osinst.c \
1545 $(TOP)\src\test_pcache.c \
1546 $(TOP)\src\test_quota.c \
1547 $(TOP)\src\test_rtree.c \
1548 $(TOP)\src\test_schema.c \
1549 $(TOP)\src\test_server.c \
1550 $(TOP)\src\test_superlock.c \
1551 $(TOP)\src\test_syscall.c \
1552 $(TOP)\src\test_tclsh.c \
1553 $(TOP)\src\test_tclvar.c \
1554 $(TOP)\src\test_thread.c \
1555 $(TOP)\src\test_vdbecov.c \
1556 $(TOP)\src\test_vfs.c \
1557 $(TOP)\src\test_windirent.c \
1558 $(TOP)\src\test_window.c \
1559 $(TOP)\src\test_wsd.c \
1560 $(TOP)\ext\fts3\fts3_term.c \
1561 $(TOP)\ext\fts3\fts3_test.c \
1562 $(TOP)\ext\rbu\test_rbu.c \
1563 $(TOP)\ext\session\test_session.c
1565 # Statically linked extensions.
1568 $(TOP)\ext\expert\sqlite3expert.c \
1569 $(TOP)\ext\expert\test_expert.c \
1570 $(TOP)\ext\misc\amatch.c \
1571 $(TOP)\ext\misc\appendvfs.c \
1572 $(TOP)\ext\misc\carray.c \
1573 $(TOP)\ext\misc\cksumvfs.c \
1574 $(TOP)\ext\misc\closure.c \
1575 $(TOP)\ext\misc\csv.c \
1576 $(TOP)\ext\misc\decimal.c \
1577 $(TOP)\ext\misc\eval.c \
1578 $(TOP)\ext\misc\explain.c \
1579 $(TOP)\ext\misc\fileio.c \
1580 $(TOP)\ext\misc\fuzzer.c \
1581 $(TOP)\ext\fts5\fts5_tcl.c \
1582 $(TOP)\ext\fts5\fts5_test_mi.c \
1583 $(TOP)\ext\fts5\fts5_test_tok.c \
1584 $(TOP)\ext\misc\ieee754.c \
1585 $(TOP)\ext\misc\mmapwarm.c \
1586 $(TOP)\ext\misc\nextchar.c \
1587 $(TOP)\ext\misc\normalize.c \
1588 $(TOP)\ext\misc\percentile.c \
1589 $(TOP)\ext\misc\prefixes.c \
1590 $(TOP)\ext\misc\regexp.c \
1591 $(TOP)\ext\misc\remember.c \
1592 $(TOP)\ext\misc\series.c \
1593 $(TOP)\ext\misc\spellfix.c \
1594 $(TOP)\ext\misc\totype.c \
1595 $(TOP)\ext\misc\unionvtab.c \
1596 $(TOP)\ext\misc\wholenumber.c \
1597 $(TOP)\ext\rtree\test_rtreedoc.c \
1600 # If use of zlib is enabled, add the "zipfile.c" source file.
1603 TESTEXT = $(TESTEXT) $(TOP)\ext\misc\zipfile.c
1606 # Source code to the library files needed by the test fixture
1607 # (non-amalgamation)
1615 $(TOP)\ext\async\sqlite3async.c
1617 # Header files used by all library source files.
1620 $(TOP)\src\btree.h \
1621 $(TOP)\src\btreeInt.h \
1623 $(TOP)\src\hwtime.h \
1626 $(TOP)\src\mutex.h \
1629 $(TOP)\src\os_common.h \
1630 $(TOP)\src\os_setup.h \
1631 $(TOP)\src\os_win.h \
1632 $(TOP)\src\pager.h \
1633 $(TOP)\src\pcache.h \
1635 $(TOP)\src\pragma.h \
1638 $(TOP)\src\sqliteInt.h \
1639 $(TOP)\src\sqliteLimit.h \
1641 $(TOP)\src\vdbeInt.h \
1642 $(TOP)\src\vxworks.h \
1643 $(TOP)\src\whereInt.h
1645 # Header files used by extensions
1647 EXTHDR = $(EXTHDR) \
1648 $(TOP)\ext\fts1\fts1.h \
1649 $(TOP)\ext\fts1\fts1_hash.h \
1650 $(TOP)\ext\fts1\fts1_tokenizer.h
1651 EXTHDR = $(EXTHDR) \
1652 $(TOP)\ext\fts2\fts2.h \
1653 $(TOP)\ext\fts2\fts2_hash.h \
1654 $(TOP)\ext\fts2\fts2_tokenizer.h
1655 EXTHDR = $(EXTHDR) \
1656 $(TOP)\ext\fts3\fts3.h \
1657 $(TOP)\ext\fts3\fts3Int.h \
1658 $(TOP)\ext\fts3\fts3_hash.h \
1659 $(TOP)\ext\fts3\fts3_tokenizer.h
1660 EXTHDR = $(EXTHDR) \
1661 $(TOP)\ext\rtree\rtree.h \
1662 $(TOP)\ext\rtree\geopoly.c
1663 EXTHDR = $(EXTHDR) \
1664 $(TOP)\ext\icu\sqliteicu.h
1665 EXTHDR = $(EXTHDR) \
1666 $(TOP)\ext\rtree\sqlite3rtree.h
1667 EXTHDR = $(EXTHDR) \
1668 $(TOP)\ext\session\sqlite3session.h
1670 # executables needed for testing
1675 sqlite3_analyzer.exe \
1676 sqlite3_checker.exe \
1681 # Databases containing fuzzer test cases
1684 $(TOP)\test\fuzzdata1.db \
1685 $(TOP)\test\fuzzdata2.db \
1686 $(TOP)\test\fuzzdata3.db \
1687 $(TOP)\test\fuzzdata4.db \
1688 $(TOP)\test\fuzzdata5.db \
1689 $(TOP)\test\fuzzdata6.db \
1690 $(TOP)\test\fuzzdata7.db \
1691 $(TOP)\test\fuzzdata8.db
1694 # Additional compiler options for the shell. These are only effective
1695 # when the shell is not being dynamically linked.
1697 !IF $(DYNAMIC_SHELL)==0 && $(FOR_WIN10)==0
1698 SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_FTS4=1
1699 SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_EXPLAIN_COMMENTS=1
1700 SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_OFFSET_SQL_FUNC=1
1704 # Extra compiler options for various test tools.
1706 MPTESTER_COMPILE_OPTS = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS5
1707 FUZZERSHELL_COMPILE_OPTS = -DSQLITE_ENABLE_JSON1
1708 FUZZCHECK_OPTS = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_OSS_FUZZ -DSQLITE_MAX_MEMORY=50000000 -DSQLITE_PRINTF_PRECISION_LIMIT=1000
1709 FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_FTS4
1710 FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_FTS5
1711 FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_RTREE
1712 FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_GEOPOLY
1713 FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_DBSTAT_VTAB
1714 FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_BYTECODE_VTAB
1716 FUZZCHECK_SRC = $(TOP)\test\fuzzcheck.c $(TOP)\test\ossfuzz.c
1717 OSSSHELL_SRC = $(TOP)\test\ossshell.c $(TOP)\test\ossfuzz.c
1718 DBFUZZ_COMPILE_OPTS = -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION
1719 KV_COMPILE_OPTS = -DSQLITE_THREADSAFE=0 -DSQLITE_DIRECT_OVERFLOW_READ
1720 ST_COMPILE_OPTS = -DSQLITE_THREADSAFE=0
1722 # Standard options to testfixture.
1724 TESTOPTS = --verbose=file --output=test-out.txt
1726 # Extra targets for the "all" target that require Tcl.
1729 ALL_TCL_TARGETS = $(SQLITE3TCLDLL)
1735 # This is the default Makefile target. The objects listed here
1736 # are what get build when you type just "make" with no arguments.
1738 core: dll libsqlite3.lib shell
1740 # Targets that require the Tcl library.
1742 tcl: $(ALL_TCL_TARGETS)
1744 # This Makefile target builds all of the standard binaries.
1748 # Dynamic link library section.
1754 shell: $(SQLITE3EXE)
1757 libsqlite3.lib: $(LIBOBJ)
1758 $(LTLIB) $(LTLIBOPTS) /OUT:$@ $(LIBOBJ) $(TLIBS)
1760 libtclsqlite3.lib: tclsqlite.lo libsqlite3.lib
1761 $(LTLIB) $(LTLIBOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) /OUT:$@ tclsqlite.lo libsqlite3.lib $(LIBTCLSTUB) $(TLIBS)
1763 tclsqlite3.def: tclsqlite.lo
1764 echo EXPORTS > tclsqlite3.def
1765 dumpbin /all tclsqlite.lo \
1766 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl include "^\s+/EXPORT:_?((?:Sqlite3|Tclsqlite3)_[^@]*)(?:@\d+)?$$" \1 \
1767 | sort >> tclsqlite3.def
1769 pkgIndex.tcl: $(TOP)\VERSION
1770 for /F %%V in ('type "$(TOP)\VERSION"') do ( \
1771 echo package ifneeded sqlite3 @version@ [list load [file join $$dir $(SQLITE3TCLDLL)] sqlite3] \
1772 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact @version@ %%V > pkgIndex.tcl \
1775 $(SQLITE3TCLDLL): libtclsqlite3.lib $(LIBRESOBJS) tclsqlite3.def pkgIndex.tcl
1776 $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /DEF:tclsqlite3.def /OUT:$@ libtclsqlite3.lib $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
1779 $(SQLITE3DLL): $(LIBOBJ) $(LIBRESOBJS) $(CORE_LINK_DEP)
1780 $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL $(CORE_LINK_OPTS) /OUT:$@ $(LIBOBJ) $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
1783 sqlite3.def: libsqlite3.lib
1784 echo EXPORTS > sqlite3.def
1785 dumpbin /all libsqlite3.lib \
1786 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl include "^\s+1 _?(sqlite3(?:session|changeset|changegroup|rebaser|rbu)?_[^@]*)(?:@\d+)?$$" \1 \
1787 | sort >> sqlite3.def
1790 $(SQLITE3EXE): shell.c $(SHELL_CORE_DEP) $(LIBRESOBJS) $(SHELL_CORE_SRC) $(SQLITE3H)
1791 $(LTLINK) $(SHELL_COMPILE_OPTS) $(READLINE_FLAGS) shell.c $(SHELL_CORE_SRC) \
1792 /link $(SQLITE3EXEPDB) $(LDFLAGS) $(LTLINKOPTS) $(SHELL_LINK_OPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LIBREADLINE) $(LTLIBS) $(TLIBS)
1795 sqldiff.exe: $(TOP)\tool\sqldiff.c $(SQLITE3C) $(SQLITE3H)
1796 $(LTLINK) $(NO_WARN) $(TOP)\tool\sqldiff.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
1798 dbhash.exe: $(TOP)\tool\dbhash.c $(SQLITE3C) $(SQLITE3H)
1799 $(LTLINK) $(NO_WARN) $(TOP)\tool\dbhash.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
1801 scrub.exe: $(TOP)\ext\misc\scrub.c $(SQLITE3C) $(SQLITE3H)
1802 $(LTLINK) $(NO_WARN) -DSCRUB_STANDALONE=1 $(TOP)\ext\misc\scrub.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
1804 srcck1.exe: $(TOP)\tool\srcck1.c
1805 $(BCC) $(NO_WARN) -Fe$@ $(TOP)\tool\srcck1.c
1807 sourcetest: srcck1.exe $(SQLITE3C)
1808 srcck1.exe $(SQLITE3C)
1810 fuzzershell.exe: $(TOP)\tool\fuzzershell.c $(SQLITE3C) $(SQLITE3H)
1811 $(LTLINK) $(NO_WARN) $(FUZZERSHELL_COMPILE_OPTS) $(TOP)\tool\fuzzershell.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
1813 dbfuzz.exe: $(TOP)\test\dbfuzz.c $(SQLITE3C) $(SQLITE3H)
1814 $(LTLINK) $(NO_WARN) $(DBFUZZ_COMPILE_OPTS) $(TOP)\test\dbfuzz.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
1816 fuzzcheck.exe: $(FUZZCHECK_SRC) $(SQLITE3C) $(SQLITE3H)
1817 $(LTLINK) $(NO_WARN) $(FUZZCHECK_OPTS) $(FUZZCHECK_SRC) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
1819 ossshell.exe: $(OSSSHELL_SRC) $(SQLITE3C) $(SQLITE3H)
1820 $(LTLINK) $(NO_WARN) $(FUZZCHECK_OPTS) $(OSSSHELL_SRC) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
1822 sessionfuzz.exe: zlib $(TOP)\test\sessionfuzz.c $(SQLITE3C) $(SQLITE3H)
1823 $(LTLINK) $(NO_WARN) -I$(ZLIBINCDIR) $(TOP)\test\sessionfuzz.c /link $(LDFLAGS) $(LTLINKOPTS) /LIBPATH:$(ZLIBLIBDIR) $(ZLIBLIB)
1825 mptester.exe: $(TOP)\mptest\mptest.c $(SQLITE3C) $(SQLITE3H)
1826 $(LTLINK) $(NO_WARN) $(MPTESTER_COMPILE_OPTS) $(TOP)\mptest\mptest.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
1828 MPTEST1 = mptester mptest.db $(TOP)\mptest\crash01.test --repeat 20
1829 MPTEST2 = mptester mptest.db $(TOP)\mptest\multiwrite01.test --repeat 20
1831 mptest: mptester.exe
1832 del /Q mptest.db 2>NUL
1833 $(MPTEST1) --journalmode DELETE
1834 $(MPTEST2) --journalmode WAL
1835 $(MPTEST1) --journalmode WAL
1836 $(MPTEST2) --journalmode PERSIST
1837 $(MPTEST1) --journalmode PERSIST
1838 $(MPTEST2) --journalmode TRUNCATE
1839 $(MPTEST1) --journalmode TRUNCATE
1840 $(MPTEST2) --journalmode DELETE
1842 # This target creates a directory named "tsrc" and fills it with
1843 # copies of all of the C source code and header files needed to
1844 # build on the target system. Some of the C source code and header
1845 # files are automatically generated. This target takes care of
1846 # all that automatic generation.
1848 .target_source: $(SRC) $(TOP)\tool\vdbe-compress.tcl fts5.c $(SQLITE_TCL_DEP)
1849 -rmdir /Q/S tsrc 2>NUL
1851 for %i in ($(SRC00)) do copy /Y %i tsrc
1852 for %i in ($(SRC01)) do copy /Y %i tsrc
1853 for %i in ($(SRC03)) do copy /Y %i tsrc
1854 for %i in ($(SRC04)) do copy /Y %i tsrc
1855 for %i in ($(SRC05)) do copy /Y %i tsrc
1856 for %i in ($(SRC06)) do copy /Y %i tsrc
1857 for %i in ($(SRC07)) do copy /Y %i tsrc
1858 for %i in ($(SRC08)) do copy /Y %i tsrc
1859 for %i in ($(SRC09)) do copy /Y %i tsrc
1860 for %i in ($(SRC10)) do copy /Y %i tsrc
1861 for %i in ($(SRC11)) do copy /Y %i tsrc
1862 for %i in ($(SRC12)) do copy /Y %i tsrc
1864 copy /B tsrc\fts5.c +,,
1866 copy /B tsrc\fts5.h +,,
1867 del /Q tsrc\sqlite.h.in tsrc\parse.y 2>NUL
1868 $(TCLSH_CMD) $(TOP)\tool\vdbe-compress.tcl $(OPTS) < tsrc\vdbe.c > vdbe.new
1869 move vdbe.new tsrc\vdbe.c
1870 echo > .target_source
1872 sqlite3.c: .target_source sqlite3ext.h sqlite3session.h $(MKSQLITE3C_TOOL)
1873 $(TCLSH_CMD) $(MKSQLITE3C_TOOL) $(MKSQLITE3C_ARGS)
1875 sqlite3-all.c: sqlite3.c $(TOP)\tool\split-sqlite3c.tcl
1876 $(TCLSH_CMD) $(TOP)\tool\split-sqlite3c.tcl
1879 # Rule to build the amalgamation
1881 sqlite3.lo: $(SQLITE3C)
1882 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(SQLITE3C)
1885 # Rules to build the LEMON compiler generator
1887 lempar.c: $(TOP)\tool\lempar.c
1888 copy /Y $(TOP)\tool\lempar.c .
1889 copy /B lempar.c +,,
1891 lemon.exe: $(TOP)\tool\lemon.c lempar.c
1892 $(BCC) $(NO_WARN) -Daccess=_access \
1893 -Fe$@ $(TOP)\tool\lemon.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS)
1896 # Rules to build the source-id generator tool
1898 mksourceid.exe: $(TOP)\tool\mksourceid.c
1899 $(BCC) $(NO_WARN) -Fe$@ $(TOP)\tool\mksourceid.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS)
1901 # Rules to build individual *.lo files from generated *.c files. This
1907 parse.lo: parse.c $(HDR)
1908 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c parse.c
1910 opcodes.lo: opcodes.c
1911 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c opcodes.c
1914 # Rule to build the Win32 resources object file.
1918 $(LIBRESOBJS): $(TOP)\src\sqlite3.rc $(SQLITE3H) $(TOP)\VERSION
1919 echo #ifndef SQLITE_RESOURCE_VERSION > sqlite3rc.h
1920 for /F %%V in ('type "$(TOP)\VERSION"') do ( \
1921 echo #define SQLITE_RESOURCE_VERSION %%V \
1922 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact . ^, >> sqlite3rc.h \
1924 echo #endif >> sqlite3rc.h
1925 $(LTRCOMPILE) -fo $(LIBRESOBJS) $(TOP)\src\sqlite3.rc
1930 # Rules to build individual *.lo files from files in the src directory.
1932 alter.lo: $(TOP)\src\alter.c $(HDR)
1933 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\alter.c
1935 analyze.lo: $(TOP)\src\analyze.c $(HDR)
1936 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\analyze.c
1938 attach.lo: $(TOP)\src\attach.c $(HDR)
1939 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\attach.c
1941 auth.lo: $(TOP)\src\auth.c $(HDR)
1942 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\auth.c
1944 backup.lo: $(TOP)\src\backup.c $(HDR)
1945 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\backup.c
1947 bitvec.lo: $(TOP)\src\bitvec.c $(HDR)
1948 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\bitvec.c
1950 btmutex.lo: $(TOP)\src\btmutex.c $(HDR)
1951 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btmutex.c
1953 btree.lo: $(TOP)\src\btree.c $(HDR) $(TOP)\src\pager.h
1954 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btree.c
1956 build.lo: $(TOP)\src\build.c $(HDR)
1957 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\build.c
1959 callback.lo: $(TOP)\src\callback.c $(HDR)
1960 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\callback.c
1962 complete.lo: $(TOP)\src\complete.c $(HDR)
1963 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\complete.c
1965 ctime.lo: $(TOP)\src\ctime.c $(HDR)
1966 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\ctime.c
1968 date.lo: $(TOP)\src\date.c $(HDR)
1969 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\date.c
1971 dbpage.lo: $(TOP)\src\dbpage.c $(HDR)
1972 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\dbpage.c
1974 dbstat.lo: $(TOP)\src\dbstat.c $(HDR)
1975 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\dbstat.c
1977 delete.lo: $(TOP)\src\delete.c $(HDR)
1978 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\delete.c
1980 expr.lo: $(TOP)\src\expr.c $(HDR)
1981 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\expr.c
1983 fault.lo: $(TOP)\src\fault.c $(HDR)
1984 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fault.c
1986 fkey.lo: $(TOP)\src\fkey.c $(HDR)
1987 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fkey.c
1989 func.lo: $(TOP)\src\func.c $(HDR)
1990 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\func.c
1992 global.lo: $(TOP)\src\global.c $(HDR)
1993 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\global.c
1995 hash.lo: $(TOP)\src\hash.c $(HDR)
1996 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\hash.c
1998 insert.lo: $(TOP)\src\insert.c $(HDR)
1999 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\insert.c
2001 legacy.lo: $(TOP)\src\legacy.c $(HDR)
2002 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\legacy.c
2004 loadext.lo: $(TOP)\src\loadext.c $(HDR)
2005 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\loadext.c
2007 main.lo: $(TOP)\src\main.c $(HDR)
2008 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\main.c
2010 malloc.lo: $(TOP)\src\malloc.c $(HDR)
2011 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\malloc.c
2013 mem0.lo: $(TOP)\src\mem0.c $(HDR)
2014 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem0.c
2016 mem1.lo: $(TOP)\src\mem1.c $(HDR)
2017 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem1.c
2019 mem2.lo: $(TOP)\src\mem2.c $(HDR)
2020 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem2.c
2022 mem3.lo: $(TOP)\src\mem3.c $(HDR)
2023 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem3.c
2025 mem5.lo: $(TOP)\src\mem5.c $(HDR)
2026 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem5.c
2028 memdb.lo: $(TOP)\src\memdb.c $(HDR)
2029 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\memdb.c
2031 memjournal.lo: $(TOP)\src\memjournal.c $(HDR)
2032 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\memjournal.c
2034 mutex.lo: $(TOP)\src\mutex.c $(HDR)
2035 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex.c
2037 mutex_noop.lo: $(TOP)\src\mutex_noop.c $(HDR)
2038 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_noop.c
2040 mutex_unix.lo: $(TOP)\src\mutex_unix.c $(HDR)
2041 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_unix.c
2043 mutex_w32.lo: $(TOP)\src\mutex_w32.c $(HDR)
2044 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_w32.c
2046 notify.lo: $(TOP)\src\notify.c $(HDR)
2047 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\notify.c
2049 pager.lo: $(TOP)\src\pager.c $(HDR) $(TOP)\src\pager.h
2050 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pager.c
2052 pcache.lo: $(TOP)\src\pcache.c $(HDR) $(TOP)\src\pcache.h
2053 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache.c
2055 pcache1.lo: $(TOP)\src\pcache1.c $(HDR) $(TOP)\src\pcache.h
2056 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache1.c
2058 os.lo: $(TOP)\src\os.c $(HDR)
2059 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os.c
2061 os_unix.lo: $(TOP)\src\os_unix.c $(HDR)
2062 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_unix.c
2064 os_win.lo: $(TOP)\src\os_win.c $(HDR)
2065 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_win.c
2067 pragma.lo: $(TOP)\src\pragma.c $(HDR)
2068 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pragma.c
2070 prepare.lo: $(TOP)\src\prepare.c $(HDR)
2071 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\prepare.c
2073 printf.lo: $(TOP)\src\printf.c $(HDR)
2074 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\printf.c
2076 random.lo: $(TOP)\src\random.c $(HDR)
2077 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\random.c
2079 resolve.lo: $(TOP)\src\resolve.c $(HDR)
2080 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\resolve.c
2082 rowset.lo: $(TOP)\src\rowset.c $(HDR)
2083 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\rowset.c
2085 select.lo: $(TOP)\src\select.c $(HDR)
2086 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\select.c
2088 status.lo: $(TOP)\src\status.c $(HDR)
2089 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\status.c
2091 table.lo: $(TOP)\src\table.c $(HDR)
2092 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\table.c
2094 threads.lo: $(TOP)\src\threads.c $(HDR)
2095 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\threads.c
2097 tokenize.lo: $(TOP)\src\tokenize.c keywordhash.h $(HDR)
2098 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\tokenize.c
2100 treeview.lo: $(TOP)\src\treeview.c $(HDR)
2101 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\treeview.c
2103 trigger.lo: $(TOP)\src\trigger.c $(HDR)
2104 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\trigger.c
2106 update.lo: $(TOP)\src\update.c $(HDR)
2107 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\update.c
2109 upsert.lo: $(TOP)\src\upsert.c $(HDR)
2110 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\upsert.c
2112 utf.lo: $(TOP)\src\utf.c $(HDR)
2113 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\utf.c
2115 util.lo: $(TOP)\src\util.c $(HDR)
2116 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\util.c
2118 vacuum.lo: $(TOP)\src\vacuum.c $(HDR)
2119 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vacuum.c
2121 vdbe.lo: $(TOP)\src\vdbe.c $(HDR)
2122 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbe.c
2124 vdbeapi.lo: $(TOP)\src\vdbeapi.c $(HDR)
2125 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeapi.c
2127 vdbeaux.lo: $(TOP)\src\vdbeaux.c $(HDR)
2128 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeaux.c
2130 vdbeblob.lo: $(TOP)\src\vdbeblob.c $(HDR)
2131 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeblob.c
2133 vdbemem.lo: $(TOP)\src\vdbemem.c $(HDR)
2134 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbemem.c
2136 vdbesort.lo: $(TOP)\src\vdbesort.c $(HDR)
2137 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbesort.c
2139 vdbetrace.lo: $(TOP)\src\vdbetrace.c $(HDR)
2140 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbetrace.c
2142 vdbevtab.lo: $(TOP)\src\vdbevtab.c $(HDR)
2143 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbevtab.c
2145 vtab.lo: $(TOP)\src\vtab.c $(HDR)
2146 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vtab.c
2148 wal.lo: $(TOP)\src\wal.c $(HDR)
2149 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\wal.c
2151 walker.lo: $(TOP)\src\walker.c $(HDR)
2152 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\walker.c
2154 where.lo: $(TOP)\src\where.c $(HDR)
2155 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\where.c
2157 wherecode.lo: $(TOP)\src\wherecode.c $(HDR)
2158 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\wherecode.c
2160 whereexpr.lo: $(TOP)\src\whereexpr.c $(HDR)
2161 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\whereexpr.c
2163 window.lo: $(TOP)\src\window.c $(HDR)
2164 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\window.c
2166 tclsqlite.lo: $(TOP)\src\tclsqlite.c $(HDR) $(SQLITE_TCL_DEP)
2167 $(LTCOMPILE) $(NO_WARN) -DUSE_TCL_STUBS=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c
2169 tclsqlite-shell.lo: $(TOP)\src\tclsqlite.c $(HDR) $(SQLITE_TCL_DEP)
2170 $(LTCOMPILE) $(NO_WARN) -DTCLSH -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c
2172 tclsqlite3.exe: tclsqlite-shell.lo $(SQLITE3C) $(SQLITE3H) $(LIBRESOBJS)
2173 $(LTLINK) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) /OUT:$@ tclsqlite-shell.lo $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS)
2175 # Rules to build opcodes.c and opcodes.h
2177 opcodes.c: opcodes.h $(TOP)\tool\mkopcodec.tcl
2178 $(TCLSH_CMD) $(TOP)\tool\mkopcodec.tcl opcodes.h > opcodes.c
2180 opcodes.h: parse.h $(TOP)\src\vdbe.c $(TOP)\tool\mkopcodeh.tcl
2181 type parse.h $(TOP)\src\vdbe.c | $(TCLSH_CMD) $(TOP)\tool\mkopcodeh.tcl > opcodes.h
2183 # Rules to build parse.c and parse.h - the outputs of lemon.
2187 parse.c: $(TOP)\src\parse.y lemon.exe
2188 del /Q parse.y parse.h parse.h.temp 2>NUL
2189 copy /Y $(TOP)\src\parse.y .
2191 .\lemon.exe $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) -S parse.y
2193 $(SQLITE3H): $(TOP)\src\sqlite.h.in $(TOP)\manifest mksourceid.exe $(TOP)\VERSION
2194 $(TCLSH_CMD) $(TOP)\tool\mksqlite3h.tcl $(TOP:\=/) > $(SQLITE3H) $(MKSQLITE3H_ARGS)
2196 sqlite3ext.h: .target_source
2197 !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
2198 type tsrc\sqlite3ext.h | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*\)" "(SQLITE_CALLBACK *)" \
2199 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*" "(SQLITE_APICALL *" > sqlite3ext.h
2200 copy /Y sqlite3ext.h tsrc\sqlite3ext.h
2202 copy /Y tsrc\sqlite3ext.h sqlite3ext.h
2203 copy /B sqlite3ext.h +,,
2206 sqlite3session.h: $(TOP)\ext\session\sqlite3session.h
2207 copy /Y $(TOP)\ext\session\sqlite3session.h .
2208 copy /B sqlite3session.h +,,
2210 mkkeywordhash.exe: $(TOP)\tool\mkkeywordhash.c
2211 $(BCC) $(NO_WARN) -Fe$@ $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) \
2212 $(TOP)\tool\mkkeywordhash.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS)
2214 keywordhash.h: $(TOP)\tool\mkkeywordhash.c mkkeywordhash.exe
2215 .\mkkeywordhash.exe > keywordhash.h
2217 # Source files that go into making shell.c
2219 $(TOP)\src\shell.c.in \
2220 $(TOP)\ext\misc\appendvfs.c \
2221 $(TOP)\ext\misc\completion.c \
2222 $(TOP)\ext\misc\decimal.c \
2223 $(TOP)\ext\misc\fileio.c \
2224 $(TOP)\ext\misc\ieee754.c \
2225 $(TOP)\ext\misc\regexp.c \
2226 $(TOP)\ext\misc\series.c \
2227 $(TOP)\ext\misc\shathree.c \
2228 $(TOP)\ext\misc\uint.c \
2229 $(TOP)\ext\expert\sqlite3expert.c \
2230 $(TOP)\ext\expert\sqlite3expert.h \
2231 $(TOP)\ext\misc\memtrace.c \
2232 $(TOP)\src\test_windirent.c
2234 # If use of zlib is enabled, add the "zipfile.c" source file.
2237 SHELL_SRC = $(SHELL_SRC) $(TOP)\ext\misc\sqlar.c
2238 SHELL_SRC = $(SHELL_SRC) $(TOP)\ext\misc\zipfile.c
2241 shell.c: $(SHELL_SRC) $(TOP)\tool\mkshellc.tcl
2242 $(TCLSH_CMD) $(TOP)\tool\mkshellc.tcl > shell.c
2245 pushd $(ZLIBDIR) && $(MAKE) /f win32\Makefile.msc clean $(ZLIBLIB) && popd
2247 # Rules to build the extension objects.
2249 icu.lo: $(TOP)\ext\icu\icu.c $(HDR) $(EXTHDR)
2250 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\icu\icu.c
2252 fts2.lo: $(TOP)\ext\fts2\fts2.c $(HDR) $(EXTHDR)
2253 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2.c
2255 fts2_hash.lo: $(TOP)\ext\fts2\fts2_hash.c $(HDR) $(EXTHDR)
2256 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_hash.c
2258 fts2_icu.lo: $(TOP)\ext\fts2\fts2_icu.c $(HDR) $(EXTHDR)
2259 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_icu.c
2261 fts2_porter.lo: $(TOP)\ext\fts2\fts2_porter.c $(HDR) $(EXTHDR)
2262 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_porter.c
2264 fts2_tokenizer.lo: $(TOP)\ext\fts2\fts2_tokenizer.c $(HDR) $(EXTHDR)
2265 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer.c
2267 fts2_tokenizer1.lo: $(TOP)\ext\fts2\fts2_tokenizer1.c $(HDR) $(EXTHDR)
2268 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer1.c
2270 fts3.lo: $(TOP)\ext\fts3\fts3.c $(HDR) $(EXTHDR)
2271 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3.c
2273 fts3_aux.lo: $(TOP)\ext\fts3\fts3_aux.c $(HDR) $(EXTHDR)
2274 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_aux.c
2276 fts3_expr.lo: $(TOP)\ext\fts3\fts3_expr.c $(HDR) $(EXTHDR)
2277 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_expr.c
2279 fts3_hash.lo: $(TOP)\ext\fts3\fts3_hash.c $(HDR) $(EXTHDR)
2280 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_hash.c
2282 fts3_icu.lo: $(TOP)\ext\fts3\fts3_icu.c $(HDR) $(EXTHDR)
2283 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_icu.c
2285 fts3_snippet.lo: $(TOP)\ext\fts3\fts3_snippet.c $(HDR) $(EXTHDR)
2286 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_snippet.c
2288 fts3_porter.lo: $(TOP)\ext\fts3\fts3_porter.c $(HDR) $(EXTHDR)
2289 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_porter.c
2291 fts3_tokenizer.lo: $(TOP)\ext\fts3\fts3_tokenizer.c $(HDR) $(EXTHDR)
2292 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer.c
2294 fts3_tokenizer1.lo: $(TOP)\ext\fts3\fts3_tokenizer1.c $(HDR) $(EXTHDR)
2295 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer1.c
2297 fts3_tokenize_vtab.lo: $(TOP)\ext\fts3\fts3_tokenize_vtab.c $(HDR) $(EXTHDR)
2298 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenize_vtab.c
2300 fts3_unicode.lo: $(TOP)\ext\fts3\fts3_unicode.c $(HDR) $(EXTHDR)
2301 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode.c
2303 fts3_unicode2.lo: $(TOP)\ext\fts3\fts3_unicode2.c $(HDR) $(EXTHDR)
2304 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode2.c
2306 fts3_write.lo: $(TOP)\ext\fts3\fts3_write.c $(HDR) $(EXTHDR)
2307 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_write.c
2309 json1.lo: $(TOP)\ext\misc\json1.c $(HDR) $(EXTHDR)
2310 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\misc\json1.c
2312 stmt.lo: $(TOP)\ext\misc\stmt.c $(HDR) $(EXTHDR)
2313 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\misc\stmt.c
2315 rtree.lo: $(TOP)\ext\rtree\rtree.c $(HDR) $(EXTHDR)
2316 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\rtree\rtree.c
2318 sqlite3session.lo: $(TOP)\ext\session\sqlite3session.c $(HDR) $(EXTHDR)
2319 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\session\sqlite3session.c
2324 $(TOP)\ext\fts5\fts5.h \
2325 $(TOP)\ext\fts5\fts5Int.h \
2326 $(TOP)\ext\fts5\fts5_aux.c \
2327 $(TOP)\ext\fts5\fts5_buffer.c \
2328 $(TOP)\ext\fts5\fts5_main.c \
2329 $(TOP)\ext\fts5\fts5_config.c \
2330 $(TOP)\ext\fts5\fts5_expr.c \
2331 $(TOP)\ext\fts5\fts5_hash.c \
2332 $(TOP)\ext\fts5\fts5_index.c \
2333 fts5parse.c fts5parse.h \
2334 $(TOP)\ext\fts5\fts5_storage.c \
2335 $(TOP)\ext\fts5\fts5_tokenize.c \
2336 $(TOP)\ext\fts5\fts5_unicode2.c \
2337 $(TOP)\ext\fts5\fts5_varint.c \
2338 $(TOP)\ext\fts5\fts5_vocab.c
2341 $(TOP)\ext\lsm1\lsm.h \
2342 $(TOP)\ext\lsm1\lsmInt.h \
2343 $(TOP)\ext\lsm1\lsm_ckpt.c \
2344 $(TOP)\ext\lsm1\lsm_file.c \
2345 $(TOP)\ext\lsm1\lsm_log.c \
2346 $(TOP)\ext\lsm1\lsm_main.c \
2347 $(TOP)\ext\lsm1\lsm_mem.c \
2348 $(TOP)\ext\lsm1\lsm_mutex.c \
2349 $(TOP)\ext\lsm1\lsm_shared.c \
2350 $(TOP)\ext\lsm1\lsm_sorted.c \
2351 $(TOP)\ext\lsm1\lsm_str.c \
2352 $(TOP)\ext\lsm1\lsm_tree.c \
2353 $(TOP)\ext\lsm1\lsm_unix.c \
2354 $(TOP)\ext\lsm1\lsm_varint.c \
2355 $(TOP)\ext\lsm1\lsm_vtab.c \
2356 $(TOP)\ext\lsm1\lsm_win32.c
2358 fts5parse.c: $(TOP)\ext\fts5\fts5parse.y lemon.exe
2359 copy /Y $(TOP)\ext\fts5\fts5parse.y .
2360 copy /B fts5parse.y +,,
2361 del /Q fts5parse.h 2>NUL
2362 .\lemon.exe $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) -S fts5parse.y
2364 fts5parse.h: fts5parse.c
2367 $(TCLSH_CMD) $(TOP)\ext\fts5\tool\mkfts5c.tcl
2368 copy /Y $(TOP)\ext\fts5\fts5.h .
2372 $(TCLSH_CMD) $(TOP)\ext\lsm1\tool\mklsm1c.tcl
2373 copy /Y $(TOP)\ext\lsm1\lsm.h .
2376 fts5.lo: fts5.c $(HDR) $(EXTHDR)
2377 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c fts5.c
2379 fts5_ext.lo: fts5.c $(HDR) $(EXTHDR)
2380 $(LTCOMPILE) $(NO_WARN) -c fts5.c
2382 fts5.dll: fts5_ext.lo
2383 $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /OUT:$@ fts5_ext.lo
2385 sqlite3rbu.lo: $(TOP)\ext\rbu\sqlite3rbu.c $(HDR) $(EXTHDR)
2386 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\rbu\sqlite3rbu.c
2388 # Rules to build the 'testfixture' application.
2390 # If using the amalgamation, use sqlite3.c directly to build the test
2391 # fixture. Otherwise link against libsqlite3.lib. (This distinction is
2392 # necessary because the test fixture requires non-API symbols which are
2393 # hidden when the library is built via the amalgamation).
2395 TESTFIXTURE_FLAGS = -DTCLSH_INIT_PROC=sqlite3TestInit -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1
2396 TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERVER=1 -DSQLITE_PRIVATE=""
2397 TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_CORE $(NO_WARN)
2398 TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERIES_CONSTRAINT_VERIFY=1
2399 TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_DEFAULT_PAGE_SIZE=1024
2400 TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_ENABLE_STMTVTAB=1
2401 TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_ENABLE_DBPAGE_VTAB=1
2402 TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_ENABLE_BYTECODE_VTAB=1
2403 TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_ENABLE_JSON1=1
2404 TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_CKSUMVFS_STATIC=1
2405 TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) $(TEST_CCONV_OPTS)
2407 TESTFIXTURE_SRC0 = $(TESTEXT) $(TESTSRC2)
2408 TESTFIXTURE_SRC1 = $(TESTEXT) $(SQLITE3C)
2409 !IF $(USE_AMALGAMATION)==0
2410 TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC0)
2412 TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC1)
2415 !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
2417 echo #ifndef SQLITE_TCLAPI > $(SQLITETCLDECLSH)
2418 echo # define SQLITE_TCLAPI >> $(SQLITETCLDECLSH)
2419 echo #endif >> $(SQLITETCLDECLSH)
2420 type "$(TCLINCDIR)\tclDecls.h" \
2421 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "^(EXTERN(?: CONST\d+?)?\s+?[^\(]*?\s+?)Tcl_" "\1 SQLITE_TCLAPI Tcl_" \
2422 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "^(EXTERN\s+?(?:void|VOID)\s+?)TclFreeObj" "\1 SQLITE_TCLAPI TclFreeObj" \
2423 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*tcl_" "(SQLITE_TCLAPI *tcl_" \
2424 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*tclFreeObj" "(SQLITE_TCLAPI *tclFreeObj" \
2425 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*" "(SQLITE_TCLAPI *" >> $(SQLITETCLDECLSH)
2428 type "$(TCLINCDIR)\tcl.h" | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact tclDecls.h sqlite_tclDecls.h \
2429 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "typedef (.*?)\(Tcl_" "typedef \1 (SQLITE_TCLAPI Tcl_" \
2430 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact "void (*freeProc)" "void (SQLITE_TCLAPI *freeProc)" \
2431 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact "Tcl_HashEntry *(*findProc)" "Tcl_HashEntry *(SQLITE_TCLAPI *findProc)" \
2432 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact "Tcl_HashEntry *(*createProc)" "Tcl_HashEntry *(SQLITE_TCLAPI *createProc)" >> $(SQLITETCLH)
2435 testfixture.exe: $(TESTFIXTURE_SRC) $(TESTFIXTURE_DEP) $(SQLITE3H) $(LIBRESOBJS) $(HDR) $(SQLITE_TCL_DEP)
2436 $(LTLINK) -DSQLITE_NO_SYNC=1 $(TESTFIXTURE_FLAGS) \
2437 -DBUILD_sqlite -I$(TCLINCDIR) \
2438 $(TESTFIXTURE_SRC) \
2439 /link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS)
2441 extensiontest: testfixture.exe testloadext.dll
2442 @set PATH=$(LIBTCLPATH);$(PATH)
2443 .\testfixture.exe $(TOP)\test\loadext.test $(TESTOPTS)
2445 coretestprogs: $(TESTPROGS)
2447 testprogs: coretestprogs srcck1.exe fuzzcheck.exe sessionfuzz.exe
2449 fulltest: alltest fuzztest
2451 alltest: $(TESTPROGS)
2452 @set PATH=$(LIBTCLPATH);$(PATH)
2453 .\testfixture.exe $(TOP)\test\all.test $(TESTOPTS)
2455 soaktest: $(TESTPROGS)
2456 @set PATH=$(LIBTCLPATH);$(PATH)
2457 .\testfixture.exe $(TOP)\test\all.test -soak=1 $(TESTOPTS)
2459 fulltestonly: $(TESTPROGS) fuzztest
2460 @set PATH=$(LIBTCLPATH);$(PATH)
2461 .\testfixture.exe $(TOP)\test\full.test
2463 queryplantest: testfixture.exe shell
2464 @set PATH=$(LIBTCLPATH);$(PATH)
2465 .\testfixture.exe $(TOP)\test\permutations.test queryplanner $(TESTOPTS)
2467 fuzztest: fuzzcheck.exe
2468 .\fuzzcheck.exe $(FUZZDATA)
2470 # Minimal testing that runs in less than 3 minutes (on a fast machine)
2472 quicktest: testfixture.exe sourcetest
2473 @set PATH=$(LIBTCLPATH);$(PATH)
2474 .\testfixture.exe $(TOP)\test\extraquick.test $(TESTOPTS)
2476 # This is the common case. Run many tests that do not take too long,
2477 # including fuzzcheck, sqlite3_analyzer, and sqldiff tests.
2479 test: $(TESTPROGS) sourcetest fuzztest tcltest
2481 # The veryquick.test TCL tests.
2483 tcltest: testfixture.exe
2484 @set PATH=$(LIBTCLPATH);$(PATH)
2485 .\testfixture.exe $(TOP)\test\veryquick.test $(TESTOPTS)
2487 smoketest: $(TESTPROGS)
2488 @set PATH=$(LIBTCLPATH);$(PATH)
2489 .\testfixture.exe $(TOP)\test\main.test $(TESTOPTS)
2491 shelltest: $(TESTPROGS)
2492 .\testfixture.exe $(TOP)\test\permutations.test shell
2494 sqlite3_analyzer.c: $(SQLITE3C) $(SQLITE3H) $(TOP)\src\tclsqlite.c $(TOP)\tool\spaceanal.tcl $(TOP)\tool\mkccode.tcl $(TOP)\tool\sqlite3_analyzer.c.in $(SQLITE_TCL_DEP)
2495 $(TCLSH_CMD) $(TOP)\tool\mkccode.tcl $(TOP)\tool\sqlite3_analyzer.c.in > $@
2497 sqlite3_analyzer.exe: sqlite3_analyzer.c $(LIBRESOBJS)
2498 $(LTLINK) $(NO_WARN) -DBUILD_sqlite -I$(TCLINCDIR) sqlite3_analyzer.c \
2499 /link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS)
2501 sqltclsh.c: sqlite3.c $(TOP)\src\tclsqlite.c $(TOP)\tool\sqltclsh.tcl $(TOP)\ext\misc\appendvfs.c $(TOP)\tool\mkccode.tcl $(TOP)\tool\sqltclsh.c.in
2502 $(TCLSH_CMD) $(TOP)\tool\mkccode.tcl $(TOP)\tool\sqltclsh.c.in >sqltclsh.c
2504 sqltclsh.exe: sqltclsh.c $(SHELL_CORE_DEP) $(LIBRESOBJS)
2505 $(LTLINK) $(NO_WARN) -DBUILD_sqlite -I$(TCLINCDIR) sqltclsh.c \
2506 /link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS)
2508 sqlite3_expert.exe: $(SQLITE3C) $(TOP)\ext\expert\sqlite3expert.h $(TOP)\ext\expert\sqlite3expert.c $(TOP)\ext\expert\expert.c
2509 $(LTLINK) $(NO_WARN) $(TOP)\ext\expert\sqlite3expert.c $(TOP)\ext\expert\expert.c $(SQLITE3C) $(TLIBS)
2512 $(TOP)/tool/mkccode.tcl \
2514 $(TOP)/src/tclsqlite.c \
2515 $(TOP)/ext/repair/sqlite3_checker.tcl \
2516 $(TOP)/ext/repair/checkindex.c \
2517 $(TOP)/ext/repair/checkfreelist.c \
2518 $(TOP)/ext/misc/btreeinfo.c \
2519 $(TOP)/ext/repair/sqlite3_checker.c.in
2521 sqlite3_checker.c: $(CHECKER_DEPS)
2522 $(TCLSH_CMD) $(TOP)\tool\mkccode.tcl $(TOP)\ext\repair\sqlite3_checker.c.in > $@
2524 sqlite3_checker.exe: sqlite3_checker.c $(LIBRESOBJS)
2525 $(LTLINK) $(NO_WARN) -DBUILD_sqlite -I$(TCLINCDIR) sqlite3_checker.c \
2526 /link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS)
2528 dbdump.exe: $(TOP)\ext\misc\dbdump.c $(SQLITE3C) $(SQLITE3H) $(LIBRESOBJS)
2529 $(LTLINK) $(NO_WARN) -DDBDUMP_STANDALONE $(TOP)\ext\misc\dbdump.c $(SQLITE3C) \
2530 /link $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS)
2532 testloadext.lo: $(TOP)\src\test_loadext.c $(SQLITE3H)
2533 $(LTCOMPILE) $(NO_WARN) -c $(TOP)\src\test_loadext.c
2535 testloadext.dll: testloadext.lo
2536 $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /OUT:$@ testloadext.lo
2538 dbtotxt.exe: $(TOP)\tool\dbtotxt.c
2539 $(LTLINK) $(NO_WARN) $(TOP)\tool\dbtotxt.c /link $(LDFLAGS) $(LTLINKOPTS)
2541 showdb.exe: $(TOP)\tool\showdb.c $(SQLITE3C) $(SQLITE3H)
2542 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
2543 $(TOP)\tool\showdb.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2545 showstat4.exe: $(TOP)\tool\showstat4.c $(SQLITE3C) $(SQLITE3H)
2546 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
2547 $(TOP)\tool\showstat4.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2549 showjournal.exe: $(TOP)\tool\showjournal.c $(SQLITE3C) $(SQLITE3H)
2550 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
2551 $(TOP)\tool\showjournal.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2553 showwal.exe: $(TOP)\tool\showwal.c $(SQLITE3C) $(SQLITE3H)
2554 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
2555 $(TOP)\tool\showwal.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2557 showshm.exe: $(TOP)\tool\showshm.c
2558 $(LTLINK) $(NO_WARN) $(TOP)\tool\showshm.c /link $(LDFLAGS) $(LTLINKOPTS)
2560 index_usage.exe: $(TOP)\tool\index_usage.c $(SQLITE3C) $(SQLITE3H)
2561 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
2562 $(TOP)\tool\index_usage.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2564 changeset.exe: $(TOP)\ext\session\changeset.c $(SQLITE3C) $(SQLITE3H)
2565 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
2566 -DSQLITE_ENABLE_SESSION=1 -DSQLITE_ENABLE_PREUPDATE_HOOK=1 \
2567 $(TOP)\ext\session\changeset.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2569 changesetfuzz.exe: $(TOP)\ext\session\changesetfuzz.c $(SQLITE3C) $(SQLITE3H)
2570 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
2571 -DSQLITE_ENABLE_SESSION=1 -DSQLITE_ENABLE_PREUPDATE_HOOK=1 \
2572 $(TOP)\ext\session\changesetfuzz.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2574 fts3view.exe: $(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) $(SQLITE3H)
2575 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
2576 $(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2578 rollback-test.exe: $(TOP)\tool\rollback-test.c $(SQLITE3C) $(SQLITE3H)
2579 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
2580 $(TOP)\tool\rollback-test.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2582 atrc.exe: $(TOP)\test\atrc.c $(SQLITE3C) $(SQLITE3H)
2583 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
2584 $(TOP)\test\atrc.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2586 LogEst.exe: $(TOP)\tool\logest.c $(SQLITE3H)
2587 $(LTLINK) $(NO_WARN) $(TOP)\tool\LogEst.c /link $(LDFLAGS) $(LTLINKOPTS)
2589 wordcount.exe: $(TOP)\test\wordcount.c $(SQLITE3C) $(SQLITE3H)
2590 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
2591 $(TOP)\test\wordcount.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2593 speedtest1.exe: $(TOP)\test\speedtest1.c $(SQLITE3C) $(SQLITE3H)
2594 $(LTLINK) $(NO_WARN) $(ST_COMPILE_OPTS) -DSQLITE_OMIT_LOAD_EXTENSION \
2595 $(TOP)\test\speedtest1.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2597 kvtest.exe: $(TOP)\test\kvtest.c $(SQLITE3C) $(SQLITE3H)
2598 $(LTLINK) $(NO_WARN) $(KV_COMPILE_OPTS) \
2599 $(TOP)\test\kvtest.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2601 rbu.exe: $(TOP)\ext\rbu\rbu.c $(TOP)\ext\rbu\sqlite3rbu.c $(SQLITE3C) $(SQLITE3H)
2602 $(LTLINK) $(NO_WARN) -DSQLITE_ENABLE_RBU \
2603 $(TOP)\ext\rbu\rbu.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2606 $(TOP)\test\threadtest3.c \
2607 $(TOP)\test\tt3_checkpoint.c \
2608 $(TOP)\test\tt3_index.c \
2609 $(TOP)\test\tt3_vacuum.c \
2610 $(TOP)\test\tt3_stress.c \
2611 $(TOP)\test\tt3_lookaside1.c
2613 threadtest3.exe: $(THREADTEST3_SRC) $(TOP)\src\test_multiplex.c $(SQLITE3C) $(SQLITE3H)
2614 $(LTLINK) $(NO_WARN) $(TOP)\test\threadtest3.c $(TOP)\src\test_multiplex.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS)
2616 LSMDIR=$(TOP)\ext\lsm1
2617 !INCLUDE $(LSMDIR)\Makefile.msc
2620 del /Q $(SQLITE3C) $(SQLITE3H) 2>NUL
2624 del /Q *.exp *.lo *.ilk *.lib *.obj *.ncb *.pdb *.sdf *.suo 2>NUL
2625 del /Q *.bsc *.def *.cod *.da *.bb *.bbg *.vc gmon.out 2>NUL
2626 del /Q $(SQLITE3EXE) $(SQLITE3DLL) Replace.exe 2>NUL
2628 del /Q $(SQLITE3TCLDLL) pkgIndex.tcl 2>NUL
2629 del /Q opcodes.c opcodes.h 2>NUL
2630 del /Q lemon.* lempar.c parse.* 2>NUL
2631 del /Q mksourceid.* mkkeywordhash.* keywordhash.h 2>NUL
2632 del /Q notasharedlib.* 2>NUL
2633 -rmdir /Q/S .deps 2>NUL
2634 -rmdir /Q/S .libs 2>NUL
2635 -rmdir /Q/S tsrc 2>NUL
2636 del /Q .target_source 2>NUL
2637 del /Q tclsqlite3.exe $(SQLITETCLH) $(SQLITETCLDECLSH) 2>NUL
2638 del /Q lsm.dll lsmtest.exe 2>NUL
2639 del /Q atrc.exe changesetfuzz.exe dbtotxt.exe index_usage.exe 2>NUL
2640 del /Q testloadext.dll 2>NUL
2641 del /Q testfixture.exe test.db 2>NUL
2642 del /Q LogEst.exe fts3view.exe rollback-test.exe showdb.exe dbdump.exe 2>NUL
2643 del /Q changeset.exe 2>NUL
2644 del /Q showjournal.exe showstat4.exe showwal.exe speedtest1.exe 2>NUL
2645 del /Q mptester.exe wordcount.exe rbu.exe srcck1.exe 2>NUL
2646 del /Q sqlite3.c sqlite3-*.c sqlite3.h 2>NUL
2647 del /Q sqlite3rc.h 2>NUL
2648 del /Q shell.c sqlite3ext.h sqlite3session.h 2>NUL
2649 del /Q sqlite3_analyzer.exe sqlite3_analyzer.c 2>NUL
2650 del /Q sqlite-*-output.vsix 2>NUL
2651 del /Q fuzzershell.exe fuzzcheck.exe sqldiff.exe dbhash.exe 2>NUL
2652 del /Q sqltclsh.* 2>NUL
2653 del /Q dbfuzz.exe sessionfuzz.exe threadtest3.exe 2>NUL
2654 del /Q kvtest.exe ossshell.exe scrub.exe 2>NUL
2655 del /Q showshm.exe sqlite3_checker.* sqlite3_expert.exe 2>NUL
2656 del /Q fts5.* fts5parse.* 2>NUL
2657 del /Q lsm.h lsm1.c 2>NUL