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