blob: a131d4c6e737e5a66cad05d93d11a73fe8fd8bd5 [file] [log] [blame]
drh06cee482016-01-23 19:47:00 +00001#### DO NOT EDIT ####
2# This makefile is automatically generated from the Makefile.msc at
drh021f9a62016-01-23 20:34:27 +00003# the root of the canonical SQLite source tree (not the
4# amalgamation tarball) using the tool/mkmsvcmin.tcl
5# script.
drh06cee482016-01-23 19:47:00 +00006#
7
mistachkin3e786092016-01-23 07:53:04 +00008#
9# nmake Makefile for SQLite
10#
11###############################################################################
12############################## START OF OPTIONS ###############################
13###############################################################################
14
15# The toplevel directory of the source tree. This is the directory
16# that contains this "Makefile.msc".
17#
18TOP = .
19
20
21# Set this non-0 to enable full warnings (-W4, etc) when compiling.
22#
23!IFNDEF USE_FULLWARN
mistachkinc8d3e832017-05-12 14:05:11 +000024USE_FULLWARN = 1
mistachkin3e786092016-01-23 07:53:04 +000025!ENDIF
26
mistachkin8c5e8fe2017-02-01 22:32:49 +000027# Set this non-0 to enable treating warnings as errors (-WX, etc) when
28# compiling.
29#
30!IFNDEF USE_FATAL_WARN
31USE_FATAL_WARN = 0
32!ENDIF
33
mistachkinfefe8282016-07-29 01:46:57 +000034# 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
38USE_RUNTIME_CHECKS = 0
39!ENDIF
40
mistachkincc0164b2016-09-05 20:46:02 +000041# Set this non-0 to create a SQLite amalgamation file that excludes the
42# various built-in extensions.
43#
44!IFNDEF MINIMAL_AMALGAMATION
45MINIMAL_AMALGAMATION = 0
46!ENDIF
47
mistachkin3e786092016-01-23 07:53:04 +000048# Set this non-0 to use "stdcall" calling convention for the core library
49# and shell executable.
50#
51!IFNDEF USE_STDCALL
52USE_STDCALL = 0
53!ENDIF
54
55# Set this non-0 to have the shell executable link against the core dynamic
56# link library.
57#
58!IFNDEF DYNAMIC_SHELL
59DYNAMIC_SHELL = 0
60!ENDIF
61
62# Set this non-0 to enable extra code that attempts to detect misuse of the
63# SQLite API.
64#
65!IFNDEF API_ARMOR
66API_ARMOR = 0
67!ENDIF
68
69# If necessary, create a list of harmless compiler warnings to disable when
70# compiling the various tools. For the SQLite source code itself, warnings,
71# if any, will be disabled from within it.
72#
73!IFNDEF NO_WARN
74!IF $(USE_FULLWARN)!=0
75NO_WARN = -wd4054 -wd4055 -wd4100 -wd4127 -wd4130 -wd4152 -wd4189 -wd4206
76NO_WARN = $(NO_WARN) -wd4210 -wd4232 -wd4305 -wd4306 -wd4702 -wd4706
77!ENDIF
78!ENDIF
79
80# Set this non-0 to use the library paths and other options necessary for
81# Windows Phone 8.1.
82#
83!IFNDEF USE_WP81_OPTS
84USE_WP81_OPTS = 0
85!ENDIF
86
87# Set this non-0 to split the SQLite amalgamation file into chunks to
88# be used for debugging with Visual Studio.
89#
90!IFNDEF SPLIT_AMALGAMATION
91SPLIT_AMALGAMATION = 0
92!ENDIF
93
94
95# Set this non-0 to dynamically link to the MSVC runtime library.
96#
97!IFNDEF USE_CRT_DLL
98USE_CRT_DLL = 0
99!ENDIF
100
101# Set this non-0 to link to the RPCRT4 library.
102#
103!IFNDEF USE_RPCRT4_LIB
104USE_RPCRT4_LIB = 0
105!ENDIF
106
107# Set this non-0 to generate assembly code listings for the source code
108# files.
109#
110!IFNDEF USE_LISTINGS
111USE_LISTINGS = 0
112!ENDIF
113
114# Set this non-0 to attempt setting the native compiler automatically
115# for cross-compiling the command line tools needed during the compilation
116# process.
117#
118!IFNDEF XCOMPILE
119XCOMPILE = 0
120!ENDIF
121
122# Set this non-0 to use the native libraries paths for cross-compiling
123# the command line tools needed during the compilation process.
124#
125!IFNDEF USE_NATIVE_LIBPATHS
126USE_NATIVE_LIBPATHS = 0
127!ENDIF
128
129# Set this 0 to skip the compiling and embedding of version resources.
130#
131!IFNDEF USE_RC
132USE_RC = 1
133!ENDIF
134
135# Set this non-0 to compile binaries suitable for the WinRT environment.
136# This setting does not apply to any binaries that require Tcl to operate
137# properly (i.e. the text fixture, etc).
138#
139!IFNDEF FOR_WINRT
140FOR_WINRT = 0
141!ENDIF
142
mistachkina819aed2016-02-12 05:19:29 +0000143# Set this non-0 to compile binaries suitable for the UWP environment.
mistachkin3e786092016-01-23 07:53:04 +0000144# This setting does not apply to any binaries that require Tcl to operate
145# properly (i.e. the text fixture, etc).
146#
mistachkina819aed2016-02-12 05:19:29 +0000147!IFNDEF FOR_UWP
148FOR_UWP = 0
mistachkin3e786092016-01-23 07:53:04 +0000149!ENDIF
150
151# Set this non-0 to compile binaries suitable for the Windows 10 platform.
152#
153!IFNDEF FOR_WIN10
154FOR_WIN10 = 0
155!ENDIF
156
157
158# Set this to non-0 to create and use PDBs.
159#
160!IFNDEF SYMBOLS
161SYMBOLS = 1
162!ENDIF
163
164# Set this to non-0 to use the SQLite debugging heap subsystem.
165#
166!IFNDEF MEMDEBUG
167MEMDEBUG = 0
168!ENDIF
169
170# Set this to non-0 to use the Win32 native heap subsystem.
171#
172!IFNDEF WIN32HEAP
173WIN32HEAP = 0
174!ENDIF
175
176# Set this to non-0 to enable OSTRACE() macros, which can be useful when
177# debugging.
178#
179!IFNDEF OSTRACE
180OSTRACE = 0
181!ENDIF
182
183# Set this to one of the following values to enable various debugging
184# features. Each level includes the debugging options from the previous
185# levels. Currently, the recognized values for DEBUG are:
186#
187# 0 == NDEBUG: Disables assert() and other runtime diagnostics.
188# 1 == SQLITE_ENABLE_API_ARMOR: extra attempts to detect misuse of the API.
189# 2 == Disables NDEBUG and all optimizations and then enables PDBs.
190# 3 == SQLITE_DEBUG: Enables various diagnostics messages and code.
191# 4 == SQLITE_WIN32_MALLOC_VALIDATE: Validate the Win32 native heap per call.
192# 5 == SQLITE_DEBUG_OS_TRACE: Enables output from the OSTRACE() macros.
193# 6 == SQLITE_ENABLE_IOTRACE: Enables output from the IOTRACE() macros.
194#
195!IFNDEF DEBUG
196DEBUG = 0
197!ENDIF
198
199# Enable use of available compiler optimizations? Normally, this should be
200# non-zero. Setting this to zero, thus disabling all compiler optimizations,
201# can be useful for testing.
202#
203!IFNDEF OPTIMIZATIONS
204OPTIMIZATIONS = 2
205!ENDIF
206
mistachkin12b35ea2016-05-03 19:40:54 +0000207# Set this to non-0 to enable support for the session extension.
208#
209!IFNDEF SESSION
210SESSION = 0
211!ENDIF
212
mistachkin3e786092016-01-23 07:53:04 +0000213# Set the source code file to be used by executables and libraries when
214# they need the amalgamation.
215#
216!IFNDEF SQLITE3C
217!IF $(SPLIT_AMALGAMATION)!=0
218SQLITE3C = sqlite3-all.c
219!ELSE
220SQLITE3C = sqlite3.c
221!ENDIF
222!ENDIF
223
224# Set the include code file to be used by executables and libraries when
225# they need SQLite.
226#
227!IFNDEF SQLITE3H
228SQLITE3H = sqlite3.h
229!ENDIF
230
231# This is the name to use for the SQLite dynamic link library (DLL).
232#
233!IFNDEF SQLITE3DLL
mistachkinb0c99af2016-02-19 05:07:56 +0000234!IF $(FOR_WIN10)!=0
235SQLITE3DLL = winsqlite3.dll
236!ELSE
mistachkin3e786092016-01-23 07:53:04 +0000237SQLITE3DLL = sqlite3.dll
238!ENDIF
mistachkinb0c99af2016-02-19 05:07:56 +0000239!ENDIF
mistachkin3e786092016-01-23 07:53:04 +0000240
241# This is the name to use for the SQLite import library (LIB).
242#
243!IFNDEF SQLITE3LIB
mistachkinb0c99af2016-02-19 05:07:56 +0000244!IF $(FOR_WIN10)!=0
245SQLITE3LIB = winsqlite3.lib
246!ELSE
mistachkin3e786092016-01-23 07:53:04 +0000247SQLITE3LIB = sqlite3.lib
248!ENDIF
mistachkinb0c99af2016-02-19 05:07:56 +0000249!ENDIF
mistachkin3e786092016-01-23 07:53:04 +0000250
251# This is the name to use for the SQLite shell executable (EXE).
252#
253!IFNDEF SQLITE3EXE
mistachkinb0c99af2016-02-19 05:07:56 +0000254!IF $(FOR_WIN10)!=0
255SQLITE3EXE = winsqlite3shell.exe
256!ELSE
mistachkin3e786092016-01-23 07:53:04 +0000257SQLITE3EXE = sqlite3.exe
258!ENDIF
mistachkinb0c99af2016-02-19 05:07:56 +0000259!ENDIF
mistachkin3e786092016-01-23 07:53:04 +0000260
261# This is the argument used to set the program database (PDB) file for the
262# SQLite shell executable (EXE).
263#
264!IFNDEF SQLITE3EXEPDB
mistachkinb0c99af2016-02-19 05:07:56 +0000265!IF $(FOR_WIN10)!=0
266SQLITE3EXEPDB =
267!ELSE
mistachkin3e786092016-01-23 07:53:04 +0000268SQLITE3EXEPDB = /pdb:sqlite3sh.pdb
269!ENDIF
mistachkinb0c99af2016-02-19 05:07:56 +0000270!ENDIF
mistachkin3e786092016-01-23 07:53:04 +0000271
mistachkincc0164b2016-09-05 20:46:02 +0000272
mistachkin3e786092016-01-23 07:53:04 +0000273# These are the "standard" SQLite compilation options used when compiling for
274# the Windows platform.
275#
276!IFNDEF OPT_FEATURE_FLAGS
mistachkincc0164b2016-09-05 20:46:02 +0000277!IF $(MINIMAL_AMALGAMATION)==0
mistachkin3e786092016-01-23 07:53:04 +0000278OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS3=1
279OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RTREE=1
mistachkin90d6f482018-09-12 00:48:17 +0000280OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_GEOPOLY=1
281OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_JSON1=1
282OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_STMTVTAB=1
283OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_DBPAGE_VTAB=1
284OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_DBSTAT_VTAB=1
285OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_INTROSPECTION_PRAGMAS=1
mistachkin8c53b4e2018-12-03 14:58:07 +0000286OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_DESERIALIZE=1
mistachkincc0164b2016-09-05 20:46:02 +0000287!ENDIF
mistachkin3e786092016-01-23 07:53:04 +0000288OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_COLUMN_METADATA=1
drh5e18d402016-05-03 13:14:18 +0000289!ENDIF
290
mistachkin12b35ea2016-05-03 19:40:54 +0000291# Should the session extension be enabled? If so, add compilation options
292# to enable it.
drh5e18d402016-05-03 13:14:18 +0000293#
drh5e18d402016-05-03 13:14:18 +0000294!IF $(SESSION)!=0
mistachkin05004782016-03-30 16:23:06 +0000295OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_SESSION=1
296OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_PREUPDATE_HOOK=1
mistachkin3e786092016-01-23 07:53:04 +0000297!ENDIF
298
299# These are the "extended" SQLite compilation options used when compiling for
300# the Windows 10 platform.
301#
302!IFNDEF EXT_FEATURE_FLAGS
303!IF $(FOR_WIN10)!=0
304EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS4=1
305EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_SYSTEM_MALLOC=1
306EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_OMIT_LOCALTIME=1
307!ELSE
308EXT_FEATURE_FLAGS =
309!ENDIF
310!ENDIF
311
312###############################################################################
313############################### END OF OPTIONS ################################
314###############################################################################
315
mistachkin55e88d92016-02-08 20:40:57 +0000316# When compiling for the Windows 10 platform, the PLATFORM macro must be set
317# to an appropriate value (e.g. x86, x64, arm, arm64, etc).
318#
319!IF $(FOR_WIN10)!=0
320!IFNDEF PLATFORM
321!ERROR Using the FOR_WIN10 option requires a value for PLATFORM.
322!ENDIF
323!ENDIF
324
mistachkin3e786092016-01-23 07:53:04 +0000325# This assumes that MSVC is always installed in 32-bit Program Files directory
326# and sets the variable for use in locating other 32-bit installs accordingly.
327#
328PROGRAMFILES_X86 = $(VCINSTALLDIR)\..\..
329PROGRAMFILES_X86 = $(PROGRAMFILES_X86:\\=\)
330
331# Check for the predefined command macro CC. This should point to the compiler
332# binary for the target platform. If it is not defined, simply define it to
333# the legacy default value 'cl.exe'.
334#
335!IFNDEF CC
336CC = cl.exe
337!ENDIF
338
mistachkin9aeb9712016-02-26 23:13:16 +0000339# Check for the predefined command macro CSC. This should point to a working
340# C Sharp compiler binary. If it is not defined, simply define it to the
341# legacy default value 'csc.exe'.
342#
343!IFNDEF CSC
344CSC = csc.exe
345!ENDIF
346
mistachkin3e786092016-01-23 07:53:04 +0000347# Check for the command macro LD. This should point to the linker binary for
348# the target platform. If it is not defined, simply define it to the legacy
349# default value 'link.exe'.
350#
351!IFNDEF LD
352LD = link.exe
353!ENDIF
354
355# Check for the predefined command macro RC. This should point to the resource
356# compiler binary for the target platform. If it is not defined, simply define
357# it to the legacy default value 'rc.exe'.
358#
359!IFNDEF RC
360RC = rc.exe
361!ENDIF
362
mistachkine48f1ed2016-02-08 20:45:37 +0000363# Check for the MSVC runtime library path macro. Otherwise, this value will
mistachkin3e786092016-01-23 07:53:04 +0000364# default to the 'lib' directory underneath the MSVC installation directory.
365#
366!IFNDEF CRTLIBPATH
367CRTLIBPATH = $(VCINSTALLDIR)\lib
368!ENDIF
369
370CRTLIBPATH = $(CRTLIBPATH:\\=\)
371
372# Check for the command macro NCC. This should point to the compiler binary
373# for the platform the compilation process is taking place on. If it is not
374# defined, simply define it to have the same value as the CC macro. When
375# cross-compiling, it is suggested that this macro be modified via the command
376# line (since nmake itself does not provide a built-in method to guess it).
377# For example, to use the x86 compiler when cross-compiling for x64, a command
378# line similar to the following could be used (all on one line):
379#
380# nmake /f Makefile.msc sqlite3.dll
381# XCOMPILE=1 USE_NATIVE_LIBPATHS=1
382#
383# Alternatively, the full path and file name to the compiler binary for the
384# platform the compilation process is taking place may be specified (all on
385# one line):
386#
387# nmake /f Makefile.msc sqlite3.dll
388# "NCC=""%VCINSTALLDIR%\bin\cl.exe"""
389# USE_NATIVE_LIBPATHS=1
390#
391!IFDEF NCC
392NCC = $(NCC:\\=\)
393!ELSEIF $(XCOMPILE)!=0
394NCC = "$(VCINSTALLDIR)\bin\$(CC)"
395NCC = $(NCC:\\=\)
396!ELSE
397NCC = $(CC)
398!ENDIF
399
mistachkine48f1ed2016-02-08 20:45:37 +0000400# Check for the MSVC native runtime library path macro. Otherwise,
mistachkin3e786092016-01-23 07:53:04 +0000401# this value will default to the 'lib' directory underneath the MSVC
402# installation directory.
403#
404!IFNDEF NCRTLIBPATH
405NCRTLIBPATH = $(VCINSTALLDIR)\lib
406!ENDIF
407
408NCRTLIBPATH = $(NCRTLIBPATH:\\=\)
409
mistachkine48f1ed2016-02-08 20:45:37 +0000410# Check for the Platform SDK library path macro. Otherwise, this
mistachkin3e786092016-01-23 07:53:04 +0000411# value will default to the 'lib' directory underneath the Windows
412# SDK installation directory (the environment variable used appears
413# to be available when using Visual C++ 2008 or later via the
414# command line).
415#
416!IFNDEF NSDKLIBPATH
417NSDKLIBPATH = $(WINDOWSSDKDIR)\lib
418!ENDIF
419
420NSDKLIBPATH = $(NSDKLIBPATH:\\=\)
421
mistachkine48f1ed2016-02-08 20:45:37 +0000422# Check for the UCRT library path macro. Otherwise, this value will
mistachkin55e88d92016-02-08 20:40:57 +0000423# default to the version-specific, platform-specific 'lib' directory
424# underneath the Windows SDK installation directory.
425#
426!IFNDEF UCRTLIBPATH
427UCRTLIBPATH = $(WINDOWSSDKDIR)\lib\$(WINDOWSSDKLIBVERSION)\ucrt\$(PLATFORM)
428!ENDIF
429
430UCRTLIBPATH = $(UCRTLIBPATH:\\=\)
431
mistachkin3e786092016-01-23 07:53:04 +0000432# C compiler and options for use in building executables that
433# will run on the platform that is doing the build.
434#
435!IF $(USE_FULLWARN)!=0
436BCC = $(NCC) -nologo -W4 $(CCOPTS) $(BCCOPTS)
437!ELSE
438BCC = $(NCC) -nologo -W3 $(CCOPTS) $(BCCOPTS)
439!ENDIF
440
441# Check if assembly code listings should be generated for the source
442# code files to be compiled.
443#
444!IF $(USE_LISTINGS)!=0
445BCC = $(BCC) -FAcs
446!ENDIF
447
448# Check if the native library paths should be used when compiling
449# the command line tools used during the compilation process. If
450# so, set the necessary macro now.
451#
452!IF $(USE_NATIVE_LIBPATHS)!=0
453NLTLIBPATHS = "/LIBPATH:$(NCRTLIBPATH)" "/LIBPATH:$(NSDKLIBPATH)"
454
455!IFDEF NUCRTLIBPATH
456NUCRTLIBPATH = $(NUCRTLIBPATH:\\=\)
457NLTLIBPATHS = $(NLTLIBPATHS) "/LIBPATH:$(NUCRTLIBPATH)"
458!ENDIF
459!ENDIF
460
461# C compiler and options for use in building executables that
462# will run on the target platform. (BCC and TCC are usually the
463# same unless your are cross-compiling.)
464#
465!IF $(USE_FULLWARN)!=0
466TCC = $(CC) -nologo -W4 -DINCLUDE_MSVC_H=1 $(CCOPTS) $(TCCOPTS)
467!ELSE
468TCC = $(CC) -nologo -W3 $(CCOPTS) $(TCCOPTS)
469!ENDIF
470
mistachkin8c5e8fe2017-02-01 22:32:49 +0000471# Check if warnings should be treated as errors when compiling.
472#
473!IF $(USE_FATAL_WARN)!=0
474TCC = $(TCC) -WX
475!ENDIF
476
mistachkin8988aee2016-02-10 21:45:25 +0000477TCC = $(TCC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -fp:precise
478RCC = $(RC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) $(RCOPTS) $(RCCOPTS)
mistachkin3e786092016-01-23 07:53:04 +0000479
mistachkin3e786092016-01-23 07:53:04 +0000480# Check if we want to use the "stdcall" calling convention when compiling.
481# This is not supported by the compilers for non-x86 platforms. It should
482# also be noted here that building any target with these "stdcall" options
483# will most likely fail if the Tcl library is also required. This is due
484# to how the Tcl library functions are declared and exported (i.e. without
485# an explicit calling convention, which results in "cdecl").
486#
487!IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0
488!IF "$(PLATFORM)"=="x86"
mistachkin69def7f2016-07-28 04:14:37 +0000489CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
490SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
mistachkin3e786092016-01-23 07:53:04 +0000491!ELSE
492!IFNDEF PLATFORM
mistachkin69def7f2016-07-28 04:14:37 +0000493CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
494SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall
mistachkin3e786092016-01-23 07:53:04 +0000495!ELSE
496CORE_CCONV_OPTS =
497SHELL_CCONV_OPTS =
498!ENDIF
499!ENDIF
500!ELSE
501CORE_CCONV_OPTS =
502SHELL_CCONV_OPTS =
503!ENDIF
504
505# These are additional compiler options used for the core library.
506#
507!IFNDEF CORE_COMPILE_OPTS
508!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
509CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS) -DSQLITE_API=__declspec(dllexport)
510!ELSE
511CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS)
512!ENDIF
513!ENDIF
514
515# These are the additional targets that the core library should depend on
516# when linking.
517#
518!IFNDEF CORE_LINK_DEP
mistachkin9b88ace2016-02-26 21:01:37 +0000519!IF $(DYNAMIC_SHELL)!=0
520CORE_LINK_DEP =
521!ELSEIF $(FOR_WIN10)==0 || "$(PLATFORM)"=="x86"
mistachkin9aeb9712016-02-26 23:13:16 +0000522CORE_LINK_DEP = sqlite3.def
mistachkin3e786092016-01-23 07:53:04 +0000523!ELSE
524CORE_LINK_DEP =
525!ENDIF
526!ENDIF
527
528# These are additional linker options used for the core library.
529#
530!IFNDEF CORE_LINK_OPTS
mistachkin9b88ace2016-02-26 21:01:37 +0000531!IF $(DYNAMIC_SHELL)!=0
532CORE_LINK_OPTS =
533!ELSEIF $(FOR_WIN10)==0 || "$(PLATFORM)"=="x86"
mistachkin9aeb9712016-02-26 23:13:16 +0000534CORE_LINK_OPTS = /DEF:sqlite3.def
mistachkin3e786092016-01-23 07:53:04 +0000535!ELSE
536CORE_LINK_OPTS =
537!ENDIF
538!ENDIF
539
540# These are additional compiler options used for the shell executable.
541#
542!IFNDEF SHELL_COMPILE_OPTS
543!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
544SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS) -DSQLITE_API=__declspec(dllimport)
545!ELSE
546SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS)
547!ENDIF
548!ENDIF
549
550# This is the source code that the shell executable should be compiled
551# with.
552#
553!IFNDEF SHELL_CORE_SRC
554!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
555SHELL_CORE_SRC =
556!ELSE
557SHELL_CORE_SRC = $(SQLITE3C)
558!ENDIF
559!ENDIF
560
561# This is the core library that the shell executable should depend on.
562#
563!IFNDEF SHELL_CORE_DEP
564!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
565SHELL_CORE_DEP = $(SQLITE3DLL)
566!ELSE
567SHELL_CORE_DEP =
568!ENDIF
569!ENDIF
570
mistachkincb6acda2017-12-05 18:54:12 +0000571
mistachkin3e786092016-01-23 07:53:04 +0000572# This is the core library that the shell executable should link with.
573#
574!IFNDEF SHELL_CORE_LIB
575!IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0
576SHELL_CORE_LIB = $(SQLITE3LIB)
577!ELSE
578SHELL_CORE_LIB =
579!ENDIF
580!ENDIF
581
582# These are additional linker options used for the shell executable.
583#
584!IFNDEF SHELL_LINK_OPTS
585SHELL_LINK_OPTS = $(SHELL_CORE_LIB)
586!ENDIF
587
588# Check if assembly code listings should be generated for the source
589# code files to be compiled.
590#
591!IF $(USE_LISTINGS)!=0
592TCC = $(TCC) -FAcs
593!ENDIF
594
595# When compiling the library for use in the WinRT environment,
596# the following compile-time options must be used as well to
597# disable use of Win32 APIs that are not available and to enable
598# use of Win32 APIs that are specific to Windows 8 and/or WinRT.
599#
600!IF $(FOR_WINRT)!=0
601TCC = $(TCC) -DSQLITE_OS_WINRT=1
602RCC = $(RCC) -DSQLITE_OS_WINRT=1
603TCC = $(TCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP
604RCC = $(RCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP
605!ENDIF
606
607# C compiler options for the Windows 10 platform (needs MSVC 2015).
608#
609!IF $(FOR_WIN10)!=0
mistachkinc5286de2016-02-09 22:00:48 +0000610TCC = $(TCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
611BCC = $(BCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
mistachkin3e786092016-01-23 07:53:04 +0000612!ENDIF
613
614# Also, we need to dynamically link to the correct MSVC runtime
615# when compiling for WinRT (e.g. debug or release) OR if the
616# USE_CRT_DLL option is set to force dynamically linking to the
617# MSVC runtime library.
618#
mistachkin55e88d92016-02-08 20:40:57 +0000619!IF $(FOR_WINRT)!=0 || $(USE_CRT_DLL)!=0
mistachkin3e786092016-01-23 07:53:04 +0000620!IF $(DEBUG)>1
621TCC = $(TCC) -MDd
622BCC = $(BCC) -MDd
623!ELSE
624TCC = $(TCC) -MD
625BCC = $(BCC) -MD
626!ENDIF
627!ELSE
628!IF $(DEBUG)>1
629TCC = $(TCC) -MTd
630BCC = $(BCC) -MTd
631!ELSE
632TCC = $(TCC) -MT
633BCC = $(BCC) -MT
634!ENDIF
635!ENDIF
636
637
638# Define -DNDEBUG to compile without debugging (i.e., for production usage)
639# Omitting the define will cause extra debugging code to be inserted and
640# includes extra comments when "EXPLAIN stmt" is used.
641#
642!IF $(DEBUG)==0
643TCC = $(TCC) -DNDEBUG
644BCC = $(BCC) -DNDEBUG
645RCC = $(RCC) -DNDEBUG
646!ENDIF
647
648!IF $(DEBUG)>0 || $(API_ARMOR)!=0 || $(FOR_WIN10)!=0
649TCC = $(TCC) -DSQLITE_ENABLE_API_ARMOR=1
650RCC = $(RCC) -DSQLITE_ENABLE_API_ARMOR=1
651!ENDIF
652
653!IF $(DEBUG)>2
654TCC = $(TCC) -DSQLITE_DEBUG=1
655RCC = $(RCC) -DSQLITE_DEBUG=1
mistachkinb3d3bea2017-03-29 23:22:18 +0000656!IF $(DYNAMIC_SHELL)==0
657TCC = $(TCC) -DSQLITE_ENABLE_WHERETRACE -DSQLITE_ENABLE_SELECTTRACE
658RCC = $(RCC) -DSQLITE_ENABLE_WHERETRACE -DSQLITE_ENABLE_SELECTTRACE
659!ENDIF
mistachkin3e786092016-01-23 07:53:04 +0000660!ENDIF
661
662!IF $(DEBUG)>4 || $(OSTRACE)!=0
663TCC = $(TCC) -DSQLITE_FORCE_OS_TRACE=1 -DSQLITE_DEBUG_OS_TRACE=1
664RCC = $(RCC) -DSQLITE_FORCE_OS_TRACE=1 -DSQLITE_DEBUG_OS_TRACE=1
665!ENDIF
666
667!IF $(DEBUG)>5
668TCC = $(TCC) -DSQLITE_ENABLE_IOTRACE=1
669RCC = $(RCC) -DSQLITE_ENABLE_IOTRACE=1
670!ENDIF
671
672# Prevent warnings about "insecure" MSVC runtime library functions
673# being used.
674#
675TCC = $(TCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
676BCC = $(BCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
677RCC = $(RCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
678
679# Prevent warnings about "deprecated" POSIX functions being used.
680#
681TCC = $(TCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
682BCC = $(BCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
683RCC = $(RCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
684
685# Use the SQLite debugging heap subsystem?
686#
687!IF $(MEMDEBUG)!=0
688TCC = $(TCC) -DSQLITE_MEMDEBUG=1
689RCC = $(RCC) -DSQLITE_MEMDEBUG=1
690
691# Use native Win32 heap subsystem instead of malloc/free?
692#
693!ELSEIF $(WIN32HEAP)!=0
694TCC = $(TCC) -DSQLITE_WIN32_MALLOC=1
695RCC = $(RCC) -DSQLITE_WIN32_MALLOC=1
696
697# Validate the heap on every call into the native Win32 heap subsystem?
698#
699!IF $(DEBUG)>3
700TCC = $(TCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1
701RCC = $(RCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1
702!ENDIF
703!ENDIF
704
705
706# Compiler options needed for programs that use the readline() library.
707#
708!IFNDEF READLINE_FLAGS
709READLINE_FLAGS = -DHAVE_READLINE=0
710!ENDIF
711
712# The library that programs using readline() must link against.
713#
714!IFNDEF LIBREADLINE
715LIBREADLINE =
716!ENDIF
717
718# Should the database engine be compiled threadsafe
719#
720TCC = $(TCC) -DSQLITE_THREADSAFE=1
721RCC = $(RCC) -DSQLITE_THREADSAFE=1
722
723# Do threads override each others locks by default (1), or do we test (-1)
724#
725TCC = $(TCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1
726RCC = $(RCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1
727
728# Any target libraries which libsqlite must be linked against
729#
730!IFNDEF TLIBS
731TLIBS =
732!ENDIF
733
734# Flags controlling use of the in memory btree implementation
735#
736# SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
737# default to file, 2 to default to memory, and 3 to force temporary
738# tables to always be in memory.
739#
740TCC = $(TCC) -DSQLITE_TEMP_STORE=1
741RCC = $(RCC) -DSQLITE_TEMP_STORE=1
742
743# Enable/disable loadable extensions, and other optional features
744# based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*).
745# The same set of OMIT and ENABLE flags should be passed to the
746# LEMON parser generator and the mkkeywordhash tool as well.
747
748# These are the required SQLite compilation options used when compiling for
749# the Windows platform.
750#
751REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_MAX_TRIGGER_DEPTH=100
752
753# If we are linking to the RPCRT4 library, enable features that need it.
754#
755!IF $(USE_RPCRT4_LIB)!=0
756REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_WIN32_USE_UUID=1
757!ENDIF
758
759# Add the required and optional SQLite compilation options into the command
760# lines used to invoke the MSVC code and resource compilers.
761#
762TCC = $(TCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS)
763RCC = $(RCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS)
764
765# Add in any optional parameters specified on the commane line, e.g.
766# nmake /f Makefile.msc all "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1"
767#
768TCC = $(TCC) $(OPTS)
769RCC = $(RCC) $(OPTS)
770
771# If compiling for debugging, add some defines.
772#
773!IF $(DEBUG)>1
774TCC = $(TCC) -D_DEBUG
775BCC = $(BCC) -D_DEBUG
776RCC = $(RCC) -D_DEBUG
777!ENDIF
778
779# If optimizations are enabled or disabled (either implicitly or
780# explicitly), add the necessary flags.
781#
782!IF $(DEBUG)>1 || $(OPTIMIZATIONS)==0
783TCC = $(TCC) -Od
784BCC = $(BCC) -Od
mistachkinfefe8282016-07-29 01:46:57 +0000785!IF $(USE_RUNTIME_CHECKS)!=0
786TCC = $(TCC) -RTC1
787BCC = $(BCC) -RTC1
788!ENDIF
mistachkin3e786092016-01-23 07:53:04 +0000789!ELSEIF $(OPTIMIZATIONS)>=3
790TCC = $(TCC) -Ox
791BCC = $(BCC) -Ox
792!ELSEIF $(OPTIMIZATIONS)==2
793TCC = $(TCC) -O2
794BCC = $(BCC) -O2
795!ELSEIF $(OPTIMIZATIONS)==1
796TCC = $(TCC) -O1
797BCC = $(BCC) -O1
798!ENDIF
799
800# If symbols are enabled (or compiling for debugging), enable PDBs.
801#
802!IF $(DEBUG)>1 || $(SYMBOLS)!=0
803TCC = $(TCC) -Zi
804BCC = $(BCC) -Zi
805!ENDIF
806
807
808# Command line prefixes for compiling code, compiling resources,
809# linking, etc.
810#
811LTCOMPILE = $(TCC) -Fo$@
812LTRCOMPILE = $(RCC) -r
813LTLIB = lib.exe
814LTLINK = $(TCC) -Fe$@
815
816# If requested, link to the RPCRT4 library.
817#
818!IF $(USE_RPCRT4_LIB)!=0
mistachkin041343d2017-11-21 21:15:17 +0000819LTLIBS = $(LTLIBS) rpcrt4.lib
mistachkin3e786092016-01-23 07:53:04 +0000820!ENDIF
821
822# If a platform was set, force the linker to target that.
823# Note that the vcvars*.bat family of batch files typically
824# set this for you. Otherwise, the linker will attempt
825# to deduce the binary type based on the object files.
826!IFDEF PLATFORM
827LTLINKOPTS = /NOLOGO /MACHINE:$(PLATFORM)
828LTLIBOPTS = /NOLOGO /MACHINE:$(PLATFORM)
829!ELSE
830LTLINKOPTS = /NOLOGO
831LTLIBOPTS = /NOLOGO
832!ENDIF
833
834# When compiling for use in the WinRT environment, the following
835# linker option must be used to mark the executable as runnable
836# only in the context of an application container.
837#
838!IF $(FOR_WINRT)!=0
839LTLINKOPTS = $(LTLINKOPTS) /APPCONTAINER
840!IF "$(VISUALSTUDIOVERSION)"=="12.0" || "$(VISUALSTUDIOVERSION)"=="14.0"
841!IFNDEF STORELIBPATH
842!IF "$(PLATFORM)"=="x86"
843STORELIBPATH = $(CRTLIBPATH)\store
844!ELSEIF "$(PLATFORM)"=="x64"
845STORELIBPATH = $(CRTLIBPATH)\store\amd64
846!ELSEIF "$(PLATFORM)"=="ARM"
847STORELIBPATH = $(CRTLIBPATH)\store\arm
848!ELSE
849STORELIBPATH = $(CRTLIBPATH)\store
850!ENDIF
851!ENDIF
852STORELIBPATH = $(STORELIBPATH:\\=\)
853LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(STORELIBPATH)"
854!ENDIF
855!ENDIF
856
857# When compiling for Windows Phone 8.1, an extra library path is
858# required.
859#
860!IF $(USE_WP81_OPTS)!=0
861!IFNDEF WP81LIBPATH
862!IF "$(PLATFORM)"=="x86"
863WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86
864!ELSEIF "$(PLATFORM)"=="ARM"
865WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\ARM
866!ELSE
867WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86
868!ENDIF
869!ENDIF
870!ENDIF
871
872# When compiling for Windows Phone 8.1, some extra linker options
873# are also required.
874#
875!IF $(USE_WP81_OPTS)!=0
876!IFDEF WP81LIBPATH
877LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(WP81LIBPATH)"
878!ENDIF
879LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE
880LTLINKOPTS = $(LTLINKOPTS) WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib
881LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:kernel32.lib /NODEFAULTLIB:ole32.lib
882!ENDIF
883
mistachkina819aed2016-02-12 05:19:29 +0000884# When compiling for UWP or the Windows 10 platform, some extra linker
mistachkin55e88d92016-02-08 20:40:57 +0000885# options are also required.
mistachkin3e786092016-01-23 07:53:04 +0000886#
mistachkina819aed2016-02-12 05:19:29 +0000887!IF $(FOR_UWP)!=0 || $(FOR_WIN10)!=0
mistachkin3e786092016-01-23 07:53:04 +0000888LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE /NODEFAULTLIB:kernel32.lib
889LTLINKOPTS = $(LTLINKOPTS) mincore.lib
890!IFDEF PSDKLIBPATH
891LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(PSDKLIBPATH)"
892!ENDIF
893!ENDIF
894
mistachkin55e88d92016-02-08 20:40:57 +0000895!IF $(FOR_WIN10)!=0
mistachkinc5286de2016-02-09 22:00:48 +0000896LTLINKOPTS = $(LTLINKOPTS) /guard:cf "/LIBPATH:$(UCRTLIBPATH)"
mistachkin55e88d92016-02-08 20:40:57 +0000897!IF $(DEBUG)>1
898LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:libucrtd.lib /DEFAULTLIB:ucrtd.lib
899!ELSE
900LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:libucrt.lib /DEFAULTLIB:ucrt.lib
901!ENDIF
902!ENDIF
903
mistachkin3e786092016-01-23 07:53:04 +0000904# If either debugging or symbols are enabled, enable PDBs.
905#
906!IF $(DEBUG)>1 || $(SYMBOLS)!=0
907LDFLAGS = /DEBUG $(LDOPTS)
908!ELSE
909LDFLAGS = $(LDOPTS)
910!ENDIF
911
912
913# You should not have to change anything below this line
914###############################################################################
915
916
917# Object files for the amalgamation.
918#
919LIBOBJS1 = sqlite3.lo
920
921# Determine the real value of LIBOBJ based on the 'configure' script
922#
923LIBOBJ = $(LIBOBJS1)
924
925# Determine if embedded resource compilation and usage are enabled.
926#
927!IF $(USE_RC)!=0
928LIBRESOBJS = sqlite3res.lo
929!ELSE
930LIBRESOBJS =
931!ENDIF
932
933
934# Additional compiler options for the shell. These are only effective
935# when the shell is not being dynamically linked.
936#
937!IF $(DYNAMIC_SHELL)==0 && $(FOR_WIN10)==0
mistachkin90d6f482018-09-12 00:48:17 +0000938SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_FTS4=1
939SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_EXPLAIN_COMMENTS=1
940SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_OFFSET_SQL_FUNC=1
mistachkin8c53b4e2018-12-03 14:58:07 +0000941SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_DESERIALIZE=1
mistachkin3e786092016-01-23 07:53:04 +0000942!ENDIF
943
944
945# This is the default Makefile target. The objects listed here
946# are what get build when you type just "make" with no arguments.
947#
mistachkinb3ec2e12018-01-05 19:28:16 +0000948core: dll shell
949
950# Targets that require the Tcl library.
951#
952tcl: $(ALL_TCL_TARGETS)
953
954# This Makefile target builds all of the standard binaries.
955#
956all: core tcl
mistachkin3e786092016-01-23 07:53:04 +0000957
958# Dynamic link library section.
959#
mistachkin9b88ace2016-02-26 21:01:37 +0000960dll: $(SQLITE3DLL)
mistachkin3e786092016-01-23 07:53:04 +0000961
962# Shell executable.
963#
mistachkin9b88ace2016-02-26 21:01:37 +0000964shell: $(SQLITE3EXE)
mistachkin3e786092016-01-23 07:53:04 +0000965
mistachkin3e786092016-01-23 07:53:04 +0000966
mistachkin9b88ace2016-02-26 21:01:37 +0000967$(SQLITE3DLL): $(LIBOBJ) $(LIBRESOBJS) $(CORE_LINK_DEP)
mistachkin3e786092016-01-23 07:53:04 +0000968 $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL $(CORE_LINK_OPTS) /OUT:$@ $(LIBOBJ) $(LIBRESOBJS) $(LTLIBS) $(TLIBS)
969
mistachkin9aeb9712016-02-26 23:13:16 +0000970Replace.exe:
971 $(CSC) /target:exe $(TOP)\Replace.cs
972
973sqlite3.def: Replace.exe $(LIBOBJ)
974 echo EXPORTS > sqlite3.def
975 dumpbin /all $(LIBOBJ) \
mistachkin8384e432018-04-10 18:56:21 +0000976 | .\Replace.exe "^\s+/EXPORT:_?(sqlite3(?:session|changeset|changegroup|rebaser)?_[^@,]*)(?:@\d+|,DATA)?$$" $$1 true \
mistachkin9aeb9712016-02-26 23:13:16 +0000977 | sort >> sqlite3.def
mistachkin3e786092016-01-23 07:53:04 +0000978
mistachkin835cd432017-10-14 19:54:06 +0000979$(SQLITE3EXE): shell.c $(SHELL_CORE_DEP) $(LIBRESOBJS) $(SHELL_CORE_SRC) $(SQLITE3H)
980 $(LTLINK) $(SHELL_COMPILE_OPTS) $(READLINE_FLAGS) shell.c $(SHELL_CORE_SRC) \
mistachkin3e786092016-01-23 07:53:04 +0000981 /link $(SQLITE3EXEPDB) $(LDFLAGS) $(LTLINKOPTS) $(SHELL_LINK_OPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LIBREADLINE) $(LTLIBS) $(TLIBS)
982
983
984# Rule to build the amalgamation
985#
986sqlite3.lo: $(SQLITE3C)
987 $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(SQLITE3C)
988
989
990# Rule to build the Win32 resources object file.
991#
992!IF $(USE_RC)!=0
993_HASHCHAR=^#
994!IF ![echo !IFNDEF VERSION > rcver.vc] && \
mistachkinea78f642017-10-24 21:17:12 +0000995 ![for /F "delims=" %V in ('type "$(SQLITE3H)" ^| "%SystemRoot%\System32\find.exe" "$(_HASHCHAR)define SQLITE_VERSION "') do (echo VERSION = ^^%V >> rcver.vc)] && \
mistachkin3e786092016-01-23 07:53:04 +0000996 ![echo !ENDIF >> rcver.vc]
997!INCLUDE rcver.vc
998!ENDIF
999
1000RESOURCE_VERSION = $(VERSION:^#=)
1001RESOURCE_VERSION = $(RESOURCE_VERSION:define=)
1002RESOURCE_VERSION = $(RESOURCE_VERSION:SQLITE_VERSION=)
1003RESOURCE_VERSION = $(RESOURCE_VERSION:"=)
1004RESOURCE_VERSION = $(RESOURCE_VERSION:.=,)
1005
1006$(LIBRESOBJS): $(TOP)\sqlite3.rc rcver.vc $(SQLITE3H)
1007 echo #ifndef SQLITE_RESOURCE_VERSION > sqlite3rc.h
1008 echo #define SQLITE_RESOURCE_VERSION $(RESOURCE_VERSION) >> sqlite3rc.h
1009 echo #endif >> sqlite3rc.h
1010 $(LTRCOMPILE) -fo $(LIBRESOBJS) -DRC_VERONLY $(TOP)\sqlite3.rc
1011!ENDIF
1012
1013
1014clean:
1015 del /Q *.exp *.lo *.ilk *.lib *.obj *.ncb *.pdb *.sdf *.suo 2>NUL
mistachkin56362a52016-02-19 19:03:04 +00001016 del /Q *.bsc *.def *.cod *.da *.bb *.bbg *.vc gmon.out 2>NUL
mistachkinfe41a982016-02-27 00:21:44 +00001017 del /Q $(SQLITE3EXE) $(SQLITE3DLL) Replace.exe 2>NUL