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