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 | |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 13 | # Set this non-0 to create and use the SQLite amalgamation file. |
| 14 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 15 | !IFNDEF USE_AMALGAMATION |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 16 | USE_AMALGAMATION = 1 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 17 | !ENDIF |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 18 | |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 19 | # Set this non-0 to enable full warnings (-W4, etc) when compiling. |
| 20 | # |
| 21 | !IFNDEF USE_FULLWARN |
| 22 | USE_FULLWARN = 0 |
| 23 | !ENDIF |
| 24 | |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 25 | # Set this non-0 to use "stdcall" calling convention for the core library |
| 26 | # and shell executable. |
| 27 | # |
| 28 | !IFNDEF USE_STDCALL |
| 29 | USE_STDCALL = 0 |
| 30 | !ENDIF |
| 31 | |
| 32 | # Set this non-0 to have the shell executable link against the core dynamic |
| 33 | # link library. |
| 34 | # |
| 35 | !IFNDEF DYNAMIC_SHELL |
| 36 | DYNAMIC_SHELL = 0 |
| 37 | !ENDIF |
| 38 | |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 39 | # If necessary, create a list of harmless compiler warnings to disable when |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 40 | # compiling the various tools. For the SQLite source code itself, warnings, |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 41 | # if any, will be disabled from within it. |
| 42 | # |
| 43 | !IFNDEF NO_WARN |
| 44 | !IF $(USE_FULLWARN)!=0 |
mistachkin | 27b2f05 | 2015-01-12 19:49:46 +0000 | [diff] [blame] | 45 | NO_WARN = -wd4054 -wd4055 -wd4100 -wd4127 -wd4152 -wd4189 -wd4206 -wd4210 |
mistachkin | 3256250 | 2015-01-12 20:20:26 +0000 | [diff] [blame] | 46 | NO_WARN = $(NO_WARN) -wd4232 -wd4244 -wd4305 -wd4306 -wd4702 -wd4706 |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 47 | !ENDIF |
| 48 | !ENDIF |
| 49 | |
mistachkin | a5e2b50 | 2014-05-12 22:36:50 +0000 | [diff] [blame] | 50 | # Set this non-0 to use the library paths and other options necessary for |
| 51 | # Windows Phone 8.1. |
mistachkin | d9b3c54 | 2014-05-09 23:31:55 +0000 | [diff] [blame] | 52 | # |
| 53 | !IFNDEF USE_WP81_OPTS |
| 54 | USE_WP81_OPTS = 0 |
| 55 | !ENDIF |
| 56 | |
mistachkin | 7651091 | 2013-10-11 23:01:18 +0000 | [diff] [blame] | 57 | # Set this non-0 to split the SQLite amalgamation file into chunks to |
| 58 | # be used for debugging with Visual Studio. |
| 59 | # |
| 60 | !IFNDEF SPLIT_AMALGAMATION |
mistachkin | 0aedc6b | 2013-10-11 23:02:13 +0000 | [diff] [blame] | 61 | SPLIT_AMALGAMATION = 0 |
mistachkin | 7651091 | 2013-10-11 23:01:18 +0000 | [diff] [blame] | 62 | !ENDIF |
| 63 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 64 | # Set this non-0 to use the International Components for Unicode (ICU). |
| 65 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 66 | !IFNDEF USE_ICU |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 67 | USE_ICU = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 68 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 69 | |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 70 | # Set this non-0 to dynamically link to the MSVC runtime library. |
| 71 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 72 | !IFNDEF USE_CRT_DLL |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 73 | USE_CRT_DLL = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 74 | !ENDIF |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 75 | |
mistachkin | e45e0fb | 2015-01-21 00:48:46 +0000 | [diff] [blame] | 76 | # Set this non-0 to link to the RPCRT4 library. |
| 77 | # |
| 78 | !IFNDEF USE_RPCRT4_LIB |
| 79 | USE_RPCRT4_LIB = 0 |
| 80 | !ENDIF |
| 81 | |
mistachkin | 0157e01 | 2013-09-06 21:41:11 +0000 | [diff] [blame] | 82 | # Set this non-0 to generate assembly code listings for the source code |
| 83 | # files. |
| 84 | # |
| 85 | !IFNDEF USE_LISTINGS |
| 86 | USE_LISTINGS = 0 |
| 87 | !ENDIF |
| 88 | |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 89 | # Set this non-0 to attempt setting the native compiler automatically |
| 90 | # for cross-compiling the command line tools needed during the compilation |
| 91 | # process. |
| 92 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 93 | !IFNDEF XCOMPILE |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 94 | XCOMPILE = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 95 | !ENDIF |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 96 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 97 | # Set this non-0 to use the native libraries paths for cross-compiling |
| 98 | # the command line tools needed during the compilation process. |
| 99 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 100 | !IFNDEF USE_NATIVE_LIBPATHS |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 101 | USE_NATIVE_LIBPATHS = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 102 | !ENDIF |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 103 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 104 | # Set this 0 to skip the compiling and embedding of version resources. |
| 105 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 106 | !IFNDEF USE_RC |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 107 | USE_RC = 1 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 108 | !ENDIF |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 109 | |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 110 | # Set this non-0 to compile binaries suitable for the WinRT environment. |
| 111 | # This setting does not apply to any binaries that require Tcl to operate |
| 112 | # properly (i.e. the text fixture, etc). |
| 113 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 114 | !IFNDEF FOR_WINRT |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 115 | FOR_WINRT = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 116 | !ENDIF |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 117 | |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 118 | # Set this non-0 to skip attempting to look for and/or link with the Tcl |
| 119 | # runtime library. |
| 120 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 121 | !IFNDEF NO_TCL |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 122 | NO_TCL = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 123 | !ENDIF |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 124 | |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 125 | # Set this to non-0 to create and use PDBs. |
| 126 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 127 | !IFNDEF SYMBOLS |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 128 | SYMBOLS = 1 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 129 | !ENDIF |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 130 | |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 131 | # Set this to non-0 to use the SQLite debugging heap subsystem. |
| 132 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 133 | !IFNDEF MEMDEBUG |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 134 | MEMDEBUG = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 135 | !ENDIF |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 136 | |
| 137 | # Set this to non-0 to use the Win32 native heap subsystem. |
| 138 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 139 | !IFNDEF WIN32HEAP |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 140 | WIN32HEAP = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 141 | !ENDIF |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 142 | |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 143 | # Set this to one of the following values to enable various debugging |
| 144 | # features. Each level includes the debugging options from the previous |
| 145 | # levels. Currently, the recognized values for DEBUG are: |
| 146 | # |
| 147 | # 0 == NDEBUG: Disables assert() and other runtime diagnostics. |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 148 | # 1 == SQLITE_ENABLE_API_ARMOR: extra attempts to detect misuse of the API. |
| 149 | # 2 == Disables NDEBUG and all optimizations and then enables PDBs. |
| 150 | # 3 == SQLITE_DEBUG: Enables various diagnostics messages and code. |
| 151 | # 4 == SQLITE_WIN32_MALLOC_VALIDATE: Validate the Win32 native heap per call. |
| 152 | # 5 == SQLITE_DEBUG_OS_TRACE: Enables output from the OSTRACE() macros. |
| 153 | # 6 == SQLITE_ENABLE_IOTRACE: Enables output from the IOTRACE() macros. |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 154 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 155 | !IFNDEF DEBUG |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 156 | DEBUG = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 157 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 158 | |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 159 | # Enable use of available compiler optimizations? Normally, this should be |
| 160 | # non-zero. Setting this to zero, thus disabling all compiler optimizations, |
| 161 | # can be useful for testing. |
| 162 | # |
| 163 | !IFNDEF OPTIMIZATIONS |
| 164 | OPTIMIZATIONS = 2 |
| 165 | !ENDIF |
| 166 | |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 167 | # These are the "standard" SQLite compilation options used when compiling for |
| 168 | # the Windows platform. |
| 169 | # |
| 170 | !IFNDEF OPT_FEATURE_FLAGS |
| 171 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS3=1 |
| 172 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RTREE=1 |
| 173 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_COLUMN_METADATA=1 |
| 174 | !ENDIF |
| 175 | |
| 176 | ############################################################################### |
| 177 | ############################### END OF OPTIONS ################################ |
| 178 | ############################################################################### |
| 179 | |
mistachkin | d9b3c54 | 2014-05-09 23:31:55 +0000 | [diff] [blame] | 180 | # This assumes that MSVC is always installed in 32-bit Program Files directory |
| 181 | # and sets the variable for use in locating other 32-bit installs accordingly. |
| 182 | # |
| 183 | PROGRAMFILES_X86 = $(VCINSTALLDIR)\..\.. |
| 184 | PROGRAMFILES_X86 = $(PROGRAMFILES_X86:\\=\) |
| 185 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 186 | # Check for the predefined command macro CC. This should point to the compiler |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 187 | # 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] | 188 | # the legacy default value 'cl.exe'. |
| 189 | # |
| 190 | !IFNDEF CC |
| 191 | CC = cl.exe |
| 192 | !ENDIF |
| 193 | |
mistachkin | 228aeff | 2012-06-30 19:24:09 +0000 | [diff] [blame] | 194 | # 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] | 195 | # 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] | 196 | # default value 'link.exe'. |
| 197 | # |
| 198 | !IFNDEF LD |
| 199 | LD = link.exe |
| 200 | !ENDIF |
| 201 | |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 202 | # Check for the predefined command macro RC. This should point to the resource |
| 203 | # compiler binary for the target platform. If it is not defined, simply define |
| 204 | # it to the legacy default value 'rc.exe'. |
| 205 | # |
| 206 | !IFNDEF RC |
| 207 | RC = rc.exe |
| 208 | !ENDIF |
| 209 | |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 210 | # Check for the MSVC runtime library path macro. Othertise, this value will |
| 211 | # default to the 'lib' directory underneath the MSVC installation directory. |
| 212 | # |
| 213 | !IFNDEF CRTLIBPATH |
| 214 | CRTLIBPATH = $(VCINSTALLDIR)\lib |
| 215 | !ENDIF |
| 216 | |
| 217 | CRTLIBPATH = $(CRTLIBPATH:\\=\) |
| 218 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 219 | # Check for the command macro NCC. This should point to the compiler binary |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 220 | # for the platform the compilation process is taking place on. If it is not |
| 221 | # 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] | 222 | # cross-compiling, it is suggested that this macro be modified via the command |
| 223 | # line (since nmake itself does not provide a built-in method to guess it). |
| 224 | # 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] | 225 | # line similar to the following could be used (all on one line): |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 226 | # |
mistachkin | 6f92833 | 2012-08-17 11:47:32 +0000 | [diff] [blame] | 227 | # nmake /f Makefile.msc sqlite3.dll |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 228 | # XCOMPILE=1 USE_NATIVE_LIBPATHS=1 |
| 229 | # |
| 230 | # Alternatively, the full path and file name to the compiler binary for the |
| 231 | # platform the compilation process is taking place may be specified (all on |
| 232 | # one line): |
| 233 | # |
| 234 | # nmake /f Makefile.msc sqlite3.dll |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 235 | # "NCC=""%VCINSTALLDIR%\bin\cl.exe""" |
| 236 | # USE_NATIVE_LIBPATHS=1 |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 237 | # |
mistachkin | fd0ba2a | 2012-07-27 08:21:45 +0000 | [diff] [blame] | 238 | !IFDEF NCC |
| 239 | NCC = $(NCC:\\=\) |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 240 | !ELSEIF $(XCOMPILE)!=0 |
mistachkin | 5fac420 | 2013-12-03 23:33:29 +0000 | [diff] [blame] | 241 | NCC = "$(VCINSTALLDIR)\bin\$(CC)" |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 242 | NCC = $(NCC:\\=\) |
mistachkin | fd0ba2a | 2012-07-27 08:21:45 +0000 | [diff] [blame] | 243 | !ELSE |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 244 | NCC = $(CC) |
| 245 | !ENDIF |
| 246 | |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 247 | # Check for the MSVC native runtime library path macro. Othertise, |
| 248 | # this value will default to the 'lib' directory underneath the MSVC |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 249 | # installation directory. |
| 250 | # |
| 251 | !IFNDEF NCRTLIBPATH |
| 252 | NCRTLIBPATH = $(VCINSTALLDIR)\lib |
| 253 | !ENDIF |
| 254 | |
mistachkin | 0b5ae72 | 2012-07-27 23:03:47 +0000 | [diff] [blame] | 255 | NCRTLIBPATH = $(NCRTLIBPATH:\\=\) |
| 256 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 257 | # Check for the Platform SDK library path macro. Othertise, this |
| 258 | # value will default to the 'lib' directory underneath the Windows |
| 259 | # SDK installation directory (the environment variable used appears |
| 260 | # to be available when using Visual C++ 2008 or later via the |
| 261 | # command line). |
| 262 | # |
| 263 | !IFNDEF NSDKLIBPATH |
| 264 | NSDKLIBPATH = $(WINDOWSSDKDIR)\lib |
| 265 | !ENDIF |
| 266 | |
mistachkin | 0b5ae72 | 2012-07-27 23:03:47 +0000 | [diff] [blame] | 267 | NSDKLIBPATH = $(NSDKLIBPATH:\\=\) |
| 268 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 269 | # C compiler and options for use in building executables that |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 270 | # will run on the platform that is doing the build. |
| 271 | # |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 272 | !IF $(USE_FULLWARN)!=0 |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 273 | BCC = $(NCC) -nologo -W4 |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 274 | !ELSE |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 275 | BCC = $(NCC) -nologo -W3 |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 276 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 277 | |
mistachkin | 0157e01 | 2013-09-06 21:41:11 +0000 | [diff] [blame] | 278 | # Check if assembly code listings should be generated for the source |
| 279 | # code files to be compiled. |
| 280 | # |
| 281 | !IF $(USE_LISTINGS)!=0 |
| 282 | BCC = $(BCC) -FAcs |
| 283 | !ENDIF |
| 284 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 285 | # Check if the native library paths should be used when compiling |
| 286 | # the command line tools used during the compilation process. If |
| 287 | # so, set the necessary macro now. |
| 288 | # |
| 289 | !IF $(USE_NATIVE_LIBPATHS)!=0 |
| 290 | NLTLIBPATHS = "/LIBPATH:$(NCRTLIBPATH)" "/LIBPATH:$(NSDKLIBPATH)" |
| 291 | !ENDIF |
| 292 | |
| 293 | # C compiler and options for use in building executables that |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 294 | # will run on the target platform. (BCC and TCC are usually the |
| 295 | # same unless your are cross-compiling.) |
| 296 | # |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 297 | !IF $(USE_FULLWARN)!=0 |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 298 | TCC = $(CC) -nologo -W4 -DINCLUDE_MSVC_H=1 |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 299 | !ELSE |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 300 | TCC = $(CC) -nologo -W3 |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 301 | !ENDIF |
| 302 | |
| 303 | TCC = $(TCC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -I$(TOP)\src -fp:precise |
mistachkin | 8ccc6d4 | 2012-09-27 21:03:53 +0000 | [diff] [blame] | 304 | RCC = $(RC) -DSQLITE_OS_WIN=1 -I$(TOP) -I$(TOP)\src |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 305 | |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 306 | # Check if we want to use the "stdcall" calling convention when compiling. |
| 307 | # This is not supported by the compilers for non-x86 platforms. It should |
| 308 | # also be noted here that building any target with these "stdcall" options |
| 309 | # will most likely fail if the Tcl library is also required. This is due |
| 310 | # to how the Tcl library functions are declared and exported (i.e. without |
| 311 | # an explicit calling convention, which results in "cdecl"). |
| 312 | # |
| 313 | !IF $(USE_STDCALL)!=0 |
| 314 | !IF "$(PLATFORM)"=="x86" |
mistachkin | 59b9b02 | 2015-03-24 21:27:27 +0000 | [diff] [blame] | 315 | CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall |
| 316 | SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 317 | !ELSE |
| 318 | !IFNDEF PLATFORM |
mistachkin | 59b9b02 | 2015-03-24 21:27:27 +0000 | [diff] [blame] | 319 | CORE_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall |
| 320 | SHELL_CCONV_OPTS = -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_STDCALL=__stdcall |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 321 | !ELSE |
| 322 | CORE_CCONV_OPTS = |
| 323 | SHELL_CCONV_OPTS = |
| 324 | !ENDIF |
| 325 | !ENDIF |
| 326 | !ELSE |
| 327 | CORE_CCONV_OPTS = |
| 328 | SHELL_CCONV_OPTS = |
| 329 | !ENDIF |
| 330 | |
| 331 | # These are additional compiler options used for the core library. |
| 332 | # |
| 333 | !IFNDEF CORE_COMPILE_OPTS |
mistachkin | 34a8065 | 2015-03-27 00:19:31 +0000 | [diff] [blame] | 334 | !IF $(DYNAMIC_SHELL)!=0 |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 335 | CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS) -DSQLITE_API=__declspec(dllexport) |
| 336 | !ELSE |
| 337 | CORE_COMPILE_OPTS = $(CORE_CCONV_OPTS) |
| 338 | !ENDIF |
| 339 | !ENDIF |
| 340 | |
| 341 | # These are the additional targets that the core library should depend on |
| 342 | # when linking. |
| 343 | # |
| 344 | !IFNDEF CORE_LINK_DEP |
mistachkin | 34a8065 | 2015-03-27 00:19:31 +0000 | [diff] [blame] | 345 | !IF $(DYNAMIC_SHELL)!=0 |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 346 | CORE_LINK_DEP = |
| 347 | !ELSE |
| 348 | CORE_LINK_DEP = sqlite3.def |
| 349 | !ENDIF |
| 350 | !ENDIF |
| 351 | |
| 352 | # These are additional linker options used for the core library. |
| 353 | # |
| 354 | !IFNDEF CORE_LINK_OPTS |
mistachkin | 34a8065 | 2015-03-27 00:19:31 +0000 | [diff] [blame] | 355 | !IF $(DYNAMIC_SHELL)!=0 |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 356 | CORE_LINK_OPTS = |
| 357 | !ELSE |
| 358 | CORE_LINK_OPTS = /DEF:sqlite3.def |
| 359 | !ENDIF |
| 360 | !ENDIF |
| 361 | |
| 362 | # These are additional compiler options used for the shell executable. |
| 363 | # |
| 364 | !IFNDEF SHELL_COMPILE_OPTS |
| 365 | !IF $(DYNAMIC_SHELL)!=0 |
| 366 | SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS) -DSQLITE_API=__declspec(dllimport) |
| 367 | !ELSE |
| 368 | SHELL_COMPILE_OPTS = $(SHELL_CCONV_OPTS) |
| 369 | !ENDIF |
| 370 | !ENDIF |
| 371 | |
| 372 | # This is the core library that the shell executable should depend on. |
| 373 | # |
| 374 | !IFNDEF SHELL_CORE_DEP |
| 375 | !IF $(DYNAMIC_SHELL)!=0 |
| 376 | SHELL_CORE_DEP = sqlite3.dll |
| 377 | !ELSE |
| 378 | SHELL_CORE_DEP = libsqlite3.lib |
| 379 | !ENDIF |
| 380 | !ENDIF |
| 381 | |
| 382 | # This is the core library that the shell executable should link with. |
| 383 | # |
| 384 | !IFNDEF SHELL_CORE_LIB |
| 385 | !IF $(DYNAMIC_SHELL)!=0 |
| 386 | SHELL_CORE_LIB = sqlite3.lib |
| 387 | !ELSE |
| 388 | SHELL_CORE_LIB = libsqlite3.lib |
| 389 | !ENDIF |
| 390 | !ENDIF |
| 391 | |
| 392 | # These are additional linker options used for the shell executable. |
| 393 | # |
| 394 | !IFNDEF SHELL_LINK_OPTS |
| 395 | SHELL_LINK_OPTS = $(SHELL_CORE_LIB) |
| 396 | !ENDIF |
| 397 | |
mistachkin | 0157e01 | 2013-09-06 21:41:11 +0000 | [diff] [blame] | 398 | # Check if assembly code listings should be generated for the source |
| 399 | # code files to be compiled. |
| 400 | # |
| 401 | !IF $(USE_LISTINGS)!=0 |
| 402 | TCC = $(TCC) -FAcs |
| 403 | !ENDIF |
| 404 | |
mistachkin | f39eaf2 | 2012-03-20 02:18:42 +0000 | [diff] [blame] | 405 | # When compiling the library for use in the WinRT environment, |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 406 | # the following compile-time options must be used as well to |
mistachkin | f39eaf2 | 2012-03-20 02:18:42 +0000 | [diff] [blame] | 407 | # disable use of Win32 APIs that are not available and to enable |
| 408 | # use of Win32 APIs that are specific to Windows 8 and/or WinRT. |
| 409 | # |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 410 | !IF $(FOR_WINRT)!=0 |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 411 | TCC = $(TCC) -DSQLITE_OS_WINRT=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 412 | RCC = $(RCC) -DSQLITE_OS_WINRT=1 |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 413 | TCC = $(TCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP |
| 414 | RCC = $(RCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 415 | !ENDIF |
| 416 | |
| 417 | # Also, we need to dynamically link to the correct MSVC runtime |
| 418 | # when compiling for WinRT (e.g. debug or release) OR if the |
| 419 | # USE_CRT_DLL option is set to force dynamically linking to the |
| 420 | # MSVC runtime library. |
| 421 | # |
| 422 | !IF $(FOR_WINRT)!=0 || $(USE_CRT_DLL)!=0 |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 423 | !IF $(DEBUG)>1 |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 424 | TCC = $(TCC) -MDd |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 425 | BCC = $(BCC) -MDd |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 426 | !ELSE |
| 427 | TCC = $(TCC) -MD |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 428 | BCC = $(BCC) -MD |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 429 | !ENDIF |
| 430 | !ELSE |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 431 | !IF $(DEBUG)>1 |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 432 | TCC = $(TCC) -MTd |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 433 | BCC = $(BCC) -MTd |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 434 | !ELSE |
| 435 | TCC = $(TCC) -MT |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 436 | BCC = $(BCC) -MT |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 437 | !ENDIF |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 438 | !ENDIF |
mistachkin | f39eaf2 | 2012-03-20 02:18:42 +0000 | [diff] [blame] | 439 | |
| 440 | # The mksqlite3c.tcl and mksqlite3h.tcl scripts will pull in |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 441 | # any extension header files by default. For non-amalgamation |
| 442 | # builds, we need to make sure the compiler can find these. |
| 443 | # |
| 444 | !IF $(USE_AMALGAMATION)==0 |
| 445 | TCC = $(TCC) -I$(TOP)\ext\fts3 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 446 | RCC = $(RCC) -I$(TOP)\ext\fts3 |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 447 | TCC = $(TCC) -I$(TOP)\ext\rtree |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 448 | RCC = $(RCC) -I$(TOP)\ext\rtree |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 449 | TCC = $(TCC) -I$(TOP)\ext\session |
mistachkin | 38b4daa | 2013-03-13 19:02:39 +0000 | [diff] [blame] | 450 | RCC = $(RCC) -I$(TOP)\ext\session |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 451 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 452 | |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 453 | # The mksqlite3c.tcl script accepts some options on the command |
| 454 | # line. When compiling with debugging enabled, some of these |
| 455 | # options are necessary in order to allow debugging symbols to |
| 456 | # work correctly with Visual Studio when using the amalgamation. |
| 457 | # |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 458 | !IF $(DEBUG)>1 |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 459 | MKSQLITE3C_ARGS = --linemacros |
| 460 | !ELSE |
| 461 | MKSQLITE3C_ARGS = |
| 462 | !ENDIF |
| 463 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 464 | # Define -DNDEBUG to compile without debugging (i.e., for production usage) |
| 465 | # Omitting the define will cause extra debugging code to be inserted and |
| 466 | # includes extra comments when "EXPLAIN stmt" is used. |
| 467 | # |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 468 | !IF $(DEBUG)==0 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 469 | TCC = $(TCC) -DNDEBUG |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 470 | BCC = $(BCC) -DNDEBUG |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 471 | RCC = $(RCC) -DNDEBUG |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 472 | !ENDIF |
| 473 | |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 474 | !IF $(DEBUG)>0 |
| 475 | TCC = $(TCC) -DSQLITE_ENABLE_API_ARMOR |
| 476 | RCC = $(RCC) -DSQLITE_ENABLE_API_ARMOR |
| 477 | !ENDIF |
| 478 | |
| 479 | !IF $(DEBUG)>2 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 480 | TCC = $(TCC) -DSQLITE_DEBUG |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 481 | RCC = $(RCC) -DSQLITE_DEBUG |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 482 | !ENDIF |
| 483 | |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 484 | !IF $(DEBUG)>4 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 485 | TCC = $(TCC) -DSQLITE_DEBUG_OS_TRACE=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 486 | RCC = $(RCC) -DSQLITE_DEBUG_OS_TRACE=1 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 487 | !ENDIF |
| 488 | |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 489 | !IF $(DEBUG)>5 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 490 | TCC = $(TCC) -DSQLITE_ENABLE_IOTRACE |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 491 | RCC = $(RCC) -DSQLITE_ENABLE_IOTRACE |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 492 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 493 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 494 | # Prevent warnings about "insecure" MSVC runtime library functions |
| 495 | # being used. |
mistachkin | 176f1b4 | 2011-08-02 23:34:00 +0000 | [diff] [blame] | 496 | # |
| 497 | TCC = $(TCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 498 | BCC = $(BCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 499 | RCC = $(RCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS |
mistachkin | 176f1b4 | 2011-08-02 23:34:00 +0000 | [diff] [blame] | 500 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 501 | # Prevent warnings about "deprecated" POSIX functions being used. |
| 502 | # |
| 503 | TCC = $(TCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS |
| 504 | BCC = $(BCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 505 | RCC = $(RCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 506 | |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 507 | # Use the SQLite debugging heap subsystem? |
mistachkin | 1b186a9 | 2011-08-24 16:13:57 +0000 | [diff] [blame] | 508 | # |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 509 | !IF $(MEMDEBUG)!=0 |
| 510 | TCC = $(TCC) -DSQLITE_MEMDEBUG=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 511 | RCC = $(RCC) -DSQLITE_MEMDEBUG=1 |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 512 | |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 513 | # Use native Win32 heap subsystem instead of malloc/free? |
| 514 | # |
| 515 | !ELSEIF $(WIN32HEAP)!=0 |
| 516 | TCC = $(TCC) -DSQLITE_WIN32_MALLOC=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 517 | RCC = $(RCC) -DSQLITE_WIN32_MALLOC=1 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 518 | |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 519 | # Validate the heap on every call into the native Win32 heap subsystem? |
| 520 | # |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 521 | !IF $(DEBUG)>3 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 522 | TCC = $(TCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 523 | RCC = $(RCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 524 | !ENDIF |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 525 | !ENDIF |
mistachkin | 1b186a9 | 2011-08-24 16:13:57 +0000 | [diff] [blame] | 526 | |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 527 | # The locations of the Tcl header and library files. Also, the library that |
| 528 | # non-stubs enabled programs using Tcl must link against. These variables |
| 529 | # (TCLINCDIR, TCLLIBDIR, and LIBTCL) may be overridden via the environment |
| 530 | # prior to running nmake in order to match the actual installed location and |
| 531 | # version on this machine. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 532 | # |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 533 | !IFNDEF TCLINCDIR |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 534 | TCLINCDIR = c:\tcl\include |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 535 | !ENDIF |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 536 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 537 | !IFNDEF TCLLIBDIR |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 538 | TCLLIBDIR = c:\tcl\lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 539 | !ENDIF |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 540 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 541 | !IFNDEF LIBTCL |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 542 | LIBTCL = tcl85.lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 543 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 544 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 545 | # The locations of the ICU header and library files. These variables |
| 546 | # (ICUINCDIR, ICULIBDIR, and LIBICU) may be overridden via the environment |
| 547 | # prior to running nmake in order to match the actual installed location on |
| 548 | # this machine. |
| 549 | # |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 550 | !IFNDEF ICUINCDIR |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 551 | ICUINCDIR = c:\icu\include |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 552 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 553 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 554 | !IFNDEF ICULIBDIR |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 555 | ICULIBDIR = c:\icu\lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 556 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 557 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 558 | !IFNDEF LIBICU |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 559 | LIBICU = icuuc.lib icuin.lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 560 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 561 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 562 | # 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] | 563 | # know the specific version we want to use. This variable (TCLSH_CMD) may be |
| 564 | # overridden via the environment prior to running nmake in order to select a |
| 565 | # specific Tcl shell to use. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 566 | # |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 567 | !IFNDEF TCLSH_CMD |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 568 | TCLSH_CMD = tclsh85 |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 569 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 570 | |
| 571 | # Compiler options needed for programs that use the readline() library. |
| 572 | # |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 573 | !IFNDEF READLINE_FLAGS |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 574 | READLINE_FLAGS = -DHAVE_READLINE=0 |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 575 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 576 | |
| 577 | # The library that programs using readline() must link against. |
| 578 | # |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 579 | !IFNDEF LIBREADLINE |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 580 | LIBREADLINE = |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 581 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 582 | |
| 583 | # Should the database engine be compiled threadsafe |
| 584 | # |
| 585 | TCC = $(TCC) -DSQLITE_THREADSAFE=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 586 | RCC = $(RCC) -DSQLITE_THREADSAFE=1 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 587 | |
| 588 | # Do threads override each others locks by default (1), or do we test (-1) |
| 589 | # |
| 590 | TCC = $(TCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 591 | RCC = $(RCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 592 | |
| 593 | # Any target libraries which libsqlite must be linked against |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 594 | # |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 595 | !IFNDEF TLIBS |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 596 | TLIBS = |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 597 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 598 | |
| 599 | # Flags controlling use of the in memory btree implementation |
| 600 | # |
| 601 | # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to |
| 602 | # default to file, 2 to default to memory, and 3 to force temporary |
| 603 | # tables to always be in memory. |
| 604 | # |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 605 | TCC = $(TCC) -DSQLITE_TEMP_STORE=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 606 | RCC = $(RCC) -DSQLITE_TEMP_STORE=1 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 607 | |
| 608 | # Enable/disable loadable extensions, and other optional features |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 609 | # based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*). |
| 610 | # The same set of OMIT and ENABLE flags should be passed to the |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 611 | # LEMON parser generator and the mkkeywordhash tool as well. |
| 612 | |
| 613 | # BEGIN standard options |
| 614 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS3=1 |
| 615 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RTREE=1 |
| 616 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_COLUMN_METADATA=1 |
mistachkin | adb96a6 | 2012-01-16 12:33:36 +0000 | [diff] [blame] | 617 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_SESSION=1 |
| 618 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_PREUPDATE_HOOK=1 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 619 | # END standard options |
| 620 | |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 621 | # These are the required SQLite compilation options used when compiling for |
| 622 | # the Windows platform. |
| 623 | # |
| 624 | REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_MAX_TRIGGER_DEPTH=100 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 625 | |
mistachkin | e45e0fb | 2015-01-21 00:48:46 +0000 | [diff] [blame] | 626 | # If we are linking to the RPCRT4 library, enable features that need it. |
| 627 | # |
| 628 | !IF $(USE_RPCRT4_LIB)!=0 |
| 629 | REQ_FEATURE_FLAGS = $(REQ_FEATURE_FLAGS) -DSQLITE_WIN32_USE_UUID=1 |
| 630 | !ENDIF |
| 631 | |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 632 | # Add the required and optional SQLite compilation options into the command |
| 633 | # lines used to invoke the MSVC code and resource compilers. |
| 634 | # |
| 635 | TCC = $(TCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) |
| 636 | RCC = $(RCC) $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 637 | |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 638 | # Add in any optional parameters specified on the commane line, e.g. |
| 639 | # nmake /f Makefile.msc all "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1" |
| 640 | # |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 641 | TCC = $(TCC) $(OPTS) |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 642 | RCC = $(RCC) $(OPTS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 643 | |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 644 | # If compiling for debugging, add some defines. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 645 | # |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 646 | !IF $(DEBUG)>1 |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 647 | TCC = $(TCC) -D_DEBUG |
| 648 | BCC = $(BCC) -D_DEBUG |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 649 | RCC = $(RCC) -D_DEBUG |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 650 | !ENDIF |
| 651 | |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 652 | # If optimizations are enabled or disabled (either implicitly or |
| 653 | # explicitly), add the necessary flags. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 654 | # |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 655 | !IF $(DEBUG)>1 || $(OPTIMIZATIONS)==0 |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 656 | TCC = $(TCC) -Od |
| 657 | BCC = $(BCC) -Od |
| 658 | !ELSEIF $(OPTIMIZATIONS)>=3 |
| 659 | TCC = $(TCC) -Ox |
| 660 | BCC = $(BCC) -Ox |
| 661 | !ELSEIF $(OPTIMIZATIONS)==2 |
| 662 | TCC = $(TCC) -O2 |
| 663 | BCC = $(BCC) -O2 |
| 664 | !ELSEIF $(OPTIMIZATIONS)==1 |
| 665 | TCC = $(TCC) -O1 |
| 666 | BCC = $(BCC) -O1 |
| 667 | !ENDIF |
| 668 | |
| 669 | # If symbols are enabled (or compiling for debugging), enable PDBs. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 670 | # |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 671 | !IF $(DEBUG)>1 || $(SYMBOLS)!=0 |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 672 | TCC = $(TCC) -Zi |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 673 | BCC = $(BCC) -Zi |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 674 | !ENDIF |
| 675 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 676 | # If ICU support is enabled, add the compiler options for it. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 677 | # |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 678 | !IF $(USE_ICU)!=0 |
| 679 | TCC = $(TCC) -DSQLITE_ENABLE_ICU=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 680 | RCC = $(RCC) -DSQLITE_ENABLE_ICU=1 |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 681 | TCC = $(TCC) -I$(TOP)\ext\icu |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 682 | RCC = $(RCC) -I$(TOP)\ext\icu |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 683 | TCC = $(TCC) -I$(ICUINCDIR) |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 684 | RCC = $(RCC) -I$(ICUINCDIR) |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 685 | !ENDIF |
| 686 | |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 687 | # Command line prefixes for compiling code, compiling resources, |
| 688 | # linking, etc. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 689 | # |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 690 | LTCOMPILE = $(TCC) -Fo$@ |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 691 | LTRCOMPILE = $(RCC) -r |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 692 | LTLIB = lib.exe |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 693 | LTLINK = $(TCC) -Fe$@ |
| 694 | |
mistachkin | e45e0fb | 2015-01-21 00:48:46 +0000 | [diff] [blame] | 695 | # If requested, link to the RPCRT4 library. |
| 696 | # |
| 697 | !IF $(USE_RPCRT4_LIB)!=0 |
| 698 | LTLINK = $(LTLINK) rpcrt4.lib |
| 699 | !ENDIF |
| 700 | |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 701 | # If a platform was set, force the linker to target that. |
| 702 | # Note that the vcvars*.bat family of batch files typically |
| 703 | # set this for you. Otherwise, the linker will attempt |
| 704 | # to deduce the binary type based on the object files. |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 705 | !IFDEF PLATFORM |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 706 | LTLINKOPTS = /NOLOGO /MACHINE:$(PLATFORM) |
| 707 | LTLIBOPTS = /NOLOGO /MACHINE:$(PLATFORM) |
| 708 | !ELSE |
| 709 | LTLINKOPTS = /NOLOGO |
| 710 | LTLIBOPTS = /NOLOGO |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 711 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 712 | |
mistachkin | a6ff857 | 2012-04-17 21:00:12 +0000 | [diff] [blame] | 713 | # When compiling for use in the WinRT environment, the following |
| 714 | # linker option must be used to mark the executable as runnable |
| 715 | # only in the context of an application container. |
| 716 | # |
| 717 | !IF $(FOR_WINRT)!=0 |
| 718 | LTLINKOPTS = $(LTLINKOPTS) /APPCONTAINER |
mistachkin | 60bdad7 | 2013-07-11 03:09:45 +0000 | [diff] [blame] | 719 | !IF "$(VISUALSTUDIOVERSION)"=="12.0" |
mistachkin | f6a2342 | 2014-05-05 20:24:34 +0000 | [diff] [blame] | 720 | !IFNDEF STORELIBPATH |
mistachkin | da5b1cd | 2013-07-10 19:39:02 +0000 | [diff] [blame] | 721 | !IF "$(PLATFORM)"=="x86" |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 722 | STORELIBPATH = $(CRTLIBPATH)\store |
mistachkin | da5b1cd | 2013-07-10 19:39:02 +0000 | [diff] [blame] | 723 | !ELSEIF "$(PLATFORM)"=="x64" |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 724 | STORELIBPATH = $(CRTLIBPATH)\store\amd64 |
mistachkin | 4eaa129 | 2013-07-10 21:33:25 +0000 | [diff] [blame] | 725 | !ELSEIF "$(PLATFORM)"=="ARM" |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 726 | STORELIBPATH = $(CRTLIBPATH)\store\arm |
mistachkin | 4eaa129 | 2013-07-10 21:33:25 +0000 | [diff] [blame] | 727 | !ELSE |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 728 | STORELIBPATH = $(CRTLIBPATH)\store |
mistachkin | da5b1cd | 2013-07-10 19:39:02 +0000 | [diff] [blame] | 729 | !ENDIF |
| 730 | !ENDIF |
mistachkin | f6a2342 | 2014-05-05 20:24:34 +0000 | [diff] [blame] | 731 | STORELIBPATH = $(STORELIBPATH:\\=\) |
| 732 | LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(STORELIBPATH)" |
| 733 | !ENDIF |
mistachkin | a6ff857 | 2012-04-17 21:00:12 +0000 | [diff] [blame] | 734 | !ENDIF |
| 735 | |
mistachkin | d9b3c54 | 2014-05-09 23:31:55 +0000 | [diff] [blame] | 736 | # When compiling for Windows Phone 8.1, an extra library path is |
| 737 | # required. |
| 738 | # |
| 739 | !IF $(USE_WP81_OPTS)!=0 |
| 740 | !IFNDEF WP81LIBPATH |
| 741 | !IF "$(PLATFORM)"=="x86" |
| 742 | WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86 |
| 743 | !ELSEIF "$(PLATFORM)"=="ARM" |
| 744 | WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\ARM |
| 745 | !ELSE |
| 746 | WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86 |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 747 | !ENDIF |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 748 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 749 | !ENDIF |
| 750 | |
mistachkin | d9b3c54 | 2014-05-09 23:31:55 +0000 | [diff] [blame] | 751 | # When compiling for Windows Phone 8.1, some extra linker options |
| 752 | # are also required. |
| 753 | # |
| 754 | !IF $(USE_WP81_OPTS)!=0 |
| 755 | !IFDEF WP81LIBPATH |
| 756 | LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(WP81LIBPATH)" |
| 757 | !ENDIF |
| 758 | LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE |
| 759 | LTLINKOPTS = $(LTLINKOPTS) WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib |
| 760 | LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:kernel32.lib /NODEFAULTLIB:ole32.lib |
| 761 | !ENDIF |
| 762 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 763 | # If either debugging or symbols are enabled, enable PDBs. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 764 | # |
mistachkin | cd54bab | 2014-12-20 21:14:14 +0000 | [diff] [blame] | 765 | !IF $(DEBUG)>1 || $(SYMBOLS)!=0 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 766 | LDFLAGS = /DEBUG |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 767 | !ENDIF |
| 768 | |
| 769 | # Start with the Tcl related linker options. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 770 | # |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 771 | !IF $(NO_TCL)==0 |
| 772 | LTLIBPATHS = /LIBPATH:$(TCLLIBDIR) |
| 773 | LTLIBS = $(LIBTCL) |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 774 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 775 | |
| 776 | # If ICU support is enabled, add the linker options for it. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 777 | # |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 778 | !IF $(USE_ICU)!=0 |
| 779 | LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ICULIBDIR) |
| 780 | LTLIBS = $(LTLIBS) $(LIBICU) |
| 781 | !ENDIF |
| 782 | |
| 783 | # nawk compatible awk. |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 784 | # |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 785 | !IFNDEF NAWK |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 786 | NAWK = gawk.exe |
mistachkin | 8bcd3fa | 2013-08-29 01:03:38 +0000 | [diff] [blame] | 787 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 788 | |
| 789 | # You should not have to change anything below this line |
| 790 | ############################################################################### |
| 791 | |
| 792 | # Object files for the SQLite library (non-amalgamation). |
| 793 | # |
mistachkin | f67feef | 2013-07-29 19:03:20 +0000 | [diff] [blame] | 794 | LIBOBJS0 = vdbe.lo parse.lo alter.lo analyze.lo attach.lo auth.lo \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 795 | backup.lo bitvec.lo btmutex.lo btree.lo build.lo \ |
| 796 | callback.lo complete.lo ctime.lo date.lo delete.lo \ |
| 797 | expr.lo fault.lo fkey.lo \ |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 798 | fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \ |
| 799 | fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \ |
drh | 4d648c7 | 2013-04-22 17:07:56 +0000 | [diff] [blame] | 800 | fts3_tokenize_vtab.lo fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 801 | func.lo global.lo hash.lo \ |
| 802 | icu.lo insert.lo journal.lo legacy.lo loadext.lo \ |
| 803 | main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \ |
| 804 | memjournal.lo \ |
mistachkin | f1c6bc5 | 2012-06-21 15:09:20 +0000 | [diff] [blame] | 805 | mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \ |
| 806 | notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \ |
mistachkin | f67feef | 2013-07-29 19:03:20 +0000 | [diff] [blame] | 807 | pager.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \ |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 808 | random.lo resolve.lo rowset.lo rtree.lo \ |
| 809 | sqlite3session.lo select.lo status.lo \ |
mistachkin | e500747 | 2014-05-02 19:12:37 +0000 | [diff] [blame] | 810 | table.lo threads.lo tokenize.lo trigger.lo \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 811 | update.lo util.lo vacuum.lo \ |
mistachkin | f67feef | 2013-07-29 19:03:20 +0000 | [diff] [blame] | 812 | vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 813 | vdbetrace.lo wal.lo walker.lo where.lo utf.lo vtab.lo |
| 814 | |
| 815 | # Object files for the amalgamation. |
| 816 | # |
| 817 | LIBOBJS1 = sqlite3.lo |
| 818 | |
| 819 | # Determine the real value of LIBOBJ based on the 'configure' script |
| 820 | # |
| 821 | !IF $(USE_AMALGAMATION)==0 |
| 822 | LIBOBJ = $(LIBOBJS0) |
| 823 | !ELSE |
| 824 | LIBOBJ = $(LIBOBJS1) |
| 825 | !ENDIF |
| 826 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 827 | # Determine if embedded resource compilation and usage are enabled. |
| 828 | # |
| 829 | !IF $(USE_RC)!=0 |
| 830 | LIBRESOBJS = sqlite3res.lo |
| 831 | !ELSE |
| 832 | LIBRESOBJS = |
| 833 | !ENDIF |
| 834 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 835 | # All of the source code files. |
| 836 | # |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 837 | SRC1 = \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 838 | $(TOP)\src\alter.c \ |
| 839 | $(TOP)\src\analyze.c \ |
| 840 | $(TOP)\src\attach.c \ |
| 841 | $(TOP)\src\auth.c \ |
| 842 | $(TOP)\src\backup.c \ |
| 843 | $(TOP)\src\bitvec.c \ |
| 844 | $(TOP)\src\btmutex.c \ |
| 845 | $(TOP)\src\btree.c \ |
| 846 | $(TOP)\src\btree.h \ |
| 847 | $(TOP)\src\btreeInt.h \ |
| 848 | $(TOP)\src\build.c \ |
| 849 | $(TOP)\src\callback.c \ |
| 850 | $(TOP)\src\complete.c \ |
| 851 | $(TOP)\src\ctime.c \ |
| 852 | $(TOP)\src\date.c \ |
| 853 | $(TOP)\src\delete.c \ |
| 854 | $(TOP)\src\expr.c \ |
| 855 | $(TOP)\src\fault.c \ |
| 856 | $(TOP)\src\fkey.c \ |
| 857 | $(TOP)\src\func.c \ |
| 858 | $(TOP)\src\global.c \ |
| 859 | $(TOP)\src\hash.c \ |
| 860 | $(TOP)\src\hash.h \ |
| 861 | $(TOP)\src\hwtime.h \ |
| 862 | $(TOP)\src\insert.c \ |
| 863 | $(TOP)\src\journal.c \ |
| 864 | $(TOP)\src\legacy.c \ |
| 865 | $(TOP)\src\loadext.c \ |
| 866 | $(TOP)\src\main.c \ |
| 867 | $(TOP)\src\malloc.c \ |
| 868 | $(TOP)\src\mem0.c \ |
| 869 | $(TOP)\src\mem1.c \ |
| 870 | $(TOP)\src\mem2.c \ |
| 871 | $(TOP)\src\mem3.c \ |
| 872 | $(TOP)\src\mem5.c \ |
| 873 | $(TOP)\src\memjournal.c \ |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 874 | $(TOP)\src\msvc.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 875 | $(TOP)\src\mutex.c \ |
| 876 | $(TOP)\src\mutex.h \ |
| 877 | $(TOP)\src\mutex_noop.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 878 | $(TOP)\src\mutex_unix.c \ |
| 879 | $(TOP)\src\mutex_w32.c \ |
| 880 | $(TOP)\src\notify.c \ |
| 881 | $(TOP)\src\os.c \ |
| 882 | $(TOP)\src\os.h \ |
| 883 | $(TOP)\src\os_common.h \ |
mistachkin | f74b9e0 | 2013-11-26 01:00:31 +0000 | [diff] [blame] | 884 | $(TOP)\src\os_setup.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 885 | $(TOP)\src\os_unix.c \ |
| 886 | $(TOP)\src\os_win.c \ |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 887 | $(TOP)\src\os_win.h |
| 888 | SRC2 = \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 889 | $(TOP)\src\pager.c \ |
| 890 | $(TOP)\src\pager.h \ |
| 891 | $(TOP)\src\parse.y \ |
| 892 | $(TOP)\src\pcache.c \ |
| 893 | $(TOP)\src\pcache.h \ |
| 894 | $(TOP)\src\pcache1.c \ |
| 895 | $(TOP)\src\pragma.c \ |
drh | 67e65e5 | 2015-02-02 21:34:54 +0000 | [diff] [blame] | 896 | $(TOP)\src\pragma.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 897 | $(TOP)\src\prepare.c \ |
| 898 | $(TOP)\src\printf.c \ |
| 899 | $(TOP)\src\random.c \ |
| 900 | $(TOP)\src\resolve.c \ |
| 901 | $(TOP)\src\rowset.c \ |
| 902 | $(TOP)\src\select.c \ |
| 903 | $(TOP)\src\status.c \ |
| 904 | $(TOP)\src\shell.c \ |
| 905 | $(TOP)\src\sqlite.h.in \ |
| 906 | $(TOP)\src\sqlite3ext.h \ |
| 907 | $(TOP)\src\sqliteInt.h \ |
| 908 | $(TOP)\src\sqliteLimit.h \ |
| 909 | $(TOP)\src\table.c \ |
drh | f51446a | 2012-07-21 19:40:42 +0000 | [diff] [blame] | 910 | $(TOP)\src\threads.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 911 | $(TOP)\src\tclsqlite.c \ |
| 912 | $(TOP)\src\tokenize.c \ |
| 913 | $(TOP)\src\trigger.c \ |
| 914 | $(TOP)\src\utf.c \ |
| 915 | $(TOP)\src\update.c \ |
| 916 | $(TOP)\src\util.c \ |
| 917 | $(TOP)\src\vacuum.c \ |
| 918 | $(TOP)\src\vdbe.c \ |
| 919 | $(TOP)\src\vdbe.h \ |
| 920 | $(TOP)\src\vdbeapi.c \ |
| 921 | $(TOP)\src\vdbeaux.c \ |
| 922 | $(TOP)\src\vdbeblob.c \ |
| 923 | $(TOP)\src\vdbemem.c \ |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 924 | $(TOP)\src\vdbesort.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 925 | $(TOP)\src\vdbetrace.c \ |
| 926 | $(TOP)\src\vdbeInt.h \ |
| 927 | $(TOP)\src\vtab.c \ |
drh | 8cd5b25 | 2015-03-02 22:06:43 +0000 | [diff] [blame] | 928 | $(TOP)\src\vxworks.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 929 | $(TOP)\src\wal.c \ |
| 930 | $(TOP)\src\wal.h \ |
| 931 | $(TOP)\src\walker.c \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 932 | $(TOP)\src\where.c \ |
| 933 | $(TOP)\src\whereInt.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 934 | |
| 935 | # Source code for extensions |
| 936 | # |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 937 | SRC3 = \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 938 | $(TOP)\ext\fts1\fts1.c \ |
| 939 | $(TOP)\ext\fts1\fts1.h \ |
| 940 | $(TOP)\ext\fts1\fts1_hash.c \ |
| 941 | $(TOP)\ext\fts1\fts1_hash.h \ |
| 942 | $(TOP)\ext\fts1\fts1_porter.c \ |
| 943 | $(TOP)\ext\fts1\fts1_tokenizer.h \ |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 944 | $(TOP)\ext\fts1\fts1_tokenizer1.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 945 | $(TOP)\ext\fts2\fts2.c \ |
| 946 | $(TOP)\ext\fts2\fts2.h \ |
| 947 | $(TOP)\ext\fts2\fts2_hash.c \ |
| 948 | $(TOP)\ext\fts2\fts2_hash.h \ |
| 949 | $(TOP)\ext\fts2\fts2_icu.c \ |
| 950 | $(TOP)\ext\fts2\fts2_porter.c \ |
| 951 | $(TOP)\ext\fts2\fts2_tokenizer.h \ |
| 952 | $(TOP)\ext\fts2\fts2_tokenizer.c \ |
| 953 | $(TOP)\ext\fts2\fts2_tokenizer1.c |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 954 | SRC4 = \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 955 | $(TOP)\ext\fts3\fts3.c \ |
| 956 | $(TOP)\ext\fts3\fts3.h \ |
| 957 | $(TOP)\ext\fts3\fts3Int.h \ |
| 958 | $(TOP)\ext\fts3\fts3_aux.c \ |
| 959 | $(TOP)\ext\fts3\fts3_expr.c \ |
| 960 | $(TOP)\ext\fts3\fts3_hash.c \ |
| 961 | $(TOP)\ext\fts3\fts3_hash.h \ |
| 962 | $(TOP)\ext\fts3\fts3_icu.c \ |
| 963 | $(TOP)\ext\fts3\fts3_porter.c \ |
| 964 | $(TOP)\ext\fts3\fts3_snippet.c \ |
| 965 | $(TOP)\ext\fts3\fts3_tokenizer.h \ |
| 966 | $(TOP)\ext\fts3\fts3_tokenizer.c \ |
| 967 | $(TOP)\ext\fts3\fts3_tokenizer1.c \ |
drh | 4d648c7 | 2013-04-22 17:07:56 +0000 | [diff] [blame] | 968 | $(TOP)\ext\fts3\fts3_tokenize_vtab.c \ |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 969 | $(TOP)\ext\fts3\fts3_unicode.c \ |
| 970 | $(TOP)\ext\fts3\fts3_unicode2.c \ |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 971 | $(TOP)\ext\fts3\fts3_write.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 972 | $(TOP)\ext\icu\sqliteicu.h \ |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 973 | $(TOP)\ext\icu\icu.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 974 | $(TOP)\ext\rtree\rtree.h \ |
drh | edea911 | 2015-03-24 19:02:13 +0000 | [diff] [blame] | 975 | $(TOP)\ext\rtree\rtree.c \ |
mistachkin | adb96a6 | 2012-01-16 12:33:36 +0000 | [diff] [blame] | 976 | $(TOP)\ext\session\sqlite3session.h \ |
| 977 | $(TOP)\ext\session\sqlite3session.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 978 | |
| 979 | |
| 980 | # Generated source code files |
| 981 | # |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 982 | SRC5 = \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 983 | keywordhash.h \ |
| 984 | opcodes.c \ |
| 985 | opcodes.h \ |
| 986 | parse.c \ |
| 987 | parse.h \ |
| 988 | sqlite3.h |
| 989 | |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 990 | # All source code files. |
| 991 | # |
| 992 | SRC = $(SRC1) $(SRC2) $(SRC3) $(SRC4) $(SRC5) |
| 993 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 994 | # Source code to the test files. |
| 995 | # |
| 996 | TESTSRC = \ |
| 997 | $(TOP)\src\test1.c \ |
| 998 | $(TOP)\src\test2.c \ |
| 999 | $(TOP)\src\test3.c \ |
| 1000 | $(TOP)\src\test4.c \ |
| 1001 | $(TOP)\src\test5.c \ |
| 1002 | $(TOP)\src\test6.c \ |
| 1003 | $(TOP)\src\test7.c \ |
| 1004 | $(TOP)\src\test8.c \ |
| 1005 | $(TOP)\src\test9.c \ |
| 1006 | $(TOP)\src\test_autoext.c \ |
| 1007 | $(TOP)\src\test_async.c \ |
| 1008 | $(TOP)\src\test_backup.c \ |
drh | 5de7d96 | 2014-12-05 00:17:39 +0000 | [diff] [blame] | 1009 | $(TOP)\src\test_blob.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1010 | $(TOP)\src\test_btree.c \ |
| 1011 | $(TOP)\src\test_config.c \ |
| 1012 | $(TOP)\src\test_demovfs.c \ |
| 1013 | $(TOP)\src\test_devsym.c \ |
mistachkin | 413c63b | 2013-01-17 03:18:14 +0000 | [diff] [blame] | 1014 | $(TOP)\src\test_fs.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1015 | $(TOP)\src\test_func.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1016 | $(TOP)\src\test_hexio.c \ |
| 1017 | $(TOP)\src\test_init.c \ |
| 1018 | $(TOP)\src\test_intarray.c \ |
| 1019 | $(TOP)\src\test_journal.c \ |
| 1020 | $(TOP)\src\test_malloc.c \ |
| 1021 | $(TOP)\src\test_multiplex.c \ |
| 1022 | $(TOP)\src\test_mutex.c \ |
| 1023 | $(TOP)\src\test_onefile.c \ |
| 1024 | $(TOP)\src\test_osinst.c \ |
| 1025 | $(TOP)\src\test_pcache.c \ |
| 1026 | $(TOP)\src\test_quota.c \ |
| 1027 | $(TOP)\src\test_rtree.c \ |
| 1028 | $(TOP)\src\test_schema.c \ |
| 1029 | $(TOP)\src\test_server.c \ |
| 1030 | $(TOP)\src\test_superlock.c \ |
| 1031 | $(TOP)\src\test_syscall.c \ |
| 1032 | $(TOP)\src\test_stat.c \ |
| 1033 | $(TOP)\src\test_tclvar.c \ |
| 1034 | $(TOP)\src\test_thread.c \ |
| 1035 | $(TOP)\src\test_vfs.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1036 | $(TOP)\src\test_wsd.c \ |
| 1037 | $(TOP)\ext\fts3\fts3_term.c \ |
mistachkin | adb96a6 | 2012-01-16 12:33:36 +0000 | [diff] [blame] | 1038 | $(TOP)\ext\fts3\fts3_test.c \ |
| 1039 | $(TOP)\ext\session\test_session.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1040 | |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 1041 | # Statically linked extensions |
| 1042 | # |
drh | 1fb64af | 2013-04-25 14:36:28 +0000 | [diff] [blame] | 1043 | TESTEXT = \ |
drh | 8416fc7 | 2013-04-25 16:42:55 +0000 | [diff] [blame] | 1044 | $(TOP)\ext\misc\amatch.c \ |
| 1045 | $(TOP)\ext\misc\closure.c \ |
drh | 1728bcb | 2014-11-10 16:49:56 +0000 | [diff] [blame] | 1046 | $(TOP)\ext\misc\eval.c \ |
drh | 51ed298 | 2014-06-16 12:44:32 +0000 | [diff] [blame] | 1047 | $(TOP)\ext\misc\fileio.c \ |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 1048 | $(TOP)\ext\misc\fuzzer.c \ |
drh | 8416fc7 | 2013-04-25 16:42:55 +0000 | [diff] [blame] | 1049 | $(TOP)\ext\misc\ieee754.c \ |
drh | ea41dc4 | 2013-04-25 19:31:33 +0000 | [diff] [blame] | 1050 | $(TOP)\ext\misc\nextchar.c \ |
drh | def3367 | 2013-05-28 20:25:54 +0000 | [diff] [blame] | 1051 | $(TOP)\ext\misc\percentile.c \ |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 1052 | $(TOP)\ext\misc\regexp.c \ |
drh | b7045ab | 2013-04-25 14:59:01 +0000 | [diff] [blame] | 1053 | $(TOP)\ext\misc\spellfix.c \ |
drh | 5f8cdac | 2013-10-14 21:14:42 +0000 | [diff] [blame] | 1054 | $(TOP)\ext\misc\totype.c \ |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 1055 | $(TOP)\ext\misc\wholenumber.c |
| 1056 | |
| 1057 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1058 | # Source code to the library files needed by the test fixture |
mistachkin | adb96a6 | 2012-01-16 12:33:36 +0000 | [diff] [blame] | 1059 | # (non-amalgamation) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1060 | # |
| 1061 | TESTSRC2 = \ |
| 1062 | $(TOP)\src\attach.c \ |
| 1063 | $(TOP)\src\backup.c \ |
| 1064 | $(TOP)\src\bitvec.c \ |
| 1065 | $(TOP)\src\btree.c \ |
| 1066 | $(TOP)\src\build.c \ |
| 1067 | $(TOP)\src\ctime.c \ |
| 1068 | $(TOP)\src\date.c \ |
| 1069 | $(TOP)\src\expr.c \ |
| 1070 | $(TOP)\src\func.c \ |
| 1071 | $(TOP)\src\insert.c \ |
| 1072 | $(TOP)\src\wal.c \ |
mistachkin | 0600663 | 2013-05-15 20:35:13 +0000 | [diff] [blame] | 1073 | $(TOP)\src\main.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1074 | $(TOP)\src\mem5.c \ |
| 1075 | $(TOP)\src\os.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1076 | $(TOP)\src\os_unix.c \ |
| 1077 | $(TOP)\src\os_win.c \ |
| 1078 | $(TOP)\src\pager.c \ |
| 1079 | $(TOP)\src\pragma.c \ |
| 1080 | $(TOP)\src\prepare.c \ |
| 1081 | $(TOP)\src\printf.c \ |
| 1082 | $(TOP)\src\random.c \ |
| 1083 | $(TOP)\src\pcache.c \ |
| 1084 | $(TOP)\src\pcache1.c \ |
| 1085 | $(TOP)\src\select.c \ |
| 1086 | $(TOP)\src\tokenize.c \ |
| 1087 | $(TOP)\src\utf.c \ |
| 1088 | $(TOP)\src\util.c \ |
| 1089 | $(TOP)\src\vdbeapi.c \ |
| 1090 | $(TOP)\src\vdbeaux.c \ |
| 1091 | $(TOP)\src\vdbe.c \ |
| 1092 | $(TOP)\src\vdbemem.c \ |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 1093 | $(TOP)\src\vdbesort.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1094 | $(TOP)\src\vdbetrace.c \ |
| 1095 | $(TOP)\src\where.c \ |
| 1096 | parse.c \ |
| 1097 | $(TOP)\ext\fts3\fts3.c \ |
| 1098 | $(TOP)\ext\fts3\fts3_aux.c \ |
| 1099 | $(TOP)\ext\fts3\fts3_expr.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1100 | $(TOP)\ext\fts3\fts3_tokenizer.c \ |
drh | 4d648c7 | 2013-04-22 17:07:56 +0000 | [diff] [blame] | 1101 | $(TOP)\ext\fts3\fts3_tokenize_vtab.c \ |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 1102 | $(TOP)\ext\fts3\fts3_unicode.c \ |
| 1103 | $(TOP)\ext\fts3\fts3_unicode2.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1104 | $(TOP)\ext\fts3\fts3_write.c \ |
mistachkin | adb96a6 | 2012-01-16 12:33:36 +0000 | [diff] [blame] | 1105 | $(TOP)\ext\async\sqlite3async.c \ |
| 1106 | $(TOP)\ext\session\sqlite3session.c |
| 1107 | |
| 1108 | # Source code to the library files needed by the test fixture |
| 1109 | # (amalgamation) |
| 1110 | # |
drh | c03edc0 | 2013-03-18 16:24:33 +0000 | [diff] [blame] | 1111 | TESTSRC3 = |
| 1112 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1113 | |
| 1114 | # Header files used by all library source files. |
| 1115 | # |
| 1116 | HDR = \ |
| 1117 | $(TOP)\src\btree.h \ |
| 1118 | $(TOP)\src\btreeInt.h \ |
| 1119 | $(TOP)\src\hash.h \ |
| 1120 | $(TOP)\src\hwtime.h \ |
| 1121 | keywordhash.h \ |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 1122 | $(TOP)\src\msvc.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1123 | $(TOP)\src\mutex.h \ |
| 1124 | opcodes.h \ |
| 1125 | $(TOP)\src\os.h \ |
| 1126 | $(TOP)\src\os_common.h \ |
mistachkin | f74b9e0 | 2013-11-26 01:00:31 +0000 | [diff] [blame] | 1127 | $(TOP)\src\os_setup.h \ |
mistachkin | 8bc5262 | 2013-11-25 09:36:07 +0000 | [diff] [blame] | 1128 | $(TOP)\src\os_win.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1129 | $(TOP)\src\pager.h \ |
| 1130 | $(TOP)\src\pcache.h \ |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1131 | parse.h \ |
drh | 67e65e5 | 2015-02-02 21:34:54 +0000 | [diff] [blame] | 1132 | $(TOP)\src\pragma.h \ |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1133 | sqlite3.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1134 | $(TOP)\src\sqlite3ext.h \ |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1135 | $(TOP)\src\sqliteInt.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1136 | $(TOP)\src\sqliteLimit.h \ |
| 1137 | $(TOP)\src\vdbe.h \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 1138 | $(TOP)\src\vdbeInt.h \ |
drh | 8cd5b25 | 2015-03-02 22:06:43 +0000 | [diff] [blame] | 1139 | $(TOP)\src\vxworks.h \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 1140 | $(TOP)\src\whereInt.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1141 | |
| 1142 | # Header files used by extensions |
| 1143 | # |
| 1144 | EXTHDR = $(EXTHDR) \ |
| 1145 | $(TOP)\ext\fts1\fts1.h \ |
| 1146 | $(TOP)\ext\fts1\fts1_hash.h \ |
| 1147 | $(TOP)\ext\fts1\fts1_tokenizer.h |
| 1148 | EXTHDR = $(EXTHDR) \ |
| 1149 | $(TOP)\ext\fts2\fts2.h \ |
| 1150 | $(TOP)\ext\fts2\fts2_hash.h \ |
| 1151 | $(TOP)\ext\fts2\fts2_tokenizer.h |
| 1152 | EXTHDR = $(EXTHDR) \ |
| 1153 | $(TOP)\ext\fts3\fts3.h \ |
| 1154 | $(TOP)\ext\fts3\fts3Int.h \ |
| 1155 | $(TOP)\ext\fts3\fts3_hash.h \ |
| 1156 | $(TOP)\ext\fts3\fts3_tokenizer.h |
| 1157 | EXTHDR = $(EXTHDR) \ |
| 1158 | $(TOP)\ext\rtree\rtree.h |
| 1159 | EXTHDR = $(EXTHDR) \ |
| 1160 | $(TOP)\ext\icu\sqliteicu.h |
| 1161 | EXTHDR = $(EXTHDR) \ |
| 1162 | $(TOP)\ext\rtree\sqlite3rtree.h |
mistachkin | adb96a6 | 2012-01-16 12:33:36 +0000 | [diff] [blame] | 1163 | EXTHDR = $(EXTHDR) \ |
| 1164 | $(TOP)\ext\session\sqlite3session.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1165 | |
| 1166 | # This is the default Makefile target. The objects listed here |
| 1167 | # are what get build when you type just "make" with no arguments. |
| 1168 | # |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1169 | all: dll libsqlite3.lib sqlite3.exe libtclsqlite3.lib |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1170 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1171 | libsqlite3.lib: $(LIBOBJ) |
shaneh | 29ebea8 | 2011-06-21 18:12:07 +0000 | [diff] [blame] | 1172 | $(LTLIB) $(LTLIBOPTS) /OUT:$@ $(LIBOBJ) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1173 | |
| 1174 | libtclsqlite3.lib: tclsqlite.lo libsqlite3.lib |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 1175 | $(LTLIB) $(LTLIBOPTS) $(LTLIBPATHS) /OUT:$@ tclsqlite.lo libsqlite3.lib $(LIBTCL:tcl=tclstub) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1176 | |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1177 | sqlite3.exe: $(TOP)\src\shell.c $(SHELL_CORE_DEP) $(LIBRESOBJS) sqlite3.h |
| 1178 | $(LTLINK) $(SHELL_COMPILE_OPTS) $(READLINE_FLAGS) $(TOP)\src\shell.c \ |
| 1179 | /link /pdb:sqlite3sh.pdb $(LTLINKOPTS) $(SHELL_LINK_OPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LIBREADLINE) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1180 | |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1181 | mptester.exe: $(TOP)\mptest\mptest.c $(SHELL_CORE_DEP) $(LIBRESOBJS) sqlite3.h |
| 1182 | $(LTLINK) $(SHELL_COMPILE_OPTS) $(TOP)\mptest\mptest.c \ |
| 1183 | /link $(LTLINKOPTS) $(LTLIBPATHS) $(SHELL_LINK_OPTS) $(LIBRESOBJS) $(LIBREADLINE) $(LTLIBS) $(TLIBS) |
drh | bc94dbb | 2013-04-08 14:28:33 +0000 | [diff] [blame] | 1184 | |
mistachkin | 4d2daba | 2015-03-31 16:42:16 +0000 | [diff] [blame] | 1185 | MPTEST1 = mptester mptest.db $(TOP)/mptest/crash01.test --repeat 20 |
| 1186 | MPTEST2 = mptester mptest.db $(TOP)/mptest/multiwrite01.test --repeat 20 |
| 1187 | |
drh | fe0ba71 | 2015-03-31 13:46:13 +0000 | [diff] [blame] | 1188 | mptest: mptester.exe |
mistachkin | 4d2daba | 2015-03-31 16:42:16 +0000 | [diff] [blame] | 1189 | del /Q mptest.db 2>NUL |
drh | fe0ba71 | 2015-03-31 13:46:13 +0000 | [diff] [blame] | 1190 | $(MPTEST1) --journalmode DELETE |
| 1191 | $(MPTEST2) --journalmode WAL |
| 1192 | $(MPTEST1) --journalmode WAL |
| 1193 | $(MPTEST2) --journalmode PERSIST |
| 1194 | $(MPTEST1) --journalmode PERSIST |
| 1195 | $(MPTEST2) --journalmode TRUNCATE |
| 1196 | $(MPTEST1) --journalmode TRUNCATE |
| 1197 | $(MPTEST2) --journalmode DELETE |
| 1198 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1199 | # This target creates a directory named "tsrc" and fills it with |
| 1200 | # copies of all of the C source code and header files needed to |
| 1201 | # build on the target system. Some of the C source code and header |
| 1202 | # files are automatically generated. This target takes care of |
| 1203 | # all that automatic generation. |
| 1204 | # |
| 1205 | .target_source: $(SRC) $(TOP)\tool\vdbe-compress.tcl |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1206 | -rmdir /Q/S tsrc 2>NUL |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1207 | -mkdir tsrc |
drh | 6267920 | 2015-01-29 18:38:05 +0000 | [diff] [blame] | 1208 | for %i in ($(SRC1)) do copy /Y %i tsrc |
| 1209 | for %i in ($(SRC2)) do copy /Y %i tsrc |
| 1210 | for %i in ($(SRC3)) do copy /Y %i tsrc |
| 1211 | for %i in ($(SRC4)) do copy /Y %i tsrc |
| 1212 | for %i in ($(SRC5)) do copy /Y %i tsrc |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1213 | del /Q tsrc\sqlite.h.in tsrc\parse.y 2>NUL |
drh | 2dc0648 | 2013-12-11 00:59:10 +0000 | [diff] [blame] | 1214 | $(TCLSH_CMD) $(TOP)\tool\vdbe-compress.tcl $(OPTS) < tsrc\vdbe.c > vdbe.new |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1215 | move vdbe.new tsrc\vdbe.c |
| 1216 | echo > .target_source |
| 1217 | |
| 1218 | sqlite3.c: .target_source $(TOP)\tool\mksqlite3c.tcl |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 1219 | $(TCLSH_CMD) $(TOP)\tool\mksqlite3c.tcl $(MKSQLITE3C_ARGS) |
drh | e191e2c | 2013-03-19 15:23:18 +0000 | [diff] [blame] | 1220 | copy tsrc\shell.c . |
| 1221 | copy tsrc\sqlite3ext.h . |
| 1222 | copy $(TOP)\ext\session\sqlite3session.h . |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1223 | |
mistachkin | 48dd9de | 2012-12-06 04:33:13 +0000 | [diff] [blame] | 1224 | sqlite3-all.c: sqlite3.c $(TOP)\tool\split-sqlite3c.tcl |
| 1225 | $(TCLSH_CMD) $(TOP)\tool\split-sqlite3c.tcl |
drh | 75e7bc1 | 2011-07-22 11:23:49 +0000 | [diff] [blame] | 1226 | |
mistachkin | 7651091 | 2013-10-11 23:01:18 +0000 | [diff] [blame] | 1227 | # Set the source code file to be used by executables and libraries when |
| 1228 | # they need the amalgamation. |
| 1229 | # |
| 1230 | !IF $(SPLIT_AMALGAMATION)!=0 |
| 1231 | SQLITE3C = sqlite3-all.c |
| 1232 | !ELSE |
| 1233 | SQLITE3C = sqlite3.c |
| 1234 | !ENDIF |
| 1235 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1236 | # Rule to build the amalgamation |
| 1237 | # |
mistachkin | 7651091 | 2013-10-11 23:01:18 +0000 | [diff] [blame] | 1238 | sqlite3.lo: $(SQLITE3C) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1239 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(SQLITE3C) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1240 | |
| 1241 | # Rules to build the LEMON compiler generator |
| 1242 | # |
| 1243 | lempar.c: $(TOP)\src\lempar.c |
| 1244 | copy $(TOP)\src\lempar.c . |
| 1245 | |
| 1246 | lemon.exe: $(TOP)\tool\lemon.c lempar.c |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 1247 | $(BCC) $(NO_WARN) -Daccess=_access \ |
| 1248 | -Fe$@ $(TOP)\tool\lemon.c /link $(NLTLINKOPTS) $(NLTLIBPATHS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1249 | |
| 1250 | # Rules to build individual *.lo files from generated *.c files. This |
| 1251 | # applies to: |
| 1252 | # |
| 1253 | # parse.lo |
| 1254 | # opcodes.lo |
| 1255 | # |
| 1256 | parse.lo: parse.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1257 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c parse.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1258 | |
| 1259 | opcodes.lo: opcodes.c |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1260 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c opcodes.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1261 | |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1262 | # Rule to build the Win32 resources object file. |
| 1263 | # |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1264 | !IF $(USE_RC)!=0 |
| 1265 | $(LIBRESOBJS): $(TOP)\src\sqlite3.rc $(HDR) |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1266 | echo #ifndef SQLITE_RESOURCE_VERSION > sqlite3rc.h |
mistachkin | 8ccc6d4 | 2012-09-27 21:03:53 +0000 | [diff] [blame] | 1267 | for /F %%V in ('type "$(TOP)\VERSION"') do ( \ |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1268 | echo #define SQLITE_RESOURCE_VERSION %%V \ |
mistachkin | 597a8c5 | 2012-09-03 11:14:53 +0000 | [diff] [blame] | 1269 | | $(NAWK) "/.*/ { gsub(/[.]/,\",\");print }" >> sqlite3rc.h \ |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1270 | ) |
| 1271 | echo #endif >> sqlite3rc.h |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1272 | $(LTRCOMPILE) -fo $(LIBRESOBJS) $(TOP)\src\sqlite3.rc |
| 1273 | !ENDIF |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1274 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1275 | # Rules to build individual *.lo files from files in the src directory. |
| 1276 | # |
| 1277 | alter.lo: $(TOP)\src\alter.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1278 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\alter.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1279 | |
| 1280 | analyze.lo: $(TOP)\src\analyze.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1281 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\analyze.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1282 | |
| 1283 | attach.lo: $(TOP)\src\attach.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1284 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\attach.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1285 | |
| 1286 | auth.lo: $(TOP)\src\auth.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1287 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\auth.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1288 | |
| 1289 | backup.lo: $(TOP)\src\backup.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1290 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\backup.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1291 | |
| 1292 | bitvec.lo: $(TOP)\src\bitvec.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1293 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\bitvec.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1294 | |
| 1295 | btmutex.lo: $(TOP)\src\btmutex.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1296 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btmutex.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1297 | |
| 1298 | btree.lo: $(TOP)\src\btree.c $(HDR) $(TOP)\src\pager.h |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1299 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\btree.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1300 | |
| 1301 | build.lo: $(TOP)\src\build.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1302 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\build.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1303 | |
| 1304 | callback.lo: $(TOP)\src\callback.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1305 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\callback.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1306 | |
| 1307 | complete.lo: $(TOP)\src\complete.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1308 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\complete.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1309 | |
| 1310 | ctime.lo: $(TOP)\src\ctime.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1311 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\ctime.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1312 | |
| 1313 | date.lo: $(TOP)\src\date.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1314 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\date.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1315 | |
| 1316 | delete.lo: $(TOP)\src\delete.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1317 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\delete.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1318 | |
| 1319 | expr.lo: $(TOP)\src\expr.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1320 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\expr.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1321 | |
| 1322 | fault.lo: $(TOP)\src\fault.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1323 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fault.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1324 | |
| 1325 | fkey.lo: $(TOP)\src\fkey.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1326 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\fkey.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1327 | |
| 1328 | func.lo: $(TOP)\src\func.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1329 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\func.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1330 | |
| 1331 | global.lo: $(TOP)\src\global.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1332 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\global.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1333 | |
| 1334 | hash.lo: $(TOP)\src\hash.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1335 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\hash.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1336 | |
| 1337 | insert.lo: $(TOP)\src\insert.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1338 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\insert.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1339 | |
| 1340 | journal.lo: $(TOP)\src\journal.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1341 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\journal.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1342 | |
| 1343 | legacy.lo: $(TOP)\src\legacy.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1344 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\legacy.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1345 | |
| 1346 | loadext.lo: $(TOP)\src\loadext.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1347 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\loadext.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1348 | |
| 1349 | main.lo: $(TOP)\src\main.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1350 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\main.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1351 | |
| 1352 | malloc.lo: $(TOP)\src\malloc.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1353 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\malloc.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1354 | |
| 1355 | mem0.lo: $(TOP)\src\mem0.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1356 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem0.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1357 | |
| 1358 | mem1.lo: $(TOP)\src\mem1.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1359 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem1.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1360 | |
| 1361 | mem2.lo: $(TOP)\src\mem2.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1362 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem2.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1363 | |
| 1364 | mem3.lo: $(TOP)\src\mem3.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1365 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem3.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1366 | |
| 1367 | mem5.lo: $(TOP)\src\mem5.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1368 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mem5.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1369 | |
| 1370 | memjournal.lo: $(TOP)\src\memjournal.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1371 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\memjournal.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1372 | |
| 1373 | mutex.lo: $(TOP)\src\mutex.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1374 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1375 | |
| 1376 | mutex_noop.lo: $(TOP)\src\mutex_noop.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1377 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_noop.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1378 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1379 | mutex_unix.lo: $(TOP)\src\mutex_unix.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1380 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_unix.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1381 | |
| 1382 | mutex_w32.lo: $(TOP)\src\mutex_w32.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1383 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\mutex_w32.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1384 | |
| 1385 | notify.lo: $(TOP)\src\notify.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1386 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\notify.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1387 | |
| 1388 | pager.lo: $(TOP)\src\pager.c $(HDR) $(TOP)\src\pager.h |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1389 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pager.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1390 | |
| 1391 | pcache.lo: $(TOP)\src\pcache.c $(HDR) $(TOP)\src\pcache.h |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1392 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1393 | |
| 1394 | pcache1.lo: $(TOP)\src\pcache1.c $(HDR) $(TOP)\src\pcache.h |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1395 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pcache1.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1396 | |
| 1397 | os.lo: $(TOP)\src\os.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1398 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1399 | |
| 1400 | os_unix.lo: $(TOP)\src\os_unix.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1401 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_unix.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1402 | |
| 1403 | os_win.lo: $(TOP)\src\os_win.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1404 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\os_win.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1405 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1406 | pragma.lo: $(TOP)\src\pragma.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1407 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\pragma.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1408 | |
| 1409 | prepare.lo: $(TOP)\src\prepare.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1410 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\prepare.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1411 | |
| 1412 | printf.lo: $(TOP)\src\printf.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1413 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\printf.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1414 | |
| 1415 | random.lo: $(TOP)\src\random.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1416 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\random.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1417 | |
| 1418 | resolve.lo: $(TOP)\src\resolve.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1419 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\resolve.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1420 | |
| 1421 | rowset.lo: $(TOP)\src\rowset.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1422 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\rowset.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1423 | |
| 1424 | select.lo: $(TOP)\src\select.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1425 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\select.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1426 | |
| 1427 | status.lo: $(TOP)\src\status.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1428 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\status.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1429 | |
| 1430 | table.lo: $(TOP)\src\table.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1431 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\table.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1432 | |
drh | f51446a | 2012-07-21 19:40:42 +0000 | [diff] [blame] | 1433 | threads.lo: $(TOP)\src\threads.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1434 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\threads.c |
drh | f51446a | 2012-07-21 19:40:42 +0000 | [diff] [blame] | 1435 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1436 | tokenize.lo: $(TOP)\src\tokenize.c keywordhash.h $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1437 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\tokenize.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1438 | |
| 1439 | trigger.lo: $(TOP)\src\trigger.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1440 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\trigger.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1441 | |
| 1442 | update.lo: $(TOP)\src\update.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1443 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\update.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1444 | |
| 1445 | utf.lo: $(TOP)\src\utf.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1446 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\utf.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1447 | |
| 1448 | util.lo: $(TOP)\src\util.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1449 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\util.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1450 | |
| 1451 | vacuum.lo: $(TOP)\src\vacuum.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1452 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vacuum.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1453 | |
| 1454 | vdbe.lo: $(TOP)\src\vdbe.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1455 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbe.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1456 | |
| 1457 | vdbeapi.lo: $(TOP)\src\vdbeapi.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1458 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeapi.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1459 | |
| 1460 | vdbeaux.lo: $(TOP)\src\vdbeaux.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1461 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeaux.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1462 | |
| 1463 | vdbeblob.lo: $(TOP)\src\vdbeblob.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1464 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbeblob.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1465 | |
| 1466 | vdbemem.lo: $(TOP)\src\vdbemem.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1467 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbemem.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1468 | |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 1469 | vdbesort.lo: $(TOP)\src\vdbesort.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1470 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbesort.c |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 1471 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1472 | vdbetrace.lo: $(TOP)\src\vdbetrace.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1473 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vdbetrace.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1474 | |
| 1475 | vtab.lo: $(TOP)\src\vtab.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1476 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\vtab.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1477 | |
| 1478 | wal.lo: $(TOP)\src\wal.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1479 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\wal.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1480 | |
| 1481 | walker.lo: $(TOP)\src\walker.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1482 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\walker.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1483 | |
| 1484 | where.lo: $(TOP)\src\where.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1485 | $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\where.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1486 | |
| 1487 | tclsqlite.lo: $(TOP)\src\tclsqlite.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1488 | $(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] | 1489 | |
| 1490 | tclsqlite-shell.lo: $(TOP)\src\tclsqlite.c $(HDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1491 | $(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] | 1492 | |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1493 | tclsqlite3.exe: tclsqlite-shell.lo $(SQLITE3C) $(LIBRESOBJS) |
| 1494 | $(LTLINK) $(SQLITE3C) /link $(LTLINKOPTS) $(LTLIBPATHS) /OUT:$@ tclsqlite-shell.lo $(LIBRESOBJS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1495 | |
| 1496 | # Rules to build opcodes.c and opcodes.h |
| 1497 | # |
| 1498 | opcodes.c: opcodes.h $(TOP)\mkopcodec.awk |
drh | 307ff30 | 2011-08-30 01:29:04 +0000 | [diff] [blame] | 1499 | $(NAWK) -f $(TOP)\mkopcodec.awk opcodes.h > opcodes.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1500 | |
| 1501 | opcodes.h: parse.h $(TOP)\src\vdbe.c $(TOP)\mkopcodeh.awk |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1502 | type parse.h $(TOP)\src\vdbe.c | $(NAWK) -f $(TOP)\mkopcodeh.awk > opcodes.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1503 | |
| 1504 | # Rules to build parse.c and parse.h - the outputs of lemon. |
| 1505 | # |
| 1506 | parse.h: parse.c |
| 1507 | |
| 1508 | parse.c: $(TOP)\src\parse.y lemon.exe $(TOP)\addopcodes.awk |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1509 | del /Q parse.y parse.h parse.h.temp 2>NUL |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1510 | copy $(TOP)\src\parse.y . |
mistachkin | 4712c21 | 2014-05-09 20:51:17 +0000 | [diff] [blame] | 1511 | .\lemon.exe $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1512 | move parse.h parse.h.temp |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1513 | $(NAWK) -f $(TOP)\addopcodes.awk parse.h.temp > parse.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1514 | |
| 1515 | sqlite3.h: $(TOP)\src\sqlite.h.in $(TOP)\manifest.uuid $(TOP)\VERSION |
mistachkin | 3f40d40 | 2014-02-13 21:57:48 +0000 | [diff] [blame] | 1516 | $(TCLSH_CMD) $(TOP)\tool\mksqlite3h.tcl $(TOP:\=/) > sqlite3.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1517 | |
| 1518 | mkkeywordhash.exe: $(TOP)\tool\mkkeywordhash.c |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 1519 | $(BCC) $(NO_WARN) -Fe$@ $(REQ_FEATURE_FLAGS) $(OPT_FEATURE_FLAGS) $(OPTS) \ |
| 1520 | $(TOP)\tool\mkkeywordhash.c /link $(NLTLINKOPTS) $(NLTLIBPATHS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1521 | |
| 1522 | keywordhash.h: $(TOP)\tool\mkkeywordhash.c mkkeywordhash.exe |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1523 | .\mkkeywordhash.exe > keywordhash.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1524 | |
| 1525 | |
| 1526 | |
| 1527 | # Rules to build the extension objects. |
| 1528 | # |
| 1529 | icu.lo: $(TOP)\ext\icu\icu.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1530 | $(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] | 1531 | |
| 1532 | fts2.lo: $(TOP)\ext\fts2\fts2.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1533 | $(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] | 1534 | |
| 1535 | fts2_hash.lo: $(TOP)\ext\fts2\fts2_hash.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1536 | $(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] | 1537 | |
| 1538 | fts2_icu.lo: $(TOP)\ext\fts2\fts2_icu.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1539 | $(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] | 1540 | |
| 1541 | fts2_porter.lo: $(TOP)\ext\fts2\fts2_porter.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1542 | $(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] | 1543 | |
| 1544 | fts2_tokenizer.lo: $(TOP)\ext\fts2\fts2_tokenizer.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1545 | $(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] | 1546 | |
| 1547 | fts2_tokenizer1.lo: $(TOP)\ext\fts2\fts2_tokenizer1.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1548 | $(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] | 1549 | |
| 1550 | fts3.lo: $(TOP)\ext\fts3\fts3.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1551 | $(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] | 1552 | |
| 1553 | fts3_aux.lo: $(TOP)\ext\fts3\fts3_aux.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1554 | $(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] | 1555 | |
| 1556 | fts3_expr.lo: $(TOP)\ext\fts3\fts3_expr.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1557 | $(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] | 1558 | |
| 1559 | fts3_hash.lo: $(TOP)\ext\fts3\fts3_hash.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1560 | $(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] | 1561 | |
| 1562 | fts3_icu.lo: $(TOP)\ext\fts3\fts3_icu.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1563 | $(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] | 1564 | |
| 1565 | fts3_snippet.lo: $(TOP)\ext\fts3\fts3_snippet.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1566 | $(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] | 1567 | |
| 1568 | fts3_porter.lo: $(TOP)\ext\fts3\fts3_porter.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1569 | $(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] | 1570 | |
| 1571 | fts3_tokenizer.lo: $(TOP)\ext\fts3\fts3_tokenizer.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1572 | $(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] | 1573 | |
| 1574 | fts3_tokenizer1.lo: $(TOP)\ext\fts3\fts3_tokenizer1.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1575 | $(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] | 1576 | |
drh | 4d648c7 | 2013-04-22 17:07:56 +0000 | [diff] [blame] | 1577 | fts3_tokenize_vtab.lo: $(TOP)\ext\fts3\fts3_tokenize_vtab.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1578 | $(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] | 1579 | |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 1580 | fts3_unicode.lo: $(TOP)\ext\fts3\fts3_unicode.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1581 | $(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] | 1582 | |
| 1583 | fts3_unicode2.lo: $(TOP)\ext\fts3\fts3_unicode2.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1584 | $(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] | 1585 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1586 | fts3_write.lo: $(TOP)\ext\fts3\fts3_write.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1587 | $(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] | 1588 | |
| 1589 | rtree.lo: $(TOP)\ext\rtree\rtree.c $(HDR) $(EXTHDR) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1590 | $(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] | 1591 | |
mistachkin | 38b4daa | 2013-03-13 19:02:39 +0000 | [diff] [blame] | 1592 | sqlite3session.lo: $(TOP)\ext\session\sqlite3sesion.c $(HDR) $(EXTHDR) |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 1593 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\session\sqlite3session.c |
| 1594 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1595 | |
| 1596 | # Rules to build the 'testfixture' application. |
| 1597 | # |
| 1598 | # If using the amalgamation, use sqlite3.c directly to build the test |
| 1599 | # fixture. Otherwise link against libsqlite3.lib. (This distinction is |
| 1600 | # necessary because the test fixture requires non-API symbols which are |
| 1601 | # hidden when the library is built via the amalgamation). |
| 1602 | # |
| 1603 | TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 |
mistachkin | 27b2f05 | 2015-01-12 19:49:46 +0000 | [diff] [blame] | 1604 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" |
| 1605 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_CORE $(NO_WARN) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1606 | |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1607 | TESTFIXTURE_SRC0 = $(TESTEXT) $(TESTSRC2) $(SHELL_CORE_DEP) |
drh | 9327c70 | 2013-10-15 14:10:44 +0000 | [diff] [blame] | 1608 | TESTFIXTURE_SRC1 = $(TESTEXT) $(TESTSRC3) $(SQLITE3C) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1609 | !IF $(USE_AMALGAMATION)==0 |
| 1610 | TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC0) |
| 1611 | !ELSE |
| 1612 | TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC1) |
| 1613 | !ENDIF |
| 1614 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1615 | testfixture.exe: $(TESTFIXTURE_SRC) $(LIBRESOBJS) $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1616 | $(LTLINK) -DSQLITE_NO_SYNC=1 $(TESTFIXTURE_FLAGS) \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1617 | -DBUILD_sqlite -I$(TCLINCDIR) \ |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 1618 | $(TESTFIXTURE_SRC) \ |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1619 | /link $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1620 | |
mistachkin | 1925a2e | 2014-02-24 21:20:25 +0000 | [diff] [blame] | 1621 | extensiontest: testfixture.exe testloadext.dll |
| 1622 | .\testfixture.exe $(TOP)\test\loadext.test |
mistachkin | 1925a2e | 2014-02-24 21:20:25 +0000 | [diff] [blame] | 1623 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1624 | fulltest: testfixture.exe sqlite3.exe |
| 1625 | .\testfixture.exe $(TOP)\test\all.test |
| 1626 | |
| 1627 | soaktest: testfixture.exe sqlite3.exe |
| 1628 | .\testfixture.exe $(TOP)\test\all.test -soak=1 |
| 1629 | |
mistachkin | c60941f | 2012-09-13 01:51:02 +0000 | [diff] [blame] | 1630 | fulltestonly: testfixture.exe sqlite3.exe |
| 1631 | .\testfixture.exe $(TOP)\test\full.test |
| 1632 | |
mistachkin | 036acf3 | 2013-07-20 00:34:31 +0000 | [diff] [blame] | 1633 | queryplantest: testfixture.exe sqlite3.exe |
| 1634 | .\testfixture.exe $(TOP)\test\permutations.test queryplanner |
| 1635 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1636 | test: testfixture.exe sqlite3.exe |
| 1637 | .\testfixture.exe $(TOP)\test\veryquick.test |
| 1638 | |
mistachkin | 7651091 | 2013-10-11 23:01:18 +0000 | [diff] [blame] | 1639 | sqlite3_analyzer.c: $(SQLITE3C) $(TOP)\src\test_stat.c $(TOP)\src\tclsqlite.c $(TOP)\tool\spaceanal.tcl |
| 1640 | copy $(SQLITE3C) + $(TOP)\src\test_stat.c + $(TOP)\src\tclsqlite.c $@ |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 1641 | echo static const char *tclsh_main_loop(void){ >> $@ |
| 1642 | echo static const char *zMainloop = >> $@ |
| 1643 | $(NAWK) -f $(TOP)\tool\tostr.awk $(TOP)\tool\spaceanal.tcl >> $@ |
| 1644 | echo ; return zMainloop; } >> $@ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1645 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1646 | sqlite3_analyzer.exe: sqlite3_analyzer.c $(LIBRESOBJS) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1647 | $(LTLINK) $(NO_WARN) -DBUILD_sqlite -DTCLSH=2 -I$(TCLINCDIR) sqlite3_analyzer.c \ |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1648 | /link $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1649 | |
mistachkin | 1925a2e | 2014-02-24 21:20:25 +0000 | [diff] [blame] | 1650 | testloadext.lo: $(TOP)\src\test_loadext.c |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1651 | $(LTCOMPILE) $(NO_WARN) -c $(TOP)\src\test_loadext.c |
mistachkin | 1925a2e | 2014-02-24 21:20:25 +0000 | [diff] [blame] | 1652 | |
| 1653 | testloadext.dll: testloadext.lo |
| 1654 | $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /OUT:$@ testloadext.lo |
| 1655 | |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 1656 | showdb.exe: $(TOP)\tool\showdb.c $(SQLITE3C) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1657 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 1658 | $(TOP)\tool\showdb.c $(SQLITE3C) |
drh | 9ac3c1e | 2013-11-07 18:37:31 +0000 | [diff] [blame] | 1659 | |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 1660 | showstat4.exe: $(TOP)\tool\showstat4.c $(SQLITE3C) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1661 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 1662 | $(TOP)\tool\showstat4.c $(SQLITE3C) |
| 1663 | |
| 1664 | showjournal.exe: $(TOP)\tool\showjournal.c $(SQLITE3C) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1665 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 1666 | $(TOP)\tool\showjournal.c $(SQLITE3C) |
| 1667 | |
| 1668 | showwal.exe: $(TOP)\tool\showwal.c $(SQLITE3C) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1669 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 1670 | $(TOP)\tool\showwal.c $(SQLITE3C) |
| 1671 | |
drh | 9f674f2 | 2014-08-18 20:23:29 +0000 | [diff] [blame] | 1672 | changeset.exe: $(TOP)\ext\session\changeset.c $(SQLITE3C) |
| 1673 | $(LTLINK) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ |
| 1674 | $(TOP)\ext\session\changeset.c $(SQLITE3C) |
| 1675 | |
mistachkin | de54527 | 2014-07-07 17:57:50 +0000 | [diff] [blame] | 1676 | fts3view.exe: $(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1677 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ |
mistachkin | de54527 | 2014-07-07 17:57:50 +0000 | [diff] [blame] | 1678 | $(TOP)\ext\fts3\tool\fts3view.c $(SQLITE3C) |
| 1679 | |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 1680 | rollback-test.exe: $(TOP)\tool\rollback-test.c $(SQLITE3C) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1681 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 1682 | $(TOP)\tool\rollback-test.c $(SQLITE3C) |
| 1683 | |
drh | 267a13f | 2014-06-18 18:10:12 +0000 | [diff] [blame] | 1684 | LogEst.exe: $(TOP)\tool\logest.c sqlite3.h |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1685 | $(LTLINK) $(NO_WARN) -Fe$@ $(TOP)\tool\LogEst.c |
drh | 267a13f | 2014-06-18 18:10:12 +0000 | [diff] [blame] | 1686 | |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 1687 | wordcount.exe: $(TOP)\test\wordcount.c $(SQLITE3C) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1688 | $(LTLINK) $(NO_WARN) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 1689 | $(TOP)\test\wordcount.c $(SQLITE3C) |
drh | 9ac3c1e | 2013-11-07 18:37:31 +0000 | [diff] [blame] | 1690 | |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 1691 | speedtest1.exe: $(TOP)\test\speedtest1.c $(SQLITE3C) |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1692 | $(LTLINK) $(NO_WARN) -DSQLITE_OMIT_LOAD_EXTENSION -Fe$@ \ |
mistachkin | b042751 | 2014-01-30 11:12:52 +0000 | [diff] [blame] | 1693 | $(TOP)\test\speedtest1.c $(SQLITE3C) |
mistachkin | b482a44 | 2012-02-11 22:19:26 +0000 | [diff] [blame] | 1694 | |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1695 | clean: |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1696 | del /Q *.exp *.lo *.ilk *.lib *.obj *.pdb 2>NUL |
mistachkin | 8d8738e | 2015-02-25 01:06:08 +0000 | [diff] [blame] | 1697 | del /Q *.cod *.da *.bb *.bbg gmon.out 2>NUL |
| 1698 | del /Q sqlite3.h opcodes.c opcodes.h 2>NUL |
| 1699 | del /Q lemon.* lempar.c parse.* 2>NUL |
| 1700 | del /Q mkkeywordhash.* keywordhash.h 2>NUL |
| 1701 | del /Q notasharedlib.* 2>NUL |
| 1702 | -rmdir /Q/S .deps 2>NUL |
| 1703 | -rmdir /Q/S .libs 2>NUL |
| 1704 | -rmdir /Q/S quota2a 2>NUL |
| 1705 | -rmdir /Q/S quota2b 2>NUL |
| 1706 | -rmdir /Q/S quota2c 2>NUL |
| 1707 | -rmdir /Q/S tsrc 2>NUL |
| 1708 | del /Q .target_source 2>NUL |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1709 | del /Q tclsqlite3.exe 2>NUL |
| 1710 | del /Q testloadext.dll 2>NUL |
| 1711 | del /Q testfixture.exe test.db 2>NUL |
mistachkin | 8d8738e | 2015-02-25 01:06:08 +0000 | [diff] [blame] | 1712 | del /Q LogEst.exe fts3view.exe rollback-test.exe showdb.exe 2>NUL |
drh | edea911 | 2015-03-24 19:02:13 +0000 | [diff] [blame] | 1713 | del /Q changeset.exe 2>NUL |
mistachkin | 8d8738e | 2015-02-25 01:06:08 +0000 | [diff] [blame] | 1714 | del /Q showjournal.exe showstat4.exe showwal.exe speedtest1.exe 2>NUL |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1715 | del /Q mptester.exe wordcount.exe 2>NUL |
| 1716 | del /Q sqlite3.exe sqlite3.dll sqlite3.def 2>NUL |
mistachkin | 8d8738e | 2015-02-25 01:06:08 +0000 | [diff] [blame] | 1717 | del /Q sqlite3.c sqlite3-*.c 2>NUL |
| 1718 | del /Q sqlite3rc.h 2>NUL |
| 1719 | del /Q shell.c sqlite3ext.h 2>NUL |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1720 | del /Q sqlite3_analyzer.exe sqlite3_analyzer.c 2>NUL |
mistachkin | 8d8738e | 2015-02-25 01:06:08 +0000 | [diff] [blame] | 1721 | del /Q sqlite-*-output.vsix 2>NUL |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1722 | |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1723 | # Dynamic link library section. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1724 | # |
| 1725 | dll: sqlite3.dll |
| 1726 | |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1727 | sqlite3.def: libsqlite3.lib |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1728 | echo EXPORTS > sqlite3.def |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1729 | dumpbin /all libsqlite3.lib \ |
mistachkin | 6a3eb4a | 2011-08-17 07:46:48 +0000 | [diff] [blame] | 1730 | | $(NAWK) "/ 1 _?sqlite3_/ { sub(/^.* _?/,\"\");print }" \ |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1731 | | sort >> sqlite3.def |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1732 | |
mistachkin | 44723ce | 2015-03-21 02:22:37 +0000 | [diff] [blame] | 1733 | sqlite3.dll: $(LIBOBJ) $(LIBRESOBJS) $(CORE_LINK_DEP) |
| 1734 | $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL $(CORE_LINK_OPTS) /OUT:$@ $(LIBOBJ) $(LIBRESOBJS) $(LTLIBS) $(TLIBS) |