Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/sqlite/src/Makefile.msc

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

Powered by Google App Engine
This is Rietveld 408576698