shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1 | # |
shaneh | 603e426 | 2011-06-17 18:52:07 +0000 | [diff] [blame] | 2 | # nmake Makefile for SQLite |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 3 | # |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 4 | ############################################################################### |
| 5 | ############################## START OF OPTIONS ############################### |
| 6 | ############################################################################### |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 7 | |
| 8 | # The toplevel directory of the source tree. This is the directory |
| 9 | # that contains this "Makefile.msc". |
| 10 | # |
| 11 | TOP = . |
| 12 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 13 | # <<mark>> |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 14 | # Set this non-0 to create and use the SQLite amalgamation file. |
| 15 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 16 | !IFNDEF USE_AMALGAMATION |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 17 | USE_AMALGAMATION = 1 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 18 | !ENDIF |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 19 | # <</mark>> |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 20 | |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 21 | # Set this non-0 to enable full warnings (-W4, etc) when compiling. |
| 22 | # |
| 23 | !IFNDEF USE_FULLWARN |
mistachkin | b1ed717 | 2017-04-14 14:50:34 +0000 | [diff] [blame] | 24 | USE_FULLWARN = 1 |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 25 | !ENDIF |
| 26 | |
mistachkin | 8c5e8fe | 2017-02-01 22:32:49 +0000 | [diff] [blame] | 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 | |
mistachkin | 24b6b81 | 2016-08-24 18:21:58 +0000 | [diff] [blame] | 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 | |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 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 | |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 48 | # Set this non-0 to use "stdcall" calling convention for the core library |
| 49 | # and shell executable. |
| 50 | # |
| 51 | !IFNDEF USE_STDCALL |
| 52 | USE_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 |
| 59 | DYNAMIC_SHELL = 0 |
| 60 | !ENDIF |
| 61 | |
mistachkin | 13a24f8 | 2015-05-13 04:50:30 +0000 | [diff] [blame] | 62 | # Set this non-0 to enable extra code that attempts to detect misuse of the |
| 63 | # SQLite API. |
| 64 | # |
| 65 | !IFNDEF API_ARMOR |
| 66 | API_ARMOR = 0 |
| 67 | !ENDIF |
| 68 | |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 69 | # If necessary, create a list of harmless compiler warnings to disable when |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 70 | # compiling the various tools. For the SQLite source code itself, warnings, |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 71 | # if any, will be disabled from within it. |
| 72 | # |
| 73 | !IFNDEF NO_WARN |
| 74 | !IF $(USE_FULLWARN)!=0 |
mistachkin | 2252917 | 2015-04-10 21:16:11 +0000 | [diff] [blame] | 75 | NO_WARN = -wd4054 -wd4055 -wd4100 -wd4127 -wd4130 -wd4152 -wd4189 -wd4206 |
mistachkin | b9becaa | 2015-12-16 23:30:30 +0000 | [diff] [blame] | 76 | NO_WARN = $(NO_WARN) -wd4210 -wd4232 -wd4305 -wd4306 -wd4702 -wd4706 |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 77 | !ENDIF |
| 78 | !ENDIF |
| 79 | |
mistachkin | a5e2b50 | 2014-05-12 22:36:50 +0000 | [diff] [blame] | 80 | # Set this non-0 to use the library paths and other options necessary for |
| 81 | # Windows Phone 8.1. |
mistachkin | d9b3c54 | 2014-05-09 23:31:55 +0000 | [diff] [blame] | 82 | # |
| 83 | !IFNDEF USE_WP81_OPTS |
| 84 | USE_WP81_OPTS = 0 |
| 85 | !ENDIF |
| 86 | |
mistachkin | 7651091 | 2013-10-11 23:01:18 +0000 | [diff] [blame] | 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 |
mistachkin | 0aedc6b | 2013-10-11 23:02:13 +0000 | [diff] [blame] | 91 | SPLIT_AMALGAMATION = 0 |
mistachkin | 7651091 | 2013-10-11 23:01:18 +0000 | [diff] [blame] | 92 | !ENDIF |
| 93 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 94 | # <<mark>> |
mistachkin | a0fcafe | 2017-12-05 19:07:30 +0000 | [diff] [blame] | 95 | # Set this non-0 to have this makefile assume the Tcl shell executable |
mistachkin | 47be3b2 | 2018-01-05 01:22:37 +0000 | [diff] [blame] | 96 | # (tclsh*.exe) is available in the PATH. By default, this is disabled |
mistachkin | a0fcafe | 2017-12-05 19:07:30 +0000 | [diff] [blame] | 97 | # for compatibility with older build environments. This setting only |
| 98 | # applies if TCLSH_CMD is not set manually. |
| 99 | # |
| 100 | !IFNDEF USE_TCLSH_IN_PATH |
mistachkin | 47be3b2 | 2018-01-05 01:22:37 +0000 | [diff] [blame] | 101 | USE_TCLSH_IN_PATH = 0 |
mistachkin | a0fcafe | 2017-12-05 19:07:30 +0000 | [diff] [blame] | 102 | !ENDIF |
| 103 | |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 104 | # Set this non-0 to use zlib, possibly compiling it from source code. |
| 105 | # |
| 106 | !IFNDEF USE_ZLIB |
| 107 | USE_ZLIB = 0 |
| 108 | !ENDIF |
| 109 | |
| 110 | # Set this non-0 to build zlib from source code. This is enabled by |
| 111 | # default and in that case it will be assumed that the ZLIBDIR macro |
| 112 | # points to the top-level source code directory for zlib. |
| 113 | # |
| 114 | !IFNDEF BUILD_ZLIB |
| 115 | BUILD_ZLIB = 1 |
| 116 | !ENDIF |
| 117 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 118 | # Set this non-0 to use the International Components for Unicode (ICU). |
| 119 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 120 | !IFNDEF USE_ICU |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 121 | USE_ICU = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 122 | !ENDIF |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 123 | # <</mark>> |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 124 | |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 125 | # Set this non-0 to dynamically link to the MSVC runtime library. |
| 126 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 127 | !IFNDEF USE_CRT_DLL |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 128 | USE_CRT_DLL = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 129 | !ENDIF |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 130 | |
mistachkin | e45e0fb | 2015-01-21 00:48:46 +0000 | [diff] [blame] | 131 | # Set this non-0 to link to the RPCRT4 library. |
| 132 | # |
| 133 | !IFNDEF USE_RPCRT4_LIB |
| 134 | USE_RPCRT4_LIB = 0 |
| 135 | !ENDIF |
| 136 | |
mistachkin | 0157e01 | 2013-09-06 21:41:11 +0000 | [diff] [blame] | 137 | # Set this non-0 to generate assembly code listings for the source code |
| 138 | # files. |
| 139 | # |
| 140 | !IFNDEF USE_LISTINGS |
| 141 | USE_LISTINGS = 0 |
| 142 | !ENDIF |
| 143 | |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 144 | # Set this non-0 to attempt setting the native compiler automatically |
| 145 | # for cross-compiling the command line tools needed during the compilation |
| 146 | # process. |
| 147 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 148 | !IFNDEF XCOMPILE |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 149 | XCOMPILE = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 150 | !ENDIF |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 151 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 152 | # Set this non-0 to use the native libraries paths for cross-compiling |
| 153 | # the command line tools needed during the compilation process. |
| 154 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 155 | !IFNDEF USE_NATIVE_LIBPATHS |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 156 | USE_NATIVE_LIBPATHS = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 157 | !ENDIF |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 158 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 159 | # Set this 0 to skip the compiling and embedding of version resources. |
| 160 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 161 | !IFNDEF USE_RC |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 162 | USE_RC = 1 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 163 | !ENDIF |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 164 | |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 165 | # Set this non-0 to compile binaries suitable for the WinRT environment. |
| 166 | # This setting does not apply to any binaries that require Tcl to operate |
| 167 | # properly (i.e. the text fixture, etc). |
| 168 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 169 | !IFNDEF FOR_WINRT |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 170 | FOR_WINRT = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 171 | !ENDIF |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 172 | |
mistachkin | a819aed | 2016-02-12 05:19:29 +0000 | [diff] [blame] | 173 | # Set this non-0 to compile binaries suitable for the UWP environment. |
mistachkin | 318d38c | 2015-04-22 01:33:53 +0000 | [diff] [blame] | 174 | # This setting does not apply to any binaries that require Tcl to operate |
| 175 | # properly (i.e. the text fixture, etc). |
| 176 | # |
mistachkin | a819aed | 2016-02-12 05:19:29 +0000 | [diff] [blame] | 177 | !IFNDEF FOR_UWP |
| 178 | FOR_UWP = 0 |
mistachkin | 318d38c | 2015-04-22 01:33:53 +0000 | [diff] [blame] | 179 | !ENDIF |
| 180 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 181 | # Set this non-0 to compile binaries suitable for the Windows 10 platform. |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 182 | # |
| 183 | !IFNDEF FOR_WIN10 |
| 184 | FOR_WIN10 = 0 |
| 185 | !ENDIF |
| 186 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 187 | # <<mark>> |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 188 | # Set this non-0 to skip attempting to look for and/or link with the Tcl |
| 189 | # runtime library. |
| 190 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 191 | !IFNDEF NO_TCL |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 192 | NO_TCL = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 193 | !ENDIF |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 194 | # <</mark>> |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 195 | |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 196 | # Set this to non-0 to create and use PDBs. |
| 197 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 198 | !IFNDEF SYMBOLS |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 199 | SYMBOLS = 1 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 200 | !ENDIF |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 201 | |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 202 | # Set this to non-0 to use the SQLite debugging heap subsystem. |
| 203 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 204 | !IFNDEF MEMDEBUG |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 205 | MEMDEBUG = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 206 | !ENDIF |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 207 | |
| 208 | # Set this to non-0 to use the Win32 native heap subsystem. |
| 209 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 210 | !IFNDEF WIN32HEAP |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 211 | WIN32HEAP = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 212 | !ENDIF |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 213 | |
mistachkin | b10f22a | 2015-04-16 16:27:29 +0000 | [diff] [blame] | 214 | # Set this to non-0 to enable OSTRACE() macros, which can be useful when |
| 215 | # debugging. |
| 216 | # |
| 217 | !IFNDEF OSTRACE |
| 218 | OSTRACE = 0 |
| 219 | !ENDIF |
| 220 | |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 221 | # Set this to one of the following values to enable various debugging |
| 222 | # features. Each level includes the debugging options from the previous |
| 223 | # levels. Currently, the recognized values for DEBUG are: |
| 224 | # |
| 225 | # 0 == NDEBUG: Disables assert() and other runtime diagnostics. |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 226 | # 1 == SQLITE_ENABLE_API_ARMOR: extra attempts to detect misuse of the API. |
| 227 | # 2 == Disables NDEBUG and all optimizations and then enables PDBs. |
| 228 | # 3 == SQLITE_DEBUG: Enables various diagnostics messages and code. |
| 229 | # 4 == SQLITE_WIN32_MALLOC_VALIDATE: Validate the Win32 native heap per call. |
| 230 | # 5 == SQLITE_DEBUG_OS_TRACE: Enables output from the OSTRACE() macros. |
| 231 | # 6 == SQLITE_ENABLE_IOTRACE: Enables output from the IOTRACE() macros. |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 232 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 233 | !IFNDEF DEBUG |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 234 | DEBUG = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 235 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 236 | |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 237 | # Enable use of available compiler optimizations? Normally, this should be |
| 238 | # non-zero. Setting this to zero, thus disabling all compiler optimizations, |
| 239 | # can be useful for testing. |
| 240 | # |
| 241 | !IFNDEF OPTIMIZATIONS |
| 242 | OPTIMIZATIONS = 2 |
| 243 | !ENDIF |
| 244 | |
mistachkin | 12b35ea | 2016-05-03 19:40:54 +0000 | [diff] [blame] | 245 | # Set this to non-0 to enable support for the session extension. |
| 246 | # |
| 247 | !IFNDEF SESSION |
| 248 | SESSION = 0 |
| 249 | !ENDIF |
| 250 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 251 | # Set the source code file to be used by executables and libraries when |
| 252 | # they need the amalgamation. |
| 253 | # |
| 254 | !IFNDEF SQLITE3C |
| 255 | !IF $(SPLIT_AMALGAMATION)!=0 |
| 256 | SQLITE3C = sqlite3-all.c |
| 257 | !ELSE |
| 258 | SQLITE3C = sqlite3.c |
| 259 | !ENDIF |
| 260 | !ENDIF |
| 261 | |
| 262 | # Set the include code file to be used by executables and libraries when |
| 263 | # they need SQLite. |
| 264 | # |
| 265 | !IFNDEF SQLITE3H |
| 266 | SQLITE3H = sqlite3.h |
| 267 | !ENDIF |
| 268 | |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 269 | # This is the name to use for the SQLite dynamic link library (DLL). |
| 270 | # |
| 271 | !IFNDEF SQLITE3DLL |
mistachkin | b0c99af | 2016-02-19 05:07:56 +0000 | [diff] [blame] | 272 | !IF $(FOR_WIN10)!=0 |
| 273 | SQLITE3DLL = winsqlite3.dll |
| 274 | !ELSE |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 275 | SQLITE3DLL = sqlite3.dll |
| 276 | !ENDIF |
mistachkin | b0c99af | 2016-02-19 05:07:56 +0000 | [diff] [blame] | 277 | !ENDIF |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 278 | |
| 279 | # This is the name to use for the SQLite import library (LIB). |
| 280 | # |
| 281 | !IFNDEF SQLITE3LIB |
mistachkin | b0c99af | 2016-02-19 05:07:56 +0000 | [diff] [blame] | 282 | !IF $(FOR_WIN10)!=0 |
| 283 | SQLITE3LIB = winsqlite3.lib |
| 284 | !ELSE |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 285 | SQLITE3LIB = sqlite3.lib |
| 286 | !ENDIF |
mistachkin | b0c99af | 2016-02-19 05:07:56 +0000 | [diff] [blame] | 287 | !ENDIF |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 288 | |
| 289 | # This is the name to use for the SQLite shell executable (EXE). |
| 290 | # |
| 291 | !IFNDEF SQLITE3EXE |
mistachkin | b0c99af | 2016-02-19 05:07:56 +0000 | [diff] [blame] | 292 | !IF $(FOR_WIN10)!=0 |
| 293 | SQLITE3EXE = winsqlite3shell.exe |
| 294 | !ELSE |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 295 | SQLITE3EXE = sqlite3.exe |
| 296 | !ENDIF |
mistachkin | b0c99af | 2016-02-19 05:07:56 +0000 | [diff] [blame] | 297 | !ENDIF |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 298 | |
| 299 | # This is the argument used to set the program database (PDB) file for the |
| 300 | # SQLite shell executable (EXE). |
| 301 | # |
| 302 | !IFNDEF SQLITE3EXEPDB |
mistachkin | b0c99af | 2016-02-19 05:07:56 +0000 | [diff] [blame] | 303 | !IF $(FOR_WIN10)!=0 |
| 304 | SQLITE3EXEPDB = |
| 305 | !ELSE |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 306 | SQLITE3EXEPDB = /pdb:sqlite3sh.pdb |
| 307 | !ENDIF |
mistachkin | b0c99af | 2016-02-19 05:07:56 +0000 | [diff] [blame] | 308 | !ENDIF |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 309 | |
mistachkin | cc0164b | 2016-09-05 20:46:02 +0000 | [diff] [blame] | 310 | # <<mark>> |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 311 | # These are the names of the customized Tcl header files used by various parts |
| 312 | # of this makefile when the stdcall calling convention is in use. It is not |
| 313 | # used for any other purpose. |
| 314 | # |
| 315 | !IFNDEF SQLITETCLH |
| 316 | SQLITETCLH = sqlite_tcl.h |
| 317 | !ENDIF |
| 318 | |
| 319 | !IFNDEF SQLITETCLDECLSH |
| 320 | SQLITETCLDECLSH = sqlite_tclDecls.h |
| 321 | !ENDIF |
| 322 | |
| 323 | # These are the additional targets that the targets that integrate with the |
| 324 | # Tcl library should depend on when compiling, etc. |
| 325 | # |
| 326 | !IFNDEF SQLITE_TCL_DEP |
| 327 | !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0 |
| 328 | SQLITE_TCL_DEP = $(SQLITETCLDECLSH) $(SQLITETCLH) |
| 329 | !ELSE |
| 330 | SQLITE_TCL_DEP = |
| 331 | !ENDIF |
| 332 | !ENDIF |
mistachkin | cc0164b | 2016-09-05 20:46:02 +0000 | [diff] [blame] | 333 | # <</mark>> |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 334 | |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 335 | # These are the "standard" SQLite compilation options used when compiling for |
| 336 | # the Windows platform. |
| 337 | # |
| 338 | !IFNDEF OPT_FEATURE_FLAGS |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 339 | !IF $(MINIMAL_AMALGAMATION)==0 |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 340 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS3=1 |
mistachkin | 90d6f48 | 2018-09-12 00:48:17 +0000 | [diff] [blame] | 341 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RTREE=1 |
| 342 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_GEOPOLY=1 |
| 343 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_JSON1=1 |
| 344 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_STMTVTAB=1 |
| 345 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_DBPAGE_VTAB=1 |
| 346 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_DBSTAT_VTAB=1 |
| 347 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_INTROSPECTION_PRAGMAS=1 |
drh | f6fa95b | 2018-11-28 01:45:05 +0000 | [diff] [blame] | 348 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_DESERIALIZE=1 |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 349 | !ENDIF |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 350 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_COLUMN_METADATA=1 |
drh | 5e18d40 | 2016-05-03 13:14:18 +0000 | [diff] [blame] | 351 | !ENDIF |
| 352 | |
mistachkin | 12b35ea | 2016-05-03 19:40:54 +0000 | [diff] [blame] | 353 | # Should the session extension be enabled? If so, add compilation options |
| 354 | # to enable it. |
drh | 5e18d40 | 2016-05-03 13:14:18 +0000 | [diff] [blame] | 355 | # |
drh | 5e18d40 | 2016-05-03 13:14:18 +0000 | [diff] [blame] | 356 | !IF $(SESSION)!=0 |
mistachkin | 0500478 | 2016-03-30 16:23:06 +0000 | [diff] [blame] | 357 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_SESSION=1 |
| 358 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_PREUPDATE_HOOK=1 |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 359 | !ENDIF |
| 360 | |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 361 | # These are the "extended" SQLite compilation options used when compiling for |
| 362 | # the Windows 10 platform. |
| 363 | # |
| 364 | !IFNDEF EXT_FEATURE_FLAGS |
| 365 | !IF $(FOR_WIN10)!=0 |
| 366 | EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS4=1 |
| 367 | EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_SYSTEM_MALLOC=1 |
| 368 | EXT_FEATURE_FLAGS = $(EXT_FEATURE_FLAGS) -DSQLITE_OMIT_LOCALTIME=1 |
| 369 | !ELSE |
| 370 | EXT_FEATURE_FLAGS = |
| 371 | !ENDIF |
| 372 | !ENDIF |
| 373 | |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 374 | ############################################################################### |
| 375 | ############################### END OF OPTIONS ################################ |
| 376 | ############################################################################### |
| 377 | |
mistachkin | 55e88d9 | 2016-02-08 20:40:57 +0000 | [diff] [blame] | 378 | # When compiling for the Windows 10 platform, the PLATFORM macro must be set |
| 379 | # to an appropriate value (e.g. x86, x64, arm, arm64, etc). |
| 380 | # |
| 381 | !IF $(FOR_WIN10)!=0 |
| 382 | !IFNDEF PLATFORM |
| 383 | !ERROR Using the FOR_WIN10 option requires a value for PLATFORM. |
| 384 | !ENDIF |
| 385 | !ENDIF |
| 386 | |
mistachkin | d9b3c54 | 2014-05-09 23:31:55 +0000 | [diff] [blame] | 387 | # This assumes that MSVC is always installed in 32-bit Program Files directory |
| 388 | # and sets the variable for use in locating other 32-bit installs accordingly. |
| 389 | # |
| 390 | PROGRAMFILES_X86 = $(VCINSTALLDIR)\..\.. |
| 391 | PROGRAMFILES_X86 = $(PROGRAMFILES_X86:\\=\) |
| 392 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 393 | # Check for the predefined command macro CC. This should point to the compiler |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 394 | # binary for the target platform. If it is not defined, simply define it to |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 395 | # the legacy default value 'cl.exe'. |
| 396 | # |
| 397 | !IFNDEF CC |
| 398 | CC = cl.exe |
| 399 | !ENDIF |
| 400 | |
mistachkin | 9aeb971 | 2016-02-26 23:13:16 +0000 | [diff] [blame] | 401 | # Check for the predefined command macro CSC. This should point to a working |
| 402 | # C Sharp compiler binary. If it is not defined, simply define it to the |
| 403 | # legacy default value 'csc.exe'. |
| 404 | # |
| 405 | !IFNDEF CSC |
| 406 | CSC = csc.exe |
| 407 | !ENDIF |
| 408 | |
mistachkin | 228aeff | 2012-06-30 19:24:09 +0000 | [diff] [blame] | 409 | # Check for the command macro LD. This should point to the linker binary for |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 410 | # the target platform. If it is not defined, simply define it to the legacy |
mistachkin | 228aeff | 2012-06-30 19:24:09 +0000 | [diff] [blame] | 411 | # default value 'link.exe'. |
| 412 | # |
| 413 | !IFNDEF LD |
| 414 | LD = link.exe |
| 415 | !ENDIF |
| 416 | |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 417 | # Check for the predefined command macro RC. This should point to the resource |
| 418 | # compiler binary for the target platform. If it is not defined, simply define |
| 419 | # it to the legacy default value 'rc.exe'. |
| 420 | # |
| 421 | !IFNDEF RC |
| 422 | RC = rc.exe |
| 423 | !ENDIF |
| 424 | |
mistachkin | e48f1ed | 2016-02-08 20:45:37 +0000 | [diff] [blame] | 425 | # Check for the MSVC runtime library path macro. Otherwise, this value will |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 426 | # default to the 'lib' directory underneath the MSVC installation directory. |
| 427 | # |
| 428 | !IFNDEF CRTLIBPATH |
| 429 | CRTLIBPATH = $(VCINSTALLDIR)\lib |
| 430 | !ENDIF |
| 431 | |
| 432 | CRTLIBPATH = $(CRTLIBPATH:\\=\) |
| 433 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 434 | # Check for the command macro NCC. This should point to the compiler binary |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 435 | # for the platform the compilation process is taking place on. If it is not |
| 436 | # defined, simply define it to have the same value as the CC macro. When |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 437 | # cross-compiling, it is suggested that this macro be modified via the command |
| 438 | # line (since nmake itself does not provide a built-in method to guess it). |
| 439 | # For example, to use the x86 compiler when cross-compiling for x64, a command |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 440 | # line similar to the following could be used (all on one line): |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 441 | # |
mistachkin | 6f92833 | 2012-08-17 11:47:32 +0000 | [diff] [blame] | 442 | # nmake /f Makefile.msc sqlite3.dll |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 443 | # XCOMPILE=1 USE_NATIVE_LIBPATHS=1 |
| 444 | # |
| 445 | # Alternatively, the full path and file name to the compiler binary for the |
| 446 | # platform the compilation process is taking place may be specified (all on |
| 447 | # one line): |
| 448 | # |
| 449 | # nmake /f Makefile.msc sqlite3.dll |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 450 | # "NCC=""%VCINSTALLDIR%\bin\cl.exe""" |
| 451 | # USE_NATIVE_LIBPATHS=1 |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 452 | # |
mistachkin | fd0ba2a | 2012-07-27 08:21:45 +0000 | [diff] [blame] | 453 | !IFDEF NCC |
| 454 | NCC = $(NCC:\\=\) |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 455 | !ELSEIF $(XCOMPILE)!=0 |
mistachkin | 5fac420 | 2013-12-03 23:33:29 +0000 | [diff] [blame] | 456 | NCC = "$(VCINSTALLDIR)\bin\$(CC)" |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 457 | NCC = $(NCC:\\=\) |
mistachkin | fd0ba2a | 2012-07-27 08:21:45 +0000 | [diff] [blame] | 458 | !ELSE |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 459 | NCC = $(CC) |
| 460 | !ENDIF |
| 461 | |
mistachkin | e48f1ed | 2016-02-08 20:45:37 +0000 | [diff] [blame] | 462 | # Check for the MSVC native runtime library path macro. Otherwise, |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 463 | # this value will default to the 'lib' directory underneath the MSVC |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 464 | # installation directory. |
| 465 | # |
| 466 | !IFNDEF NCRTLIBPATH |
| 467 | NCRTLIBPATH = $(VCINSTALLDIR)\lib |
| 468 | !ENDIF |
| 469 | |
mistachkin | 0b5ae72 | 2012-07-27 23:03:47 +0000 | [diff] [blame] | 470 | NCRTLIBPATH = $(NCRTLIBPATH:\\=\) |
| 471 | |
mistachkin | e48f1ed | 2016-02-08 20:45:37 +0000 | [diff] [blame] | 472 | # Check for the Platform SDK library path macro. Otherwise, this |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 473 | # value will default to the 'lib' directory underneath the Windows |
| 474 | # SDK installation directory (the environment variable used appears |
| 475 | # to be available when using Visual C++ 2008 or later via the |
| 476 | # command line). |
| 477 | # |
| 478 | !IFNDEF NSDKLIBPATH |
| 479 | NSDKLIBPATH = $(WINDOWSSDKDIR)\lib |
| 480 | !ENDIF |
| 481 | |
mistachkin | 0b5ae72 | 2012-07-27 23:03:47 +0000 | [diff] [blame] | 482 | NSDKLIBPATH = $(NSDKLIBPATH:\\=\) |
| 483 | |
mistachkin | e48f1ed | 2016-02-08 20:45:37 +0000 | [diff] [blame] | 484 | # Check for the UCRT library path macro. Otherwise, this value will |
mistachkin | a6f2889 | 2016-02-05 19:40:23 +0000 | [diff] [blame] | 485 | # default to the version-specific, platform-specific 'lib' directory |
| 486 | # underneath the Windows SDK installation directory. |
| 487 | # |
| 488 | !IFNDEF UCRTLIBPATH |
| 489 | UCRTLIBPATH = $(WINDOWSSDKDIR)\lib\$(WINDOWSSDKLIBVERSION)\ucrt\$(PLATFORM) |
| 490 | !ENDIF |
| 491 | |
| 492 | UCRTLIBPATH = $(UCRTLIBPATH:\\=\) |
| 493 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 494 | # C compiler and options for use in building executables that |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 495 | # will run on the platform that is doing the build. |
| 496 | # |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 497 | !IF $(USE_FULLWARN)!=0 |
mistachkin | f170ea4 | 2015-10-16 20:13:57 +0000 | [diff] [blame] | 498 | BCC = $(NCC) -nologo -W4 $(CCOPTS) $(BCCOPTS) |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 499 | !ELSE |
mistachkin | f170ea4 | 2015-10-16 20:13:57 +0000 | [diff] [blame] | 500 | BCC = $(NCC) -nologo -W3 $(CCOPTS) $(BCCOPTS) |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 501 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 502 | |
mistachkin | 0157e01 | 2013-09-06 21:41:11 +0000 | [diff] [blame] | 503 | # Check if assembly code listings should be generated for the source |
| 504 | # code files to be compiled. |
| 505 | # |
| 506 | !IF $(USE_LISTINGS)!=0 |
| 507 | BCC = $(BCC) -FAcs |
| 508 | !ENDIF |
| 509 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 510 | # Check if the native library paths should be used when compiling |
| 511 | # the command line tools used during the compilation process. If |
| 512 | # so, set the necessary macro now. |
| 513 | # |
| 514 | !IF $(USE_NATIVE_LIBPATHS)!=0 |
| 515 | NLTLIBPATHS = "/LIBPATH:$(NCRTLIBPATH)" "/LIBPATH:$(NSDKLIBPATH)" |
mistachkin | 6bbe3df | 2015-04-19 06:18:10 +0000 | [diff] [blame] | 516 | |
| 517 | !IFDEF NUCRTLIBPATH |
| 518 | NUCRTLIBPATH = $(NUCRTLIBPATH:\\=\) |
| 519 | NLTLIBPATHS = $(NLTLIBPATHS) "/LIBPATH:$(NUCRTLIBPATH)" |
| 520 | !ENDIF |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 521 | !ENDIF |
| 522 | |
| 523 | # C compiler and options for use in building executables that |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 524 | # will run on the target platform. (BCC and TCC are usually the |
| 525 | # same unless your are cross-compiling.) |
| 526 | # |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 527 | !IF $(USE_FULLWARN)!=0 |
mistachkin | f170ea4 | 2015-10-16 20:13:57 +0000 | [diff] [blame] | 528 | TCC = $(CC) -nologo -W4 -DINCLUDE_MSVC_H=1 $(CCOPTS) $(TCCOPTS) |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 529 | !ELSE |
mistachkin | f170ea4 | 2015-10-16 20:13:57 +0000 | [diff] [blame] | 530 | TCC = $(CC) -nologo -W3 $(CCOPTS) $(TCCOPTS) |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 531 | !ENDIF |
| 532 | |
mistachkin | 8c5e8fe | 2017-02-01 22:32:49 +0000 | [diff] [blame] | 533 | # Check if warnings should be treated as errors when compiling. |
| 534 | # |
| 535 | !IF $(USE_FATAL_WARN)!=0 |
| 536 | TCC = $(TCC) -WX |
| 537 | !ENDIF |
| 538 | |
mistachkin | 8988aee | 2016-02-10 21:45:25 +0000 | [diff] [blame] | 539 | TCC = $(TCC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -I$(TOP)\src -fp:precise |
| 540 | RCC = $(RC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -I$(TOP)\src $(RCOPTS) $(RCCOPTS) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 541 | |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 542 | # Check if we want to use the "stdcall" calling convention when compiling. |
| 543 | # This is not supported by the compilers for non-x86 platforms. It should |
| 544 | # also be noted here that building any target with these "stdcall" options |
| 545 | # will most likely fail if the Tcl library is also required. This is due |
| 546 | # to how the Tcl library functions are declared and exported (i.e. without |
| 547 | # an explicit calling convention, which results in "cdecl"). |
| 548 | # |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 549 | !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0 |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 550 | !IF "$(PLATFORM)"=="x86" |
mistachkin | 69def7f | 2016-07-28 04:14:37 +0000 | [diff] [blame] | 551 | CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall |
| 552 | SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall |
mistachkin | f27a80c | 2016-07-28 16:09:52 +0000 | [diff] [blame] | 553 | # <<mark>> |
mistachkin | 52b1dbb | 2016-07-28 14:37:04 +0000 | [diff] [blame] | 554 | TEST_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall -DINCLUDE_SQLITE_TCL_H=1 -DSQLITE_TCLAPI=__cdecl |
mistachkin | f27a80c | 2016-07-28 16:09:52 +0000 | [diff] [blame] | 555 | # <</mark>> |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 556 | !ELSE |
| 557 | !IFNDEF PLATFORM |
mistachkin | 69def7f | 2016-07-28 04:14:37 +0000 | [diff] [blame] | 558 | CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall |
| 559 | SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall |
mistachkin | f27a80c | 2016-07-28 16:09:52 +0000 | [diff] [blame] | 560 | # <<mark>> |
mistachkin | 52b1dbb | 2016-07-28 14:37:04 +0000 | [diff] [blame] | 561 | TEST_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall -DSQLITE_CALLBACK=__stdcall -DSQLITE_SYSAPI=__stdcall -DINCLUDE_SQLITE_TCL_H=1 -DSQLITE_TCLAPI=__cdecl |
mistachkin | f27a80c | 2016-07-28 16:09:52 +0000 | [diff] [blame] | 562 | # <</mark>> |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 563 | !ELSE |
| 564 | CORE_CCONV_OPTS = |
| 565 | SHELL_CCONV_OPTS = |
mistachkin | f27a80c | 2016-07-28 16:09:52 +0000 | [diff] [blame] | 566 | # <<mark>> |
mistachkin | 69def7f | 2016-07-28 04:14:37 +0000 | [diff] [blame] | 567 | TEST_CCONV_OPTS = |
mistachkin | f27a80c | 2016-07-28 16:09:52 +0000 | [diff] [blame] | 568 | # <</mark>> |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 569 | !ENDIF |
| 570 | !ENDIF |
| 571 | !ELSE |
| 572 | CORE_CCONV_OPTS = |
| 573 | SHELL_CCONV_OPTS = |
mistachkin | f27a80c | 2016-07-28 16:09:52 +0000 | [diff] [blame] | 574 | # <<mark>> |
mistachkin | 69def7f | 2016-07-28 04:14:37 +0000 | [diff] [blame] | 575 | TEST_CCONV_OPTS = |
mistachkin | f27a80c | 2016-07-28 16:09:52 +0000 | [diff] [blame] | 576 | # <</mark>> |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 577 | !ENDIF |
| 578 | |
| 579 | # These are additional compiler options used for the core library. |
| 580 | # |
| 581 | !IFNDEF CORE_COMPILE_OPTS |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 582 | !IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 583 | CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS) -DSQLITE_API=__declspec(dllexport) |
| 584 | !ELSE |
| 585 | CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS) |
| 586 | !ENDIF |
| 587 | !ENDIF |
| 588 | |
| 589 | # These are the additional targets that the core library should depend on |
| 590 | # when linking. |
| 591 | # |
| 592 | !IFNDEF CORE_LINK_DEP |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 593 | !IF $(DYNAMIC_SHELL)!=0 |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 594 | CORE_LINK_DEP = |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 595 | !ELSEIF $(FOR_WIN10)==0 || "$(PLATFORM)"=="x86" |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 596 | CORE_LINK_DEP = sqlite3.def |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 597 | !ELSE |
| 598 | CORE_LINK_DEP = |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 599 | !ENDIF |
| 600 | !ENDIF |
| 601 | |
| 602 | # These are additional linker options used for the core library. |
| 603 | # |
| 604 | !IFNDEF CORE_LINK_OPTS |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 605 | !IF $(DYNAMIC_SHELL)!=0 |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 606 | CORE_LINK_OPTS = |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 607 | !ELSEIF $(FOR_WIN10)==0 || "$(PLATFORM)"=="x86" |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 608 | CORE_LINK_OPTS = /DEF:sqlite3.def |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 609 | !ELSE |
| 610 | CORE_LINK_OPTS = |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 611 | !ENDIF |
| 612 | !ENDIF |
| 613 | |
| 614 | # These are additional compiler options used for the shell executable. |
| 615 | # |
| 616 | !IFNDEF SHELL_COMPILE_OPTS |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 617 | !IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 618 | SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS) -DSQLITE_API=__declspec(dllimport) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 619 | !ELSE |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 620 | SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS) |
| 621 | !ENDIF |
| 622 | !ENDIF |
| 623 | |
| 624 | # This is the source code that the shell executable should be compiled |
| 625 | # with. |
| 626 | # |
| 627 | !IFNDEF SHELL_CORE_SRC |
| 628 | !IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 |
| 629 | SHELL_CORE_SRC = |
mistachkin | 1f237e3 | 2018-07-27 20:45:28 +0000 | [diff] [blame] | 630 | # <<mark>> |
| 631 | !ELSEIF $(USE_AMALGAMATION)==0 |
| 632 | SHELL_CORE_SRC = |
| 633 | # <</mark>> |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 634 | !ELSE |
| 635 | SHELL_CORE_SRC = $(SQLITE3C) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 636 | !ENDIF |
| 637 | !ENDIF |
| 638 | |
| 639 | # This is the core library that the shell executable should depend on. |
| 640 | # |
| 641 | !IFNDEF SHELL_CORE_DEP |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 642 | !IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 |
| 643 | SHELL_CORE_DEP = $(SQLITE3DLL) |
mistachkin | 1f237e3 | 2018-07-27 20:45:28 +0000 | [diff] [blame] | 644 | # <<mark>> |
| 645 | !ELSEIF $(USE_AMALGAMATION)==0 |
| 646 | SHELL_CORE_DEP = libsqlite3.lib |
| 647 | # <</mark>> |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 648 | !ELSE |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 649 | SHELL_CORE_DEP = |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 650 | !ENDIF |
| 651 | !ENDIF |
| 652 | |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 653 | # <<mark>> |
mistachkin | 5d7503a | 2018-01-05 17:12:13 +0000 | [diff] [blame] | 654 | # If zlib support is enabled, add the dependencies for it. |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 655 | # |
| 656 | !IF $(USE_ZLIB)!=0 && $(BUILD_ZLIB)!=0 |
| 657 | SHELL_CORE_DEP = zlib $(SHELL_CORE_DEP) |
mistachkin | 5d7503a | 2018-01-05 17:12:13 +0000 | [diff] [blame] | 658 | TESTFIXTURE_DEP = zlib $(TESTFIXTURE_DEP) |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 659 | !ENDIF |
| 660 | # <</mark>> |
| 661 | |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 662 | # This is the core library that the shell executable should link with. |
| 663 | # |
| 664 | !IFNDEF SHELL_CORE_LIB |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 665 | !IF $(DYNAMIC_SHELL)!=0 || $(FOR_WIN10)!=0 |
| 666 | SHELL_CORE_LIB = $(SQLITE3LIB) |
mistachkin | 1f237e3 | 2018-07-27 20:45:28 +0000 | [diff] [blame] | 667 | # <<mark>> |
| 668 | !ELSEIF $(USE_AMALGAMATION)==0 |
| 669 | SHELL_CORE_LIB = libsqlite3.lib |
| 670 | # <</mark>> |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 671 | !ELSE |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 672 | SHELL_CORE_LIB = |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 673 | !ENDIF |
| 674 | !ENDIF |
| 675 | |
| 676 | # These are additional linker options used for the shell executable. |
| 677 | # |
| 678 | !IFNDEF SHELL_LINK_OPTS |
| 679 | SHELL_LINK_OPTS = $(SHELL_CORE_LIB) |
| 680 | !ENDIF |
| 681 | |
mistachkin | 0157e01 | 2013-09-06 21:41:11 +0000 | [diff] [blame] | 682 | # Check if assembly code listings should be generated for the source |
| 683 | # code files to be compiled. |
| 684 | # |
| 685 | !IF $(USE_LISTINGS)!=0 |
| 686 | TCC = $(TCC) -FAcs |
| 687 | !ENDIF |
| 688 | |
mistachkin | f39eaf2 | 2012-03-20 02:18:42 +0000 | [diff] [blame] | 689 | # When compiling the library for use in the WinRT environment, |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 690 | # the following compile-time options must be used as well to |
mistachkin | f39eaf2 | 2012-03-20 02:18:42 +0000 | [diff] [blame] | 691 | # disable use of Win32 APIs that are not available and to enable |
| 692 | # use of Win32 APIs that are specific to Windows 8 and/or WinRT. |
| 693 | # |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 694 | !IF $(FOR_WINRT)!=0 |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 695 | TCC = $(TCC) -DSQLITE_OS_WINRT=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 696 | RCC = $(RCC) -DSQLITE_OS_WINRT=1 |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 697 | TCC = $(TCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP |
| 698 | RCC = $(RCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 699 | !ENDIF |
| 700 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 701 | # C compiler options for the Windows 10 platform (needs MSVC 2015). |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 702 | # |
| 703 | !IF $(FOR_WIN10)!=0 |
mistachkin | 406eeff | 2016-02-09 18:28:20 +0000 | [diff] [blame] | 704 | TCC = $(TCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE |
| 705 | BCC = $(BCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 706 | !ENDIF |
| 707 | |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 708 | # Also, we need to dynamically link to the correct MSVC runtime |
| 709 | # when compiling for WinRT (e.g. debug or release) OR if the |
| 710 | # USE_CRT_DLL option is set to force dynamically linking to the |
| 711 | # MSVC runtime library. |
| 712 | # |
mistachkin | a6f2889 | 2016-02-05 19:40:23 +0000 | [diff] [blame] | 713 | !IF $(FOR_WINRT)!=0 || $(USE_CRT_DLL)!=0 |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 714 | !IF $(DEBUG)>1 |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 715 | TCC = $(TCC) -MDd |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 716 | BCC = $(BCC) -MDd |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 717 | !ELSE |
| 718 | TCC = $(TCC) -MD |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 719 | BCC = $(BCC) -MD |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 720 | !ENDIF |
| 721 | !ELSE |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 722 | !IF $(DEBUG)>1 |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 723 | TCC = $(TCC) -MTd |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 724 | BCC = $(BCC) -MTd |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 725 | !ELSE |
| 726 | TCC = $(TCC) -MT |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 727 | BCC = $(BCC) -MT |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 728 | !ENDIF |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 729 | !ENDIF |
mistachkin | f39eaf2 | 2012-03-20 02:18:42 +0000 | [diff] [blame] | 730 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 731 | # <<mark>> |
mistachkin | f39eaf2 | 2012-03-20 02:18:42 +0000 | [diff] [blame] | 732 | # The mksqlite3c.tcl and mksqlite3h.tcl scripts will pull in |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 733 | # any extension header files by default. For non-amalgamation |
| 734 | # builds, we need to make sure the compiler can find these. |
| 735 | # |
| 736 | !IF $(USE_AMALGAMATION)==0 |
| 737 | TCC = $(TCC) -I$(TOP)\ext\fts3 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 738 | RCC = $(RCC) -I$(TOP)\ext\fts3 |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 739 | TCC = $(TCC) -I$(TOP)\ext\rtree |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 740 | RCC = $(RCC) -I$(TOP)\ext\rtree |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 741 | TCC = $(TCC) -I$(TOP)\ext\session |
mistachkin | 38b4daa | 2013-03-13 19:02:39 +0000 | [diff] [blame] | 742 | RCC = $(RCC) -I$(TOP)\ext\session |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 743 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 744 | |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 745 | # The mksqlite3c.tcl script accepts some options on the command |
| 746 | # line. When compiling with debugging enabled, some of these |
| 747 | # options are necessary in order to allow debugging symbols to |
| 748 | # work correctly with Visual Studio when using the amalgamation. |
| 749 | # |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 750 | !IFNDEF MKSQLITE3C_TOOL |
| 751 | !IF $(MINIMAL_AMALGAMATION)!=0 |
| 752 | MKSQLITE3C_TOOL = $(TOP)\tool\mksqlite3c-noext.tcl |
| 753 | !ELSE |
| 754 | MKSQLITE3C_TOOL = $(TOP)\tool\mksqlite3c.tcl |
| 755 | !ENDIF |
| 756 | !ENDIF |
| 757 | |
mistachkin | 2252917 | 2015-04-10 21:16:11 +0000 | [diff] [blame] | 758 | !IFNDEF MKSQLITE3C_ARGS |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 759 | !IF $(DEBUG)>1 |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 760 | MKSQLITE3C_ARGS = --linemacros |
| 761 | !ELSE |
| 762 | MKSQLITE3C_ARGS = |
| 763 | !ENDIF |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 764 | !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0 |
| 765 | MKSQLITE3C_ARGS = $(MKSQLITE3C_ARGS) --useapicall |
| 766 | !ENDIF |
| 767 | !ENDIF |
| 768 | |
| 769 | # The mksqlite3h.tcl script accepts some options on the command line. |
| 770 | # When compiling with stdcall support, some of these options are |
| 771 | # necessary. |
| 772 | # |
| 773 | !IFNDEF MKSQLITE3H_ARGS |
| 774 | !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0 |
| 775 | MKSQLITE3H_ARGS = --useapicall |
| 776 | !ELSE |
| 777 | MKSQLITE3H_ARGS = |
| 778 | !ENDIF |
mistachkin | 2252917 | 2015-04-10 21:16:11 +0000 | [diff] [blame] | 779 | !ENDIF |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 780 | # <</mark>> |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 781 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 782 | # Define -DNDEBUG to compile without debugging (i.e., for production usage) |
| 783 | # Omitting the define will cause extra debugging code to be inserted and |
| 784 | # includes extra comments when "EXPLAIN stmt" is used. |
| 785 | # |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 786 | !IF $(DEBUG)==0 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 787 | TCC = $(TCC) -DNDEBUG |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 788 | BCC = $(BCC) -DNDEBUG |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 789 | RCC = $(RCC) -DNDEBUG |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 790 | !ENDIF |
| 791 | |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 792 | !IF $(DEBUG)>0 || $(API_ARMOR)!=0 || $(FOR_WIN10)!=0 |
mistachkin | 13a24f8 | 2015-05-13 04:50:30 +0000 | [diff] [blame] | 793 | TCC = $(TCC) -DSQLITE_ENABLE_API_ARMOR=1 |
| 794 | RCC = $(RCC) -DSQLITE_ENABLE_API_ARMOR=1 |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 795 | !ENDIF |
| 796 | |
| 797 | !IF $(DEBUG)>2 |
mistachkin | 13a24f8 | 2015-05-13 04:50:30 +0000 | [diff] [blame] | 798 | TCC = $(TCC) -DSQLITE_DEBUG=1 |
| 799 | RCC = $(RCC) -DSQLITE_DEBUG=1 |
mistachkin | b3d3bea | 2017-03-29 23:22:18 +0000 | [diff] [blame] | 800 | !IF $(DYNAMIC_SHELL)==0 |
| 801 | TCC = $(TCC) -DSQLITE_ENABLE_WHERETRACE -DSQLITE_ENABLE_SELECTTRACE |
| 802 | RCC = $(RCC) -DSQLITE_ENABLE_WHERETRACE -DSQLITE_ENABLE_SELECTTRACE |
| 803 | !ENDIF |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 804 | !ENDIF |
| 805 | |
mistachkin | b10f22a | 2015-04-16 16:27:29 +0000 | [diff] [blame] | 806 | !IF $(DEBUG)>4 || $(OSTRACE)!=0 |
| 807 | TCC = $(TCC) -DSQLITE_FORCE_OS_TRACE=1 -DSQLITE_DEBUG_OS_TRACE=1 |
| 808 | RCC = $(RCC) -DSQLITE_FORCE_OS_TRACE=1 -DSQLITE_DEBUG_OS_TRACE=1 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 809 | !ENDIF |
| 810 | |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 811 | !IF $(DEBUG)>5 |
mistachkin | 13a24f8 | 2015-05-13 04:50:30 +0000 | [diff] [blame] | 812 | TCC = $(TCC) -DSQLITE_ENABLE_IOTRACE=1 |
| 813 | RCC = $(RCC) -DSQLITE_ENABLE_IOTRACE=1 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 814 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 815 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 816 | # Prevent warnings about "insecure" MSVC runtime library functions |
| 817 | # being used. |
mistachkin | 176f1b4 | 2011-08-02 23:34:00 +0000 | [diff] [blame] | 818 | # |
| 819 | TCC = $(TCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 820 | BCC = $(BCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 821 | RCC = $(RCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS |
mistachkin | 176f1b4 | 2011-08-02 23:34:00 +0000 | [diff] [blame] | 822 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 823 | # Prevent warnings about "deprecated" POSIX functions being used. |
| 824 | # |
| 825 | TCC = $(TCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS |
| 826 | BCC = $(BCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 827 | RCC = $(RCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 828 | |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 829 | # Use the SQLite debugging heap subsystem? |
mistachkin | 1b186a9 | 2011-08-24 16:13:57 +0000 | [diff] [blame] | 830 | # |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 831 | !IF $(MEMDEBUG)!=0 |
| 832 | TCC = $(TCC) -DSQLITE_MEMDEBUG=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 833 | RCC = $(RCC) -DSQLITE_MEMDEBUG=1 |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 834 | |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 835 | # Use native Win32 heap subsystem instead of malloc/free? |
| 836 | # |
| 837 | !ELSEIF $(WIN32HEAP)!=0 |
| 838 | TCC = $(TCC) -DSQLITE_WIN32_MALLOC=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 839 | RCC = $(RCC) -DSQLITE_WIN32_MALLOC=1 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 840 | |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 841 | # Validate the heap on every call into the native Win32 heap subsystem? |
| 842 | # |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 843 | !IF $(DEBUG)>3 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 844 | TCC = $(TCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 845 | RCC = $(RCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 846 | !ENDIF |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 847 | !ENDIF |
mistachkin | 1b186a9 | 2011-08-24 16:13:57 +0000 | [diff] [blame] | 848 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 849 | # <<mark>> |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 850 | # The locations of the Tcl header and library files. Also, the library that |
| 851 | # non-stubs enabled programs using Tcl must link against. These variables |
| 852 | # (TCLINCDIR, TCLLIBDIR, and LIBTCL) may be overridden via the environment |
| 853 | # prior to running nmake in order to match the actual installed location and |
| 854 | # version on this machine. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 855 | # |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 856 | !IFNDEF TCLDIR |
mistachkin | a0fcafe | 2017-12-05 19:07:30 +0000 | [diff] [blame] | 857 | TCLDIR = $(TOP)\compat\tcl |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 858 | !ENDIF |
| 859 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 860 | !IFNDEF TCLINCDIR |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 861 | TCLINCDIR = $(TCLDIR)\include |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 862 | !ENDIF |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 863 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 864 | !IFNDEF TCLLIBDIR |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 865 | TCLLIBDIR = $(TCLDIR)\lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 866 | !ENDIF |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 867 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 868 | !IFNDEF LIBTCL |
drh | 506a140 | 2016-11-02 19:49:22 +0000 | [diff] [blame] | 869 | LIBTCL = tcl86.lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 870 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 871 | |
mistachkin | 5b66350 | 2015-10-10 23:39:55 +0000 | [diff] [blame] | 872 | !IFNDEF LIBTCLSTUB |
drh | 506a140 | 2016-11-02 19:49:22 +0000 | [diff] [blame] | 873 | LIBTCLSTUB = tclstub86.lib |
mistachkin | 5b66350 | 2015-10-10 23:39:55 +0000 | [diff] [blame] | 874 | !ENDIF |
| 875 | |
mistachkin | 8873996 | 2015-10-14 23:04:08 +0000 | [diff] [blame] | 876 | !IFNDEF LIBTCLPATH |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 877 | LIBTCLPATH = $(TCLDIR)\bin |
| 878 | !ENDIF |
| 879 | |
| 880 | # The locations of the zlib header and library files. These variables |
| 881 | # (ZLIBINCDIR, ZLIBLIBDIR, and ZLIBLIB) may be overridden via the environment |
| 882 | # prior to running nmake in order to match the actual installed (or source |
| 883 | # code) location on this machine. |
| 884 | # |
| 885 | !IFNDEF ZLIBDIR |
| 886 | ZLIBDIR = $(TOP)\compat\zlib |
| 887 | !ENDIF |
| 888 | |
| 889 | !IFNDEF ZLIBINCDIR |
| 890 | ZLIBINCDIR = $(ZLIBDIR) |
| 891 | !ENDIF |
| 892 | |
| 893 | !IFNDEF ZLIBLIBDIR |
| 894 | ZLIBLIBDIR = $(ZLIBDIR) |
| 895 | !ENDIF |
| 896 | |
| 897 | !IFNDEF ZLIBLIB |
| 898 | !IF $(DYNAMIC_SHELL)!=0 |
| 899 | ZLIBLIB = zdll.lib |
| 900 | !ELSE |
| 901 | ZLIBLIB = zlib.lib |
| 902 | !ENDIF |
mistachkin | 8873996 | 2015-10-14 23:04:08 +0000 | [diff] [blame] | 903 | !ENDIF |
| 904 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 905 | # The locations of the ICU header and library files. These variables |
| 906 | # (ICUINCDIR, ICULIBDIR, and LIBICU) may be overridden via the environment |
| 907 | # prior to running nmake in order to match the actual installed location on |
| 908 | # this machine. |
| 909 | # |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 910 | !IFNDEF ICUDIR |
mistachkin | a0fcafe | 2017-12-05 19:07:30 +0000 | [diff] [blame] | 911 | ICUDIR = $(TOP)\compat\icu |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 912 | !ENDIF |
| 913 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 914 | !IFNDEF ICUINCDIR |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 915 | ICUINCDIR = $(ICUDIR)\include |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 916 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 917 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 918 | !IFNDEF ICULIBDIR |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 919 | ICULIBDIR = $(ICUDIR)\lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 920 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 921 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 922 | !IFNDEF LIBICU |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 923 | LIBICU = icuuc.lib icuin.lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 924 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 925 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 926 | # This is the command to use for tclsh - normally just "tclsh", but we may |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 927 | # know the specific version we want to use. This variable (TCLSH_CMD) may be |
| 928 | # overridden via the environment prior to running nmake in order to select a |
| 929 | # specific Tcl shell to use. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 930 | # |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 931 | !IFNDEF TCLSH_CMD |
mistachkin | 47be3b2 | 2018-01-05 01:22:37 +0000 | [diff] [blame] | 932 | !IF $(USE_TCLSH_IN_PATH)!=0 || !EXIST("$(TCLDIR)\bin\tclsh.exe") |
drh | 506a140 | 2016-11-02 19:49:22 +0000 | [diff] [blame] | 933 | TCLSH_CMD = tclsh |
mistachkin | a0fcafe | 2017-12-05 19:07:30 +0000 | [diff] [blame] | 934 | !ELSE |
| 935 | TCLSH_CMD = $(TCLDIR)\bin\tclsh.exe |
| 936 | !ENDIF |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 937 | !ENDIF |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 938 | # <</mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 939 | |
| 940 | # Compiler options needed for programs that use the readline() library. |
| 941 | # |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 942 | !IFNDEF READLINE_FLAGS |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 943 | READLINE_FLAGS = -DHAVE_READLINE=0 |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 944 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 945 | |
| 946 | # The library that programs using readline() must link against. |
| 947 | # |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 948 | !IFNDEF LIBREADLINE |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 949 | LIBREADLINE = |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 950 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 951 | |
| 952 | # Should the database engine be compiled threadsafe |
| 953 | # |
| 954 | TCC = $(TCC) -DSQLITE_THREADSAFE=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 955 | RCC = $(RCC) -DSQLITE_THREADSAFE=1 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 956 | |
| 957 | # Do threads override each others locks by default (1), or do we test (-1) |
| 958 | # |
| 959 | TCC = $(TCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 960 | RCC = $(RCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 961 | |
| 962 | # Any target libraries which libsqlite must be linked against |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 963 | # |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 964 | !IFNDEF TLIBS |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 965 | TLIBS = |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 966 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 967 | |
| 968 | # Flags controlling use of the in memory btree implementation |
| 969 | # |
| 970 | # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to |
| 971 | # default to file, 2 to default to memory, and 3 to force temporary |
| 972 | # tables to always be in memory. |
| 973 | # |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 974 | TCC = $(TCC) -DSQLITE_TEMP_STORE=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 975 | RCC = $(RCC) -DSQLITE_TEMP_STORE=1 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 976 | |
| 977 | # Enable/disable loadable extensions, and other optional features |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 978 | # based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*). |
| 979 | # The same set of OMIT and ENABLE flags should be passed to the |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 980 | # LEMON parser generator and the mkkeywordhash tool as well. |
| 981 | |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 982 | # These are the required SQLite compilation options used when compiling for |
| 983 | # the Windows platform. |
| 984 | # |
| 985 | REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_MAX_TRIGGER_DEPTH=100 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 986 | |
mistachkin | e45e0fb | 2015-01-21 00:48:46 +0000 | [diff] [blame] | 987 | # If we are linking to the RPCRT4 library, enable features that need it. |
| 988 | # |
| 989 | !IF $(USE_RPCRT4_LIB)!=0 |
| 990 | REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_WIN32_USE_UUID=1 |
| 991 | !ENDIF |
| 992 | |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 993 | # Add the required and optional SQLite compilation options into the command |
| 994 | # lines used to invoke the MSVC code and resource compilers. |
| 995 | # |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 996 | TCC = $(TCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) |
| 997 | RCC = $(RCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 998 | |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 999 | # Add in any optional parameters specified on the commane line, e.g. |
| 1000 | # nmake /f Makefile.msc all "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1" |
| 1001 | # |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1002 | TCC = $(TCC) $(OPTS) |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1003 | RCC = $(RCC) $(OPTS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1004 | |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 1005 | # If compiling for debugging, add some defines. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1006 | # |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 1007 | !IF $(DEBUG)>1 |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 1008 | TCC = $(TCC) -D_DEBUG |
| 1009 | BCC = $(BCC) -D_DEBUG |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1010 | RCC = $(RCC) -D_DEBUG |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 1011 | !ENDIF |
| 1012 | |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 1013 | # If optimizations are enabled or disabled (either implicitly or |
| 1014 | # explicitly), add the necessary flags. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1015 | # |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 1016 | !IF $(DEBUG)>1 || $(OPTIMIZATIONS)==0 |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 1017 | TCC = $(TCC) -Od |
| 1018 | BCC = $(BCC) -Od |
mistachkin | 24b6b81 | 2016-08-24 18:21:58 +0000 | [diff] [blame] | 1019 | !IF $(USE_RUNTIME_CHECKS)!=0 |
| 1020 | TCC = $(TCC) -RTC1 |
| 1021 | BCC = $(BCC) -RTC1 |
| 1022 | !ENDIF |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 1023 | !ELSEIF $(OPTIMIZATIONS)>=3 |
| 1024 | TCC = $(TCC) -Ox |
| 1025 | BCC = $(BCC) -Ox |
| 1026 | !ELSEIF $(OPTIMIZATIONS)==2 |
| 1027 | TCC = $(TCC) -O2 |
| 1028 | BCC = $(BCC) -O2 |
| 1029 | !ELSEIF $(OPTIMIZATIONS)==1 |
| 1030 | TCC = $(TCC) -O1 |
| 1031 | BCC = $(BCC) -O1 |
| 1032 | !ENDIF |
| 1033 | |
| 1034 | # If symbols are enabled (or compiling for debugging), enable PDBs. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1035 | # |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 1036 | !IF $(DEBUG)>1 || $(SYMBOLS)!=0 |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 1037 | TCC = $(TCC) -Zi |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 1038 | BCC = $(BCC) -Zi |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 1039 | !ENDIF |
| 1040 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1041 | # <<mark>> |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 1042 | # If zlib support is enabled, add the compiler options for it. |
| 1043 | # |
| 1044 | !IF $(USE_ZLIB)!=0 |
| 1045 | TCC = $(TCC) -DSQLITE_HAVE_ZLIB=1 |
| 1046 | RCC = $(RCC) -DSQLITE_HAVE_ZLIB=1 |
| 1047 | TCC = $(TCC) -I$(ZLIBINCDIR) |
| 1048 | RCC = $(RCC) -I$(ZLIBINCDIR) |
| 1049 | !ENDIF |
| 1050 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 1051 | # If ICU support is enabled, add the compiler options for it. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1052 | # |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 1053 | !IF $(USE_ICU)!=0 |
| 1054 | TCC = $(TCC) -DSQLITE_ENABLE_ICU=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1055 | RCC = $(RCC) -DSQLITE_ENABLE_ICU=1 |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 1056 | TCC = $(TCC) -I$(TOP)\ext\icu |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1057 | RCC = $(RCC) -I$(TOP)\ext\icu |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 1058 | TCC = $(TCC) -I$(ICUINCDIR) |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1059 | RCC = $(RCC) -I$(ICUINCDIR) |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 1060 | !ENDIF |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1061 | # <</mark>> |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 1062 | |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1063 | # Command line prefixes for compiling code, compiling resources, |
| 1064 | # linking, etc. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1065 | # |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1066 | LTCOMPILE = $(TCC) -Fo$@ |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1067 | LTRCOMPILE = $(RCC) -r |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1068 | LTLIB = lib.exe |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 1069 | LTLINK = $(TCC) -Fe$@ |
| 1070 | |
mistachkin | e45e0fb | 2015-01-21 00:48:46 +0000 | [diff] [blame] | 1071 | # If requested, link to the RPCRT4 library. |
| 1072 | # |
| 1073 | !IF $(USE_RPCRT4_LIB)!=0 |
mistachkin | 041343d | 2017-11-21 21:15:17 +0000 | [diff] [blame] | 1074 | LTLIBS = $(LTLIBS) rpcrt4.lib |
mistachkin | e45e0fb | 2015-01-21 00:48:46 +0000 | [diff] [blame] | 1075 | !ENDIF |
| 1076 | |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 1077 | # If a platform was set, force the linker to target that. |
| 1078 | # Note that the vcvars*.bat family of batch files typically |
| 1079 | # set this for you. Otherwise, the linker will attempt |
| 1080 | # to deduce the binary type based on the object files. |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 1081 | !IFDEF PLATFORM |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1082 | LTLINKOPTS = /NOLOGO /MACHINE:$(PLATFORM) |
| 1083 | LTLIBOPTS = /NOLOGO /MACHINE:$(PLATFORM) |
| 1084 | !ELSE |
| 1085 | LTLINKOPTS = /NOLOGO |
| 1086 | LTLIBOPTS = /NOLOGO |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 1087 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1088 | |
mistachkin | a6ff857 | 2012-04-17 21:00:12 +0000 | [diff] [blame] | 1089 | # When compiling for use in the WinRT environment, the following |
| 1090 | # linker option must be used to mark the executable as runnable |
| 1091 | # only in the context of an application container. |
| 1092 | # |
| 1093 | !IF $(FOR_WINRT)!=0 |
| 1094 | LTLINKOPTS = $(LTLINKOPTS) /APPCONTAINER |
mistachkin | 318d38c | 2015-04-22 01:33:53 +0000 | [diff] [blame] | 1095 | !IF "$(VISUALSTUDIOVERSION)"=="12.0" || "$(VISUALSTUDIOVERSION)"=="14.0" |
mistachkin | f6a2342 | 2014-05-05 20:24:34 +0000 | [diff] [blame] | 1096 | !IFNDEF STORELIBPATH |
mistachkin | da5b1cd | 2013-07-10 19:39:02 +0000 | [diff] [blame] | 1097 | !IF "$(PLATFORM)"=="x86" |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1098 | STORELIBPATH = $(CRTLIBPATH)\store |
mistachkin | da5b1cd | 2013-07-10 19:39:02 +0000 | [diff] [blame] | 1099 | !ELSEIF "$(PLATFORM)"=="x64" |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1100 | STORELIBPATH = $(CRTLIBPATH)\store\amd64 |
mistachkin | 4eaa129 | 2013-07-10 21:33:25 +0000 | [diff] [blame] | 1101 | !ELSEIF "$(PLATFORM)"=="ARM" |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1102 | STORELIBPATH = $(CRTLIBPATH)\store\arm |
mistachkin | 4eaa129 | 2013-07-10 21:33:25 +0000 | [diff] [blame] | 1103 | !ELSE |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1104 | STORELIBPATH = $(CRTLIBPATH)\store |
mistachkin | da5b1cd | 2013-07-10 19:39:02 +0000 | [diff] [blame] | 1105 | !ENDIF |
| 1106 | !ENDIF |
mistachkin | f6a2342 | 2014-05-05 20:24:34 +0000 | [diff] [blame] | 1107 | STORELIBPATH = $(STORELIBPATH:\\=\) |
| 1108 | LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(STORELIBPATH)" |
| 1109 | !ENDIF |
mistachkin | a6ff857 | 2012-04-17 21:00:12 +0000 | [diff] [blame] | 1110 | !ENDIF |
| 1111 | |
mistachkin | d9b3c54 | 2014-05-09 23:31:55 +0000 | [diff] [blame] | 1112 | # When compiling for Windows Phone 8.1, an extra library path is |
| 1113 | # required. |
| 1114 | # |
| 1115 | !IF $(USE_WP81_OPTS)!=0 |
| 1116 | !IFNDEF WP81LIBPATH |
| 1117 | !IF "$(PLATFORM)"=="x86" |
| 1118 | WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86 |
| 1119 | !ELSEIF "$(PLATFORM)"=="ARM" |
| 1120 | WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\ARM |
| 1121 | !ELSE |
| 1122 | WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86 |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 1123 | !ENDIF |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 1124 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1125 | !ENDIF |
| 1126 | |
mistachkin | d9b3c54 | 2014-05-09 23:31:55 +0000 | [diff] [blame] | 1127 | # When compiling for Windows Phone 8.1, some extra linker options |
| 1128 | # are also required. |
| 1129 | # |
| 1130 | !IF $(USE_WP81_OPTS)!=0 |
| 1131 | !IFDEF WP81LIBPATH |
| 1132 | LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(WP81LIBPATH)" |
| 1133 | !ENDIF |
| 1134 | LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE |
| 1135 | LTLINKOPTS = $(LTLINKOPTS) WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib |
| 1136 | LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:kernel32.lib /NODEFAULTLIB:ole32.lib |
| 1137 | !ENDIF |
| 1138 | |
mistachkin | a819aed | 2016-02-12 05:19:29 +0000 | [diff] [blame] | 1139 | # When compiling for UWP or the Windows 10 platform, some extra linker |
mistachkin | 55e88d9 | 2016-02-08 20:40:57 +0000 | [diff] [blame] | 1140 | # options are also required. |
mistachkin | 318d38c | 2015-04-22 01:33:53 +0000 | [diff] [blame] | 1141 | # |
mistachkin | a819aed | 2016-02-12 05:19:29 +0000 | [diff] [blame] | 1142 | !IF $(FOR_UWP)!=0 || $(FOR_WIN10)!=0 |
mistachkin | 318d38c | 2015-04-22 01:33:53 +0000 | [diff] [blame] | 1143 | LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE /NODEFAULTLIB:kernel32.lib |
| 1144 | LTLINKOPTS = $(LTLINKOPTS) mincore.lib |
| 1145 | !IFDEF PSDKLIBPATH |
| 1146 | LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(PSDKLIBPATH)" |
| 1147 | !ENDIF |
| 1148 | !ENDIF |
| 1149 | |
mistachkin | a6f2889 | 2016-02-05 19:40:23 +0000 | [diff] [blame] | 1150 | !IF $(FOR_WIN10)!=0 |
mistachkin | 406eeff | 2016-02-09 18:28:20 +0000 | [diff] [blame] | 1151 | LTLINKOPTS = $(LTLINKOPTS) /guard:cf "/LIBPATH:$(UCRTLIBPATH)" |
mistachkin | a6f2889 | 2016-02-05 19:40:23 +0000 | [diff] [blame] | 1152 | !IF $(DEBUG)>1 |
| 1153 | LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:libucrtd.lib /DEFAULTLIB:ucrtd.lib |
| 1154 | !ELSE |
| 1155 | LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:libucrt.lib /DEFAULTLIB:ucrt.lib |
| 1156 | !ENDIF |
| 1157 | !ENDIF |
| 1158 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1159 | # If either debugging or symbols are enabled, enable PDBs. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1160 | # |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 1161 | !IF $(DEBUG)>1 || $(SYMBOLS)!=0 |
mistachkin | f170ea4 | 2015-10-16 20:13:57 +0000 | [diff] [blame] | 1162 | LDFLAGS = /DEBUG $(LDOPTS) |
| 1163 | !ELSE |
| 1164 | LDFLAGS = $(LDOPTS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1165 | !ENDIF |
| 1166 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1167 | # <<mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1168 | # Start with the Tcl related linker options. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1169 | # |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1170 | !IF $(NO_TCL)==0 |
mistachkin | 590522c | 2018-01-05 16:05:51 +0000 | [diff] [blame] | 1171 | TCLLIBPATHS = $(TCLLIBPATHS) /LIBPATH:$(TCLLIBDIR) |
| 1172 | TCLLIBS = $(TCLLIBS) $(LIBTCL) |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 1173 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1174 | |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 1175 | # If zlib support is enabled, add the linker options for it. |
| 1176 | # |
| 1177 | !IF $(USE_ZLIB)!=0 |
| 1178 | LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ZLIBLIBDIR) |
| 1179 | LTLIBS = $(LTLIBS) $(ZLIBLIB) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1180 | !ENDIF |
| 1181 | |
| 1182 | # If ICU support is enabled, add the linker options for it. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1183 | # |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1184 | !IF $(USE_ICU)!=0 |
| 1185 | LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ICULIBDIR) |
| 1186 | LTLIBS = $(LTLIBS) $(LIBICU) |
| 1187 | !ENDIF |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1188 | # <</mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1189 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1190 | # You should not have to change anything below this line |
| 1191 | ############################################################################### |
| 1192 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1193 | # <<mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1194 | # Object files for the SQLite library (non-amalgamation). |
| 1195 | # |
mistachkin | f67feef | 2013-07-29 19:03:20 +0000 | [diff] [blame] | 1196 | LIBOBJS0 = vdbe.lo parse.lo alter.lo analyze.lo attach.lo auth.lo \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1197 | backup.lo bitvec.lo btmutex.lo btree.lo build.lo \ |
drh | a43c8c8 | 2017-10-11 13:48:11 +0000 | [diff] [blame] | 1198 | callback.lo complete.lo ctime.lo \ |
| 1199 | date.lo dbpage.lo dbstat.lo delete.lo \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1200 | expr.lo fault.lo fkey.lo \ |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 1201 | fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \ |
| 1202 | fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \ |
drh | 4d648c7 | 2013-04-22 17:07:56 +0000 | [diff] [blame] | 1203 | fts3_tokenize_vtab.lo fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \ |
mistachkin | ed52f9f | 2015-06-26 04:34:36 +0000 | [diff] [blame] | 1204 | fts5.lo \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1205 | func.lo global.lo hash.lo \ |
mistachkin | 90d6f48 | 2018-09-12 00:48:17 +0000 | [diff] [blame] | 1206 | icu.lo insert.lo json1.lo legacy.lo loadext.lo \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1207 | main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \ |
drh | ac442f4 | 2018-01-03 01:28:46 +0000 | [diff] [blame] | 1208 | memdb.lo memjournal.lo \ |
mistachkin | f1c6bc5 | 2012-06-21 15:09:20 +0000 | [diff] [blame] | 1209 | mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \ |
| 1210 | notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \ |
mistachkin | f67feef | 2013-07-29 19:03:20 +0000 | [diff] [blame] | 1211 | pager.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \ |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 1212 | random.lo resolve.lo rowset.lo rtree.lo \ |
mistachkin | 90d6f48 | 2018-09-12 00:48:17 +0000 | [diff] [blame] | 1213 | sqlite3session.lo select.lo sqlite3rbu.lo status.lo stmt.lo \ |
drh | 38b4149 | 2015-06-08 15:08:15 +0000 | [diff] [blame] | 1214 | table.lo threads.lo tokenize.lo treeview.lo trigger.lo \ |
drh | fcfd756 | 2018-04-12 21:42:51 +0000 | [diff] [blame] | 1215 | update.lo upsert.lo util.lo vacuum.lo \ |
mistachkin | f67feef | 2013-07-29 19:03:20 +0000 | [diff] [blame] | 1216 | vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \ |
drh | 6c1f4ef | 2015-06-08 14:23:15 +0000 | [diff] [blame] | 1217 | vdbetrace.lo wal.lo walker.lo where.lo wherecode.lo whereexpr.lo \ |
dan | 980cf25 | 2018-06-10 07:42:35 +0000 | [diff] [blame] | 1218 | window.lo utf.lo vtab.lo |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1219 | # <</mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1220 | |
| 1221 | # Object files for the amalgamation. |
| 1222 | # |
| 1223 | LIBOBJS1 = sqlite3.lo |
| 1224 | |
| 1225 | # Determine the real value of LIBOBJ based on the 'configure' script |
| 1226 | # |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1227 | # <<mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1228 | !IF $(USE_AMALGAMATION)==0 |
| 1229 | LIBOBJ = $(LIBOBJS0) |
| 1230 | !ELSE |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1231 | # <</mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1232 | LIBOBJ = $(LIBOBJS1) |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1233 | # <<mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1234 | !ENDIF |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1235 | # <</mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1236 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1237 | # Determine if embedded resource compilation and usage are enabled. |
| 1238 | # |
| 1239 | !IF $(USE_RC)!=0 |
| 1240 | LIBRESOBJS = sqlite3res.lo |
| 1241 | !ELSE |
| 1242 | LIBRESOBJS = |
| 1243 | !ENDIF |
| 1244 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1245 | # <<mark>> |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1246 | # Core source code files, part 1. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1247 | # |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1248 | SRC00 = \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1249 | $(TOP)\src\alter.c \ |
| 1250 | $(TOP)\src\analyze.c \ |
| 1251 | $(TOP)\src\attach.c \ |
| 1252 | $(TOP)\src\auth.c \ |
| 1253 | $(TOP)\src\backup.c \ |
| 1254 | $(TOP)\src\bitvec.c \ |
| 1255 | $(TOP)\src\btmutex.c \ |
| 1256 | $(TOP)\src\btree.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1257 | $(TOP)\src\build.c \ |
| 1258 | $(TOP)\src\callback.c \ |
| 1259 | $(TOP)\src\complete.c \ |
| 1260 | $(TOP)\src\ctime.c \ |
| 1261 | $(TOP)\src\date.c \ |
drh | a43c8c8 | 2017-10-11 13:48:11 +0000 | [diff] [blame] | 1262 | $(TOP)\src\dbpage.c \ |
drh | 1a4a680 | 2015-05-04 18:31:09 +0000 | [diff] [blame] | 1263 | $(TOP)\src\dbstat.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1264 | $(TOP)\src\delete.c \ |
| 1265 | $(TOP)\src\expr.c \ |
| 1266 | $(TOP)\src\fault.c \ |
| 1267 | $(TOP)\src\fkey.c \ |
| 1268 | $(TOP)\src\func.c \ |
| 1269 | $(TOP)\src\global.c \ |
| 1270 | $(TOP)\src\hash.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1271 | $(TOP)\src\insert.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1272 | $(TOP)\src\legacy.c \ |
| 1273 | $(TOP)\src\loadext.c \ |
| 1274 | $(TOP)\src\main.c \ |
| 1275 | $(TOP)\src\malloc.c \ |
| 1276 | $(TOP)\src\mem0.c \ |
| 1277 | $(TOP)\src\mem1.c \ |
| 1278 | $(TOP)\src\mem2.c \ |
| 1279 | $(TOP)\src\mem3.c \ |
| 1280 | $(TOP)\src\mem5.c \ |
drh | ac442f4 | 2018-01-03 01:28:46 +0000 | [diff] [blame] | 1281 | $(TOP)\src\memdb.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1282 | $(TOP)\src\memjournal.c \ |
| 1283 | $(TOP)\src\mutex.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1284 | $(TOP)\src\mutex_noop.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1285 | $(TOP)\src\mutex_unix.c \ |
| 1286 | $(TOP)\src\mutex_w32.c \ |
| 1287 | $(TOP)\src\notify.c \ |
| 1288 | $(TOP)\src\os.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1289 | $(TOP)\src\os_unix.c \ |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1290 | $(TOP)\src\os_win.c |
| 1291 | |
| 1292 | # Core source code files, part 2. |
| 1293 | # |
| 1294 | SRC01 = \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1295 | $(TOP)\src\pager.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1296 | $(TOP)\src\pcache.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1297 | $(TOP)\src\pcache1.c \ |
| 1298 | $(TOP)\src\pragma.c \ |
| 1299 | $(TOP)\src\prepare.c \ |
| 1300 | $(TOP)\src\printf.c \ |
| 1301 | $(TOP)\src\random.c \ |
| 1302 | $(TOP)\src\resolve.c \ |
| 1303 | $(TOP)\src\rowset.c \ |
| 1304 | $(TOP)\src\select.c \ |
| 1305 | $(TOP)\src\status.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1306 | $(TOP)\src\table.c \ |
drh | f51446a | 2012-07-21 19:40:42 +0000 | [diff] [blame] | 1307 | $(TOP)\src\threads.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1308 | $(TOP)\src\tclsqlite.c \ |
| 1309 | $(TOP)\src\tokenize.c \ |
drh | 38b4149 | 2015-06-08 15:08:15 +0000 | [diff] [blame] | 1310 | $(TOP)\src\treeview.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1311 | $(TOP)\src\trigger.c \ |
| 1312 | $(TOP)\src\utf.c \ |
| 1313 | $(TOP)\src\update.c \ |
drh | fcfd756 | 2018-04-12 21:42:51 +0000 | [diff] [blame] | 1314 | $(TOP)\src\upsert.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1315 | $(TOP)\src\util.c \ |
| 1316 | $(TOP)\src\vacuum.c \ |
| 1317 | $(TOP)\src\vdbe.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1318 | $(TOP)\src\vdbeapi.c \ |
| 1319 | $(TOP)\src\vdbeaux.c \ |
| 1320 | $(TOP)\src\vdbeblob.c \ |
| 1321 | $(TOP)\src\vdbemem.c \ |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 1322 | $(TOP)\src\vdbesort.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1323 | $(TOP)\src\vdbetrace.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1324 | $(TOP)\src\vtab.c \ |
| 1325 | $(TOP)\src\wal.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1326 | $(TOP)\src\walker.c \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 1327 | $(TOP)\src\where.c \ |
drh | 6f82e85 | 2015-06-06 20:12:09 +0000 | [diff] [blame] | 1328 | $(TOP)\src\wherecode.c \ |
dan | 980cf25 | 2018-06-10 07:42:35 +0000 | [diff] [blame] | 1329 | $(TOP)\src\whereexpr.c \ |
| 1330 | $(TOP)\src\window.c |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1331 | |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1332 | # Core miscellaneous files. |
| 1333 | # |
| 1334 | SRC03 = \ |
| 1335 | $(TOP)\src\parse.y |
| 1336 | |
| 1337 | # Core header files, part 1. |
| 1338 | # |
| 1339 | SRC04 = \ |
| 1340 | $(TOP)\src\btree.h \ |
| 1341 | $(TOP)\src\btreeInt.h \ |
| 1342 | $(TOP)\src\hash.h \ |
| 1343 | $(TOP)\src\hwtime.h \ |
| 1344 | $(TOP)\src\msvc.h \ |
| 1345 | $(TOP)\src\mutex.h \ |
| 1346 | $(TOP)\src\os.h \ |
| 1347 | $(TOP)\src\os_common.h \ |
| 1348 | $(TOP)\src\os_setup.h \ |
| 1349 | $(TOP)\src\os_win.h |
| 1350 | |
| 1351 | # Core header files, part 2. |
| 1352 | # |
| 1353 | SRC05 = \ |
| 1354 | $(TOP)\src\pager.h \ |
| 1355 | $(TOP)\src\pcache.h \ |
| 1356 | $(TOP)\src\pragma.h \ |
| 1357 | $(TOP)\src\sqlite.h.in \ |
| 1358 | $(TOP)\src\sqlite3ext.h \ |
| 1359 | $(TOP)\src\sqliteInt.h \ |
| 1360 | $(TOP)\src\sqliteLimit.h \ |
| 1361 | $(TOP)\src\vdbe.h \ |
| 1362 | $(TOP)\src\vdbeInt.h \ |
| 1363 | $(TOP)\src\vxworks.h \ |
| 1364 | $(TOP)\src\wal.h \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 1365 | $(TOP)\src\whereInt.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1366 | |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1367 | # Extension source code files, part 1. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1368 | # |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1369 | SRC06 = \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1370 | $(TOP)\ext\fts1\fts1.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1371 | $(TOP)\ext\fts1\fts1_hash.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1372 | $(TOP)\ext\fts1\fts1_porter.c \ |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 1373 | $(TOP)\ext\fts1\fts1_tokenizer1.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1374 | $(TOP)\ext\fts2\fts2.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1375 | $(TOP)\ext\fts2\fts2_hash.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1376 | $(TOP)\ext\fts2\fts2_icu.c \ |
| 1377 | $(TOP)\ext\fts2\fts2_porter.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1378 | $(TOP)\ext\fts2\fts2_tokenizer.c \ |
| 1379 | $(TOP)\ext\fts2\fts2_tokenizer1.c |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1380 | |
| 1381 | # Extension source code files, part 2. |
| 1382 | # |
| 1383 | SRC07 = \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1384 | $(TOP)\ext\fts3\fts3.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1385 | $(TOP)\ext\fts3\fts3_aux.c \ |
| 1386 | $(TOP)\ext\fts3\fts3_expr.c \ |
| 1387 | $(TOP)\ext\fts3\fts3_hash.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1388 | $(TOP)\ext\fts3\fts3_icu.c \ |
| 1389 | $(TOP)\ext\fts3\fts3_porter.c \ |
| 1390 | $(TOP)\ext\fts3\fts3_snippet.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1391 | $(TOP)\ext\fts3\fts3_tokenizer.c \ |
| 1392 | $(TOP)\ext\fts3\fts3_tokenizer1.c \ |
drh | 4d648c7 | 2013-04-22 17:07:56 +0000 | [diff] [blame] | 1393 | $(TOP)\ext\fts3\fts3_tokenize_vtab.c \ |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 1394 | $(TOP)\ext\fts3\fts3_unicode.c \ |
| 1395 | $(TOP)\ext\fts3\fts3_unicode2.c \ |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 1396 | $(TOP)\ext\fts3\fts3_write.c \ |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 1397 | $(TOP)\ext\icu\icu.c \ |
drh | edea911 | 2015-03-24 19:02:13 +0000 | [diff] [blame] | 1398 | $(TOP)\ext\rtree\rtree.c \ |
drh | dbbd816 | 2015-05-19 23:04:26 +0000 | [diff] [blame] | 1399 | $(TOP)\ext\session\sqlite3session.c \ |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 1400 | $(TOP)\ext\rbu\sqlite3rbu.c \ |
drh | f00f530 | 2017-06-28 15:47:29 +0000 | [diff] [blame] | 1401 | $(TOP)\ext\misc\json1.c \ |
drh | c6603af | 2017-06-29 14:33:51 +0000 | [diff] [blame] | 1402 | $(TOP)\ext\misc\stmt.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1403 | |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1404 | # Extension header files, part 1. |
| 1405 | # |
| 1406 | SRC08 = \ |
| 1407 | $(TOP)\ext\fts1\fts1.h \ |
| 1408 | $(TOP)\ext\fts1\fts1_hash.h \ |
| 1409 | $(TOP)\ext\fts1\fts1_tokenizer.h \ |
| 1410 | $(TOP)\ext\fts2\fts2.h \ |
| 1411 | $(TOP)\ext\fts2\fts2_hash.h \ |
| 1412 | $(TOP)\ext\fts2\fts2_tokenizer.h |
| 1413 | |
| 1414 | # Extension header files, part 2. |
| 1415 | # |
| 1416 | SRC09 = \ |
| 1417 | $(TOP)\ext\fts3\fts3.h \ |
| 1418 | $(TOP)\ext\fts3\fts3Int.h \ |
| 1419 | $(TOP)\ext\fts3\fts3_hash.h \ |
| 1420 | $(TOP)\ext\fts3\fts3_tokenizer.h \ |
| 1421 | $(TOP)\ext\icu\sqliteicu.h \ |
| 1422 | $(TOP)\ext\rtree\rtree.h \ |
drh | 748b8fd | 2018-05-25 19:22:47 +0000 | [diff] [blame] | 1423 | $(TOP)\ext\rtree\geopoly.c \ |
mistachkin | 0500478 | 2016-03-30 16:23:06 +0000 | [diff] [blame] | 1424 | $(TOP)\ext\rbu\sqlite3rbu.h \ |
| 1425 | $(TOP)\ext\session\sqlite3session.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1426 | |
| 1427 | # Generated source code files |
| 1428 | # |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1429 | SRC10 = \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1430 | opcodes.c \ |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1431 | parse.c |
| 1432 | |
| 1433 | # Generated header files |
| 1434 | # |
| 1435 | SRC11 = \ |
| 1436 | keywordhash.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1437 | opcodes.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1438 | parse.h \ |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 1439 | shell.c \ |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 1440 | $(SQLITE3H) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1441 | |
mistachkin | 52b1dbb | 2016-07-28 14:37:04 +0000 | [diff] [blame] | 1442 | # Generated Tcl header files |
| 1443 | # |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 1444 | !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0 |
mistachkin | 52b1dbb | 2016-07-28 14:37:04 +0000 | [diff] [blame] | 1445 | SRC12 = \ |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 1446 | $(SQLITETCLH) \ |
| 1447 | $(SQLITETCLDECLSH) |
| 1448 | !ELSE |
| 1449 | SRC12 = |
| 1450 | !ENDIF |
mistachkin | 52b1dbb | 2016-07-28 14:37:04 +0000 | [diff] [blame] | 1451 | |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 1452 | # All source code files. |
| 1453 | # |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 1454 | SRC = $(SRC00) $(SRC01) $(SRC03) $(SRC04) $(SRC05) $(SRC06) $(SRC07) $(SRC08) $(SRC09) $(SRC10) $(SRC11) |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 1455 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1456 | # Source code to the test files. |
| 1457 | # |
| 1458 | TESTSRC = \ |
| 1459 | $(TOP)\src\test1.c \ |
| 1460 | $(TOP)\src\test2.c \ |
| 1461 | $(TOP)\src\test3.c \ |
| 1462 | $(TOP)\src\test4.c \ |
| 1463 | $(TOP)\src\test5.c \ |
| 1464 | $(TOP)\src\test6.c \ |
| 1465 | $(TOP)\src\test7.c \ |
| 1466 | $(TOP)\src\test8.c \ |
| 1467 | $(TOP)\src\test9.c \ |
| 1468 | $(TOP)\src\test_autoext.c \ |
| 1469 | $(TOP)\src\test_async.c \ |
| 1470 | $(TOP)\src\test_backup.c \ |
drh | ddebf16 | 2016-03-04 02:59:35 +0000 | [diff] [blame] | 1471 | $(TOP)\src\test_bestindex.c \ |
drh | 5de7d96 | 2014-12-05 00:17:39 +0000 | [diff] [blame] | 1472 | $(TOP)\src\test_blob.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1473 | $(TOP)\src\test_btree.c \ |
| 1474 | $(TOP)\src\test_config.c \ |
dan | 000f95b | 2016-09-09 20:00:40 +0000 | [diff] [blame] | 1475 | $(TOP)\src\test_delete.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1476 | $(TOP)\src\test_demovfs.c \ |
| 1477 | $(TOP)\src\test_devsym.c \ |
mistachkin | 413c63b | 2013-01-17 03:18:14 +0000 | [diff] [blame] | 1478 | $(TOP)\src\test_fs.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1479 | $(TOP)\src\test_func.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1480 | $(TOP)\src\test_hexio.c \ |
| 1481 | $(TOP)\src\test_init.c \ |
| 1482 | $(TOP)\src\test_intarray.c \ |
| 1483 | $(TOP)\src\test_journal.c \ |
| 1484 | $(TOP)\src\test_malloc.c \ |
drh | c318f73 | 2017-10-13 15:06:06 +0000 | [diff] [blame] | 1485 | $(TOP)\src\test_md5.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1486 | $(TOP)\src\test_multiplex.c \ |
| 1487 | $(TOP)\src\test_mutex.c \ |
| 1488 | $(TOP)\src\test_onefile.c \ |
| 1489 | $(TOP)\src\test_osinst.c \ |
| 1490 | $(TOP)\src\test_pcache.c \ |
| 1491 | $(TOP)\src\test_quota.c \ |
| 1492 | $(TOP)\src\test_rtree.c \ |
| 1493 | $(TOP)\src\test_schema.c \ |
| 1494 | $(TOP)\src\test_server.c \ |
| 1495 | $(TOP)\src\test_superlock.c \ |
| 1496 | $(TOP)\src\test_syscall.c \ |
drh | c318f73 | 2017-10-13 15:06:06 +0000 | [diff] [blame] | 1497 | $(TOP)\src\test_tclsh.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1498 | $(TOP)\src\test_tclvar.c \ |
| 1499 | $(TOP)\src\test_thread.c \ |
| 1500 | $(TOP)\src\test_vfs.c \ |
mistachkin | 92af1eb | 2015-11-30 23:29:07 +0000 | [diff] [blame] | 1501 | $(TOP)\src\test_windirent.c \ |
dan | 660af93 | 2018-06-18 16:55:22 +0000 | [diff] [blame] | 1502 | $(TOP)\src\test_window.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1503 | $(TOP)\src\test_wsd.c \ |
| 1504 | $(TOP)\ext\fts3\fts3_term.c \ |
mistachkin | adb96a6 | 2012-01-16 12:33:36 +0000 | [diff] [blame] | 1505 | $(TOP)\ext\fts3\fts3_test.c \ |
mistachkin | 0500478 | 2016-03-30 16:23:06 +0000 | [diff] [blame] | 1506 | $(TOP)\ext\rbu\test_rbu.c \ |
| 1507 | $(TOP)\ext\session\test_session.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1508 | |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1509 | # Statically linked extensions. |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 1510 | # |
drh | 1fb64af | 2013-04-25 14:36:28 +0000 | [diff] [blame] | 1511 | TESTEXT = \ |
drh | bd0f1db | 2017-05-03 12:50:46 +0000 | [diff] [blame] | 1512 | $(TOP)\ext\expert\sqlite3expert.c \ |
| 1513 | $(TOP)\ext\expert\test_expert.c \ |
drh | 8416fc7 | 2013-04-25 16:42:55 +0000 | [diff] [blame] | 1514 | $(TOP)\ext\misc\amatch.c \ |
drh | 2e3f87a | 2016-07-03 02:35:47 +0000 | [diff] [blame] | 1515 | $(TOP)\ext\misc\carray.c \ |
drh | 8416fc7 | 2013-04-25 16:42:55 +0000 | [diff] [blame] | 1516 | $(TOP)\ext\misc\closure.c \ |
drh | 35db31b | 2016-06-02 23:13:21 +0000 | [diff] [blame] | 1517 | $(TOP)\ext\misc\csv.c \ |
drh | 1728bcb | 2014-11-10 16:49:56 +0000 | [diff] [blame] | 1518 | $(TOP)\ext\misc\eval.c \ |
drh | 9b84f03 | 2018-09-16 16:18:01 +0000 | [diff] [blame] | 1519 | $(TOP)\ext\misc\explain.c \ |
drh | 51ed298 | 2014-06-16 12:44:32 +0000 | [diff] [blame] | 1520 | $(TOP)\ext\misc\fileio.c \ |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 1521 | $(TOP)\ext\misc\fuzzer.c \ |
mistachkin | ed52f9f | 2015-06-26 04:34:36 +0000 | [diff] [blame] | 1522 | $(TOP)\ext\fts5\fts5_tcl.c \ |
dan | d3789c0 | 2015-08-04 20:29:00 +0000 | [diff] [blame] | 1523 | $(TOP)\ext\fts5\fts5_test_mi.c \ |
dan | 2cfe049 | 2016-01-14 20:05:59 +0000 | [diff] [blame] | 1524 | $(TOP)\ext\fts5\fts5_test_tok.c \ |
drh | 8416fc7 | 2013-04-25 16:42:55 +0000 | [diff] [blame] | 1525 | $(TOP)\ext\misc\ieee754.c \ |
drh | 262d551 | 2017-09-18 18:08:54 +0000 | [diff] [blame] | 1526 | $(TOP)\ext\misc\mmapwarm.c \ |
drh | ea41dc4 | 2013-04-25 19:31:33 +0000 | [diff] [blame] | 1527 | $(TOP)\ext\misc\nextchar.c \ |
drh | 91694db | 2018-01-08 20:04:57 +0000 | [diff] [blame] | 1528 | $(TOP)\ext\misc\normalize.c \ |
drh | def3367 | 2013-05-28 20:25:54 +0000 | [diff] [blame] | 1529 | $(TOP)\ext\misc\percentile.c \ |
dan | 9c039d9 | 2019-01-14 20:44:00 +0000 | [diff] [blame] | 1530 | $(TOP)\ext\misc\prefixes.c \ |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 1531 | $(TOP)\ext\misc\regexp.c \ |
drh | 6bada27 | 2016-08-09 21:08:42 +0000 | [diff] [blame] | 1532 | $(TOP)\ext\misc\remember.c \ |
drh | 398f872 | 2015-08-19 13:54:20 +0000 | [diff] [blame] | 1533 | $(TOP)\ext\misc\series.c \ |
drh | b7045ab | 2013-04-25 14:59:01 +0000 | [diff] [blame] | 1534 | $(TOP)\ext\misc\spellfix.c \ |
drh | 5f8cdac | 2013-10-14 21:14:42 +0000 | [diff] [blame] | 1535 | $(TOP)\ext\misc\totype.c \ |
drh | 3935ce8 | 2017-07-18 20:28:34 +0000 | [diff] [blame] | 1536 | $(TOP)\ext\misc\unionvtab.c \ |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 1537 | $(TOP)\ext\misc\wholenumber.c |
| 1538 | |
mistachkin | 590522c | 2018-01-05 16:05:51 +0000 | [diff] [blame] | 1539 | # If use of zlib is enabled, add the "zipfile.c" source file. |
| 1540 | # |
| 1541 | !IF $(USE_ZLIB)!=0 |
| 1542 | TESTEXT = $(TESTEXT) $(TOP)\ext\misc\zipfile.c |
| 1543 | !ENDIF |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 1544 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1545 | # Source code to the library files needed by the test fixture |
mistachkin | adb96a6 | 2012-01-16 12:33:36 +0000 | [diff] [blame] | 1546 | # (non-amalgamation) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1547 | # |
| 1548 | TESTSRC2 = \ |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 1549 | $(SRC00) \ |
| 1550 | $(SRC01) \ |
| 1551 | $(SRC06) \ |
| 1552 | $(SRC07) \ |
| 1553 | $(SRC10) \ |
mistachkin | 0500478 | 2016-03-30 16:23:06 +0000 | [diff] [blame] | 1554 | $(TOP)\ext\async\sqlite3async.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1555 | |
| 1556 | # Header files used by all library source files. |
| 1557 | # |
| 1558 | HDR = \ |
| 1559 | $(TOP)\src\btree.h \ |
| 1560 | $(TOP)\src\btreeInt.h \ |
| 1561 | $(TOP)\src\hash.h \ |
| 1562 | $(TOP)\src\hwtime.h \ |
| 1563 | keywordhash.h \ |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 1564 | $(TOP)\src\msvc.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1565 | $(TOP)\src\mutex.h \ |
| 1566 | opcodes.h \ |
| 1567 | $(TOP)\src\os.h \ |
| 1568 | $(TOP)\src\os_common.h \ |
mistachkin | f74b9e0 | 2013-11-26 01:00:31 +0000 | [diff] [blame] | 1569 | $(TOP)\src\os_setup.h \ |
mistachkin | 8bc5262 | 2013-11-25 09:36:07 +0000 | [diff] [blame] | 1570 | $(TOP)\src\os_win.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1571 | $(TOP)\src\pager.h \ |
| 1572 | $(TOP)\src\pcache.h \ |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1573 | parse.h \ |
drh | 67e65e5 | 2015-02-02 21:34:54 +0000 | [diff] [blame] | 1574 | $(TOP)\src\pragma.h \ |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 1575 | $(SQLITE3H) \ |
mistachkin | e37f739 | 2016-07-28 19:28:35 +0000 | [diff] [blame] | 1576 | sqlite3ext.h \ |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1577 | $(TOP)\src\sqliteInt.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1578 | $(TOP)\src\sqliteLimit.h \ |
| 1579 | $(TOP)\src\vdbe.h \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 1580 | $(TOP)\src\vdbeInt.h \ |
drh | 8cd5b25 | 2015-03-02 22:06:43 +0000 | [diff] [blame] | 1581 | $(TOP)\src\vxworks.h \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 1582 | $(TOP)\src\whereInt.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1583 | |
| 1584 | # Header files used by extensions |
| 1585 | # |
| 1586 | EXTHDR = $(EXTHDR) \ |
| 1587 | $(TOP)\ext\fts1\fts1.h \ |
| 1588 | $(TOP)\ext\fts1\fts1_hash.h \ |
| 1589 | $(TOP)\ext\fts1\fts1_tokenizer.h |
| 1590 | EXTHDR = $(EXTHDR) \ |
| 1591 | $(TOP)\ext\fts2\fts2.h \ |
| 1592 | $(TOP)\ext\fts2\fts2_hash.h \ |
| 1593 | $(TOP)\ext\fts2\fts2_tokenizer.h |
| 1594 | EXTHDR = $(EXTHDR) \ |
| 1595 | $(TOP)\ext\fts3\fts3.h \ |
| 1596 | $(TOP)\ext\fts3\fts3Int.h \ |
| 1597 | $(TOP)\ext\fts3\fts3_hash.h \ |
| 1598 | $(TOP)\ext\fts3\fts3_tokenizer.h |
| 1599 | EXTHDR = $(EXTHDR) \ |
drh | 748b8fd | 2018-05-25 19:22:47 +0000 | [diff] [blame] | 1600 | $(TOP)\ext\rtree\rtree.h \ |
| 1601 | $(TOP)\ext\rtree\geopoly.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1602 | EXTHDR = $(EXTHDR) \ |
| 1603 | $(TOP)\ext\icu\sqliteicu.h |
| 1604 | EXTHDR = $(EXTHDR) \ |
| 1605 | $(TOP)\ext\rtree\sqlite3rtree.h |
mistachkin | adb96a6 | 2012-01-16 12:33:36 +0000 | [diff] [blame] | 1606 | EXTHDR = $(EXTHDR) \ |
| 1607 | $(TOP)\ext\session\sqlite3session.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1608 | |
mistachkin | d4ab103 | 2015-05-11 16:27:33 +0000 | [diff] [blame] | 1609 | # executables needed for testing |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 1610 | # |
| 1611 | TESTPROGS = \ |
| 1612 | testfixture.exe \ |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 1613 | $(SQLITE3EXE) \ |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 1614 | sqlite3_analyzer.exe \ |
drh | 2737fa0 | 2017-10-31 15:49:19 +0000 | [diff] [blame] | 1615 | sqlite3_checker.exe \ |
drh | 290fcaa | 2016-06-08 01:03:05 +0000 | [diff] [blame] | 1616 | sqldiff.exe \ |
drh | 9dea173 | 2018-01-06 04:34:05 +0000 | [diff] [blame] | 1617 | dbhash.exe \ |
| 1618 | sqltclsh.exe |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 1619 | |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 1620 | # Databases containing fuzzer test cases |
| 1621 | # |
| 1622 | FUZZDATA = \ |
| 1623 | $(TOP)\test\fuzzdata1.db \ |
| 1624 | $(TOP)\test\fuzzdata2.db \ |
drh | 64ff56f | 2015-09-23 11:59:50 +0000 | [diff] [blame] | 1625 | $(TOP)\test\fuzzdata3.db \ |
drh | 362b66f | 2016-11-14 18:27:41 +0000 | [diff] [blame] | 1626 | $(TOP)\test\fuzzdata4.db \ |
drh | 5ecf903 | 2018-05-08 12:49:53 +0000 | [diff] [blame] | 1627 | $(TOP)\test\fuzzdata5.db \ |
drh | 05209e9 | 2018-10-31 01:12:06 +0000 | [diff] [blame] | 1628 | $(TOP)\test\fuzzdata6.db \ |
drh | a47e709 | 2019-01-25 04:00:14 +0000 | [diff] [blame] | 1629 | $(TOP)\test\fuzzdata7.db \ |
| 1630 | $(TOP)\test\fuzzdata8.db |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1631 | # <</mark>> |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 1632 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 1633 | # Additional compiler options for the shell. These are only effective |
| 1634 | # when the shell is not being dynamically linked. |
drh | d7f2bea | 2015-09-19 14:32:51 +0000 | [diff] [blame] | 1635 | # |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 1636 | !IF $(DYNAMIC_SHELL)==0 && $(FOR_WIN10)==0 |
mistachkin | 90d6f48 | 2018-09-12 00:48:17 +0000 | [diff] [blame] | 1637 | SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_FTS4=1 |
| 1638 | SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_EXPLAIN_COMMENTS=1 |
| 1639 | SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_OFFSET_SQL_FUNC=1 |
drh | 60f34ae | 2018-10-30 13:19:49 +0000 | [diff] [blame] | 1640 | SHELL_COMPILE_OPTS = $(SHELL_COMPILE_OPTS) -DSQLITE_ENABLE_DESERIALIZE=1 |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 1641 | !ENDIF |
| 1642 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1643 | # <<mark>> |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 1644 | # Extra compiler options for various test tools. |
| 1645 | # |
mistachkin | 690e885 | 2017-10-11 17:50:22 +0000 | [diff] [blame] | 1646 | MPTESTER_COMPILE_OPTS = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS5 |
mistachkin | 8381be4 | 2015-10-09 14:23:56 +0000 | [diff] [blame] | 1647 | FUZZERSHELL_COMPILE_OPTS = -DSQLITE_ENABLE_JSON1 |
drh | a47e709 | 2019-01-25 04:00:14 +0000 | [diff] [blame] | 1648 | FUZZCHECK_OPTS = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_OSS_FUZZ -DSQLITE_MAX_MEMORY=50000000 -DSQLITE_PRINTF_PRECISION_LIMIT=1000 |
| 1649 | FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_DESERIALIZE |
| 1650 | FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_FTS4 |
| 1651 | FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_RTREE |
| 1652 | FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_GEOPOLY |
| 1653 | FUZZCHECK_OPTS = $(FUZZCHECK_OPTS) -DSQLITE_ENABLE_DBSTAT_VTAB |
| 1654 | |
drh | 362b66f | 2016-11-14 18:27:41 +0000 | [diff] [blame] | 1655 | FUZZCHECK_SRC = $(TOP)\test\fuzzcheck.c $(TOP)\test\ossfuzz.c |
| 1656 | OSSSHELL_SRC = $(TOP)\test\ossshell.c $(TOP)\test\ossfuzz.c |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 1657 | DBFUZZ_COMPILE_OPTS = -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION |
| 1658 | KV_COMPILE_OPTS = -DSQLITE_THREADSAFE=0 -DSQLITE_DIRECT_OVERFLOW_READ |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 1659 | ST_COMPILE_OPTS = -DSQLITE_THREADSAFE=0 |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 1660 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 1661 | # Standard options to testfixture. |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 1662 | # |
| 1663 | TESTOPTS = --verbose=file --output=test-out.txt |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 1664 | |
mistachkin | d5be6f0 | 2016-01-27 07:28:33 +0000 | [diff] [blame] | 1665 | # Extra targets for the "all" target that require Tcl. |
| 1666 | # |
| 1667 | !IF $(NO_TCL)==0 |
| 1668 | ALL_TCL_TARGETS = libtclsqlite3.lib |
| 1669 | !ELSE |
| 1670 | ALL_TCL_TARGETS = |
| 1671 | !ENDIF |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1672 | # <</mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1673 | |
| 1674 | # This is the default Makefile target. The objects listed here |
| 1675 | # are what get build when you type just "make" with no arguments. |
| 1676 | # |
mistachkin | af23899 | 2018-01-05 17:40:38 +0000 | [diff] [blame] | 1677 | core: dll libsqlite3.lib shell |
| 1678 | |
| 1679 | # Targets that require the Tcl library. |
| 1680 | # |
| 1681 | tcl: $(ALL_TCL_TARGETS) |
| 1682 | |
| 1683 | # This Makefile target builds all of the standard binaries. |
| 1684 | # |
| 1685 | all: core tcl |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1686 | |
mistachkin | a8a1873 | 2016-01-22 22:16:50 +0000 | [diff] [blame] | 1687 | # Dynamic link library section. |
| 1688 | # |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 1689 | dll: $(SQLITE3DLL) |
mistachkin | a8a1873 | 2016-01-22 22:16:50 +0000 | [diff] [blame] | 1690 | |
| 1691 | # Shell executable. |
| 1692 | # |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 1693 | shell: $(SQLITE3EXE) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1694 | |
mistachkin | b0c99af | 2016-02-19 05:07:56 +0000 | [diff] [blame] | 1695 | # <<mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1696 | libsqlite3.lib: $(LIBOBJ) |
shaneh | 29ebea8 | 2011-06-21 18:12:07 +0000 | [diff] [blame] | 1697 | $(LTLIB) $(LTLIBOPTS) /OUT:$@ $(LIBOBJ) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1698 | |
| 1699 | libtclsqlite3.lib: tclsqlite.lo libsqlite3.lib |
mistachkin | 5b66350 | 2015-10-10 23:39:55 +0000 | [diff] [blame] | 1700 | $(LTLIB) $(LTLIBOPTS) $(LTLIBPATHS) /OUT:$@ tclsqlite.lo libsqlite3.lib $(LIBTCLSTUB) $(TLIBS) |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1701 | # <</mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1702 | |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 1703 | $(SQLITE3DLL): $(LIBOBJ) $(LIBRESOBJS) $(CORE_LINK_DEP) |
mistachkin | a8a1873 | 2016-01-22 22:16:50 +0000 | [diff] [blame] | 1704 | $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL $(CORE_LINK_OPTS) /OUT:$@ $(LIBOBJ) $(LIBRESOBJS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1705 | |
mistachkin | 9aeb971 | 2016-02-26 23:13:16 +0000 | [diff] [blame] | 1706 | # <<block2>> |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 1707 | sqlite3.def: libsqlite3.lib |
mistachkin | a8a1873 | 2016-01-22 22:16:50 +0000 | [diff] [blame] | 1708 | echo EXPORTS > sqlite3.def |
| 1709 | dumpbin /all libsqlite3.lib \ |
mistachkin | 8384e43 | 2018-04-10 18:56:21 +0000 | [diff] [blame] | 1710 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl include "^\s+1 _?(sqlite3(?:session|changeset|changegroup|rebaser)?_[^@]*)(?:@\d+)?$$" \1 \ |
mistachkin | a8a1873 | 2016-01-22 22:16:50 +0000 | [diff] [blame] | 1711 | | sort >> sqlite3.def |
mistachkin | 9aeb971 | 2016-02-26 23:13:16 +0000 | [diff] [blame] | 1712 | # <</block2>> |
drh | d62c0f4 | 2015-04-09 13:34:29 +0000 | [diff] [blame] | 1713 | |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 1714 | $(SQLITE3EXE): shell.c $(SHELL_CORE_DEP) $(LIBRESOBJS) $(SHELL_CORE_SRC) $(SQLITE3H) |
| 1715 | $(LTLINK) $(SHELL_COMPILE_OPTS) $(READLINE_FLAGS) shell.c $(SHELL_CORE_SRC) \ |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 1716 | /link $(SQLITE3EXEPDB) $(LDFLAGS) $(LTLINKOPTS) $(SHELL_LINK_OPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LIBREADLINE) $(LTLIBS) $(TLIBS) |
drh | 268e72f | 2015-04-17 14:30:49 +0000 | [diff] [blame] | 1717 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1718 | # <<mark>> |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 1719 | sqldiff.exe: $(TOP)\tool\sqldiff.c $(SQLITE3C) $(SQLITE3H) |
| 1720 | $(LTLINK) $(NO_WARN) $(TOP)\tool\sqldiff.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1721 | |
drh | 290fcaa | 2016-06-08 01:03:05 +0000 | [diff] [blame] | 1722 | dbhash.exe: $(TOP)\tool\dbhash.c $(SQLITE3C) $(SQLITE3H) |
| 1723 | $(LTLINK) $(NO_WARN) $(TOP)\tool\dbhash.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
| 1724 | |
drh | da110bf | 2016-05-05 17:15:23 +0000 | [diff] [blame] | 1725 | scrub.exe: $(TOP)\ext\misc\scrub.c $(SQLITE3C) $(SQLITE3H) |
mistachkin | ac8ba26 | 2018-03-07 14:42:17 +0000 | [diff] [blame] | 1726 | $(LTLINK) $(NO_WARN) -DSCRUB_STANDALONE=1 $(TOP)\ext\misc\scrub.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | da110bf | 2016-05-05 17:15:23 +0000 | [diff] [blame] | 1727 | |
drh | fd0d93f | 2016-02-07 00:08:08 +0000 | [diff] [blame] | 1728 | srcck1.exe: $(TOP)\tool\srcck1.c |
| 1729 | $(BCC) $(NO_WARN) -Fe$@ $(TOP)\tool\srcck1.c |
| 1730 | |
mistachkin | 1f237e3 | 2018-07-27 20:45:28 +0000 | [diff] [blame] | 1731 | sourcetest: srcck1.exe $(SQLITE3C) |
| 1732 | srcck1.exe $(SQLITE3C) |
drh | fd0d93f | 2016-02-07 00:08:08 +0000 | [diff] [blame] | 1733 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 1734 | fuzzershell.exe: $(TOP)\tool\fuzzershell.c $(SQLITE3C) $(SQLITE3H) |
| 1735 | $(LTLINK) $(NO_WARN) $(FUZZERSHELL_COMPILE_OPTS) $(TOP)\tool\fuzzershell.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | bc94dbb | 2013-04-08 14:28:33 +0000 | [diff] [blame] | 1736 | |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 1737 | dbfuzz.exe: $(TOP)\test\dbfuzz.c $(SQLITE3C) $(SQLITE3H) |
| 1738 | $(LTLINK) $(NO_WARN) $(DBFUZZ_COMPILE_OPTS) $(TOP)\test\dbfuzz.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
| 1739 | |
drh | 362b66f | 2016-11-14 18:27:41 +0000 | [diff] [blame] | 1740 | fuzzcheck.exe: $(FUZZCHECK_SRC) $(SQLITE3C) $(SQLITE3H) |
drh | a47e709 | 2019-01-25 04:00:14 +0000 | [diff] [blame] | 1741 | $(LTLINK) $(NO_WARN) $(FUZZCHECK_OPTS) $(FUZZCHECK_SRC) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | 362b66f | 2016-11-14 18:27:41 +0000 | [diff] [blame] | 1742 | |
| 1743 | ossshell.exe: $(OSSSHELL_SRC) $(SQLITE3C) $(SQLITE3H) |
drh | a47e709 | 2019-01-25 04:00:14 +0000 | [diff] [blame] | 1744 | $(LTLINK) $(NO_WARN) $(FUZZCHECK_OPTS) $(OSSSHELL_SRC) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | 1573dc3 | 2015-05-25 22:29:26 +0000 | [diff] [blame] | 1745 | |
mistachkin | 98cb7a4 | 2018-03-07 21:13:49 +0000 | [diff] [blame] | 1746 | sessionfuzz.exe: zlib $(TOP)\test\sessionfuzz.c $(SQLITE3C) $(SQLITE3H) |
| 1747 | $(LTLINK) $(NO_WARN) -I$(ZLIBINCDIR) $(TOP)\test\sessionfuzz.c /link $(LDFLAGS) $(LTLINKOPTS) /LIBPATH:$(ZLIBLIBDIR) $(ZLIBLIB) |
| 1748 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 1749 | mptester.exe: $(TOP)\mptest\mptest.c $(SQLITE3C) $(SQLITE3H) |
| 1750 | $(LTLINK) $(NO_WARN) $(MPTESTER_COMPILE_OPTS) $(TOP)\mptest\mptest.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | bc94dbb | 2013-04-08 14:28:33 +0000 | [diff] [blame] | 1751 | |
mistachkin | eb48b06 | 2015-03-31 17:45:44 +0000 | [diff] [blame] | 1752 | MPTEST1 = mptester mptest.db $(TOP)\mptest\crash01.test --repeat 20 |
| 1753 | MPTEST2 = mptester mptest.db $(TOP)\mptest\multiwrite01.test --repeat 20 |
mistachkin | 4d2daba | 2015-03-31 16:42:16 +0000 | [diff] [blame] | 1754 | |
drh | fe0ba71 | 2015-03-31 13:46:13 +0000 | [diff] [blame] | 1755 | mptest: mptester.exe |
mistachkin | 4d2daba | 2015-03-31 16:42:16 +0000 | [diff] [blame] | 1756 | del /Q mptest.db 2>NUL |
drh | fe0ba71 | 2015-03-31 13:46:13 +0000 | [diff] [blame] | 1757 | $(MPTEST1) --journalmode DELETE |
| 1758 | $(MPTEST2) --journalmode WAL |
| 1759 | $(MPTEST1) --journalmode WAL |
| 1760 | $(MPTEST2) --journalmode PERSIST |
| 1761 | $(MPTEST1) --journalmode PERSIST |
| 1762 | $(MPTEST2) --journalmode TRUNCATE |
| 1763 | $(MPTEST1) --journalmode TRUNCATE |
| 1764 | $(MPTEST2) --journalmode DELETE |
| 1765 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1766 | # This target creates a directory named "tsrc" and fills it with |
| 1767 | # copies of all of the C source code and header files needed to |
| 1768 | # build on the target system. Some of the C source code and header |
| 1769 | # files are automatically generated. This target takes care of |
| 1770 | # all that automatic generation. |
| 1771 | # |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 1772 | .target_source: $(SRC) $(TOP)\tool\vdbe-compress.tcl fts5.c $(SQLITE_TCL_DEP) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1773 | -rmdir /Q/S tsrc 2>NUL |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1774 | -mkdir tsrc |
mistachkin | e2eb259 | 2016-02-11 21:38:05 +0000 | [diff] [blame] | 1775 | for %i in ($(SRC00)) do copy /Y %i tsrc |
| 1776 | for %i in ($(SRC01)) do copy /Y %i tsrc |
mistachkin | e2eb259 | 2016-02-11 21:38:05 +0000 | [diff] [blame] | 1777 | for %i in ($(SRC03)) do copy /Y %i tsrc |
| 1778 | for %i in ($(SRC04)) do copy /Y %i tsrc |
| 1779 | for %i in ($(SRC05)) do copy /Y %i tsrc |
| 1780 | for %i in ($(SRC06)) do copy /Y %i tsrc |
| 1781 | for %i in ($(SRC07)) do copy /Y %i tsrc |
| 1782 | for %i in ($(SRC08)) do copy /Y %i tsrc |
| 1783 | for %i in ($(SRC09)) do copy /Y %i tsrc |
| 1784 | for %i in ($(SRC10)) do copy /Y %i tsrc |
| 1785 | for %i in ($(SRC11)) do copy /Y %i tsrc |
mistachkin | 52b1dbb | 2016-07-28 14:37:04 +0000 | [diff] [blame] | 1786 | for %i in ($(SRC12)) do copy /Y %i tsrc |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 1787 | copy /Y fts5.c tsrc |
| 1788 | copy /Y fts5.h tsrc |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1789 | del /Q tsrc\sqlite.h.in tsrc\parse.y 2>NUL |
drh | 2dc0648 | 2013-12-11 00:59:10 +0000 | [diff] [blame] | 1790 | $(TCLSH_CMD) $(TOP)\tool\vdbe-compress.tcl $(OPTS) < tsrc\vdbe.c > vdbe.new |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1791 | move vdbe.new tsrc\vdbe.c |
| 1792 | echo > .target_source |
| 1793 | |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 1794 | sqlite3.c: .target_source sqlite3ext.h $(MKSQLITE3C_TOOL) |
| 1795 | $(TCLSH_CMD) $(MKSQLITE3C_TOOL) $(MKSQLITE3C_ARGS) |
drh | e191e2c | 2013-03-19 15:23:18 +0000 | [diff] [blame] | 1796 | copy $(TOP)\ext\session\sqlite3session.h . |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1797 | |
mistachkin | 48dd9de | 2012-12-06 04:33:13 +0000 | [diff] [blame] | 1798 | sqlite3-all.c: sqlite3.c $(TOP)\tool\split-sqlite3c.tcl |
| 1799 | $(TCLSH_CMD) $(TOP)\tool\split-sqlite3c.tcl |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1800 | # <</mark>> |
mistachkin | 7651091 | 2013-10-11 23:01:18 +0000 | [diff] [blame] | 1801 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1802 | # Rule to build the amalgamation |
| 1803 | # |
mistachkin | 7651091 | 2013-10-11 23:01:18 +0000 | [diff] [blame] | 1804 | sqlite3.lo: $(SQLITE3C) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1805 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(SQLITE3C) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1806 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1807 | # <<mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1808 | # Rules to build the LEMON compiler generator |
| 1809 | # |
drh | 82415f2 | 2015-11-09 19:33:42 +0000 | [diff] [blame] | 1810 | lempar.c: $(TOP)\tool\lempar.c |
| 1811 | copy $(TOP)\tool\lempar.c . |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1812 | |
| 1813 | lemon.exe: $(TOP)\tool\lemon.c lempar.c |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 1814 | $(BCC) $(NO_WARN) -Daccess=_access \ |
mistachkin | 460cd9c | 2015-10-14 22:46:37 +0000 | [diff] [blame] | 1815 | -Fe$@ $(TOP)\tool\lemon.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1816 | |
drh | f39e0ed | 2017-08-22 19:19:00 +0000 | [diff] [blame] | 1817 | # <<mark>> |
| 1818 | # Rules to build the source-id generator tool |
| 1819 | # |
| 1820 | mksourceid.exe: $(TOP)\tool\mksourceid.c |
| 1821 | $(BCC) $(NO_WARN) -Fe$@ $(TOP)\tool\mksourceid.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS) |
| 1822 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1823 | # Rules to build individual *.lo files from generated *.c files. This |
| 1824 | # applies to: |
| 1825 | # |
| 1826 | # parse.lo |
| 1827 | # opcodes.lo |
| 1828 | # |
| 1829 | parse.lo: parse.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1830 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c parse.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1831 | |
| 1832 | opcodes.lo: opcodes.c |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1833 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c opcodes.c |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1834 | # <</mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1835 | |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1836 | # Rule to build the Win32 resources object file. |
| 1837 | # |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1838 | !IF $(USE_RC)!=0 |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1839 | # <<block1>> |
mistachkin | a8a1873 | 2016-01-22 22:16:50 +0000 | [diff] [blame] | 1840 | $(LIBRESOBJS): $(TOP)\src\sqlite3.rc $(SQLITE3H) |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1841 | echo #ifndef SQLITE_RESOURCE_VERSION > sqlite3rc.h |
mistachkin | 8ccc6d4 | 2012-09-27 21:03:53 +0000 | [diff] [blame] | 1842 | for /F %%V in ('type "$(TOP)\VERSION"') do ( \ |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1843 | echo #define SQLITE_RESOURCE_VERSION %%V \ |
mistachkin | 946ef60 | 2015-10-10 01:55:57 +0000 | [diff] [blame] | 1844 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact . ^, >> sqlite3rc.h \ |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1845 | ) |
| 1846 | echo #endif >> sqlite3rc.h |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1847 | $(LTRCOMPILE) -fo $(LIBRESOBJS) $(TOP)\src\sqlite3.rc |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1848 | # <</block1>> |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1849 | !ENDIF |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1850 | |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 1851 | # <<mark>> |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1852 | # Rules to build individual *.lo files from files in the src directory. |
| 1853 | # |
| 1854 | alter.lo: $(TOP)\src\alter.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1855 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\alter.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1856 | |
| 1857 | analyze.lo: $(TOP)\src\analyze.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1858 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\analyze.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1859 | |
| 1860 | attach.lo: $(TOP)\src\attach.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1861 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\attach.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1862 | |
| 1863 | auth.lo: $(TOP)\src\auth.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1864 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\auth.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1865 | |
| 1866 | backup.lo: $(TOP)\src\backup.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1867 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\backup.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1868 | |
| 1869 | bitvec.lo: $(TOP)\src\bitvec.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1870 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\bitvec.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1871 | |
| 1872 | btmutex.lo: $(TOP)\src\btmutex.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1873 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btmutex.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1874 | |
| 1875 | btree.lo: $(TOP)\src\btree.c $(HDR) $(TOP)\src\pager.h |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1876 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btree.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1877 | |
| 1878 | build.lo: $(TOP)\src\build.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1879 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\build.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1880 | |
| 1881 | callback.lo: $(TOP)\src\callback.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1882 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\callback.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1883 | |
| 1884 | complete.lo: $(TOP)\src\complete.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1885 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\complete.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1886 | |
| 1887 | ctime.lo: $(TOP)\src\ctime.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1888 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\ctime.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1889 | |
| 1890 | date.lo: $(TOP)\src\date.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1891 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\date.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1892 | |
drh | a43c8c8 | 2017-10-11 13:48:11 +0000 | [diff] [blame] | 1893 | dbpage.lo: $(TOP)\src\dbpage.c $(HDR) |
| 1894 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\dbpage.c |
| 1895 | |
| 1896 | dbstat.lo: $(TOP)\src\dbstat.c $(HDR) |
drh | 1a4a680 | 2015-05-04 18:31:09 +0000 | [diff] [blame] | 1897 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\dbstat.c |
| 1898 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1899 | delete.lo: $(TOP)\src\delete.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1900 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\delete.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1901 | |
| 1902 | expr.lo: $(TOP)\src\expr.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1903 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\expr.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1904 | |
| 1905 | fault.lo: $(TOP)\src\fault.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1906 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fault.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1907 | |
| 1908 | fkey.lo: $(TOP)\src\fkey.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1909 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fkey.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1910 | |
| 1911 | func.lo: $(TOP)\src\func.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1912 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\func.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1913 | |
| 1914 | global.lo: $(TOP)\src\global.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1915 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\global.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1916 | |
| 1917 | hash.lo: $(TOP)\src\hash.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1918 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\hash.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1919 | |
| 1920 | insert.lo: $(TOP)\src\insert.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1921 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\insert.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1922 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1923 | legacy.lo: $(TOP)\src\legacy.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1924 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\legacy.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1925 | |
| 1926 | loadext.lo: $(TOP)\src\loadext.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1927 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\loadext.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1928 | |
| 1929 | main.lo: $(TOP)\src\main.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1930 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\main.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1931 | |
| 1932 | malloc.lo: $(TOP)\src\malloc.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1933 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\malloc.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1934 | |
| 1935 | mem0.lo: $(TOP)\src\mem0.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1936 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem0.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1937 | |
| 1938 | mem1.lo: $(TOP)\src\mem1.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1939 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem1.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1940 | |
| 1941 | mem2.lo: $(TOP)\src\mem2.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1942 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem2.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1943 | |
| 1944 | mem3.lo: $(TOP)\src\mem3.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1945 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem3.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1946 | |
| 1947 | mem5.lo: $(TOP)\src\mem5.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1948 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem5.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1949 | |
mistachkin | 7de2c3e | 2018-01-03 12:39:35 +0000 | [diff] [blame] | 1950 | memdb.lo: $(TOP)\src\memdb.c $(HDR) |
drh | ac442f4 | 2018-01-03 01:28:46 +0000 | [diff] [blame] | 1951 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\memdb.c |
| 1952 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1953 | memjournal.lo: $(TOP)\src\memjournal.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1954 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\memjournal.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1955 | |
| 1956 | mutex.lo: $(TOP)\src\mutex.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1957 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1958 | |
| 1959 | mutex_noop.lo: $(TOP)\src\mutex_noop.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1960 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_noop.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1961 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1962 | mutex_unix.lo: $(TOP)\src\mutex_unix.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1963 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_unix.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1964 | |
| 1965 | mutex_w32.lo: $(TOP)\src\mutex_w32.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1966 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_w32.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1967 | |
| 1968 | notify.lo: $(TOP)\src\notify.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1969 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\notify.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1970 | |
| 1971 | pager.lo: $(TOP)\src\pager.c $(HDR) $(TOP)\src\pager.h |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1972 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pager.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1973 | |
| 1974 | pcache.lo: $(TOP)\src\pcache.c $(HDR) $(TOP)\src\pcache.h |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1975 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1976 | |
| 1977 | pcache1.lo: $(TOP)\src\pcache1.c $(HDR) $(TOP)\src\pcache.h |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1978 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache1.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1979 | |
| 1980 | os.lo: $(TOP)\src\os.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1981 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1982 | |
| 1983 | os_unix.lo: $(TOP)\src\os_unix.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1984 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_unix.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1985 | |
| 1986 | os_win.lo: $(TOP)\src\os_win.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1987 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_win.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1988 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1989 | pragma.lo: $(TOP)\src\pragma.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1990 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pragma.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1991 | |
| 1992 | prepare.lo: $(TOP)\src\prepare.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1993 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\prepare.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1994 | |
| 1995 | printf.lo: $(TOP)\src\printf.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1996 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\printf.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1997 | |
| 1998 | random.lo: $(TOP)\src\random.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1999 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\random.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2000 | |
| 2001 | resolve.lo: $(TOP)\src\resolve.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2002 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\resolve.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2003 | |
| 2004 | rowset.lo: $(TOP)\src\rowset.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2005 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\rowset.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2006 | |
| 2007 | select.lo: $(TOP)\src\select.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2008 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\select.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2009 | |
| 2010 | status.lo: $(TOP)\src\status.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2011 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\status.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2012 | |
| 2013 | table.lo: $(TOP)\src\table.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2014 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\table.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2015 | |
drh | f51446a | 2012-07-21 19:40:42 +0000 | [diff] [blame] | 2016 | threads.lo: $(TOP)\src\threads.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2017 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\threads.c |
drh | f51446a | 2012-07-21 19:40:42 +0000 | [diff] [blame] | 2018 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2019 | tokenize.lo: $(TOP)\src\tokenize.c keywordhash.h $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2020 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\tokenize.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2021 | |
drh | 38b4149 | 2015-06-08 15:08:15 +0000 | [diff] [blame] | 2022 | treeview.lo: $(TOP)\src\treeview.c $(HDR) |
| 2023 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\treeview.c |
| 2024 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2025 | trigger.lo: $(TOP)\src\trigger.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2026 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\trigger.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2027 | |
| 2028 | update.lo: $(TOP)\src\update.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2029 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\update.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2030 | |
drh | fcfd756 | 2018-04-12 21:42:51 +0000 | [diff] [blame] | 2031 | upsert.lo: $(TOP)\src\upsert.c $(HDR) |
| 2032 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\upsert.c |
| 2033 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2034 | utf.lo: $(TOP)\src\utf.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2035 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\utf.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2036 | |
| 2037 | util.lo: $(TOP)\src\util.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2038 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\util.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2039 | |
| 2040 | vacuum.lo: $(TOP)\src\vacuum.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2041 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vacuum.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2042 | |
| 2043 | vdbe.lo: $(TOP)\src\vdbe.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2044 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbe.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2045 | |
| 2046 | vdbeapi.lo: $(TOP)\src\vdbeapi.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2047 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeapi.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2048 | |
| 2049 | vdbeaux.lo: $(TOP)\src\vdbeaux.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2050 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeaux.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2051 | |
| 2052 | vdbeblob.lo: $(TOP)\src\vdbeblob.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2053 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeblob.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2054 | |
| 2055 | vdbemem.lo: $(TOP)\src\vdbemem.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2056 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbemem.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2057 | |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 2058 | vdbesort.lo: $(TOP)\src\vdbesort.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2059 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbesort.c |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 2060 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2061 | vdbetrace.lo: $(TOP)\src\vdbetrace.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2062 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbetrace.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2063 | |
| 2064 | vtab.lo: $(TOP)\src\vtab.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2065 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vtab.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2066 | |
| 2067 | wal.lo: $(TOP)\src\wal.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2068 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\wal.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2069 | |
| 2070 | walker.lo: $(TOP)\src\walker.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2071 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\walker.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2072 | |
| 2073 | where.lo: $(TOP)\src\where.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2074 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\where.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2075 | |
drh | 6f82e85 | 2015-06-06 20:12:09 +0000 | [diff] [blame] | 2076 | wherecode.lo: $(TOP)\src\wherecode.c $(HDR) |
| 2077 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\wherecode.c |
| 2078 | |
drh | 6c1f4ef | 2015-06-08 14:23:15 +0000 | [diff] [blame] | 2079 | whereexpr.lo: $(TOP)\src\whereexpr.c $(HDR) |
| 2080 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\whereexpr.c |
| 2081 | |
dan | 980cf25 | 2018-06-10 07:42:35 +0000 | [diff] [blame] | 2082 | window.lo: $(TOP)\src\window.c $(HDR) |
| 2083 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\window.c |
| 2084 | |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 2085 | tclsqlite.lo: $(TOP)\src\tclsqlite.c $(HDR) $(SQLITE_TCL_DEP) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2086 | $(LTCOMPILE) $(NO_WARN) -DUSE_TCL_STUBS=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2087 | |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 2088 | tclsqlite-shell.lo: $(TOP)\src\tclsqlite.c $(HDR) $(SQLITE_TCL_DEP) |
drh | 96a206f | 2017-10-13 20:14:06 +0000 | [diff] [blame] | 2089 | $(LTCOMPILE) $(NO_WARN) -DTCLSH -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2090 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 2091 | tclsqlite3.exe: tclsqlite-shell.lo $(SQLITE3C) $(SQLITE3H) $(LIBRESOBJS) |
mistachkin | 590522c | 2018-01-05 16:05:51 +0000 | [diff] [blame] | 2092 | $(LTLINK) $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) /OUT:$@ tclsqlite-shell.lo $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2093 | |
| 2094 | # Rules to build opcodes.c and opcodes.h |
| 2095 | # |
drh | 7651e0a | 2015-10-07 12:11:36 +0000 | [diff] [blame] | 2096 | opcodes.c: opcodes.h $(TOP)\tool\mkopcodec.tcl |
| 2097 | $(TCLSH_CMD) $(TOP)\tool\mkopcodec.tcl opcodes.h > opcodes.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2098 | |
drh | b15393b | 2015-10-07 02:52:09 +0000 | [diff] [blame] | 2099 | opcodes.h: parse.h $(TOP)\src\vdbe.c $(TOP)\tool\mkopcodeh.tcl |
mistachkin | 946ef60 | 2015-10-10 01:55:57 +0000 | [diff] [blame] | 2100 | type parse.h $(TOP)\src\vdbe.c | $(TCLSH_CMD) $(TOP)\tool\mkopcodeh.tcl > opcodes.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2101 | |
| 2102 | # Rules to build parse.c and parse.h - the outputs of lemon. |
| 2103 | # |
| 2104 | parse.h: parse.c |
| 2105 | |
drh | 60a15a4 | 2015-10-07 12:21:14 +0000 | [diff] [blame] | 2106 | parse.c: $(TOP)\src\parse.y lemon.exe $(TOP)\tool\addopcodes.tcl |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2107 | del /Q parse.y parse.h parse.h.temp 2>NUL |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2108 | copy $(TOP)\src\parse.y . |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 2109 | .\lemon.exe $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) parse.y |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2110 | move parse.h parse.h.temp |
drh | 60a15a4 | 2015-10-07 12:21:14 +0000 | [diff] [blame] | 2111 | $(TCLSH_CMD) $(TOP)\tool\addopcodes.tcl parse.h.temp > parse.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2112 | |
drh | f39e0ed | 2017-08-22 19:19:00 +0000 | [diff] [blame] | 2113 | $(SQLITE3H): $(TOP)\src\sqlite.h.in $(TOP)\manifest mksourceid.exe $(TOP)\VERSION |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 2114 | $(TCLSH_CMD) $(TOP)\tool\mksqlite3h.tcl $(TOP:\=/) > $(SQLITE3H) $(MKSQLITE3H_ARGS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2115 | |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 2116 | sqlite3ext.h: .target_source |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 2117 | !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0 |
mistachkin | c0bebc1 | 2016-07-28 18:49:20 +0000 | [diff] [blame] | 2118 | type tsrc\sqlite3ext.h | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*\)" "(SQLITE_CALLBACK *)" \ |
| 2119 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*" "(SQLITE_APICALL *" > sqlite3ext.h |
mistachkin | e37f739 | 2016-07-28 19:28:35 +0000 | [diff] [blame] | 2120 | copy /Y sqlite3ext.h tsrc\sqlite3ext.h |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 2121 | !ELSE |
| 2122 | copy /Y tsrc\sqlite3ext.h sqlite3ext.h |
| 2123 | !ENDIF |
mistachkin | c978f2d | 2015-09-21 23:49:35 +0000 | [diff] [blame] | 2124 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2125 | mkkeywordhash.exe: $(TOP)\tool\mkkeywordhash.c |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 2126 | $(BCC) $(NO_WARN) -Fe$@ $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) \ |
mistachkin | 460cd9c | 2015-10-14 22:46:37 +0000 | [diff] [blame] | 2127 | $(TOP)\tool\mkkeywordhash.c /link $(LDFLAGS) $(NLTLINKOPTS) $(NLTLIBPATHS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2128 | |
| 2129 | keywordhash.h: $(TOP)\tool\mkkeywordhash.c mkkeywordhash.exe |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 2130 | .\mkkeywordhash.exe > keywordhash.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2131 | |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 2132 | # Source files that go into making shell.c |
| 2133 | SHELL_SRC = \ |
| 2134 | $(TOP)\src\shell.c.in \ |
mistachkin | 2d44d55 | 2018-03-16 23:53:47 +0000 | [diff] [blame] | 2135 | $(TOP)\ext\misc\appendvfs.c \ |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 2136 | $(TOP)\ext\misc\shathree.c \ |
| 2137 | $(TOP)\ext\misc\fileio.c \ |
mistachkin | dfdfd8c | 2018-01-04 22:46:08 +0000 | [diff] [blame] | 2138 | $(TOP)\ext\misc\completion.c \ |
mistachkin | dfdfd8c | 2018-01-04 22:46:08 +0000 | [diff] [blame] | 2139 | $(TOP)\ext\expert\sqlite3expert.c \ |
drh | c932033 | 2018-01-05 16:23:43 +0000 | [diff] [blame] | 2140 | $(TOP)\ext\expert\sqlite3expert.h \ |
drh | 50b910a | 2019-01-21 14:55:03 +0000 | [diff] [blame] | 2141 | $(TOP)\ext\misc\memtrace.c \ |
mistachkin | 5d7503a | 2018-01-05 17:12:13 +0000 | [diff] [blame] | 2142 | $(TOP)\src\test_windirent.c |
mistachkin | 590522c | 2018-01-05 16:05:51 +0000 | [diff] [blame] | 2143 | |
| 2144 | # If use of zlib is enabled, add the "zipfile.c" source file. |
| 2145 | # |
| 2146 | !IF $(USE_ZLIB)!=0 |
mistachkin | 5d7503a | 2018-01-05 17:12:13 +0000 | [diff] [blame] | 2147 | SHELL_SRC = $(SHELL_SRC) $(TOP)\ext\misc\sqlar.c |
mistachkin | 590522c | 2018-01-05 16:05:51 +0000 | [diff] [blame] | 2148 | SHELL_SRC = $(SHELL_SRC) $(TOP)\ext\misc\zipfile.c |
| 2149 | !ENDIF |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 2150 | |
mistachkin | 835cd43 | 2017-10-14 19:54:06 +0000 | [diff] [blame] | 2151 | shell.c: $(SHELL_SRC) $(TOP)\tool\mkshellc.tcl |
| 2152 | $(TCLSH_CMD) $(TOP)\tool\mkshellc.tcl > shell.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2153 | |
mistachkin | cb6acda | 2017-12-05 18:54:12 +0000 | [diff] [blame] | 2154 | zlib: |
mistachkin | 1152250 | 2018-01-05 01:00:17 +0000 | [diff] [blame] | 2155 | pushd $(ZLIBDIR) && $(MAKE) /f win32\Makefile.msc clean $(ZLIBLIB) && popd |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2156 | |
| 2157 | # Rules to build the extension objects. |
| 2158 | # |
| 2159 | icu.lo: $(TOP)\ext\icu\icu.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2160 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\icu\icu.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2161 | |
| 2162 | fts2.lo: $(TOP)\ext\fts2\fts2.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2163 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2164 | |
| 2165 | fts2_hash.lo: $(TOP)\ext\fts2\fts2_hash.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2166 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_hash.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2167 | |
| 2168 | fts2_icu.lo: $(TOP)\ext\fts2\fts2_icu.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2169 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_icu.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2170 | |
| 2171 | fts2_porter.lo: $(TOP)\ext\fts2\fts2_porter.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2172 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_porter.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2173 | |
| 2174 | fts2_tokenizer.lo: $(TOP)\ext\fts2\fts2_tokenizer.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2175 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2176 | |
| 2177 | fts2_tokenizer1.lo: $(TOP)\ext\fts2\fts2_tokenizer1.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2178 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer1.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2179 | |
| 2180 | fts3.lo: $(TOP)\ext\fts3\fts3.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2181 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2182 | |
| 2183 | fts3_aux.lo: $(TOP)\ext\fts3\fts3_aux.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2184 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_aux.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2185 | |
| 2186 | fts3_expr.lo: $(TOP)\ext\fts3\fts3_expr.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2187 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_expr.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2188 | |
| 2189 | fts3_hash.lo: $(TOP)\ext\fts3\fts3_hash.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2190 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_hash.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2191 | |
| 2192 | fts3_icu.lo: $(TOP)\ext\fts3\fts3_icu.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2193 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_icu.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2194 | |
| 2195 | fts3_snippet.lo: $(TOP)\ext\fts3\fts3_snippet.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2196 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_snippet.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2197 | |
| 2198 | fts3_porter.lo: $(TOP)\ext\fts3\fts3_porter.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2199 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_porter.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2200 | |
| 2201 | fts3_tokenizer.lo: $(TOP)\ext\fts3\fts3_tokenizer.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2202 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2203 | |
| 2204 | fts3_tokenizer1.lo: $(TOP)\ext\fts3\fts3_tokenizer1.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2205 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer1.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2206 | |
drh | 4d648c7 | 2013-04-22 17:07:56 +0000 | [diff] [blame] | 2207 | fts3_tokenize_vtab.lo: $(TOP)\ext\fts3\fts3_tokenize_vtab.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2208 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenize_vtab.c |
drh | 4d648c7 | 2013-04-22 17:07:56 +0000 | [diff] [blame] | 2209 | |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 2210 | fts3_unicode.lo: $(TOP)\ext\fts3\fts3_unicode.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2211 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode.c |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 2212 | |
| 2213 | fts3_unicode2.lo: $(TOP)\ext\fts3\fts3_unicode2.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2214 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode2.c |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 2215 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2216 | fts3_write.lo: $(TOP)\ext\fts3\fts3_write.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2217 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_write.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2218 | |
mistachkin | 90d6f48 | 2018-09-12 00:48:17 +0000 | [diff] [blame] | 2219 | json1.lo: $(TOP)\ext\misc\json1.c $(HDR) $(EXTHDR) |
| 2220 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\misc\json1.c |
| 2221 | |
| 2222 | stmt.lo: $(TOP)\ext\misc\stmt.c $(HDR) $(EXTHDR) |
| 2223 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\misc\stmt.c |
| 2224 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2225 | rtree.lo: $(TOP)\ext\rtree\rtree.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2226 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\rtree\rtree.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2227 | |
mistachkin | 4f2c822 | 2016-04-11 22:23:04 +0000 | [diff] [blame] | 2228 | sqlite3session.lo: $(TOP)\ext\session\sqlite3session.c $(HDR) $(EXTHDR) |
mistachkin | 0500478 | 2016-03-30 16:23:06 +0000 | [diff] [blame] | 2229 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c $(TOP)\ext\session\sqlite3session.c |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 2230 | |
mistachkin | ed52f9f | 2015-06-26 04:34:36 +0000 | [diff] [blame] | 2231 | # FTS5 things |
| 2232 | # |
| 2233 | FTS5_SRC = \ |
| 2234 | $(TOP)\ext\fts5\fts5.h \ |
| 2235 | $(TOP)\ext\fts5\fts5Int.h \ |
| 2236 | $(TOP)\ext\fts5\fts5_aux.c \ |
| 2237 | $(TOP)\ext\fts5\fts5_buffer.c \ |
| 2238 | $(TOP)\ext\fts5\fts5_main.c \ |
| 2239 | $(TOP)\ext\fts5\fts5_config.c \ |
| 2240 | $(TOP)\ext\fts5\fts5_expr.c \ |
| 2241 | $(TOP)\ext\fts5\fts5_hash.c \ |
| 2242 | $(TOP)\ext\fts5\fts5_index.c \ |
| 2243 | fts5parse.c fts5parse.h \ |
| 2244 | $(TOP)\ext\fts5\fts5_storage.c \ |
| 2245 | $(TOP)\ext\fts5\fts5_tokenize.c \ |
| 2246 | $(TOP)\ext\fts5\fts5_unicode2.c \ |
| 2247 | $(TOP)\ext\fts5\fts5_varint.c \ |
| 2248 | $(TOP)\ext\fts5\fts5_vocab.c |
| 2249 | |
mistachkin | 3384ccb | 2017-12-13 22:42:55 +0000 | [diff] [blame] | 2250 | LSM1_SRC = \ |
| 2251 | $(TOP)\ext\lsm1\lsm.h \ |
| 2252 | $(TOP)\ext\lsm1\lsmInt.h \ |
| 2253 | $(TOP)\ext\lsm1\lsm_ckpt.c \ |
| 2254 | $(TOP)\ext\lsm1\lsm_file.c \ |
| 2255 | $(TOP)\ext\lsm1\lsm_log.c \ |
| 2256 | $(TOP)\ext\lsm1\lsm_main.c \ |
| 2257 | $(TOP)\ext\lsm1\lsm_mem.c \ |
| 2258 | $(TOP)\ext\lsm1\lsm_mutex.c \ |
| 2259 | $(TOP)\ext\lsm1\lsm_shared.c \ |
| 2260 | $(TOP)\ext\lsm1\lsm_sorted.c \ |
| 2261 | $(TOP)\ext\lsm1\lsm_str.c \ |
| 2262 | $(TOP)\ext\lsm1\lsm_tree.c \ |
| 2263 | $(TOP)\ext\lsm1\lsm_unix.c \ |
| 2264 | $(TOP)\ext\lsm1\lsm_varint.c \ |
| 2265 | $(TOP)\ext\lsm1\lsm_vtab.c \ |
| 2266 | $(TOP)\ext\lsm1\lsm_win32.c |
| 2267 | |
mistachkin | ed52f9f | 2015-06-26 04:34:36 +0000 | [diff] [blame] | 2268 | fts5parse.c: $(TOP)\ext\fts5\fts5parse.y lemon.exe |
| 2269 | copy $(TOP)\ext\fts5\fts5parse.y . |
| 2270 | del /Q fts5parse.h 2>NUL |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 2271 | .\lemon.exe $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(EXT_FEATURE_FLAGS) $(OPTS) fts5parse.y |
mistachkin | ed52f9f | 2015-06-26 04:34:36 +0000 | [diff] [blame] | 2272 | |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 2273 | fts5parse.h: fts5parse.c |
mistachkin | ed52f9f | 2015-06-26 04:34:36 +0000 | [diff] [blame] | 2274 | |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 2275 | fts5.c: $(FTS5_SRC) |
mistachkin | ed52f9f | 2015-06-26 04:34:36 +0000 | [diff] [blame] | 2276 | $(TCLSH_CMD) $(TOP)\ext\fts5\tool\mkfts5c.tcl |
dan | a153bbc | 2015-07-02 20:12:34 +0000 | [diff] [blame] | 2277 | copy $(TOP)\ext\fts5\fts5.h . |
mistachkin | ed52f9f | 2015-06-26 04:34:36 +0000 | [diff] [blame] | 2278 | |
mistachkin | 3384ccb | 2017-12-13 22:42:55 +0000 | [diff] [blame] | 2279 | lsm1.c: $(LSM1_SRC) |
| 2280 | $(TCLSH_CMD) $(TOP)\ext\lsm1\tool\mklsm1c.tcl |
| 2281 | copy $(TOP)\ext\lsm1\lsm.h . |
| 2282 | |
mistachkin | ed52f9f | 2015-06-26 04:34:36 +0000 | [diff] [blame] | 2283 | fts5.lo: fts5.c $(HDR) $(EXTHDR) |
mistachkin | 95ae958 | 2015-06-26 20:45:43 +0000 | [diff] [blame] | 2284 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) $(NO_WARN) -DSQLITE_CORE -c fts5.c |
| 2285 | |
| 2286 | fts5_ext.lo: fts5.c $(HDR) $(EXTHDR) |
mistachkin | ae6ca8e | 2015-07-02 16:50:43 +0000 | [diff] [blame] | 2287 | $(LTCOMPILE) $(NO_WARN) -c fts5.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2288 | |
mistachkin | 95ae958 | 2015-06-26 20:45:43 +0000 | [diff] [blame] | 2289 | fts5.dll: fts5_ext.lo |
| 2290 | $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /OUT:$@ fts5_ext.lo |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2291 | |
mistachkin | 83a2253 | 2016-01-14 18:01:16 +0000 | [diff] [blame] | 2292 | sqlite3rbu.lo: $(TOP)\ext\rbu\sqlite3rbu.c $(HDR) $(EXTHDR) |
| 2293 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\rbu\sqlite3rbu.c |
drh | 7647377 | 2016-01-14 13:22:24 +0000 | [diff] [blame] | 2294 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2295 | # Rules to build the 'testfixture' application. |
| 2296 | # |
| 2297 | # If using the amalgamation, use sqlite3.c directly to build the test |
| 2298 | # fixture. Otherwise link against libsqlite3.lib. (This distinction is |
| 2299 | # necessary because the test fixture requires non-API symbols which are |
| 2300 | # hidden when the library is built via the amalgamation). |
| 2301 | # |
drh | 96a206f | 2017-10-13 20:14:06 +0000 | [diff] [blame] | 2302 | TESTFIXTURE_FLAGS = -DTCLSH_INIT_PROC=sqlite3TestInit -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 |
mistachkin | 27b2f05 | 2015-01-12 19:49:46 +0000 | [diff] [blame] | 2303 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" |
| 2304 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_CORE $(NO_WARN) |
drh | dbc4916 | 2016-03-02 03:28:07 +0000 | [diff] [blame] | 2305 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERIES_CONSTRAINT_VERIFY=1 |
drh | 9878fef | 2016-03-04 03:43:10 +0000 | [diff] [blame] | 2306 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_DEFAULT_PAGE_SIZE=1024 |
mistachkin | 90d6f48 | 2018-09-12 00:48:17 +0000 | [diff] [blame] | 2307 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_ENABLE_STMTVTAB=1 |
| 2308 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_ENABLE_DBPAGE_VTAB=1 |
| 2309 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_ENABLE_JSON1=1 |
drh | 1641f11 | 2018-12-13 21:05:45 +0000 | [diff] [blame] | 2310 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_ENABLE_DESERIALIZE=1 |
mistachkin | 69def7f | 2016-07-28 04:14:37 +0000 | [diff] [blame] | 2311 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) $(TEST_CCONV_OPTS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2312 | |
mistachkin | c04c54b | 2016-02-11 21:28:16 +0000 | [diff] [blame] | 2313 | TESTFIXTURE_SRC0 = $(TESTEXT) $(TESTSRC2) |
mistachkin | 0500478 | 2016-03-30 16:23:06 +0000 | [diff] [blame] | 2314 | TESTFIXTURE_SRC1 = $(TESTEXT) $(SQLITE3C) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2315 | !IF $(USE_AMALGAMATION)==0 |
| 2316 | TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC0) |
| 2317 | !ELSE |
| 2318 | TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC1) |
| 2319 | !ENDIF |
| 2320 | |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 2321 | !IF $(USE_STDCALL)!=0 || $(FOR_WIN10)!=0 |
mistachkin | 52b1dbb | 2016-07-28 14:37:04 +0000 | [diff] [blame] | 2322 | sqlite_tclDecls.h: |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 2323 | echo #ifndef SQLITE_TCLAPI > $(SQLITETCLDECLSH) |
| 2324 | echo # define SQLITE_TCLAPI >> $(SQLITETCLDECLSH) |
| 2325 | echo #endif >> $(SQLITETCLDECLSH) |
mistachkin | f27a80c | 2016-07-28 16:09:52 +0000 | [diff] [blame] | 2326 | type "$(TCLINCDIR)\tclDecls.h" \ |
mistachkin | a121cc7 | 2016-07-28 18:06:52 +0000 | [diff] [blame] | 2327 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "^(EXTERN(?: CONST\d+?)?\s+?[^\(]*?\s+?)Tcl_" "\1 SQLITE_TCLAPI Tcl_" \ |
mistachkin | f27a80c | 2016-07-28 16:09:52 +0000 | [diff] [blame] | 2328 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "^(EXTERN\s+?(?:void|VOID)\s+?)TclFreeObj" "\1 SQLITE_TCLAPI TclFreeObj" \ |
| 2329 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*tcl_" "(SQLITE_TCLAPI *tcl_" \ |
mistachkin | 7c60b26 | 2016-07-28 18:18:53 +0000 | [diff] [blame] | 2330 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*tclFreeObj" "(SQLITE_TCLAPI *tclFreeObj" \ |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 2331 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "\(\*" "(SQLITE_TCLAPI *" >> $(SQLITETCLDECLSH) |
mistachkin | 52b1dbb | 2016-07-28 14:37:04 +0000 | [diff] [blame] | 2332 | |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 2333 | sqlite_tcl.h: |
mistachkin | f27a80c | 2016-07-28 16:09:52 +0000 | [diff] [blame] | 2334 | type "$(TCLINCDIR)\tcl.h" | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact tclDecls.h sqlite_tclDecls.h \ |
| 2335 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl regsub "typedef (.*?)\(Tcl_" "typedef \1 (SQLITE_TCLAPI Tcl_" \ |
| 2336 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact "void (*freeProc)" "void (SQLITE_TCLAPI *freeProc)" \ |
| 2337 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact "Tcl_HashEntry *(*findProc)" "Tcl_HashEntry *(SQLITE_TCLAPI *findProc)" \ |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 2338 | | $(TCLSH_CMD) $(TOP)\tool\replace.tcl exact "Tcl_HashEntry *(*createProc)" "Tcl_HashEntry *(SQLITE_TCLAPI *createProc)" >> $(SQLITETCLH) |
| 2339 | !ENDIF |
mistachkin | 52b1dbb | 2016-07-28 14:37:04 +0000 | [diff] [blame] | 2340 | |
mistachkin | 5d7503a | 2018-01-05 17:12:13 +0000 | [diff] [blame] | 2341 | testfixture.exe: $(TESTFIXTURE_SRC) $(TESTFIXTURE_DEP) $(SQLITE3H) $(LIBRESOBJS) $(HDR) $(SQLITE_TCL_DEP) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 2342 | $(LTLINK) -DSQLITE_NO_SYNC=1 $(TESTFIXTURE_FLAGS) \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2343 | -DBUILD_sqlite -I$(TCLINCDIR) \ |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 2344 | $(TESTFIXTURE_SRC) \ |
mistachkin | 590522c | 2018-01-05 16:05:51 +0000 | [diff] [blame] | 2345 | /link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2346 | |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 2347 | extensiontest: testfixture.exe testloadext.dll |
mistachkin | 8873996 | 2015-10-14 23:04:08 +0000 | [diff] [blame] | 2348 | @set PATH=$(LIBTCLPATH);$(PATH) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 2349 | .\testfixture.exe $(TOP)\test\loadext.test $(TESTOPTS) |
mistachkin | 1925a2e | 2014-02-24 21:20:25 +0000 | [diff] [blame] | 2350 | |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 2351 | coretestprogs: $(TESTPROGS) |
| 2352 | |
| 2353 | testprogs: coretestprogs srcck1.exe fuzzcheck.exe sessionfuzz.exe |
| 2354 | |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 2355 | fulltest: $(TESTPROGS) fuzztest |
mistachkin | 8873996 | 2015-10-14 23:04:08 +0000 | [diff] [blame] | 2356 | @set PATH=$(LIBTCLPATH);$(PATH) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 2357 | .\testfixture.exe $(TOP)\test\all.test $(TESTOPTS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2358 | |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 2359 | soaktest: $(TESTPROGS) |
mistachkin | 8873996 | 2015-10-14 23:04:08 +0000 | [diff] [blame] | 2360 | @set PATH=$(LIBTCLPATH);$(PATH) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 2361 | .\testfixture.exe $(TOP)\test\all.test -soak=1 $(TESTOPTS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2362 | |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 2363 | fulltestonly: $(TESTPROGS) fuzztest |
mistachkin | 8873996 | 2015-10-14 23:04:08 +0000 | [diff] [blame] | 2364 | @set PATH=$(LIBTCLPATH);$(PATH) |
mistachkin | c60941f | 2012-09-13 01:51:02 +0000 | [diff] [blame] | 2365 | .\testfixture.exe $(TOP)\test\full.test |
| 2366 | |
mistachkin | edcb4eb | 2016-01-22 01:25:15 +0000 | [diff] [blame] | 2367 | queryplantest: testfixture.exe shell |
mistachkin | 8873996 | 2015-10-14 23:04:08 +0000 | [diff] [blame] | 2368 | @set PATH=$(LIBTCLPATH);$(PATH) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 2369 | .\testfixture.exe $(TOP)\test\permutations.test queryplanner $(TESTOPTS) |
mistachkin | 036acf3 | 2013-07-20 00:34:31 +0000 | [diff] [blame] | 2370 | |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 2371 | fuzztest: fuzzcheck.exe |
| 2372 | .\fuzzcheck.exe $(FUZZDATA) |
drh | f332071 | 2015-04-25 13:39:29 +0000 | [diff] [blame] | 2373 | |
drh | a523e31 | 2015-07-24 17:26:13 +0000 | [diff] [blame] | 2374 | fastfuzztest: fuzzcheck.exe |
drh | 53e66c3 | 2015-07-24 15:49:23 +0000 | [diff] [blame] | 2375 | .\fuzzcheck.exe --limit-mem 100M $(FUZZDATA) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2376 | |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 2377 | # Minimal testing that runs in less than 3 minutes (on a fast machine) |
| 2378 | # |
drh | fd0d93f | 2016-02-07 00:08:08 +0000 | [diff] [blame] | 2379 | quicktest: testfixture.exe sourcetest |
mistachkin | 8873996 | 2015-10-14 23:04:08 +0000 | [diff] [blame] | 2380 | @set PATH=$(LIBTCLPATH);$(PATH) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 2381 | .\testfixture.exe $(TOP)\test\extraquick.test $(TESTOPTS) |
| 2382 | |
| 2383 | # This is the common case. Run many tests that do not take too long, |
| 2384 | # including fuzzcheck, sqlite3_analyzer, and sqldiff tests. |
| 2385 | # |
drh | fd0d93f | 2016-02-07 00:08:08 +0000 | [diff] [blame] | 2386 | test: $(TESTPROGS) sourcetest fastfuzztest |
mistachkin | 8873996 | 2015-10-14 23:04:08 +0000 | [diff] [blame] | 2387 | @set PATH=$(LIBTCLPATH);$(PATH) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 2388 | .\testfixture.exe $(TOP)\test\veryquick.test $(TESTOPTS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2389 | |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 2390 | smoketest: $(TESTPROGS) |
mistachkin | 8873996 | 2015-10-14 23:04:08 +0000 | [diff] [blame] | 2391 | @set PATH=$(LIBTCLPATH);$(PATH) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 2392 | .\testfixture.exe $(TOP)\test\main.test $(TESTOPTS) |
mistachkin | 00eb70d | 2015-04-04 00:02:07 +0000 | [diff] [blame] | 2393 | |
drh | 903b230 | 2017-10-13 18:58:55 +0000 | [diff] [blame] | 2394 | sqlite3_analyzer.c: $(SQLITE3C) $(SQLITE3H) $(TOP)\src\tclsqlite.c $(TOP)\tool\spaceanal.tcl $(TOP)\tool\mkccode.tcl $(TOP)\tool\sqlite3_analyzer.c.in $(SQLITE_TCL_DEP) |
| 2395 | $(TCLSH_CMD) $(TOP)\tool\mkccode.tcl $(TOP)\tool\sqlite3_analyzer.c.in > $@ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2396 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 2397 | sqlite3_analyzer.exe: sqlite3_analyzer.c $(LIBRESOBJS) |
mistachkin | d4ab103 | 2015-05-11 16:27:33 +0000 | [diff] [blame] | 2398 | $(LTLINK) $(NO_WARN) -DBUILD_sqlite -I$(TCLINCDIR) sqlite3_analyzer.c \ |
mistachkin | 590522c | 2018-01-05 16:05:51 +0000 | [diff] [blame] | 2399 | /link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2400 | |
mistachkin | 5e6f782 | 2018-01-06 14:44:29 +0000 | [diff] [blame] | 2401 | sqltclsh.c: sqlite3.c $(TOP)\src\tclsqlite.c $(TOP)\tool\sqltclsh.tcl $(TOP)\ext\misc\appendvfs.c $(TOP)\tool\mkccode.tcl $(TOP)\tool\sqltclsh.c.in |
drh | 9dea173 | 2018-01-06 04:34:05 +0000 | [diff] [blame] | 2402 | $(TCLSH_CMD) $(TOP)\tool\mkccode.tcl $(TOP)\tool\sqltclsh.c.in >sqltclsh.c |
| 2403 | |
mistachkin | 98dfb2f | 2018-01-08 14:24:08 +0000 | [diff] [blame] | 2404 | sqltclsh.exe: sqltclsh.c $(SHELL_CORE_DEP) $(LIBRESOBJS) |
drh | 9dea173 | 2018-01-06 04:34:05 +0000 | [diff] [blame] | 2405 | $(LTLINK) $(NO_WARN) -DBUILD_sqlite -I$(TCLINCDIR) sqltclsh.c \ |
mistachkin | 0476b95 | 2018-01-06 14:43:33 +0000 | [diff] [blame] | 2406 | /link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 2407 | |
drh | bd0f1db | 2017-05-03 12:50:46 +0000 | [diff] [blame] | 2408 | sqlite3_expert.exe: $(SQLITE3C) $(TOP)\ext\expert\sqlite3expert.h $(TOP)\ext\expert\sqlite3expert.c $(TOP)\ext\expert\expert.c |
| 2409 | $(LTLINK) $(NO_WARN) $(TOP)\ext\expert\sqlite3expert.c $(TOP)\ext\expert\expert.c $(SQLITE3C) $(TLIBS) |
| 2410 | |
drh | 2737fa0 | 2017-10-31 15:49:19 +0000 | [diff] [blame] | 2411 | CHECKER_DEPS =\ |
| 2412 | $(TOP)/tool/mkccode.tcl \ |
| 2413 | sqlite3.c \ |
| 2414 | $(TOP)/src/tclsqlite.c \ |
| 2415 | $(TOP)/ext/repair/sqlite3_checker.tcl \ |
| 2416 | $(TOP)/ext/repair/checkindex.c \ |
drh | 927dd51 | 2017-10-31 18:09:40 +0000 | [diff] [blame] | 2417 | $(TOP)/ext/repair/checkfreelist.c \ |
drh | 2737fa0 | 2017-10-31 15:49:19 +0000 | [diff] [blame] | 2418 | $(TOP)/ext/misc/btreeinfo.c \ |
| 2419 | $(TOP)/ext/repair/sqlite3_checker.c.in |
| 2420 | |
| 2421 | sqlite3_checker.c: $(CHECKER_DEPS) |
drh | 2091f0f | 2017-10-31 15:55:48 +0000 | [diff] [blame] | 2422 | $(TCLSH_CMD) $(TOP)\tool\mkccode.tcl $(TOP)\ext\repair\sqlite3_checker.c.in > $@ |
drh | 2737fa0 | 2017-10-31 15:49:19 +0000 | [diff] [blame] | 2423 | |
| 2424 | sqlite3_checker.exe: sqlite3_checker.c $(LIBRESOBJS) |
| 2425 | $(LTLINK) $(NO_WARN) -DBUILD_sqlite -I$(TCLINCDIR) sqlite3_checker.c \ |
mistachkin | 370732a | 2018-01-05 19:25:52 +0000 | [diff] [blame] | 2426 | /link $(LDFLAGS) $(LTLINKOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) $(LIBRESOBJS) $(TCLLIBS) $(LTLIBS) $(TLIBS) |
drh | 2737fa0 | 2017-10-31 15:49:19 +0000 | [diff] [blame] | 2427 | |
mistachkin | ac8ba26 | 2018-03-07 14:42:17 +0000 | [diff] [blame] | 2428 | dbdump.exe: $(TOP)\ext\misc\dbdump.c $(SQLITE3C) $(SQLITE3H) $(LIBRESOBJS) |
mistachkin | 943d825 | 2017-03-14 15:27:56 +0000 | [diff] [blame] | 2429 | $(LTLINK) $(NO_WARN) -DDBDUMP_STANDALONE $(TOP)\ext\misc\dbdump.c $(SQLITE3C) \ |
| 2430 | /link $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS) |
drh | 4b34eb3 | 2017-03-13 22:02:01 +0000 | [diff] [blame] | 2431 | |
mistachkin | ac8ba26 | 2018-03-07 14:42:17 +0000 | [diff] [blame] | 2432 | testloadext.lo: $(TOP)\src\test_loadext.c $(SQLITE3H) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2433 | $(LTCOMPILE) $(NO_WARN) -c $(TOP)\src\test_loadext.c |
mistachkin | 1925a2e | 2014-02-24 21:20:25 +0000 | [diff] [blame] | 2434 | |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 2435 | testloadext.dll: testloadext.lo |
mistachkin | 1925a2e | 2014-02-24 21:20:25 +0000 | [diff] [blame] | 2436 | $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /OUT:$@ testloadext.lo |
| 2437 | |
drh | 3374648 | 2018-12-13 15:06:26 +0000 | [diff] [blame] | 2438 | dbtotxt.exe: $(TOP)\tool\dbtotxt.c |
| 2439 | $(LTLINK) $(NO_WARN) $(TOP)\tool\dbtotxt.c /link $(LDFLAGS) $(LTLINKOPTS) |
| 2440 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 2441 | showdb.exe: $(TOP)\tool\showdb.c $(SQLITE3C) $(SQLITE3H) |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2442 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
mistachkin | 78e3f61 | 2015-10-14 20:01:12 +0000 | [diff] [blame] | 2443 | $(TOP)\tool\showdb.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | 9ac3c1e | 2013-11-07 18:37:31 +0000 | [diff] [blame] | 2444 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 2445 | showstat4.exe: $(TOP)\tool\showstat4.c $(SQLITE3C) $(SQLITE3H) |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2446 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
mistachkin | 78e3f61 | 2015-10-14 20:01:12 +0000 | [diff] [blame] | 2447 | $(TOP)\tool\showstat4.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 2448 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 2449 | showjournal.exe: $(TOP)\tool\showjournal.c $(SQLITE3C) $(SQLITE3H) |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2450 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
mistachkin | 78e3f61 | 2015-10-14 20:01:12 +0000 | [diff] [blame] | 2451 | $(TOP)\tool\showjournal.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 2452 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 2453 | showwal.exe: $(TOP)\tool\showwal.c $(SQLITE3C) $(SQLITE3H) |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2454 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
mistachkin | 78e3f61 | 2015-10-14 20:01:12 +0000 | [diff] [blame] | 2455 | $(TOP)\tool\showwal.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 2456 | |
drh | 666fb69 | 2017-10-30 23:25:06 +0000 | [diff] [blame] | 2457 | showshm.exe: $(TOP)\tool\showshm.c |
| 2458 | $(LTLINK) $(NO_WARN) $(TOP)\tool\showshm.c /link $(LDFLAGS) $(LTLINKOPTS) |
| 2459 | |
drh | 731dd6e | 2018-12-04 16:51:42 +0000 | [diff] [blame] | 2460 | index_usage.exe: $(TOP)\tool\index_usage.c $(SQLITE3C) $(SQLITE3H) |
| 2461 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
| 2462 | $(TOP)\tool\index_usage.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
| 2463 | |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2464 | changeset.exe: $(TOP)\ext\session\changeset.c $(SQLITE3C) $(SQLITE3H) |
| 2465 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
| 2466 | -DSQLITE_ENABLE_SESSION=1 -DSQLITE_ENABLE_PREUPDATE_HOOK=1 \ |
mistachkin | 0500478 | 2016-03-30 16:23:06 +0000 | [diff] [blame] | 2467 | $(TOP)\ext\session\changeset.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | 9f674f2 | 2014-08-18 20:23:29 +0000 | [diff] [blame] | 2468 | |
dan | f095a1a | 2018-11-05 20:37:33 +0000 | [diff] [blame] | 2469 | changesetfuzz.exe: $(TOP)\ext\session\changesetfuzz.c $(SQLITE3C) $(SQLITE3H) |
| 2470 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
| 2471 | -DSQLITE_ENABLE_SESSION=1 -DSQLITE_ENABLE_PREUPDATE_HOOK=1 \ |
| 2472 | $(TOP)\ext\session\changesetfuzz.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
| 2473 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 2474 | fts3view.exe: $(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) $(SQLITE3H) |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2475 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
mistachkin | 78e3f61 | 2015-10-14 20:01:12 +0000 | [diff] [blame] | 2476 | $(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
mistachkin | de54527 | 2014-07-07 17:57:50 +0000 | [diff] [blame] | 2477 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 2478 | rollback-test.exe: $(TOP)\tool\rollback-test.c $(SQLITE3C) $(SQLITE3H) |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2479 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
mistachkin | 78e3f61 | 2015-10-14 20:01:12 +0000 | [diff] [blame] | 2480 | $(TOP)\tool\rollback-test.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 2481 | |
drh | 355f2e0 | 2018-08-23 20:09:19 +0000 | [diff] [blame] | 2482 | atrc.exe: $(TOP)\test\atrc.c $(SQLITE3C) $(SQLITE3H) |
| 2483 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
| 2484 | $(TOP)\test\atrc.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
| 2485 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 2486 | LogEst.exe: $(TOP)\tool\logest.c $(SQLITE3H) |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2487 | $(LTLINK) $(NO_WARN) $(TOP)\tool\LogEst.c /link $(LDFLAGS) $(LTLINKOPTS) |
drh | 267a13f | 2014-06-18 18:10:12 +0000 | [diff] [blame] | 2488 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 2489 | wordcount.exe: $(TOP)\test\wordcount.c $(SQLITE3C) $(SQLITE3H) |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2490 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
mistachkin | 78e3f61 | 2015-10-14 20:01:12 +0000 | [diff] [blame] | 2491 | $(TOP)\test\wordcount.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
drh | 9ac3c1e | 2013-11-07 18:37:31 +0000 | [diff] [blame] | 2492 | |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 2493 | speedtest1.exe: $(TOP)\test\speedtest1.c $(SQLITE3C) $(SQLITE3H) |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2494 | $(LTLINK) $(NO_WARN) $(ST_COMPILE_OPTS) -DSQLITE_OMIT_LOAD_EXTENSION \ |
mistachkin | 78e3f61 | 2015-10-14 20:01:12 +0000 | [diff] [blame] | 2495 | $(TOP)\test\speedtest1.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
mistachkin | b482a44 | 2012-02-11 22:19:26 +0000 | [diff] [blame] | 2496 | |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2497 | kvtest.exe: $(TOP)\test\kvtest.c $(SQLITE3C) $(SQLITE3H) |
| 2498 | $(LTLINK) $(NO_WARN) $(KV_COMPILE_OPTS) \ |
| 2499 | $(TOP)\test\kvtest.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
| 2500 | |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 2501 | rbu.exe: $(TOP)\ext\rbu\rbu.c $(TOP)\ext\rbu\sqlite3rbu.c $(SQLITE3C) $(SQLITE3H) |
mistachkin | 953fbd1 | 2017-02-07 21:09:34 +0000 | [diff] [blame] | 2502 | $(LTLINK) $(NO_WARN) -DSQLITE_ENABLE_RBU \ |
mistachkin | 5d4d941 | 2016-01-22 03:54:36 +0000 | [diff] [blame] | 2503 | $(TOP)\ext\rbu\rbu.c $(SQLITE3C) /link $(LDFLAGS) $(LTLINKOPTS) |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 2504 | |
mistachkin | 02679b0 | 2017-06-27 05:59:47 +0000 | [diff] [blame] | 2505 | LSMDIR=$(TOP)\ext\lsm1 |
| 2506 | !INCLUDE $(LSMDIR)\Makefile.msc |
| 2507 | |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 2508 | moreclean: clean |
| 2509 | del /Q $(SQLITE3C) $(SQLITE3H) 2>NUL |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 2510 | # <</mark>> |
drh | 7647377 | 2016-01-14 13:22:24 +0000 | [diff] [blame] | 2511 | |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 2512 | clean: |
mistachkin | 8dd3ff1 | 2015-05-16 03:41:41 +0000 | [diff] [blame] | 2513 | del /Q *.exp *.lo *.ilk *.lib *.obj *.ncb *.pdb *.sdf *.suo 2>NUL |
mistachkin | 56362a5 | 2016-02-19 19:03:04 +0000 | [diff] [blame] | 2514 | del /Q *.bsc *.def *.cod *.da *.bb *.bbg *.vc gmon.out 2>NUL |
mistachkin | fe41a98 | 2016-02-27 00:21:44 +0000 | [diff] [blame] | 2515 | del /Q $(SQLITE3EXE) $(SQLITE3DLL) Replace.exe 2>NUL |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 2516 | # <<mark>> |
mistachkin | 9b88ace | 2016-02-26 21:01:37 +0000 | [diff] [blame] | 2517 | del /Q opcodes.c opcodes.h 2>NUL |
mistachkin | 8d8738e | 2015-02-25 01:06:08 +0000 | [diff] [blame] | 2518 | del /Q lemon.* lempar.c parse.* 2>NUL |
mistachkin | 050dc5c | 2017-09-04 18:44:54 +0000 | [diff] [blame] | 2519 | del /Q mksourceid.* mkkeywordhash.* keywordhash.h 2>NUL |
mistachkin | 8d8738e | 2015-02-25 01:06:08 +0000 | [diff] [blame] | 2520 | del /Q notasharedlib.* 2>NUL |
| 2521 | -rmdir /Q/S .deps 2>NUL |
| 2522 | -rmdir /Q/S .libs 2>NUL |
mistachkin | 8d8738e | 2015-02-25 01:06:08 +0000 | [diff] [blame] | 2523 | -rmdir /Q/S tsrc 2>NUL |
| 2524 | del /Q .target_source 2>NUL |
mistachkin | 4ef916e | 2016-08-24 19:58:46 +0000 | [diff] [blame] | 2525 | del /Q tclsqlite3.exe $(SQLITETCLH) $(SQLITETCLDECLSH) 2>NUL |
mistachkin | a2d85cb | 2017-07-07 19:02:51 +0000 | [diff] [blame] | 2526 | del /Q lsm.dll lsmtest.exe 2>NUL |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2527 | del /Q testloadext.dll 2>NUL |
| 2528 | del /Q testfixture.exe test.db 2>NUL |
mistachkin | 943d825 | 2017-03-14 15:27:56 +0000 | [diff] [blame] | 2529 | del /Q LogEst.exe fts3view.exe rollback-test.exe showdb.exe dbdump.exe 2>NUL |
drh | edea911 | 2015-03-24 19:02:13 +0000 | [diff] [blame] | 2530 | del /Q changeset.exe 2>NUL |
mistachkin | 8d8738e | 2015-02-25 01:06:08 +0000 | [diff] [blame] | 2531 | del /Q showjournal.exe showstat4.exe showwal.exe speedtest1.exe 2>NUL |
mistachkin | 27b6997 | 2016-02-07 20:39:27 +0000 | [diff] [blame] | 2532 | del /Q mptester.exe wordcount.exe rbu.exe srcck1.exe 2>NUL |
mistachkin | 1f237e3 | 2018-07-27 20:45:28 +0000 | [diff] [blame] | 2533 | del /Q sqlite3.c sqlite3-*.c sqlite3.h 2>NUL |
mistachkin | 8d8738e | 2015-02-25 01:06:08 +0000 | [diff] [blame] | 2534 | del /Q sqlite3rc.h 2>NUL |
mistachkin | 2779989 | 2016-03-31 22:53:37 +0000 | [diff] [blame] | 2535 | del /Q shell.c sqlite3ext.h sqlite3session.h 2>NUL |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 2536 | del /Q sqlite3_analyzer.exe sqlite3_analyzer.c 2>NUL |
mistachkin | 8d8738e | 2015-02-25 01:06:08 +0000 | [diff] [blame] | 2537 | del /Q sqlite-*-output.vsix 2>NUL |
drh | 290fcaa | 2016-06-08 01:03:05 +0000 | [diff] [blame] | 2538 | del /Q fuzzershell.exe fuzzcheck.exe sqldiff.exe dbhash.exe 2>NUL |
mistachkin | b649be3 | 2018-03-07 14:53:36 +0000 | [diff] [blame] | 2539 | del /Q sqltclsh.* 2>NUL |
mistachkin | 8368692 | 2018-03-08 18:09:22 +0000 | [diff] [blame] | 2540 | del /Q dbfuzz.exe sessionfuzz.exe 2>NUL |
mistachkin | ac8ba26 | 2018-03-07 14:42:17 +0000 | [diff] [blame] | 2541 | del /Q kvtest.exe ossshell.exe scrub.exe 2>NUL |
mistachkin | b649be3 | 2018-03-07 14:53:36 +0000 | [diff] [blame] | 2542 | del /Q showshm.exe sqlite3_checker.* sqlite3_expert.exe 2>NUL |
mistachkin | bc50bb7 | 2015-07-14 21:56:53 +0000 | [diff] [blame] | 2543 | del /Q fts5.* fts5parse.* 2>NUL |
mistachkin | 3384ccb | 2017-12-13 22:42:55 +0000 | [diff] [blame] | 2544 | del /Q lsm.h lsm1.c 2>NUL |
mistachkin | 3e78609 | 2016-01-23 07:53:04 +0000 | [diff] [blame] | 2545 | # <</mark>> |