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