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