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