1# 2# nmake Makefile for SQLite 3# 4############################################################################### 5############################## START OF OPTIONS ############################### 6############################################################################### 7 8# The toplevel directory of the source tree. This is the directory 9# that contains this "Makefile.msc". 10# 11TOP = . 12 13# <<mark>> 14# Set this non-0 to create and use the SQLite amalgamation file. 15# 16!IFNDEF USE_AMALGAMATION 17USE_AMALGAMATION = 1 18!ENDIF 19# <</mark>> 20 21# Set this non-0 to enable full warnings (-W4, etc) when compiling. 22# 23!IFNDEF USE_FULLWARN 24USE_FULLWARN = 0 25!ENDIF 26 27# Set this non-0 to use "stdcall" calling convention for the core library 28# and shell executable. 29# 30!IFNDEF USE_STDCALL 31USE_STDCALL = 0 32!ENDIF 33 34# Set this non-0 to have the shell executable link against the core dynamic 35# link library. 36# 37!IFNDEF DYNAMIC_SHELL 38DYNAMIC_SHELL = 0 39!ENDIF 40 41# Set this non-0 to enable extra code that attempts to detect misuse of the 42# SQLite API. 43# 44!IFNDEF API_ARMOR 45API_ARMOR = 0 46!ENDIF 47 48# If necessary, create a list of harmless compiler warnings to disable when 49# compiling the various tools. For the SQLite source code itself, warnings, 50# if any, will be disabled from within it. 51# 52!IFNDEF NO_WARN 53!IF $(USE_FULLWARN)!=0 54NO_WARN = -wd4054 -wd4055 -wd4100 -wd4127 -wd4130 -wd4152 -wd4189 -wd4206 55NO_WARN = $(NO_WARN) -wd4210 -wd4232 -wd4305 -wd4306 -wd4702 -wd4706 56!ENDIF 57!ENDIF 58 59# Set this non-0 to use the library paths and other options necessary for 60# Windows Phone 8.1. 61# 62!IFNDEF USE_WP81_OPTS 63USE_WP81_OPTS = 0 64!ENDIF 65 66# Set this non-0 to split the SQLite amalgamation file into chunks to 67# be used for debugging with Visual Studio. 68# 69!IFNDEF SPLIT_AMALGAMATION 70SPLIT_AMALGAMATION = 0 71!ENDIF 72 73# <<mark>> 74# Set this non-0 to use the International Components for Unicode (ICU). 75# 76!IFNDEF USE_ICU 77USE_ICU = 0 78!ENDIF 79# <</mark>> 80 81# Set this non-0 to dynamically link to the MSVC runtime library. 82# 83!IFNDEF USE_CRT_DLL 84USE_CRT_DLL = 0 85!ENDIF 86 87# Set this non-0 to link to the RPCRT4 library. 88# 89!IFNDEF USE_RPCRT4_LIB 90USE_RPCRT4_LIB = 0 91!ENDIF 92 93# Set this non-0 to generate assembly code listings for the source code 94# files. 95# 96!IFNDEF USE_LISTINGS 97USE_LISTINGS = 0 98!ENDIF 99 100# Set this non-0 to attempt setting the native compiler automatically 101# for cross-compiling the command line tools needed during the compilation 102# process. 103# 104!IFNDEF XCOMPILE 105XCOMPILE = 0 106!ENDIF 107 108# Set this non-0 to use the native libraries paths for cross-compiling 109# the command line tools needed during the compilation process. 110# 111!IFNDEF USE_NATIVE_LIBPATHS 112USE_NATIVE_LIBPATHS = 0 113!ENDIF 114 115# Set this 0 to skip the compiling and embedding of version resources. 116# 117!IFNDEF USE_RC 118USE_RC = 1 119!ENDIF 120 121# Set this non-0 to compile binaries suitable for the WinRT environment. 122# This setting does not apply to any binaries that require Tcl to operate 123# properly (i.e. the text fixture, etc). 124# 125!IFNDEF FOR_WINRT 126FOR_WINRT = 0 127!ENDIF 128 129# Set this non-0 to compile binaries suitable for the UWP environment. 130# This setting does not apply to any binaries that require Tcl to operate 131# properly (i.e. the text fixture, etc). 132# 133!IFNDEF FOR_UWP 134FOR_UWP = 0 135!ENDIF 136 137# Set this non-0 to compile binaries suitable for the Windows 10 platform. 138# 139!IFNDEF FOR_WIN10 140FOR_WIN10 = 0 141!ENDIF 142 143# <<mark>> 144# Set this non-0 to skip attempting to look for and/or link with the Tcl 145# runtime library. 146# 147!IFNDEF NO_TCL 148NO_TCL = 0 149!ENDIF 150# <</mark>> 151 152# Set this to non-0 to create and use PDBs. 153# 154!IFNDEF SYMBOLS 155SYMBOLS = 1 156!ENDIF 157 158# Set this to non-0 to use the SQLite debugging heap subsystem. 159# 160!IFNDEF MEMDEBUG 161MEMDEBUG = 0 162!ENDIF 163 164# Set this to non-0 to use the Win32 native heap subsystem. 165# 166!IFNDEF WIN32HEAP 167WIN32HEAP = 0 168!ENDIF 169 170# Set this to non-0 to enable OSTRACE() macros, which can be useful when 171# debugging. 172# 173!IFNDEF OSTRACE 174OSTRACE = 0 175!ENDIF 176 177# Set this to one of the following values to enable various debugging 178# features. Each level includes the debugging options from the previous 179# levels. Currently, the recognized values for DEBUG are: 180# 181# 0 == NDEBUG: Disables assert() and other runtime diagnostics. 182# 1 == SQLITE_ENABLE_API_ARMOR: extra attempts to detect misuse of the API. 183# 2 == Disables NDEBUG and all optimizations and then enables PDBs. 184# 3 == SQLITE_DEBUG: Enables various diagnostics messages and code. 185# 4 == SQLITE_WIN32_MALLOC_VALIDATE: Validate the Win32 native heap per call. 186# 5 == SQLITE_DEBUG_OS_TRACE: Enables output from the OSTRACE() macros. 187# 6 == SQLITE_ENABLE_IOTRACE: Enables output from the IOTRACE() macros. 188# 189!IFNDEF DEBUG 190DEBUG = 0 191!ENDIF 192 193# Enable use of available compiler optimizations? Normally, this should be 194# non-zero. Setting this to zero, thus disabling all compiler optimizations, 195# can be useful for testing. 196# 197!IFNDEF OPTIMIZATIONS 198OPTIMIZATIONS = 2 199!ENDIF 200 201# Set the source code file to be used by executables and libraries when 202# they need the amalgamation. 203# 204!IFNDEF SQLITE3C 205!IF $(SPLIT_AMALGAMATION)!=0 206SQLITE3C = sqlite3-all.c 207!ELSE 208SQLITE3C = sqlite3.c 209!ENDIF 210!ENDIF 211 212# Set the include code file to be used by executables and libraries when 213# they need SQLite. 214# 215!IFNDEF SQLITE3H 216SQLITE3H = sqlite3.h 217!ENDIF 218 219# This is the name to use for the SQLite dynamic link library (DLL). 220# 221!IFNDEF SQLITE3DLL 222!IF $(FOR_WIN10)!=0 223SQLITE3DLL = winsqlite3.dll 224!ELSE 225SQLITE3DLL = sqlite3.dll 226!ENDIF 227!ENDIF 228 229# This is the name to use for the SQLite import library (LIB). 230# 231!IFNDEF SQLITE3LIB 232!IF $(FOR_WIN10)!=0 233SQLITE3LIB = winsqlite3.lib 234!ELSE 235SQLITE3LIB = sqlite3.lib 236!ENDIF 237!ENDIF 238 239# This is the name to use for the SQLite shell executable (EXE). 240# 241!IFNDEF SQLITE3EXE 242!IF $(FOR_WIN10)!=0 243SQLITE3EXE = winsqlite3shell.exe 244!ELSE 245SQLITE3EXE = sqlite3.exe 246!ENDIF 247!ENDIF 248 249# This is the argument used to set the program database (PDB) file for the 250# SQLite shell executable (EXE). 251# 252!IFNDEF SQLITE3EXEPDB 253!IF $(FOR_WIN10)!=0 254SQLITE3EXEPDB = 255!ELSE 256SQLITE3EXEPDB = /pdb:sqlite3sh.pdb 257!ENDIF 258!ENDIF 259 260# These are the "standard" SQLite compilation options used when compiling for 261# the Windows platform. 262# 263!IFNDEF OPT_FEATURE_FLAGS 264OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS3=1 265OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RTREE=1 266OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_COLUMN_METADATA=1 267!ENDIF 268 269# These are the "extended" SQLite compilation options used when compiling for 270# the Windows 10 platform. 271# 272!IFNDEF EXT_FEATURE_FLAGS 273!IF $(FOR_WIN10)!=0 274EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS4=1 275EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_SYSTEM_MALLOC=1 276EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_OMIT_LOCALTIME=1 277!ELSE 278EXT_FEATURE_FLAGS = 279!ENDIF 280!ENDIF 281 282############################################################################### 283############################### END OF OPTIONS ################################ 284############################################################################### 285 286# When compiling for the Windows 10 platform, the PLATFORM macro must be set 287# to an appropriate value (e.g. x86, x64, arm, arm64, etc). 288# 289!IF $(FOR_WIN10)!=0 290!IFNDEF PLATFORM 291!ERROR Using the FOR_WIN10 option requires a value for PLATFORM. 292!ENDIF 293!ENDIF 294 295# This assumes that MSVC is always installed in 32-bit Program Files directory 296# and sets the variable for use in locating other 32-bit installs accordingly. 297# 298PROGRAMFILES_X86 = $(VCINSTALLDIR)\..\.. 299PROGRAMFILES_X86 = $(PROGRAMFILES_X86:\\=\) 300 301# Check for the predefined command macro CC. This should point to the compiler 302# binary for the target platform. If it is not defined, simply define it to 303# the legacy default value 'cl.exe'. 304# 305!IFNDEF CC 306CC = cl.exe 307!ENDIF 308 309# Check for the command macro LD. This should point to the linker binary for 310# the target platform. If it is not defined, simply define it to the legacy 311# default value 'link.exe'. 312# 313!IFNDEF LD 314LD = link.exe 315!ENDIF 316 317# Check for the predefined command macro RC. This should point to the resource 318# compiler binary for the target platform. If it is not defined, simply define 319# it to the legacy default value 'rc.exe'. 320# 321!IFNDEF RC 322RC = rc.exe 323!ENDIF 324 325# Check for the MSVC runtime library path macro. Otherwise, this value will 326# default to the 'lib' directory underneath the MSVC installation directory. 327# 328!IFNDEF CRTLIBPATH 329CRTLIBPATH = $(VCINSTALLDIR)\lib 330!ENDIF 331 332CRTLIBPATH = $(CRTLIBPATH:\\=\) 333 334# Check for the command macro NCC. This should point to the compiler binary 335# for the platform the compilation process is taking place on. If it is not 336# defined, simply define it to have the same value as the CC macro. When 337# cross-compiling, it is suggested that this macro be modified via the command 338# line (since nmake itself does not provide a built-in method to guess it). 339# For example, to use the x86 compiler when cross-compiling for x64, a command 340# line similar to the following could be used (all on one line): 341# 342# nmake /f Makefile.msc sqlite3.dll 343# XCOMPILE=1 USE_NATIVE_LIBPATHS=1 344# 345# Alternatively, the full path and file name to the compiler binary for the 346# platform the compilation process is taking place may be specified (all on 347# one line): 348# 349# nmake /f Makefile.msc sqlite3.dll 350# "NCC=""%VCINSTALLDIR%\bin\cl.exe""" 351# USE_NATIVE_LIBPATHS=1 352# 353!IFDEF NCC 354NCC = $(NCC:\\=\) 355!ELSEIF $(XCOMPILE)!=0 356NCC = "$(VCINSTALLDIR)\bin\$(CC)" 357NCC = $(NCC:\\=\) 358!ELSE 359NCC = $(CC) 360!ENDIF 361 362# Check for the MSVC native runtime library path macro. Otherwise, 363# this value will default to the 'lib' directory underneath the MSVC 364# installation directory. 365# 366!IFNDEF NCRTLIBPATH 367NCRTLIBPATH = $(VCINSTALLDIR)\lib 368!ENDIF 369 370NCRTLIBPATH = $(NCRTLIBPATH:\\=\) 371 372# Check for the Platform SDK library path macro. Otherwise, this 373# value will default to the 'lib' directory underneath the Windows 374# SDK installation directory (the environment variable used appears 375# to be available when using Visual C++ 2008 or later via the 376# command line). 377# 378!IFNDEF NSDKLIBPATH 379NSDKLIBPATH = $(WINDOWSSDKDIR)\lib 380!ENDIF 381 382NSDKLIBPATH = $(NSDKLIBPATH:\\=\) 383 384# Check for the UCRT library path macro. Otherwise, this value will 385# default to the version-specific, platform-specific 'lib' directory 386# underneath the Windows SDK installation directory. 387# 388!IFNDEF UCRTLIBPATH 389UCRTLIBPATH = $(WINDOWSSDKDIR)\lib\$(WINDOWSSDKLIBVERSION)\ucrt\$(PLATFORM) 390!ENDIF 391 392UCRTLIBPATH = $(UCRTLIBPATH:\\=\) 393 394# C compiler and options for use in building executables that 395# will run on the platform that is doing the build. 396# 397!IF $(USE_FULLWARN)!=0 398BCC = $(NCC) -nologo -W4 $(CCOPTS) $(BCCOPTS) 399!ELSE 400BCC = $(NCC) -nologo -W3 $(CCOPTS) $(BCCOPTS) 401!ENDIF 402 403# Check if assembly code listings should be generated for the source 404# code files to be compiled. 405# 406!IF $(USE_LISTINGS)!=0 407BCC = $(BCC) -FAcs 408!ENDIF 409 410# Check if the native library paths should be used when compiling 411# the command line tools used during the compilation process. If 412# so, set the necessary macro now. 413# 414!IF $(USE_NATIVE_LIBPATHS)!=0 415NLTLIBPATHS = "/LIBPATH:$(NCRTLIBPATH)" "/LIBPATH:$(NSDKLIBPATH)" 416 417!IFDEF NUCRTLIBPATH 418NUCRTLIBPATH = $(NUCRTLIBPATH:\\=\) 419NLTLIBPATHS = $(NLTLIBPATHS) "/LIBPATH:$(NUCRTLIBPATH)" 420!ENDIF 421!ENDIF 422 423# C compiler and options for use in building executables that 424# will run on the target platform. (BCC and TCC are usually the 425# same unless your are cross-compiling.) 426# 427!IF $(USE_FULLWARN)!=0 428TCC = $(CC) -nologo -W4 -DINCLUDE_MSVC_H=1 $(CCOPTS) $(TCCOPTS) 429!ELSE 430TCC = $(CC) -nologo -W3 $(CCOPTS) $(TCCOPTS) 431!ENDIF 432 433TCC = $(TCC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -I$(TOP)\src -fp:precise 434RCC = $(RC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -I$(TOP)\src $(RCOPTS) $(RCCOPTS) 435 436# Check if we want to use the "stdcall" calling convention when compiling. 437# This is not supported by the compilers for non-x86 platforms. It should 438# also be noted here that building any target with these "stdcall" options 439# will most likely fail if the Tcl library is also required. This is due 440# to how the Tcl library functions are declared and exported (i.e. without 441# an explicit calling convention, which results in "cdecl"). 442# 443!IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0 444!IF "$(PLATFORM)"=="x86" 445CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall 446SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall 447!ELSE 448!IFNDEF PLATFORM 449CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall 450SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall 451!ELSE 452CORE_CCONV_OPTS = 453SHELL_CCONV_OPTS = 454!ENDIF 455!ENDIF 456!ELSE 457CORE_CCONV_OPTS = 458SHELL_CCONV_OPTS = 459!ENDIF 460 461# These are additional compiler options used for the core library. 462# 463!IFNDEF CORE_COMPILE_OPTS 464!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 465CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS) -DSQLITE_API=__declspec(dllexport) 466!ELSE 467CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS) 468!ENDIF 469!ENDIF 470 471# These are the additional targets that the core library should depend on 472# when linking. 473# 474!IFNDEF CORE_LINK_DEP 475!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 476CORE_LINK_DEP = 477!ELSE 478CORE_LINK_DEP = sqlite3.def 479!ENDIF 480!ENDIF 481 482# These are additional linker options used for the core library. 483# 484!IFNDEF CORE_LINK_OPTS 485!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 486CORE_LINK_OPTS = 487!ELSE 488CORE_LINK_OPTS = /DEF:sqlite3.def 489!ENDIF 490!ENDIF 491 492# These are additional compiler options used for the shell executable. 493# 494!IFNDEF SHELL_COMPILE_OPTS 495!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 496SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS) -DSQLITE_API=__declspec(dllimport) 497!ELSE 498SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS) 499!ENDIF 500!ENDIF 501 502# This is the source code that the shell executable should be compiled 503# with. 504# 505!IFNDEF SHELL_CORE_SRC 506!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 507SHELL_CORE_SRC = 508!ELSE 509SHELL_CORE_SRC = $(SQLITE3C) 510!ENDIF 511!ENDIF 512 513# This is the core library that the shell executable should depend on. 514# 515!IFNDEF SHELL_CORE_DEP 516!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 517SHELL_CORE_DEP = $(SQLITE3DLL) 518!ELSE 519SHELL_CORE_DEP = 520!ENDIF 521!ENDIF 522 523# This is the core library that the shell executable should link with. 524# 525!IFNDEF SHELL_CORE_LIB 526!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 527SHELL_CORE_LIB = $(SQLITE3LIB) 528!ELSE 529SHELL_CORE_LIB = 530!ENDIF 531!ENDIF 532 533# These are additional linker options used for the shell executable. 534# 535!IFNDEF SHELL_LINK_OPTS 536SHELL_LINK_OPTS = $(SHELL_CORE_LIB) 537!ENDIF 538 539# Check if assembly code listings should be generated for the source 540# code files to be compiled. 541# 542!IF $(USE_LISTINGS)!=0 543TCC = $(TCC) -FAcs 544!ENDIF 545 546# When compiling the library for use in the WinRT environment, 547# the following compile-time options must be used as well to 548# disable use of Win32 APIs that are not available and to enable 549# use of Win32 APIs that are specific to Windows 8 and/or WinRT. 550# 551!IF $(FOR_WINRT)!=0 552TCC = $(TCC) -DSQLITE_OS_WINRT=1 553RCC = $(RCC) -DSQLITE_OS_WINRT=1 554TCC = $(TCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP 555RCC = $(RCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP 556!ENDIF 557 558# C compiler options for the Windows 10 platform (needs MSVC 2015). 559# 560!IF $(FOR_WIN10)!=0 561TCC = $(TCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE 562BCC = $(BCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE 563!ENDIF 564 565# Also, we need to dynamically link to the correct MSVC runtime 566# when compiling for WinRT (e.g. debug or release) OR if the 567# USE_CRT_DLL option is set to force dynamically linking to the 568# MSVC runtime library. 569# 570!IF $(FOR_WINRT)!=0 || $(USE_CRT_DLL)!=0 571!IF $(DEBUG)>1 572TCC = $(TCC) -MDd 573BCC = $(BCC) -MDd 574!ELSE 575TCC = $(TCC) -MD 576BCC = $(BCC) -MD 577!ENDIF 578!ELSE 579!IF $(DEBUG)>1 580TCC = $(TCC) -MTd 581BCC = $(BCC) -MTd 582!ELSE 583TCC = $(TCC) -MT 584BCC = $(BCC) -MT 585!ENDIF 586!ENDIF 587 588# <<mark>> 589# The mksqlite3c.tcl and mksqlite3h.tcl scripts will pull in 590# any extension header files by default. For non-amalgamation 591# builds, we need to make sure the compiler can find these. 592# 593!IF $(USE_AMALGAMATION)==0 594TCC = $(TCC) -I$(TOP)\ext\fts3 595RCC = $(RCC) -I$(TOP)\ext\fts3 596TCC = $(TCC) -I$(TOP)\ext\rtree 597RCC = $(RCC) -I$(TOP)\ext\rtree 598!ENDIF 599 600# The mksqlite3c.tcl script accepts some options on the command 601# line. When compiling with debugging enabled, some of these 602# options are necessary in order to allow debugging symbols to 603# work correctly with Visual Studio when using the amalgamation. 604# 605!IFNDEF MKSQLITE3C_ARGS 606!IF $(DEBUG)>1 607MKSQLITE3C_ARGS = --linemacros 608!ELSE 609MKSQLITE3C_ARGS = 610!ENDIF 611!ENDIF 612# <</mark>> 613 614# Define -DNDEBUG to compile without debugging (i.e., for production usage) 615# Omitting the define will cause extra debugging code to be inserted and 616# includes extra comments when "EXPLAIN stmt" is used. 617# 618!IF $(DEBUG)==0 619TCC = $(TCC) -DNDEBUG 620BCC = $(BCC) -DNDEBUG 621RCC = $(RCC) -DNDEBUG 622!ENDIF 623 624!IF $(DEBUG)>0 || $(API_ARMOR)!=0 || $(FOR_WIN10)!=0 625TCC = $(TCC) -DSQLITE_ENABLE_API_ARMOR=1 626RCC = $(RCC) -DSQLITE_ENABLE_API_ARMOR=1 627!ENDIF 628 629!IF $(DEBUG)>2 630TCC = $(TCC) -DSQLITE_DEBUG=1 631RCC = $(RCC) -DSQLITE_DEBUG=1 632!ENDIF 633 634!IF $(DEBUG)>4 || $(OSTRACE)!=0 635TCC = $(TCC) -DSQLITE_FORCE_OS_TRACE=1 -DSQLITE_DEBUG_OS_TRACE=1 636RCC = $(RCC) -DSQLITE_FORCE_OS_TRACE=1 -DSQLITE_DEBUG_OS_TRACE=1 637!ENDIF 638 639!IF $(DEBUG)>5 640TCC = $(TCC) -DSQLITE_ENABLE_IOTRACE=1 641RCC = $(RCC) -DSQLITE_ENABLE_IOTRACE=1 642!ENDIF 643 644# Prevent warnings about "insecure" MSVC runtime library functions 645# being used. 646# 647TCC = $(TCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS 648BCC = $(BCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS 649RCC = $(RCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS 650 651# Prevent warnings about "deprecated" POSIX functions being used. 652# 653TCC = $(TCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS 654BCC = $(BCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS 655RCC = $(RCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS 656 657# Use the SQLite debugging heap subsystem? 658# 659!IF $(MEMDEBUG)!=0 660TCC = $(TCC) -DSQLITE_MEMDEBUG=1 661RCC = $(RCC) -DSQLITE_MEMDEBUG=1 662 663# Use native Win32 heap subsystem instead of malloc/free? 664# 665!ELSEIF $(WIN32HEAP)!=0 666TCC = $(TCC) -DSQLITE_WIN32_MALLOC=1 667RCC = $(RCC) -DSQLITE_WIN32_MALLOC=1 668 669# Validate the heap on every call into the native Win32 heap subsystem? 670# 671!IF $(DEBUG)>3 672TCC = $(TCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1 673RCC = $(RCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1 674!ENDIF 675!ENDIF 676 677# <<mark>> 678# The locations of the Tcl header and library files. Also, the library that 679# non-stubs enabled programs using Tcl must link against. These variables 680# (TCLINCDIR, TCLLIBDIR, and LIBTCL) may be overridden via the environment 681# prior to running nmake in order to match the actual installed location and 682# version on this machine. 683# 684!IFNDEF TCLINCDIR 685TCLINCDIR = c:\tcl\include 686!ENDIF 687 688!IFNDEF TCLLIBDIR 689TCLLIBDIR = c:\tcl\lib 690!ENDIF 691 692!IFNDEF LIBTCL 693LIBTCL = tcl85.lib 694!ENDIF 695 696!IFNDEF LIBTCLSTUB 697LIBTCLSTUB = tclstub85.lib 698!ENDIF 699 700!IFNDEF LIBTCLPATH 701LIBTCLPATH = c:\tcl\bin 702!ENDIF 703 704# The locations of the ICU header and library files. These variables 705# (ICUINCDIR, ICULIBDIR, and LIBICU) may be overridden via the environment 706# prior to running nmake in order to match the actual installed location on 707# this machine. 708# 709!IFNDEF ICUINCDIR 710ICUINCDIR = c:\icu\include 711!ENDIF 712 713!IFNDEF ICULIBDIR 714ICULIBDIR = c:\icu\lib 715!ENDIF 716 717!IFNDEF LIBICU 718LIBICU = icuuc.lib icuin.lib 719!ENDIF 720 721# This is the command to use for tclsh - normally just "tclsh", but we may 722# know the specific version we want to use. This variable (TCLSH_CMD) may be 723# overridden via the environment prior to running nmake in order to select a 724# specific Tcl shell to use. 725# 726!IFNDEF TCLSH_CMD 727TCLSH_CMD = tclsh85 728!ENDIF 729# <</mark>> 730 731# Compiler options needed for programs that use the readline() library. 732# 733!IFNDEF READLINE_FLAGS 734READLINE_FLAGS = -DHAVE_READLINE=0 735!ENDIF 736 737# The library that programs using readline() must link against. 738# 739!IFNDEF LIBREADLINE 740LIBREADLINE = 741!ENDIF 742 743# Should the database engine be compiled threadsafe 744# 745TCC = $(TCC) -DSQLITE_THREADSAFE=1 746RCC = $(RCC) -DSQLITE_THREADSAFE=1 747 748# Do threads override each others locks by default (1), or do we test (-1) 749# 750TCC = $(TCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1 751RCC = $(RCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1 752 753# Any target libraries which libsqlite must be linked against 754# 755!IFNDEF TLIBS 756TLIBS = 757!ENDIF 758 759# Flags controlling use of the in memory btree implementation 760# 761# SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to 762# default to file, 2 to default to memory, and 3 to force temporary 763# tables to always be in memory. 764# 765TCC = $(TCC) -DSQLITE_TEMP_STORE=1 766RCC = $(RCC) -DSQLITE_TEMP_STORE=1 767 768# Enable/disable loadable extensions, and other optional features 769# based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*). 770# The same set of OMIT and ENABLE flags should be passed to the 771# LEMON parser generator and the mkkeywordhash tool as well. 772 773# These are the required SQLite compilation options used when compiling for 774# the Windows platform. 775# 776REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_MAX_TRIGGER_DEPTH=100 777 778# If we are linking to the RPCRT4 library, enable features that need it. 779# 780!IF $(USE_RPCRT4_LIB)!=0 781REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_WIN32_USE_UUID=1 782!ENDIF 783 784# Add the required and optional SQLite compilation options into the command 785# lines used to invoke the MSVC code and resource compilers. 786# 787TCC = $(TCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) 788RCC = $(RCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) 789 790# Add in any optional parameters specified on the commane line, e.g. 791# nmake /f Makefile.msc all "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1" 792# 793TCC = $(TCC) $(OPTS) 794RCC = $(RCC) $(OPTS) 795 796# If compiling for debugging, add some defines. 797# 798!IF $(DEBUG)>1 799TCC = $(TCC) -D_DEBUG 800BCC = $(BCC) -D_DEBUG 801RCC = $(RCC) -D_DEBUG 802!ENDIF 803 804# If optimizations are enabled or disabled (either implicitly or 805# explicitly), add the necessary flags. 806# 807!IF $(DEBUG)>1 || $(OPTIMIZATIONS)==0 808TCC = $(TCC) -Od 809BCC = $(BCC) -Od 810!ELSEIF $(OPTIMIZATIONS)>=3 811TCC = $(TCC) -Ox 812BCC = $(BCC) -Ox 813!ELSEIF $(OPTIMIZATIONS)==2 814TCC = $(TCC) -O2 815BCC = $(BCC) -O2 816!ELSEIF $(OPTIMIZATIONS)==1 817TCC = $(TCC) -O1 818BCC = $(BCC) -O1 819!ENDIF 820 821# If symbols are enabled (or compiling for debugging), enable PDBs. 822# 823!IF $(DEBUG)>1 || $(SYMBOLS)!=0 824TCC = $(TCC) -Zi 825BCC = $(BCC) -Zi 826!ENDIF 827 828# <<mark>> 829# If ICU support is enabled, add the compiler options for it. 830# 831!IF $(USE_ICU)!=0 832TCC = $(TCC) -DSQLITE_ENABLE_ICU=1 833RCC = $(RCC) -DSQLITE_ENABLE_ICU=1 834TCC = $(TCC) -I$(TOP)\ext\icu 835RCC = $(RCC) -I$(TOP)\ext\icu 836TCC = $(TCC) -I$(ICUINCDIR) 837RCC = $(RCC) -I$(ICUINCDIR) 838!ENDIF 839# <</mark>> 840 841# Command line prefixes for compiling code, compiling resources, 842# linking, etc. 843# 844LTCOMPILE = $(TCC) -Fo$@ 845LTRCOMPILE = $(RCC) -r 846LTLIB = lib.exe 847LTLINK = $(TCC) -Fe$@ 848 849# If requested, link to the RPCRT4 library. 850# 851!IF $(USE_RPCRT4_LIB)!=0 852LTLINK = $(LTLINK) rpcrt4.lib 853!ENDIF 854 855# If a platform was set, force the linker to target that. 856# Note that the vcvars*.bat family of batch files typically 857# set this for you. Otherwise, the linker will attempt 858# to deduce the binary type based on the object files. 859!IFDEF PLATFORM 860LTLINKOPTS = /NOLOGO /MACHINE:$(PLATFORM) 861LTLIBOPTS = /NOLOGO /MACHINE:$(PLATFORM) 862!ELSE 863LTLINKOPTS = /NOLOGO 864LTLIBOPTS = /NOLOGO 865!ENDIF 866 867# When compiling for use in the WinRT environment, the following 868# linker option must be used to mark the executable as runnable 869# only in the context of an application container. 870# 871!IF $(FOR_WINRT)!=0 872LTLINKOPTS = $(LTLINKOPTS) /APPCONTAINER 873!IF "$(VISUALSTUDIOVERSION)"=="12.0" || "$(VISUALSTUDIOVERSION)"=="14.0" 874!IFNDEF STORELIBPATH 875!IF "$(PLATFORM)"=="x86" 876STORELIBPATH = $(CRTLIBPATH)\store 877!ELSEIF "$(PLATFORM)"=="x64" 878STORELIBPATH = $(CRTLIBPATH)\store\amd64 879!ELSEIF "$(PLATFORM)"=="ARM" 880STORELIBPATH = $(CRTLIBPATH)\store\arm 881!ELSE 882STORELIBPATH = $(CRTLIBPATH)\store 883!ENDIF 884!ENDIF 885STORELIBPATH = $(STORELIBPATH:\\=\) 886LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(STORELIBPATH)" 887!ENDIF 888!ENDIF 889 890# When compiling for Windows Phone 8.1, an extra library path is 891# required. 892# 893!IF $(USE_WP81_OPTS)!=0 894!IFNDEF WP81LIBPATH 895!IF "$(PLATFORM)"=="x86" 896WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86 897!ELSEIF "$(PLATFORM)"=="ARM" 898WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\ARM 899!ELSE 900WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86 901!ENDIF 902!ENDIF 903!ENDIF 904 905# When compiling for Windows Phone 8.1, some extra linker options 906# are also required. 907# 908!IF $(USE_WP81_OPTS)!=0 909!IFDEF WP81LIBPATH 910LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(WP81LIBPATH)" 911!ENDIF 912LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE 913LTLINKOPTS = $(LTLINKOPTS) WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib 914LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:kernel32.lib /NODEFAULTLIB:ole32.lib 915!ENDIF 916 917# When compiling for UWP or the Windows 10 platform, some extra linker 918# options are also required. 919# 920!IF $(FOR_UWP)!=0 || $(FOR_WIN10)!=0 921LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE /NODEFAULTLIB:kernel32.lib 922LTLINKOPTS = $(LTLINKOPTS) mincore.lib 923!IFDEF PSDKLIBPATH 924LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(PSDKLIBPATH)" 925!ENDIF 926!ENDIF 927 928!IF $(FOR_WIN10)!=0 929LTLINKOPTS = $(LTLINKOPTS) /guard:cf "/LIBPATH:$(UCRTLIBPATH)" 930!IF $(DEBUG)>1 931LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:libucrtd.lib /DEFAULTLIB:ucrtd.lib 932!ELSE 933LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:libucrt.lib /DEFAULTLIB:ucrt.lib 934!ENDIF 935!ENDIF 936 937# If either debugging or symbols are enabled, enable PDBs. 938# 939!IF $(DEBUG)>1 || $(SYMBOLS)!=0 940LDFLAGS = /DEBUG $(LDOPTS) 941!ELSE 942LDFLAGS = $(LDOPTS) 943!ENDIF 944 945# <<mark>> 946# Start with the Tcl related linker options. 947# 948!IF $(NO_TCL)==0 949LTLIBPATHS = /LIBPATH:$(TCLLIBDIR) 950LTLIBS = $(LIBTCL) 951!ENDIF 952 953# If ICU support is enabled, add the linker options for it. 954# 955!IF $(USE_ICU)!=0 956LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ICULIBDIR) 957LTLIBS = $(LTLIBS) $(LIBICU) 958!ENDIF 959# <</mark>> 960 961# You should not have to change anything below this line 962############################################################################### 963 964# <<mark>> 965# Object files for the SQLite library (non-amalgamation). 966# 967LIBOBJS0 = vdbe.lo parse.lo alter.lo analyze.lo attach.lo auth.lo \ 968 backup.lo bitvec.lo btmutex.lo btree.lo build.lo \ 969 callback.lo complete.lo ctime.lo date.lo dbstat.lo delete.lo \ 970 expr.lo fault.lo fkey.lo \ 971 fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \ 972 fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \ 973 fts3_tokenize_vtab.lo fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \ 974 fts5.lo \ 975 func.lo global.lo hash.lo \ 976 icu.lo insert.lo journal.lo legacy.lo loadext.lo \ 977 main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \ 978 memjournal.lo \ 979 mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \ 980 notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \ 981 pager.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \ 982 random.lo resolve.lo rowset.lo rtree.lo select.lo sqlite3rbu.lo status.lo \ 983 table.lo threads.lo tokenize.lo treeview.lo trigger.lo \ 984 update.lo util.lo vacuum.lo \ 985 vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \ 986 vdbetrace.lo wal.lo walker.lo where.lo wherecode.lo whereexpr.lo \ 987 utf.lo vtab.lo 988# <</mark>> 989 990# Object files for the amalgamation. 991# 992LIBOBJS1 = sqlite3.lo 993 994# Determine the real value of LIBOBJ based on the 'configure' script 995# 996# <<mark>> 997!IF $(USE_AMALGAMATION)==0 998LIBOBJ = $(LIBOBJS0) 999!ELSE 1000# <</mark>> 1001LIBOBJ = $(LIBOBJS1) 1002# <<mark>> 1003!ENDIF 1004# <</mark>> 1005 1006# Determine if embedded resource compilation and usage are enabled. 1007# 1008!IF $(USE_RC)!=0 1009LIBRESOBJS = sqlite3res.lo 1010!ELSE 1011LIBRESOBJS = 1012!ENDIF 1013 1014# <<mark>> 1015# Core source code files, part 1. 1016# 1017SRC00 = \ 1018 $(TOP)\src\alter.c \ 1019 $(TOP)\src\analyze.c \ 1020 $(TOP)\src\attach.c \ 1021 $(TOP)\src\auth.c \ 1022 $(TOP)\src\backup.c \ 1023 $(TOP)\src\bitvec.c \ 1024 $(TOP)\src\btmutex.c \ 1025 $(TOP)\src\btree.c \ 1026 $(TOP)\src\build.c \ 1027 $(TOP)\src\callback.c \ 1028 $(TOP)\src\complete.c \ 1029 $(TOP)\src\ctime.c \ 1030 $(TOP)\src\date.c \ 1031 $(TOP)\src\dbstat.c \ 1032 $(TOP)\src\delete.c \ 1033 $(TOP)\src\expr.c \ 1034 $(TOP)\src\fault.c \ 1035 $(TOP)\src\fkey.c \ 1036 $(TOP)\src\func.c \ 1037 $(TOP)\src\global.c \ 1038 $(TOP)\src\hash.c \ 1039 $(TOP)\src\insert.c \ 1040 $(TOP)\src\journal.c \ 1041 $(TOP)\src\legacy.c \ 1042 $(TOP)\src\loadext.c \ 1043 $(TOP)\src\main.c \ 1044 $(TOP)\src\malloc.c \ 1045 $(TOP)\src\mem0.c \ 1046 $(TOP)\src\mem1.c \ 1047 $(TOP)\src\mem2.c \ 1048 $(TOP)\src\mem3.c \ 1049 $(TOP)\src\mem5.c \ 1050 $(TOP)\src\memjournal.c \ 1051 $(TOP)\src\mutex.c \ 1052 $(TOP)\src\mutex_noop.c \ 1053 $(TOP)\src\mutex_unix.c \ 1054 $(TOP)\src\mutex_w32.c \ 1055 $(TOP)\src\notify.c \ 1056 $(TOP)\src\os.c \ 1057 $(TOP)\src\os_unix.c \ 1058 $(TOP)\src\os_win.c 1059 1060# Core source code files, part 2. 1061# 1062SRC01 = \ 1063 $(TOP)\src\pager.c \ 1064 $(TOP)\src\pcache.c \ 1065 $(TOP)\src\pcache1.c \ 1066 $(TOP)\src\pragma.c \ 1067 $(TOP)\src\prepare.c \ 1068 $(TOP)\src\printf.c \ 1069 $(TOP)\src\random.c \ 1070 $(TOP)\src\resolve.c \ 1071 $(TOP)\src\rowset.c \ 1072 $(TOP)\src\select.c \ 1073 $(TOP)\src\status.c \ 1074 $(TOP)\src\table.c \ 1075 $(TOP)\src\threads.c \ 1076 $(TOP)\src\tclsqlite.c \ 1077 $(TOP)\src\tokenize.c \ 1078 $(TOP)\src\treeview.c \ 1079 $(TOP)\src\trigger.c \ 1080 $(TOP)\src\utf.c \ 1081 $(TOP)\src\update.c \ 1082 $(TOP)\src\util.c \ 1083 $(TOP)\src\vacuum.c \ 1084 $(TOP)\src\vdbe.c \ 1085 $(TOP)\src\vdbeapi.c \ 1086 $(TOP)\src\vdbeaux.c \ 1087 $(TOP)\src\vdbeblob.c \ 1088 $(TOP)\src\vdbemem.c \ 1089 $(TOP)\src\vdbesort.c \ 1090 $(TOP)\src\vdbetrace.c \ 1091 $(TOP)\src\vtab.c \ 1092 $(TOP)\src\wal.c \ 1093 $(TOP)\src\walker.c \ 1094 $(TOP)\src\where.c \ 1095 $(TOP)\src\wherecode.c \ 1096 $(TOP)\src\whereexpr.c 1097 1098# Shell source code files. 1099# 1100SRC02 = \ 1101 $(TOP)\src\shell.c 1102 1103# Core miscellaneous files. 1104# 1105SRC03 = \ 1106 $(TOP)\src\parse.y 1107 1108# Core header files, part 1. 1109# 1110SRC04 = \ 1111 $(TOP)\src\btree.h \ 1112 $(TOP)\src\btreeInt.h \ 1113 $(TOP)\src\hash.h \ 1114 $(TOP)\src\hwtime.h \ 1115 $(TOP)\src\msvc.h \ 1116 $(TOP)\src\mutex.h \ 1117 $(TOP)\src\os.h \ 1118 $(TOP)\src\os_common.h \ 1119 $(TOP)\src\os_setup.h \ 1120 $(TOP)\src\os_win.h 1121 1122# Core header files, part 2. 1123# 1124SRC05 = \ 1125 $(TOP)\src\pager.h \ 1126 $(TOP)\src\pcache.h \ 1127 $(TOP)\src\pragma.h \ 1128 $(TOP)\src\sqlite.h.in \ 1129 $(TOP)\src\sqlite3ext.h \ 1130 $(TOP)\src\sqliteInt.h \ 1131 $(TOP)\src\sqliteLimit.h \ 1132 $(TOP)\src\vdbe.h \ 1133 $(TOP)\src\vdbeInt.h \ 1134 $(TOP)\src\vxworks.h \ 1135 $(TOP)\src\wal.h \ 1136 $(TOP)\src\whereInt.h 1137 1138# Extension source code files, part 1. 1139# 1140SRC06 = \ 1141 $(TOP)\ext\fts1\fts1.c \ 1142 $(TOP)\ext\fts1\fts1_hash.c \ 1143 $(TOP)\ext\fts1\fts1_porter.c \ 1144 $(TOP)\ext\fts1\fts1_tokenizer1.c \ 1145 $(TOP)\ext\fts2\fts2.c \ 1146 $(TOP)\ext\fts2\fts2_hash.c \ 1147 $(TOP)\ext\fts2\fts2_icu.c \ 1148 $(TOP)\ext\fts2\fts2_porter.c \ 1149 $(TOP)\ext\fts2\fts2_tokenizer.c \ 1150 $(TOP)\ext\fts2\fts2_tokenizer1.c 1151 1152# Extension source code files, part 2. 1153# 1154SRC07 = \ 1155 $(TOP)\ext\fts3\fts3.c \ 1156 $(TOP)\ext\fts3\fts3_aux.c \ 1157 $(TOP)\ext\fts3\fts3_expr.c \ 1158 $(TOP)\ext\fts3\fts3_hash.c \ 1159 $(TOP)\ext\fts3\fts3_icu.c \ 1160 $(TOP)\ext\fts3\fts3_porter.c \ 1161 $(TOP)\ext\fts3\fts3_snippet.c \ 1162 $(TOP)\ext\fts3\fts3_tokenizer.c \ 1163 $(TOP)\ext\fts3\fts3_tokenizer1.c \ 1164 $(TOP)\ext\fts3\fts3_tokenize_vtab.c \ 1165 $(TOP)\ext\fts3\fts3_unicode.c \ 1166 $(TOP)\ext\fts3\fts3_unicode2.c \ 1167 $(TOP)\ext\fts3\fts3_write.c \ 1168 $(TOP)\ext\icu\icu.c \ 1169 $(TOP)\ext\rtree\rtree.c \ 1170 $(TOP)\ext\rbu\sqlite3rbu.c \ 1171 $(TOP)\ext\misc\json1.c 1172 1173# Extension header files, part 1. 1174# 1175SRC08 = \ 1176 $(TOP)\ext\fts1\fts1.h \ 1177 $(TOP)\ext\fts1\fts1_hash.h \ 1178 $(TOP)\ext\fts1\fts1_tokenizer.h \ 1179 $(TOP)\ext\fts2\fts2.h \ 1180 $(TOP)\ext\fts2\fts2_hash.h \ 1181 $(TOP)\ext\fts2\fts2_tokenizer.h 1182 1183# Extension header files, part 2. 1184# 1185SRC09 = \ 1186 $(TOP)\ext\fts3\fts3.h \ 1187 $(TOP)\ext\fts3\fts3Int.h \ 1188 $(TOP)\ext\fts3\fts3_hash.h \ 1189 $(TOP)\ext\fts3\fts3_tokenizer.h \ 1190 $(TOP)\ext\icu\sqliteicu.h \ 1191 $(TOP)\ext\rtree\rtree.h \ 1192 $(TOP)\ext\rbu\sqlite3rbu.h 1193 1194# Generated source code files 1195# 1196SRC10 = \ 1197 opcodes.c \ 1198 parse.c 1199 1200# Generated header files 1201# 1202SRC11 = \ 1203 keywordhash.h \ 1204 opcodes.h \ 1205 parse.h \ 1206 $(SQLITE3H) 1207 1208# All source code files. 1209# 1210SRC = $(SRC00) $(SRC01) $(SRC02) $(SRC03) $(SRC04) $(SRC05) $(SRC06) $(SRC07) $(SRC08) $(SRC09) $(SRC10) $(SRC11) 1211 1212# Source code to the test files. 1213# 1214TESTSRC = \ 1215 $(TOP)\src\test1.c \ 1216 $(TOP)\src\test2.c \ 1217 $(TOP)\src\test3.c \ 1218 $(TOP)\src\test4.c \ 1219 $(TOP)\src\test5.c \ 1220 $(TOP)\src\test6.c \ 1221 $(TOP)\src\test7.c \ 1222 $(TOP)\src\test8.c \ 1223 $(TOP)\src\test9.c \ 1224 $(TOP)\src\test_autoext.c \ 1225 $(TOP)\src\test_async.c \ 1226 $(TOP)\src\test_backup.c \ 1227 $(TOP)\src\test_blob.c \ 1228 $(TOP)\src\test_btree.c \ 1229 $(TOP)\src\test_config.c \ 1230 $(TOP)\src\test_demovfs.c \ 1231 $(TOP)\src\test_devsym.c \ 1232 $(TOP)\src\test_fs.c \ 1233 $(TOP)\src\test_func.c \ 1234 $(TOP)\src\test_hexio.c \ 1235 $(TOP)\src\test_init.c \ 1236 $(TOP)\src\test_intarray.c \ 1237 $(TOP)\src\test_journal.c \ 1238 $(TOP)\src\test_malloc.c \ 1239 $(TOP)\src\test_multiplex.c \ 1240 $(TOP)\src\test_mutex.c \ 1241 $(TOP)\src\test_onefile.c \ 1242 $(TOP)\src\test_osinst.c \ 1243 $(TOP)\src\test_pcache.c \ 1244 $(TOP)\src\test_quota.c \ 1245 $(TOP)\src\test_rtree.c \ 1246 $(TOP)\src\test_schema.c \ 1247 $(TOP)\src\test_server.c \ 1248 $(TOP)\src\test_superlock.c \ 1249 $(TOP)\src\test_syscall.c \ 1250 $(TOP)\src\test_tclvar.c \ 1251 $(TOP)\src\test_thread.c \ 1252 $(TOP)\src\test_vfs.c \ 1253 $(TOP)\src\test_windirent.c \ 1254 $(TOP)\src\test_wsd.c \ 1255 $(TOP)\ext\fts3\fts3_term.c \ 1256 $(TOP)\ext\fts3\fts3_test.c \ 1257 $(TOP)\ext\rbu\test_rbu.c 1258 1259# Statically linked extensions. 1260# 1261TESTEXT = \ 1262 $(TOP)\ext\misc\amatch.c \ 1263 $(TOP)\ext\misc\closure.c \ 1264 $(TOP)\ext\misc\eval.c \ 1265 $(TOP)\ext\misc\fileio.c \ 1266 $(TOP)\ext\misc\fuzzer.c \ 1267 $(TOP)\ext\fts5\fts5_tcl.c \ 1268 $(TOP)\ext\fts5\fts5_test_mi.c \ 1269 $(TOP)\ext\fts5\fts5_test_tok.c \ 1270 $(TOP)\ext\misc\ieee754.c \ 1271 $(TOP)\ext\misc\nextchar.c \ 1272 $(TOP)\ext\misc\percentile.c \ 1273 $(TOP)\ext\misc\regexp.c \ 1274 $(TOP)\ext\misc\series.c \ 1275 $(TOP)\ext\misc\spellfix.c \ 1276 $(TOP)\ext\misc\totype.c \ 1277 $(TOP)\ext\misc\wholenumber.c 1278 1279# Source code to the library files needed by the test fixture 1280# 1281TESTSRC2 = \ 1282 $(SRC00) \ 1283 $(SRC01) \ 1284 $(SRC06) \ 1285 $(SRC07) \ 1286 $(SRC10) \ 1287 $(TOP)\ext\async\sqlite3async.c 1288 1289# Header files used by all library source files. 1290# 1291HDR = \ 1292 $(TOP)\src\btree.h \ 1293 $(TOP)\src\btreeInt.h \ 1294 $(TOP)\src\hash.h \ 1295 $(TOP)\src\hwtime.h \ 1296 keywordhash.h \ 1297 $(TOP)\src\msvc.h \ 1298 $(TOP)\src\mutex.h \ 1299 opcodes.h \ 1300 $(TOP)\src\os.h \ 1301 $(TOP)\src\os_common.h \ 1302 $(TOP)\src\os_setup.h \ 1303 $(TOP)\src\os_win.h \ 1304 $(TOP)\src\pager.h \ 1305 $(TOP)\src\pcache.h \ 1306 parse.h \ 1307 $(TOP)\src\pragma.h \ 1308 $(SQLITE3H) \ 1309 $(TOP)\src\sqlite3ext.h \ 1310 $(TOP)\src\sqliteInt.h \ 1311 $(TOP)\src\sqliteLimit.h \ 1312 $(TOP)\src\vdbe.h \ 1313 $(TOP)\src\vdbeInt.h \ 1314 $(TOP)\src\vxworks.h \ 1315 $(TOP)\src\whereInt.h 1316 1317# Header files used by extensions 1318# 1319EXTHDR = $(EXTHDR) \ 1320 $(TOP)\ext\fts1\fts1.h \ 1321 $(TOP)\ext\fts1\fts1_hash.h \ 1322 $(TOP)\ext\fts1\fts1_tokenizer.h 1323EXTHDR = $(EXTHDR) \ 1324 $(TOP)\ext\fts2\fts2.h \ 1325 $(TOP)\ext\fts2\fts2_hash.h \ 1326 $(TOP)\ext\fts2\fts2_tokenizer.h 1327EXTHDR = $(EXTHDR) \ 1328 $(TOP)\ext\fts3\fts3.h \ 1329 $(TOP)\ext\fts3\fts3Int.h \ 1330 $(TOP)\ext\fts3\fts3_hash.h \ 1331 $(TOP)\ext\fts3\fts3_tokenizer.h 1332EXTHDR = $(EXTHDR) \ 1333 $(TOP)\ext\rtree\rtree.h 1334EXTHDR = $(EXTHDR) \ 1335 $(TOP)\ext\icu\sqliteicu.h 1336EXTHDR = $(EXTHDR) \ 1337 $(TOP)\ext\rtree\sqlite3rtree.h 1338 1339# executables needed for testing 1340# 1341TESTPROGS = \ 1342 testfixture.exe \ 1343 $(SQLITE3EXE) \ 1344 sqlite3_analyzer.exe \ 1345 sqldiff.exe 1346 1347# Databases containing fuzzer test cases 1348# 1349FUZZDATA = \ 1350 $(TOP)\test\fuzzdata1.db \ 1351 $(TOP)\test\fuzzdata2.db \ 1352 $(TOP)\test\fuzzdata3.db \ 1353 $(TOP)\test\fuzzdata4.db 1354# <</mark>> 1355 1356# Additional compiler options for the shell. These are only effective 1357# when the shell is not being dynamically linked. 1358# 1359!IF $(DYNAMIC_SHELL)==0 && $(FOR_WIN10)==0 1360SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_SHELL_JSON1 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_EXPLAIN_COMMENTS 1361!ENDIF 1362 1363# <<mark>> 1364# Extra compiler options for various test tools. 1365# 1366MPTESTER_COMPILE_OPTS = -DSQLITE_SHELL_JSON1 -DSQLITE_ENABLE_FTS5 1367FUZZERSHELL_COMPILE_OPTS = -DSQLITE_ENABLE_JSON1 1368FUZZCHECK_COMPILE_OPTS = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5 1369 1370# Standard options to testfixture. 1371# 1372TESTOPTS = --verbose=file --output=test-out.txt 1373 1374# Extra targets for the "all" target that require Tcl. 1375# 1376!IF $(NO_TCL)==0 1377ALL_TCL_TARGETS = libtclsqlite3.lib 1378!ELSE 1379ALL_TCL_TARGETS = 1380!ENDIF 1381# <</mark>> 1382 1383# This is the default Makefile target. The objects listed here 1384# are what get build when you type just "make" with no arguments. 1385# 1386all: dll libsqlite3.lib shell $(ALL_TCL_TARGETS) 1387 1388# Dynamic link library section. 1389# 1390dll: $(SQLITE3DLL) 1391 1392# Shell executable. 1393# 1394shell: $(SQLITE3EXE) 1395 1396# <<mark>> 1397libsqlite3.lib: $(LIBOBJ) 1398 $(LTLIB) $(LTLIBOPTS) /OUT:$@ $(LIBOBJ) $(TLIBS) 1399 1400libtclsqlite3.lib: tclsqlite.lo libsqlite3.lib 1401 $(LTLIB) $(LTLIBOPTS) $(LTLIBPATHS) /OUT:$@ tclsqlite.lo libsqlite3.lib $(LIBTCLSTUB) $(TLIBS) 1402# <</mark>> 1403 1404$(SQLITE3DLL): $(LIBOBJ) $(LIBRESOBJS) $(CORE_LINK_DEP) 1405 $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL $(CORE_LINK_OPTS) /OUT:$@ $(LIBOBJ) $(LIBRESOBJS) $(LTLIBS) $(TLIBS) 1406 1407# <<mark>> 1408sqlite3.def: libsqlite3.lib 1409 echo EXPORTS > sqlite3.def 1410 dumpbin /all libsqlite3.lib \ 1411 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl include "^\s+1 _?(sqlite3_.*)$$" \1 \ 1412 | sort >> sqlite3.def 1413# <</mark>> 1414 1415$(SQLITE3EXE): $(TOP)\src\shell.c $(SHELL_CORE_DEP) $(LIBRESOBJS) $(SHELL_CORE_SRC) $(SQLITE3H) 1416 $(LTLINK) $(SHELL_COMPILE_OPTS) $(READLINE_FLAGS) $(TOP)\src\shell.c $(SHELL_CORE_SRC) \ 1417 /link $(SQLITE3EXEPDB) $(LDFLAGS) $(LTLINKOPTS) $(SHELL_LINK_OPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LIBREADLINE) $(LTLIBS) $(TLIBS) 1418 1419# <<mark>> 1420sqldiff.exe: $(TOP)\tool\sqldiff.c $(SQLITE3C) $(SQLITE3H) 1421 $(LTLINK) $(NO_WARN) $(TOP)\tool\sqldiff.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 1422 1423srcck1.exe: $(TOP)\tool\srcck1.c 1424 $(BCC) $(NO_WARN) -Fe$@ $(TOP)\tool\srcck1.c 1425 1426sourcetest: srcck1.exe sqlite3.c 1427 srcck1.exe sqlite3.c 1428 1429fuzzershell.exe: $(TOP)\tool\fuzzershell.c $(SQLITE3C) $(SQLITE3H) 1430 $(LTLINK) $(NO_WARN) $(FUZZERSHELL_COMPILE_OPTS) $(TOP)\tool\fuzzershell.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 1431 1432fuzzcheck.exe: $(TOP)\test\fuzzcheck.c $(SQLITE3C) $(SQLITE3H) 1433 $(LTLINK) $(NO_WARN) $(FUZZCHECK_COMPILE_OPTS) $(TOP)\test\fuzzcheck.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 1434 1435mptester.exe: $(TOP)\mptest\mptest.c $(SQLITE3C) $(SQLITE3H) 1436 $(LTLINK) $(NO_WARN) $(MPTESTER_COMPILE_OPTS) $(TOP)\mptest\mptest.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 1437 1438MPTEST1 = mptester mptest.db $(TOP)\mptest\crash01.test --repeat 20 1439MPTEST2 = mptester mptest.db $(TOP)\mptest\multiwrite01.test --repeat 20 1440 1441mptest: mptester.exe 1442 del /Q mptest.db 2>NUL 1443 $(MPTEST1) --journalmode DELETE 1444 $(MPTEST2) --journalmode WAL 1445 $(MPTEST1) --journalmode WAL 1446 $(MPTEST2) --journalmode PERSIST 1447 $(MPTEST1) --journalmode PERSIST 1448 $(MPTEST2) --journalmode TRUNCATE 1449 $(MPTEST1) --journalmode TRUNCATE 1450 $(MPTEST2) --journalmode DELETE 1451 1452# This target creates a directory named "tsrc" and fills it with 1453# copies of all of the C source code and header files needed to 1454# build on the target system. Some of the C source code and header 1455# files are automatically generated. This target takes care of 1456# all that automatic generation. 1457# 1458.target_source: $(SRC) $(TOP)\tool\vdbe-compress.tcl fts5.c 1459 -rmdir /Q/S tsrc 2>NUL 1460 -mkdir tsrc 1461 for %i in ($(SRC00)) do copy /Y %i tsrc 1462 for %i in ($(SRC01)) do copy /Y %i tsrc 1463 for %i in ($(SRC02)) do copy /Y %i tsrc 1464 for %i in ($(SRC03)) do copy /Y %i tsrc 1465 for %i in ($(SRC04)) do copy /Y %i tsrc 1466 for %i in ($(SRC05)) do copy /Y %i tsrc 1467 for %i in ($(SRC06)) do copy /Y %i tsrc 1468 for %i in ($(SRC07)) do copy /Y %i tsrc 1469 for %i in ($(SRC08)) do copy /Y %i tsrc 1470 for %i in ($(SRC09)) do copy /Y %i tsrc 1471 for %i in ($(SRC10)) do copy /Y %i tsrc 1472 for %i in ($(SRC11)) do copy /Y %i tsrc 1473 copy /Y fts5.c tsrc 1474 copy /Y fts5.h tsrc 1475 del /Q tsrc\sqlite.h.in tsrc\parse.y 2>NUL 1476 $(TCLSH_CMD) $(TOP)\tool\vdbe-compress.tcl $(OPTS) < tsrc\vdbe.c > vdbe.new 1477 move vdbe.new tsrc\vdbe.c 1478 echo > .target_source 1479 1480sqlite3.c: .target_source sqlite3ext.h $(TOP)\tool\mksqlite3c.tcl 1481 $(TCLSH_CMD) $(TOP)\tool\mksqlite3c.tcl $(MKSQLITE3C_ARGS) 1482 copy tsrc\shell.c . 1483 1484sqlite3-all.c: sqlite3.c $(TOP)\tool\split-sqlite3c.tcl 1485 $(TCLSH_CMD) $(TOP)\tool\split-sqlite3c.tcl 1486# <</mark>> 1487 1488# Rule to build the amalgamation 1489# 1490sqlite3.lo: $(SQLITE3C) 1491 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(SQLITE3C) 1492 1493# <<mark>> 1494# Rules to build the LEMON compiler generator 1495# 1496lempar.c: $(TOP)\tool\lempar.c 1497 copy $(TOP)\tool\lempar.c . 1498 1499lemon.exe: $(TOP)\tool\lemon.c lempar.c 1500 $(BCC) $(NO_WARN) -Daccess=_access \ 1501 -Fe$@ $(TOP)\tool\lemon.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS) 1502 1503# Rules to build individual *.lo files from generated *.c files. This 1504# applies to: 1505# 1506# parse.lo 1507# opcodes.lo 1508# 1509parse.lo: parse.c $(HDR) 1510 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c parse.c 1511 1512opcodes.lo: opcodes.c 1513 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c opcodes.c 1514# <</mark>> 1515 1516# Rule to build the Win32 resources object file. 1517# 1518!IF $(USE_RC)!=0 1519# <<block1>> 1520$(LIBRESOBJS): $(TOP)\src\sqlite3.rc $(SQLITE3H) 1521 echo #ifndef SQLITE_RESOURCE_VERSION > sqlite3rc.h 1522 for /F %%V in ('type "$(TOP)\VERSION"') do ( \ 1523 echo #define SQLITE_RESOURCE_VERSION %%V \ 1524 | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact . ^, >> sqlite3rc.h \ 1525 ) 1526 echo #endif >> sqlite3rc.h 1527 $(LTRCOMPILE) -fo $(LIBRESOBJS) $(TOP)\src\sqlite3.rc 1528# <</block1>> 1529!ENDIF 1530 1531# <<mark>> 1532# Rules to build individual *.lo files from files in the src directory. 1533# 1534alter.lo: $(TOP)\src\alter.c $(HDR) 1535 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\alter.c 1536 1537analyze.lo: $(TOP)\src\analyze.c $(HDR) 1538 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\analyze.c 1539 1540attach.lo: $(TOP)\src\attach.c $(HDR) 1541 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\attach.c 1542 1543auth.lo: $(TOP)\src\auth.c $(HDR) 1544 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\auth.c 1545 1546backup.lo: $(TOP)\src\backup.c $(HDR) 1547 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\backup.c 1548 1549bitvec.lo: $(TOP)\src\bitvec.c $(HDR) 1550 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\bitvec.c 1551 1552btmutex.lo: $(TOP)\src\btmutex.c $(HDR) 1553 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btmutex.c 1554 1555btree.lo: $(TOP)\src\btree.c $(HDR) $(TOP)\src\pager.h 1556 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btree.c 1557 1558build.lo: $(TOP)\src\build.c $(HDR) 1559 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\build.c 1560 1561callback.lo: $(TOP)\src\callback.c $(HDR) 1562 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\callback.c 1563 1564complete.lo: $(TOP)\src\complete.c $(HDR) 1565 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\complete.c 1566 1567ctime.lo: $(TOP)\src\ctime.c $(HDR) 1568 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\ctime.c 1569 1570date.lo: $(TOP)\src\date.c $(HDR) 1571 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\date.c 1572 1573dbstat.lo: $(TOP)\src\date.c $(HDR) 1574 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\dbstat.c 1575 1576delete.lo: $(TOP)\src\delete.c $(HDR) 1577 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\delete.c 1578 1579expr.lo: $(TOP)\src\expr.c $(HDR) 1580 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\expr.c 1581 1582fault.lo: $(TOP)\src\fault.c $(HDR) 1583 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fault.c 1584 1585fkey.lo: $(TOP)\src\fkey.c $(HDR) 1586 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fkey.c 1587 1588func.lo: $(TOP)\src\func.c $(HDR) 1589 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\func.c 1590 1591global.lo: $(TOP)\src\global.c $(HDR) 1592 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\global.c 1593 1594hash.lo: $(TOP)\src\hash.c $(HDR) 1595 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\hash.c 1596 1597insert.lo: $(TOP)\src\insert.c $(HDR) 1598 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\insert.c 1599 1600journal.lo: $(TOP)\src\journal.c $(HDR) 1601 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\journal.c 1602 1603legacy.lo: $(TOP)\src\legacy.c $(HDR) 1604 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\legacy.c 1605 1606loadext.lo: $(TOP)\src\loadext.c $(HDR) 1607 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\loadext.c 1608 1609main.lo: $(TOP)\src\main.c $(HDR) 1610 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\main.c 1611 1612malloc.lo: $(TOP)\src\malloc.c $(HDR) 1613 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\malloc.c 1614 1615mem0.lo: $(TOP)\src\mem0.c $(HDR) 1616 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem0.c 1617 1618mem1.lo: $(TOP)\src\mem1.c $(HDR) 1619 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem1.c 1620 1621mem2.lo: $(TOP)\src\mem2.c $(HDR) 1622 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem2.c 1623 1624mem3.lo: $(TOP)\src\mem3.c $(HDR) 1625 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem3.c 1626 1627mem5.lo: $(TOP)\src\mem5.c $(HDR) 1628 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem5.c 1629 1630memjournal.lo: $(TOP)\src\memjournal.c $(HDR) 1631 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\memjournal.c 1632 1633mutex.lo: $(TOP)\src\mutex.c $(HDR) 1634 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex.c 1635 1636mutex_noop.lo: $(TOP)\src\mutex_noop.c $(HDR) 1637 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_noop.c 1638 1639mutex_unix.lo: $(TOP)\src\mutex_unix.c $(HDR) 1640 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_unix.c 1641 1642mutex_w32.lo: $(TOP)\src\mutex_w32.c $(HDR) 1643 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_w32.c 1644 1645notify.lo: $(TOP)\src\notify.c $(HDR) 1646 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\notify.c 1647 1648pager.lo: $(TOP)\src\pager.c $(HDR) $(TOP)\src\pager.h 1649 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pager.c 1650 1651pcache.lo: $(TOP)\src\pcache.c $(HDR) $(TOP)\src\pcache.h 1652 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache.c 1653 1654pcache1.lo: $(TOP)\src\pcache1.c $(HDR) $(TOP)\src\pcache.h 1655 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache1.c 1656 1657os.lo: $(TOP)\src\os.c $(HDR) 1658 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os.c 1659 1660os_unix.lo: $(TOP)\src\os_unix.c $(HDR) 1661 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_unix.c 1662 1663os_win.lo: $(TOP)\src\os_win.c $(HDR) 1664 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_win.c 1665 1666pragma.lo: $(TOP)\src\pragma.c $(HDR) 1667 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pragma.c 1668 1669prepare.lo: $(TOP)\src\prepare.c $(HDR) 1670 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\prepare.c 1671 1672printf.lo: $(TOP)\src\printf.c $(HDR) 1673 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\printf.c 1674 1675random.lo: $(TOP)\src\random.c $(HDR) 1676 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\random.c 1677 1678resolve.lo: $(TOP)\src\resolve.c $(HDR) 1679 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\resolve.c 1680 1681rowset.lo: $(TOP)\src\rowset.c $(HDR) 1682 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\rowset.c 1683 1684select.lo: $(TOP)\src\select.c $(HDR) 1685 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\select.c 1686 1687status.lo: $(TOP)\src\status.c $(HDR) 1688 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\status.c 1689 1690table.lo: $(TOP)\src\table.c $(HDR) 1691 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\table.c 1692 1693threads.lo: $(TOP)\src\threads.c $(HDR) 1694 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\threads.c 1695 1696tokenize.lo: $(TOP)\src\tokenize.c keywordhash.h $(HDR) 1697 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\tokenize.c 1698 1699treeview.lo: $(TOP)\src\treeview.c $(HDR) 1700 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\treeview.c 1701 1702trigger.lo: $(TOP)\src\trigger.c $(HDR) 1703 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\trigger.c 1704 1705update.lo: $(TOP)\src\update.c $(HDR) 1706 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\update.c 1707 1708utf.lo: $(TOP)\src\utf.c $(HDR) 1709 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\utf.c 1710 1711util.lo: $(TOP)\src\util.c $(HDR) 1712 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\util.c 1713 1714vacuum.lo: $(TOP)\src\vacuum.c $(HDR) 1715 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vacuum.c 1716 1717vdbe.lo: $(TOP)\src\vdbe.c $(HDR) 1718 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbe.c 1719 1720vdbeapi.lo: $(TOP)\src\vdbeapi.c $(HDR) 1721 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeapi.c 1722 1723vdbeaux.lo: $(TOP)\src\vdbeaux.c $(HDR) 1724 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeaux.c 1725 1726vdbeblob.lo: $(TOP)\src\vdbeblob.c $(HDR) 1727 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeblob.c 1728 1729vdbemem.lo: $(TOP)\src\vdbemem.c $(HDR) 1730 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbemem.c 1731 1732vdbesort.lo: $(TOP)\src\vdbesort.c $(HDR) 1733 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbesort.c 1734 1735vdbetrace.lo: $(TOP)\src\vdbetrace.c $(HDR) 1736 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbetrace.c 1737 1738vtab.lo: $(TOP)\src\vtab.c $(HDR) 1739 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vtab.c 1740 1741wal.lo: $(TOP)\src\wal.c $(HDR) 1742 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\wal.c 1743 1744walker.lo: $(TOP)\src\walker.c $(HDR) 1745 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\walker.c 1746 1747where.lo: $(TOP)\src\where.c $(HDR) 1748 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\where.c 1749 1750wherecode.lo: $(TOP)\src\wherecode.c $(HDR) 1751 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\wherecode.c 1752 1753whereexpr.lo: $(TOP)\src\whereexpr.c $(HDR) 1754 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\whereexpr.c 1755 1756tclsqlite.lo: $(TOP)\src\tclsqlite.c $(HDR) 1757 $(LTCOMPILE) $(NO_WARN) -DUSE_TCL_STUBS=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c 1758 1759tclsqlite-shell.lo: $(TOP)\src\tclsqlite.c $(HDR) 1760 $(LTCOMPILE) $(NO_WARN) -DTCLSH=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c 1761 1762tclsqlite3.exe: tclsqlite-shell.lo $(SQLITE3C) $(SQLITE3H) $(LIBRESOBJS) 1763 $(LTLINK) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /OUT:$@ tclsqlite-shell.lo $(LIBRESOBJS) $(LTLIBS) $(TLIBS) 1764 1765# Rules to build opcodes.c and opcodes.h 1766# 1767opcodes.c: opcodes.h $(TOP)\tool\mkopcodec.tcl 1768 $(TCLSH_CMD) $(TOP)\tool\mkopcodec.tcl opcodes.h > opcodes.c 1769 1770opcodes.h: parse.h $(TOP)\src\vdbe.c $(TOP)\tool\mkopcodeh.tcl 1771 type parse.h $(TOP)\src\vdbe.c | $(TCLSH_CMD) $(TOP)\tool\mkopcodeh.tcl > opcodes.h 1772 1773# Rules to build parse.c and parse.h - the outputs of lemon. 1774# 1775parse.h: parse.c 1776 1777parse.c: $(TOP)\src\parse.y lemon.exe $(TOP)\tool\addopcodes.tcl 1778 del /Q parse.y parse.h parse.h.temp 2>NUL 1779 copy $(TOP)\src\parse.y . 1780 .\lemon.exe $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) parse.y 1781 move parse.h parse.h.temp 1782 $(TCLSH_CMD) $(TOP)\tool\addopcodes.tcl parse.h.temp > parse.h 1783 1784$(SQLITE3H): $(TOP)\src\sqlite.h.in $(TOP)\manifest.uuid $(TOP)\VERSION 1785 $(TCLSH_CMD) $(TOP)\tool\mksqlite3h.tcl $(TOP:\=/) > $(SQLITE3H) 1786 1787sqlite3ext.h: .target_source 1788 copy tsrc\sqlite3ext.h . 1789 1790mkkeywordhash.exe: $(TOP)\tool\mkkeywordhash.c 1791 $(BCC) $(NO_WARN) -Fe$@ $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) \ 1792 $(TOP)\tool\mkkeywordhash.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS) 1793 1794keywordhash.h: $(TOP)\tool\mkkeywordhash.c mkkeywordhash.exe 1795 .\mkkeywordhash.exe > keywordhash.h 1796 1797 1798 1799# Rules to build the extension objects. 1800# 1801icu.lo: $(TOP)\ext\icu\icu.c $(HDR) $(EXTHDR) 1802 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\icu\icu.c 1803 1804fts2.lo: $(TOP)\ext\fts2\fts2.c $(HDR) $(EXTHDR) 1805 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2.c 1806 1807fts2_hash.lo: $(TOP)\ext\fts2\fts2_hash.c $(HDR) $(EXTHDR) 1808 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_hash.c 1809 1810fts2_icu.lo: $(TOP)\ext\fts2\fts2_icu.c $(HDR) $(EXTHDR) 1811 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_icu.c 1812 1813fts2_porter.lo: $(TOP)\ext\fts2\fts2_porter.c $(HDR) $(EXTHDR) 1814 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_porter.c 1815 1816fts2_tokenizer.lo: $(TOP)\ext\fts2\fts2_tokenizer.c $(HDR) $(EXTHDR) 1817 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer.c 1818 1819fts2_tokenizer1.lo: $(TOP)\ext\fts2\fts2_tokenizer1.c $(HDR) $(EXTHDR) 1820 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer1.c 1821 1822fts3.lo: $(TOP)\ext\fts3\fts3.c $(HDR) $(EXTHDR) 1823 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3.c 1824 1825fts3_aux.lo: $(TOP)\ext\fts3\fts3_aux.c $(HDR) $(EXTHDR) 1826 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_aux.c 1827 1828fts3_expr.lo: $(TOP)\ext\fts3\fts3_expr.c $(HDR) $(EXTHDR) 1829 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_expr.c 1830 1831fts3_hash.lo: $(TOP)\ext\fts3\fts3_hash.c $(HDR) $(EXTHDR) 1832 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_hash.c 1833 1834fts3_icu.lo: $(TOP)\ext\fts3\fts3_icu.c $(HDR) $(EXTHDR) 1835 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_icu.c 1836 1837fts3_snippet.lo: $(TOP)\ext\fts3\fts3_snippet.c $(HDR) $(EXTHDR) 1838 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_snippet.c 1839 1840fts3_porter.lo: $(TOP)\ext\fts3\fts3_porter.c $(HDR) $(EXTHDR) 1841 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_porter.c 1842 1843fts3_tokenizer.lo: $(TOP)\ext\fts3\fts3_tokenizer.c $(HDR) $(EXTHDR) 1844 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer.c 1845 1846fts3_tokenizer1.lo: $(TOP)\ext\fts3\fts3_tokenizer1.c $(HDR) $(EXTHDR) 1847 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer1.c 1848 1849fts3_tokenize_vtab.lo: $(TOP)\ext\fts3\fts3_tokenize_vtab.c $(HDR) $(EXTHDR) 1850 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenize_vtab.c 1851 1852fts3_unicode.lo: $(TOP)\ext\fts3\fts3_unicode.c $(HDR) $(EXTHDR) 1853 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode.c 1854 1855fts3_unicode2.lo: $(TOP)\ext\fts3\fts3_unicode2.c $(HDR) $(EXTHDR) 1856 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode2.c 1857 1858fts3_write.lo: $(TOP)\ext\fts3\fts3_write.c $(HDR) $(EXTHDR) 1859 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_write.c 1860 1861rtree.lo: $(TOP)\ext\rtree\rtree.c $(HDR) $(EXTHDR) 1862 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\rtree\rtree.c 1863 1864# FTS5 things 1865# 1866FTS5_SRC = \ 1867 $(TOP)\ext\fts5\fts5.h \ 1868 $(TOP)\ext\fts5\fts5Int.h \ 1869 $(TOP)\ext\fts5\fts5_aux.c \ 1870 $(TOP)\ext\fts5\fts5_buffer.c \ 1871 $(TOP)\ext\fts5\fts5_main.c \ 1872 $(TOP)\ext\fts5\fts5_config.c \ 1873 $(TOP)\ext\fts5\fts5_expr.c \ 1874 $(TOP)\ext\fts5\fts5_hash.c \ 1875 $(TOP)\ext\fts5\fts5_index.c \ 1876 fts5parse.c fts5parse.h \ 1877 $(TOP)\ext\fts5\fts5_storage.c \ 1878 $(TOP)\ext\fts5\fts5_tokenize.c \ 1879 $(TOP)\ext\fts5\fts5_unicode2.c \ 1880 $(TOP)\ext\fts5\fts5_varint.c \ 1881 $(TOP)\ext\fts5\fts5_vocab.c 1882 1883fts5parse.c: $(TOP)\ext\fts5\fts5parse.y lemon.exe 1884 copy $(TOP)\ext\fts5\fts5parse.y . 1885 del /Q fts5parse.h 2>NUL 1886 .\lemon.exe $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) fts5parse.y 1887 1888fts5parse.h: fts5parse.c 1889 1890fts5.c: $(FTS5_SRC) 1891 $(TCLSH_CMD) $(TOP)\ext\fts5\tool\mkfts5c.tcl 1892 copy $(TOP)\ext\fts5\fts5.h . 1893 1894fts5.lo: fts5.c $(HDR) $(EXTHDR) 1895 $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c fts5.c 1896 1897fts5_ext.lo: fts5.c $(HDR) $(EXTHDR) 1898 $(LTCOMPILE) $(NO_WARN) -c fts5.c 1899 1900fts5.dll: fts5_ext.lo 1901 $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /OUT:$@ fts5_ext.lo 1902 1903sqlite3rbu.lo: $(TOP)\ext\rbu\sqlite3rbu.c $(HDR) $(EXTHDR) 1904 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\rbu\sqlite3rbu.c 1905 1906# Rules to build the 'testfixture' application. 1907# 1908# If using the amalgamation, use sqlite3.c directly to build the test 1909# fixture. Otherwise link against libsqlite3.lib. (This distinction is 1910# necessary because the test fixture requires non-API symbols which are 1911# hidden when the library is built via the amalgamation). 1912# 1913TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 1914TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" 1915TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_CORE $(NO_WARN) 1916 1917TESTFIXTURE_SRC0 = $(TESTEXT) $(TESTSRC2) 1918TESTFIXTURE_SRC1 = $(TESTEXT) $(SQLITE3C) 1919!IF $(USE_AMALGAMATION)==0 1920TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC0) 1921!ELSE 1922TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC1) 1923!ENDIF 1924 1925testfixture.exe: $(TESTFIXTURE_SRC) $(SQLITE3H) $(LIBRESOBJS) $(HDR) 1926 $(LTLINK) -DSQLITE_NO_SYNC=1 $(TESTFIXTURE_FLAGS) \ 1927 -DBUILD_sqlite -I$(TCLINCDIR) \ 1928 $(TESTFIXTURE_SRC) \ 1929 /link $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS) $(TLIBS) 1930 1931extensiontest: testfixture.exe testloadext.dll 1932 @set PATH=$(LIBTCLPATH);$(PATH) 1933 .\testfixture.exe $(TOP)\test\loadext.test $(TESTOPTS) 1934 1935fulltest: $(TESTPROGS) fuzztest 1936 @set PATH=$(LIBTCLPATH);$(PATH) 1937 .\testfixture.exe $(TOP)\test\all.test $(TESTOPTS) 1938 1939soaktest: $(TESTPROGS) 1940 @set PATH=$(LIBTCLPATH);$(PATH) 1941 .\testfixture.exe $(TOP)\test\all.test -soak=1 $(TESTOPTS) 1942 1943fulltestonly: $(TESTPROGS) fuzztest 1944 @set PATH=$(LIBTCLPATH);$(PATH) 1945 .\testfixture.exe $(TOP)\test\full.test 1946 1947queryplantest: testfixture.exe shell 1948 @set PATH=$(LIBTCLPATH);$(PATH) 1949 .\testfixture.exe $(TOP)\test\permutations.test queryplanner $(TESTOPTS) 1950 1951fuzztest: fuzzcheck.exe 1952 .\fuzzcheck.exe $(FUZZDATA) 1953 1954fastfuzztest: fuzzcheck.exe 1955 .\fuzzcheck.exe --limit-mem 100M $(FUZZDATA) 1956 1957# Minimal testing that runs in less than 3 minutes (on a fast machine) 1958# 1959quicktest: testfixture.exe sourcetest 1960 @set PATH=$(LIBTCLPATH);$(PATH) 1961 .\testfixture.exe $(TOP)\test\extraquick.test $(TESTOPTS) 1962 1963# This is the common case. Run many tests that do not take too long, 1964# including fuzzcheck, sqlite3_analyzer, and sqldiff tests. 1965# 1966test: $(TESTPROGS) sourcetest fastfuzztest 1967 @set PATH=$(LIBTCLPATH);$(PATH) 1968 .\testfixture.exe $(TOP)\test\veryquick.test $(TESTOPTS) 1969 1970smoketest: $(TESTPROGS) 1971 @set PATH=$(LIBTCLPATH);$(PATH) 1972 .\testfixture.exe $(TOP)\test\main.test $(TESTOPTS) 1973 1974sqlite3_analyzer.c: $(SQLITE3C) $(SQLITE3H) $(TOP)\src\tclsqlite.c $(TOP)\tool\spaceanal.tcl 1975 echo #define TCLSH 2 > $@ 1976 echo #define SQLITE_ENABLE_DBSTAT_VTAB 1 >> $@ 1977 copy $@ + $(SQLITE3C) + $(TOP)\src\tclsqlite.c $@ 1978 echo static const char *tclsh_main_loop(void){ >> $@ 1979 echo static const char *zMainloop = >> $@ 1980 $(TCLSH_CMD) $(TOP)\tool\tostr.tcl $(TOP)\tool\spaceanal.tcl >> $@ 1981 echo ; return zMainloop; } >> $@ 1982 1983sqlite3_analyzer.exe: sqlite3_analyzer.c $(LIBRESOBJS) 1984 $(LTLINK) $(NO_WARN) -DBUILD_sqlite -I$(TCLINCDIR) sqlite3_analyzer.c \ 1985 /link $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS) $(TLIBS) 1986 1987testloadext.lo: $(TOP)\src\test_loadext.c 1988 $(LTCOMPILE) $(NO_WARN) -c $(TOP)\src\test_loadext.c 1989 1990testloadext.dll: testloadext.lo 1991 $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /OUT:$@ testloadext.lo 1992 1993showdb.exe: $(TOP)\tool\showdb.c $(SQLITE3C) $(SQLITE3H) 1994 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ 1995 $(TOP)\tool\showdb.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 1996 1997showstat4.exe: $(TOP)\tool\showstat4.c $(SQLITE3C) $(SQLITE3H) 1998 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ 1999 $(TOP)\tool\showstat4.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 2000 2001showjournal.exe: $(TOP)\tool\showjournal.c $(SQLITE3C) $(SQLITE3H) 2002 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ 2003 $(TOP)\tool\showjournal.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 2004 2005showwal.exe: $(TOP)\tool\showwal.c $(SQLITE3C) $(SQLITE3H) 2006 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ 2007 $(TOP)\tool\showwal.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 2008 2009fts3view.exe: $(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) $(SQLITE3H) 2010 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ 2011 $(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 2012 2013rollback-test.exe: $(TOP)\tool\rollback-test.c $(SQLITE3C) $(SQLITE3H) 2014 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ 2015 $(TOP)\tool\rollback-test.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 2016 2017LogEst.exe: $(TOP)\tool\logest.c $(SQLITE3H) 2018 $(LTLINK) $(NO_WARN) -Fe$@ $(TOP)\tool\LogEst.c /link $(LDFLAGS) $(LTLINKOPTS) 2019 2020wordcount.exe: $(TOP)\test\wordcount.c $(SQLITE3C) $(SQLITE3H) 2021 $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ 2022 $(TOP)\test\wordcount.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 2023 2024speedtest1.exe: $(TOP)\test\speedtest1.c $(SQLITE3C) $(SQLITE3H) 2025 $(LTLINK) $(NO_WARN) -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ 2026 $(TOP)\test\speedtest1.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 2027 2028rbu.exe: $(TOP)\ext\rbu\rbu.c $(TOP)\ext\rbu\sqlite3rbu.c $(SQLITE3C) $(SQLITE3H) 2029 $(LTLINK) $(NO_WARN) -DSQLITE_ENABLE_RBU -Fe$@ \ 2030 $(TOP)\ext\rbu\rbu.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) 2031# <</mark>> 2032 2033clean: 2034 del /Q *.exp *.lo *.ilk *.lib *.obj *.ncb *.pdb *.sdf *.suo 2>NUL 2035 del /Q *.bsc *.def *.cod *.da *.bb *.bbg *.vc gmon.out 2>NUL 2036 del /Q $(SQLITE3EXE) $(SQLITE3DLL) 2>NUL 2037# <<mark>> 2038 del /Q $(SQLITE3C) $(SQLITE3H) opcodes.c opcodes.h 2>NUL 2039 del /Q lemon.* lempar.c parse.* 2>NUL 2040 del /Q mkkeywordhash.* keywordhash.h 2>NUL 2041 del /Q notasharedlib.* 2>NUL 2042 -rmdir /Q/S .deps 2>NUL 2043 -rmdir /Q/S .libs 2>NUL 2044 -rmdir /Q/S quota2a 2>NUL 2045 -rmdir /Q/S quota2b 2>NUL 2046 -rmdir /Q/S quota2c 2>NUL 2047 -rmdir /Q/S tsrc 2>NUL 2048 del /Q .target_source 2>NUL 2049 del /Q tclsqlite3.exe 2>NUL 2050 del /Q testloadext.dll 2>NUL 2051 del /Q testfixture.exe test.db 2>NUL 2052 del /Q LogEst.exe fts3view.exe rollback-test.exe showdb.exe 2>NUL 2053 del /Q showjournal.exe showstat4.exe showwal.exe speedtest1.exe 2>NUL 2054 del /Q mptester.exe wordcount.exe rbu.exe srcck1.exe 2>NUL 2055 del /Q sqlite3.c sqlite3-*.c 2>NUL 2056 del /Q sqlite3rc.h 2>NUL 2057 del /Q shell.c sqlite3ext.h 2>NUL 2058 del /Q sqlite3_analyzer.exe sqlite3_analyzer.c 2>NUL 2059 del /Q sqlite-*-output.vsix 2>NUL 2060 del /Q fuzzershell.exe fuzzcheck.exe sqldiff.exe 2>NUL 2061 del /Q fts5.* fts5parse.* 2>NUL 2062# <</mark>> 2063