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 | # |
| 4 | |
| 5 | # The toplevel directory of the source tree. This is the directory |
| 6 | # that contains this "Makefile.msc". |
| 7 | # |
| 8 | TOP = . |
| 9 | |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 10 | # Set this non-0 to create and use the SQLite amalgamation file. |
| 11 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 12 | !IFNDEF USE_AMALGAMATION |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 13 | USE_AMALGAMATION = 1 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 14 | !ENDIF |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 15 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 16 | # Set this non-0 to use the International Components for Unicode (ICU). |
| 17 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 18 | !IFNDEF USE_ICU |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 19 | USE_ICU = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 20 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 21 | |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 22 | # Set this non-0 to dynamically link to the MSVC runtime library. |
| 23 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 24 | !IFNDEF USE_CRT_DLL |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 25 | USE_CRT_DLL = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 26 | !ENDIF |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 27 | |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 28 | # Set this non-0 to attempt setting the native compiler automatically |
| 29 | # for cross-compiling the command line tools needed during the compilation |
| 30 | # process. |
| 31 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 32 | !IFNDEF XCOMPILE |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 33 | XCOMPILE = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 34 | !ENDIF |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 35 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 36 | # Set this non-0 to use the native libraries paths for cross-compiling |
| 37 | # the command line tools needed during the compilation process. |
| 38 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 39 | !IFNDEF USE_NATIVE_LIBPATHS |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 40 | USE_NATIVE_LIBPATHS = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 41 | !ENDIF |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 42 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 43 | # Set this 0 to skip the compiling and embedding of version resources. |
| 44 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 45 | !IFNDEF USE_RC |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 46 | USE_RC = 1 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 47 | !ENDIF |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 48 | |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 49 | # Set this non-0 to compile binaries suitable for the WinRT environment. |
| 50 | # This setting does not apply to any binaries that require Tcl to operate |
| 51 | # properly (i.e. the text fixture, etc). |
| 52 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 53 | !IFNDEF FOR_WINRT |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 54 | FOR_WINRT = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 55 | !ENDIF |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 56 | |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 57 | # Set this non-0 to skip attempting to look for and/or link with the Tcl |
| 58 | # runtime library. |
| 59 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 60 | !IFNDEF NO_TCL |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 61 | NO_TCL = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 62 | !ENDIF |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 63 | |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 64 | # Set this to non-0 to create and use PDBs. |
| 65 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 66 | !IFNDEF SYMBOLS |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 67 | SYMBOLS = 1 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 68 | !ENDIF |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 69 | |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 70 | # Set this to non-0 to use the SQLite debugging heap subsystem. |
| 71 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 72 | !IFNDEF MEMDEBUG |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 73 | MEMDEBUG = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 74 | !ENDIF |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 75 | |
| 76 | # Set this to non-0 to use the Win32 native heap subsystem. |
| 77 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 78 | !IFNDEF WIN32HEAP |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 79 | WIN32HEAP = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 80 | !ENDIF |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 81 | |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 82 | # Set this to one of the following values to enable various debugging |
| 83 | # features. Each level includes the debugging options from the previous |
| 84 | # levels. Currently, the recognized values for DEBUG are: |
| 85 | # |
| 86 | # 0 == NDEBUG: Disables assert() and other runtime diagnostics. |
| 87 | # 1 == Disables NDEBUG and all optimizations and then enables PDBs. |
| 88 | # 2 == SQLITE_DEBUG: Enables various diagnostics messages and code. |
| 89 | # 3 == SQLITE_WIN32_MALLOC_VALIDATE: Validate the Win32 native heap per call. |
| 90 | # 4 == SQLITE_DEBUG_OS_TRACE: Enables output from the OSTRACE() macros. |
| 91 | # 5 == SQLITE_ENABLE_IOTRACE: Enables output from the IOTRACE() macros. |
| 92 | # |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 93 | !IFNDEF DEBUG |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 94 | DEBUG = 0 |
mistachkin | 0ec0744 | 2012-10-12 18:06:07 +0000 | [diff] [blame] | 95 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 96 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 97 | # Check for the predefined command macro CC. This should point to the compiler |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 98 | # 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] | 99 | # the legacy default value 'cl.exe'. |
| 100 | # |
| 101 | !IFNDEF CC |
| 102 | CC = cl.exe |
| 103 | !ENDIF |
| 104 | |
mistachkin | 228aeff | 2012-06-30 19:24:09 +0000 | [diff] [blame] | 105 | # 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] | 106 | # 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] | 107 | # default value 'link.exe'. |
| 108 | # |
| 109 | !IFNDEF LD |
| 110 | LD = link.exe |
| 111 | !ENDIF |
| 112 | |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 113 | # Check for the predefined command macro RC. This should point to the resource |
| 114 | # compiler binary for the target platform. If it is not defined, simply define |
| 115 | # it to the legacy default value 'rc.exe'. |
| 116 | # |
| 117 | !IFNDEF RC |
| 118 | RC = rc.exe |
| 119 | !ENDIF |
| 120 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 121 | # Check for the command macro NCC. This should point to the compiler binary |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 122 | # for the platform the compilation process is taking place on. If it is not |
| 123 | # 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] | 124 | # cross-compiling, it is suggested that this macro be modified via the command |
| 125 | # line (since nmake itself does not provide a built-in method to guess it). |
| 126 | # 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] | 127 | # line similar to the following could be used (all on one line): |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 128 | # |
mistachkin | 6f92833 | 2012-08-17 11:47:32 +0000 | [diff] [blame] | 129 | # nmake /f Makefile.msc sqlite3.dll |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 130 | # XCOMPILE=1 USE_NATIVE_LIBPATHS=1 |
| 131 | # |
| 132 | # Alternatively, the full path and file name to the compiler binary for the |
| 133 | # platform the compilation process is taking place may be specified (all on |
| 134 | # one line): |
| 135 | # |
| 136 | # nmake /f Makefile.msc sqlite3.dll |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 137 | # "NCC=""%VCINSTALLDIR%\bin\cl.exe""" |
| 138 | # USE_NATIVE_LIBPATHS=1 |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 139 | # |
mistachkin | fd0ba2a | 2012-07-27 08:21:45 +0000 | [diff] [blame] | 140 | !IFDEF NCC |
| 141 | NCC = $(NCC:\\=\) |
mistachkin | 52fd8e1 | 2012-08-28 01:44:13 +0000 | [diff] [blame] | 142 | !ELSEIF $(XCOMPILE)!=0 |
| 143 | NCC = "$(VCINSTALLDIR)\bin\cl.exe" |
| 144 | NCC = $(NCC:\\=\) |
mistachkin | fd0ba2a | 2012-07-27 08:21:45 +0000 | [diff] [blame] | 145 | !ELSE |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 146 | NCC = $(CC) |
| 147 | !ENDIF |
| 148 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 149 | # Check for the MSVC runtime library path macro. Othertise, this |
| 150 | # value will default to the 'lib' directory underneath the MSVC |
| 151 | # installation directory. |
| 152 | # |
| 153 | !IFNDEF NCRTLIBPATH |
| 154 | NCRTLIBPATH = $(VCINSTALLDIR)\lib |
| 155 | !ENDIF |
| 156 | |
mistachkin | 0b5ae72 | 2012-07-27 23:03:47 +0000 | [diff] [blame] | 157 | NCRTLIBPATH = $(NCRTLIBPATH:\\=\) |
| 158 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 159 | # Check for the Platform SDK library path macro. Othertise, this |
| 160 | # value will default to the 'lib' directory underneath the Windows |
| 161 | # SDK installation directory (the environment variable used appears |
| 162 | # to be available when using Visual C++ 2008 or later via the |
| 163 | # command line). |
| 164 | # |
| 165 | !IFNDEF NSDKLIBPATH |
| 166 | NSDKLIBPATH = $(WINDOWSSDKDIR)\lib |
| 167 | !ENDIF |
| 168 | |
mistachkin | 0b5ae72 | 2012-07-27 23:03:47 +0000 | [diff] [blame] | 169 | NSDKLIBPATH = $(NSDKLIBPATH:\\=\) |
| 170 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 171 | # C compiler and options for use in building executables that |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 172 | # will run on the platform that is doing the build. |
| 173 | # |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 174 | BCC = $(NCC) -W3 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 175 | |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 176 | # Check if the native library paths should be used when compiling |
| 177 | # the command line tools used during the compilation process. If |
| 178 | # so, set the necessary macro now. |
| 179 | # |
| 180 | !IF $(USE_NATIVE_LIBPATHS)!=0 |
| 181 | NLTLIBPATHS = "/LIBPATH:$(NCRTLIBPATH)" "/LIBPATH:$(NSDKLIBPATH)" |
| 182 | !ENDIF |
| 183 | |
| 184 | # C compiler and options for use in building executables that |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 185 | # will run on the target platform. (BCC and TCC are usually the |
| 186 | # same unless your are cross-compiling.) |
| 187 | # |
mistachkin | 8ccc6d4 | 2012-09-27 21:03:53 +0000 | [diff] [blame] | 188 | TCC = $(CC) -W3 -DSQLITE_OS_WIN=1 -I$(TOP) -I$(TOP)\src -fp:precise |
| 189 | RCC = $(RC) -DSQLITE_OS_WIN=1 -I$(TOP) -I$(TOP)\src |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 190 | |
mistachkin | f39eaf2 | 2012-03-20 02:18:42 +0000 | [diff] [blame] | 191 | # When compiling the library for use in the WinRT environment, |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 192 | # the following compile-time options must be used as well to |
mistachkin | f39eaf2 | 2012-03-20 02:18:42 +0000 | [diff] [blame] | 193 | # disable use of Win32 APIs that are not available and to enable |
| 194 | # use of Win32 APIs that are specific to Windows 8 and/or WinRT. |
| 195 | # |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 196 | !IF $(FOR_WINRT)!=0 |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 197 | TCC = $(TCC) -DSQLITE_OS_WINRT=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 198 | RCC = $(RCC) -DSQLITE_OS_WINRT=1 |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 199 | TCC = $(TCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP |
| 200 | RCC = $(RCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 201 | !ENDIF |
| 202 | |
| 203 | # Also, we need to dynamically link to the correct MSVC runtime |
| 204 | # when compiling for WinRT (e.g. debug or release) OR if the |
| 205 | # USE_CRT_DLL option is set to force dynamically linking to the |
| 206 | # MSVC runtime library. |
| 207 | # |
| 208 | !IF $(FOR_WINRT)!=0 || $(USE_CRT_DLL)!=0 |
| 209 | !IF $(DEBUG)>0 |
| 210 | TCC = $(TCC) -MDd |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 211 | BCC = $(BCC) -MDd |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 212 | !ELSE |
| 213 | TCC = $(TCC) -MD |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 214 | BCC = $(BCC) -MD |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 215 | !ENDIF |
| 216 | !ELSE |
| 217 | !IF $(DEBUG)>0 |
| 218 | TCC = $(TCC) -MTd |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 219 | BCC = $(BCC) -MTd |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 220 | !ELSE |
| 221 | TCC = $(TCC) -MT |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 222 | BCC = $(BCC) -MT |
mistachkin | 8d967a9 | 2012-06-21 04:21:35 +0000 | [diff] [blame] | 223 | !ENDIF |
mistachkin | 46b721a | 2012-03-23 12:28:21 +0000 | [diff] [blame] | 224 | !ENDIF |
mistachkin | f39eaf2 | 2012-03-20 02:18:42 +0000 | [diff] [blame] | 225 | |
| 226 | # The mksqlite3c.tcl and mksqlite3h.tcl scripts will pull in |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 227 | # any extension header files by default. For non-amalgamation |
| 228 | # builds, we need to make sure the compiler can find these. |
| 229 | # |
| 230 | !IF $(USE_AMALGAMATION)==0 |
| 231 | TCC = $(TCC) -I$(TOP)\ext\fts3 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 232 | RCC = $(RCC) -I$(TOP)\ext\fts3 |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 233 | TCC = $(TCC) -I$(TOP)\ext\rtree |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 234 | RCC = $(RCC) -I$(TOP)\ext\rtree |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 235 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 236 | |
| 237 | # Define -DNDEBUG to compile without debugging (i.e., for production usage) |
| 238 | # Omitting the define will cause extra debugging code to be inserted and |
| 239 | # includes extra comments when "EXPLAIN stmt" is used. |
| 240 | # |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 241 | !IF $(DEBUG)==0 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 242 | TCC = $(TCC) -DNDEBUG |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 243 | BCC = $(BCC) -DNDEBUG |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 244 | RCC = $(RCC) -DNDEBUG |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 245 | !ENDIF |
| 246 | |
| 247 | !IF $(DEBUG)>1 |
| 248 | TCC = $(TCC) -DSQLITE_DEBUG |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 249 | RCC = $(RCC) -DSQLITE_DEBUG |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 250 | !ENDIF |
| 251 | |
| 252 | !IF $(DEBUG)>3 |
| 253 | TCC = $(TCC) -DSQLITE_DEBUG_OS_TRACE=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 254 | RCC = $(RCC) -DSQLITE_DEBUG_OS_TRACE=1 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 255 | !ENDIF |
| 256 | |
| 257 | !IF $(DEBUG)>4 |
| 258 | TCC = $(TCC) -DSQLITE_ENABLE_IOTRACE |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 259 | RCC = $(RCC) -DSQLITE_ENABLE_IOTRACE |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 260 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 261 | |
mistachkin | 176f1b4 | 2011-08-02 23:34:00 +0000 | [diff] [blame] | 262 | # |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 263 | # Prevent warnings about "insecure" MSVC runtime library functions |
| 264 | # being used. |
mistachkin | 176f1b4 | 2011-08-02 23:34:00 +0000 | [diff] [blame] | 265 | # |
| 266 | TCC = $(TCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 267 | BCC = $(BCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 268 | RCC = $(RCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS |
mistachkin | 176f1b4 | 2011-08-02 23:34:00 +0000 | [diff] [blame] | 269 | |
mistachkin | 1b186a9 | 2011-08-24 16:13:57 +0000 | [diff] [blame] | 270 | # |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 271 | # Prevent warnings about "deprecated" POSIX functions being used. |
| 272 | # |
| 273 | TCC = $(TCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS |
| 274 | BCC = $(BCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 275 | RCC = $(RCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 276 | |
| 277 | # |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 278 | # Use the SQLite debugging heap subsystem? |
mistachkin | 1b186a9 | 2011-08-24 16:13:57 +0000 | [diff] [blame] | 279 | # |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 280 | !IF $(MEMDEBUG)!=0 |
| 281 | TCC = $(TCC) -DSQLITE_MEMDEBUG=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 282 | RCC = $(RCC) -DSQLITE_MEMDEBUG=1 |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 283 | |
| 284 | # |
| 285 | # Use native Win32 heap subsystem instead of malloc/free? |
| 286 | # |
| 287 | !ELSEIF $(WIN32HEAP)!=0 |
| 288 | TCC = $(TCC) -DSQLITE_WIN32_MALLOC=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 289 | RCC = $(RCC) -DSQLITE_WIN32_MALLOC=1 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 290 | |
| 291 | # |
| 292 | # Validate the heap on every call into the native Win32 heap subsystem? |
| 293 | # |
| 294 | !IF $(DEBUG)>2 |
| 295 | TCC = $(TCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 296 | RCC = $(RCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 297 | !ENDIF |
mistachkin | 2f7d5d8 | 2012-08-22 00:39:34 +0000 | [diff] [blame] | 298 | !ENDIF |
mistachkin | 1b186a9 | 2011-08-24 16:13:57 +0000 | [diff] [blame] | 299 | |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 300 | # The locations of the Tcl header and library files. Also, the library that |
| 301 | # non-stubs enabled programs using Tcl must link against. These variables |
| 302 | # (TCLINCDIR, TCLLIBDIR, and LIBTCL) may be overridden via the environment |
| 303 | # prior to running nmake in order to match the actual installed location and |
| 304 | # version on this machine. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 305 | # |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 306 | !IFNDEF TCLINCDIR |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 307 | TCLINCDIR = c:\tcl\include |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 308 | !ENDIF |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 309 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 310 | !IFNDEF TCLLIBDIR |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 311 | TCLLIBDIR = c:\tcl\lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 312 | !ENDIF |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 313 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 314 | !IFNDEF LIBTCL |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 315 | LIBTCL = tcl85.lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 316 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 317 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 318 | # The locations of the ICU header and library files. These variables |
| 319 | # (ICUINCDIR, ICULIBDIR, and LIBICU) may be overridden via the environment |
| 320 | # prior to running nmake in order to match the actual installed location on |
| 321 | # this machine. |
| 322 | # |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 323 | !IFNDEF ICUINCDIR |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 324 | ICUINCDIR = c:\icu\include |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 325 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 326 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 327 | !IFNDEF ICULIBDIR |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 328 | ICULIBDIR = c:\icu\lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 329 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 330 | |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 331 | !IFNDEF LIBICU |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 332 | LIBICU = icuuc.lib icuin.lib |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 333 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 334 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 335 | # 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] | 336 | # know the specific version we want to use. This variable (TCLSH_CMD) may be |
| 337 | # overridden via the environment prior to running nmake in order to select a |
| 338 | # specific Tcl shell to use. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 339 | # |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 340 | !IFNDEF TCLSH_CMD |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 341 | TCLSH_CMD = tclsh85 |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 342 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 343 | |
| 344 | # Compiler options needed for programs that use the readline() library. |
| 345 | # |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 346 | READLINE_FLAGS = -DHAVE_READLINE=0 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 347 | |
| 348 | # The library that programs using readline() must link against. |
| 349 | # |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 350 | LIBREADLINE = |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 351 | |
| 352 | # Should the database engine be compiled threadsafe |
| 353 | # |
| 354 | TCC = $(TCC) -DSQLITE_THREADSAFE=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 355 | RCC = $(RCC) -DSQLITE_THREADSAFE=1 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 356 | |
| 357 | # Do threads override each others locks by default (1), or do we test (-1) |
| 358 | # |
| 359 | TCC = $(TCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 360 | RCC = $(RCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 361 | |
| 362 | # Any target libraries which libsqlite must be linked against |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 363 | # |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 364 | !IFNDEF TLIBS |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 365 | TLIBS = |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 366 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 367 | |
| 368 | # Flags controlling use of the in memory btree implementation |
| 369 | # |
| 370 | # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to |
| 371 | # default to file, 2 to default to memory, and 3 to force temporary |
| 372 | # tables to always be in memory. |
| 373 | # |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 374 | TCC = $(TCC) -DSQLITE_TEMP_STORE=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 375 | RCC = $(RCC) -DSQLITE_TEMP_STORE=1 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 376 | |
| 377 | # Enable/disable loadable extensions, and other optional features |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 378 | # based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*). |
| 379 | # The same set of OMIT and ENABLE flags should be passed to the |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 380 | # LEMON parser generator and the mkkeywordhash tool as well. |
| 381 | |
| 382 | # BEGIN standard options |
| 383 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS3=1 |
| 384 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RTREE=1 |
| 385 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_COLUMN_METADATA=1 |
| 386 | # END standard options |
| 387 | |
| 388 | # BEGIN required Windows option |
| 389 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_MAX_TRIGGER_DEPTH=100 |
| 390 | # END required Windows option |
| 391 | |
| 392 | TCC = $(TCC) $(OPT_FEATURE_FLAGS) |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 393 | RCC = $(RCC) $(OPT_FEATURE_FLAGS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 394 | |
| 395 | # Add in any optional parameters specified on the make commane line |
| 396 | # ie. make "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1". |
| 397 | TCC = $(TCC) $(OPTS) |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 398 | RCC = $(RCC) $(OPTS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 399 | |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 400 | # If symbols are enabled, enable PDBs. |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 401 | # If debugging is enabled, disable all optimizations and enable PDBs. |
| 402 | !IF $(DEBUG)>0 |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 403 | TCC = $(TCC) -Od -D_DEBUG |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 404 | BCC = $(BCC) -Od -D_DEBUG |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 405 | RCC = $(RCC) -D_DEBUG |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 406 | !ELSE |
| 407 | TCC = $(TCC) -O2 |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 408 | BCC = $(BCC) -O2 |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 409 | !ENDIF |
| 410 | |
| 411 | !IF $(DEBUG)>0 || $(SYMBOLS)!=0 |
| 412 | TCC = $(TCC) -Zi |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 413 | BCC = $(BCC) -Zi |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 414 | !ENDIF |
| 415 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 416 | # If ICU support is enabled, add the compiler options for it. |
| 417 | !IF $(USE_ICU)!=0 |
| 418 | TCC = $(TCC) -DSQLITE_ENABLE_ICU=1 |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 419 | RCC = $(RCC) -DSQLITE_ENABLE_ICU=1 |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 420 | TCC = $(TCC) -I$(TOP)\ext\icu |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 421 | RCC = $(RCC) -I$(TOP)\ext\icu |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 422 | TCC = $(TCC) -I$(ICUINCDIR) |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 423 | RCC = $(RCC) -I$(ICUINCDIR) |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 424 | !ENDIF |
| 425 | |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 426 | # Command line prefixes for compiling code, compiling resources, |
| 427 | # linking, etc. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 428 | LTCOMPILE = $(TCC) -Fo$@ |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 429 | LTRCOMPILE = $(RCC) -r |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 430 | LTLIB = lib.exe |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 431 | LTLINK = $(TCC) -Fe$@ |
| 432 | |
| 433 | # If a platform was set, force the linker to target that. |
| 434 | # Note that the vcvars*.bat family of batch files typically |
| 435 | # set this for you. Otherwise, the linker will attempt |
| 436 | # to deduce the binary type based on the object files. |
mistachkin | e37f99c | 2012-06-30 16:22:05 +0000 | [diff] [blame] | 437 | !IFDEF PLATFORM |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 438 | LTLINKOPTS = /MACHINE:$(PLATFORM) |
shaneh | 29ebea8 | 2011-06-21 18:12:07 +0000 | [diff] [blame] | 439 | LTLIBOPTS = /MACHINE:$(PLATFORM) |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 440 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 441 | |
mistachkin | a6ff857 | 2012-04-17 21:00:12 +0000 | [diff] [blame] | 442 | # When compiling for use in the WinRT environment, the following |
| 443 | # linker option must be used to mark the executable as runnable |
| 444 | # only in the context of an application container. |
| 445 | # |
| 446 | !IF $(FOR_WINRT)!=0 |
| 447 | LTLINKOPTS = $(LTLINKOPTS) /APPCONTAINER |
| 448 | !ENDIF |
| 449 | |
mistachkin | fec360a | 2012-04-18 10:29:21 +0000 | [diff] [blame] | 450 | # If either debugging or symbols are enabled, enable PDBs. |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 451 | !IF $(DEBUG)>0 || $(SYMBOLS)!=0 |
mistachkin | 228aeff | 2012-06-30 19:24:09 +0000 | [diff] [blame] | 452 | LDFLAGS = /DEBUG |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 453 | !ENDIF |
| 454 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 455 | # Start with the Tcl related linker options. |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 456 | !IF $(NO_TCL)==0 |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 457 | LTLIBPATHS = /LIBPATH:$(TCLLIBDIR) |
| 458 | LTLIBS = $(LIBTCL) |
mistachkin | 31856a3 | 2012-07-27 07:13:25 +0000 | [diff] [blame] | 459 | !ENDIF |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 460 | |
| 461 | # If ICU support is enabled, add the linker options for it. |
| 462 | !IF $(USE_ICU)!=0 |
| 463 | LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ICULIBDIR) |
| 464 | LTLIBS = $(LTLIBS) $(LIBICU) |
| 465 | !ENDIF |
| 466 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 467 | # nawk compatible awk. |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 468 | NAWK = gawk.exe |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 469 | |
| 470 | # You should not have to change anything below this line |
| 471 | ############################################################################### |
| 472 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 473 | # Object files for the SQLite library (non-amalgamation). |
| 474 | # |
| 475 | LIBOBJS0 = alter.lo analyze.lo attach.lo auth.lo \ |
| 476 | backup.lo bitvec.lo btmutex.lo btree.lo build.lo \ |
| 477 | callback.lo complete.lo ctime.lo date.lo delete.lo \ |
| 478 | expr.lo fault.lo fkey.lo \ |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 479 | fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \ |
| 480 | fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \ |
| 481 | fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 482 | func.lo global.lo hash.lo \ |
| 483 | icu.lo insert.lo journal.lo legacy.lo loadext.lo \ |
| 484 | main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \ |
| 485 | memjournal.lo \ |
mistachkin | f1c6bc5 | 2012-06-21 15:09:20 +0000 | [diff] [blame] | 486 | mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \ |
| 487 | notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 488 | pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \ |
| 489 | random.lo resolve.lo rowset.lo rtree.lo select.lo status.lo \ |
| 490 | table.lo tokenize.lo trigger.lo \ |
| 491 | update.lo util.lo vacuum.lo \ |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 492 | vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \ |
| 493 | vdbetrace.lo wal.lo walker.lo where.lo utf.lo vtab.lo |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 494 | |
| 495 | # Object files for the amalgamation. |
| 496 | # |
| 497 | LIBOBJS1 = sqlite3.lo |
| 498 | |
| 499 | # Determine the real value of LIBOBJ based on the 'configure' script |
| 500 | # |
| 501 | !IF $(USE_AMALGAMATION)==0 |
| 502 | LIBOBJ = $(LIBOBJS0) |
| 503 | !ELSE |
| 504 | LIBOBJ = $(LIBOBJS1) |
| 505 | !ENDIF |
| 506 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 507 | # Determine if embedded resource compilation and usage are enabled. |
| 508 | # |
| 509 | !IF $(USE_RC)!=0 |
| 510 | LIBRESOBJS = sqlite3res.lo |
| 511 | !ELSE |
| 512 | LIBRESOBJS = |
| 513 | !ENDIF |
| 514 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 515 | # All of the source code files. |
| 516 | # |
| 517 | SRC = \ |
| 518 | $(TOP)\src\alter.c \ |
| 519 | $(TOP)\src\analyze.c \ |
| 520 | $(TOP)\src\attach.c \ |
| 521 | $(TOP)\src\auth.c \ |
| 522 | $(TOP)\src\backup.c \ |
| 523 | $(TOP)\src\bitvec.c \ |
| 524 | $(TOP)\src\btmutex.c \ |
| 525 | $(TOP)\src\btree.c \ |
| 526 | $(TOP)\src\btree.h \ |
| 527 | $(TOP)\src\btreeInt.h \ |
| 528 | $(TOP)\src\build.c \ |
| 529 | $(TOP)\src\callback.c \ |
| 530 | $(TOP)\src\complete.c \ |
| 531 | $(TOP)\src\ctime.c \ |
| 532 | $(TOP)\src\date.c \ |
| 533 | $(TOP)\src\delete.c \ |
| 534 | $(TOP)\src\expr.c \ |
| 535 | $(TOP)\src\fault.c \ |
| 536 | $(TOP)\src\fkey.c \ |
| 537 | $(TOP)\src\func.c \ |
| 538 | $(TOP)\src\global.c \ |
| 539 | $(TOP)\src\hash.c \ |
| 540 | $(TOP)\src\hash.h \ |
| 541 | $(TOP)\src\hwtime.h \ |
| 542 | $(TOP)\src\insert.c \ |
| 543 | $(TOP)\src\journal.c \ |
| 544 | $(TOP)\src\legacy.c \ |
| 545 | $(TOP)\src\loadext.c \ |
| 546 | $(TOP)\src\main.c \ |
| 547 | $(TOP)\src\malloc.c \ |
| 548 | $(TOP)\src\mem0.c \ |
| 549 | $(TOP)\src\mem1.c \ |
| 550 | $(TOP)\src\mem2.c \ |
| 551 | $(TOP)\src\mem3.c \ |
| 552 | $(TOP)\src\mem5.c \ |
| 553 | $(TOP)\src\memjournal.c \ |
| 554 | $(TOP)\src\mutex.c \ |
| 555 | $(TOP)\src\mutex.h \ |
| 556 | $(TOP)\src\mutex_noop.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 557 | $(TOP)\src\mutex_unix.c \ |
| 558 | $(TOP)\src\mutex_w32.c \ |
| 559 | $(TOP)\src\notify.c \ |
| 560 | $(TOP)\src\os.c \ |
| 561 | $(TOP)\src\os.h \ |
| 562 | $(TOP)\src\os_common.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 563 | $(TOP)\src\os_unix.c \ |
| 564 | $(TOP)\src\os_win.c \ |
| 565 | $(TOP)\src\pager.c \ |
| 566 | $(TOP)\src\pager.h \ |
| 567 | $(TOP)\src\parse.y \ |
| 568 | $(TOP)\src\pcache.c \ |
| 569 | $(TOP)\src\pcache.h \ |
| 570 | $(TOP)\src\pcache1.c \ |
| 571 | $(TOP)\src\pragma.c \ |
| 572 | $(TOP)\src\prepare.c \ |
| 573 | $(TOP)\src\printf.c \ |
| 574 | $(TOP)\src\random.c \ |
| 575 | $(TOP)\src\resolve.c \ |
| 576 | $(TOP)\src\rowset.c \ |
| 577 | $(TOP)\src\select.c \ |
| 578 | $(TOP)\src\status.c \ |
| 579 | $(TOP)\src\shell.c \ |
| 580 | $(TOP)\src\sqlite.h.in \ |
| 581 | $(TOP)\src\sqlite3ext.h \ |
| 582 | $(TOP)\src\sqliteInt.h \ |
| 583 | $(TOP)\src\sqliteLimit.h \ |
| 584 | $(TOP)\src\table.c \ |
| 585 | $(TOP)\src\tclsqlite.c \ |
| 586 | $(TOP)\src\tokenize.c \ |
| 587 | $(TOP)\src\trigger.c \ |
| 588 | $(TOP)\src\utf.c \ |
| 589 | $(TOP)\src\update.c \ |
| 590 | $(TOP)\src\util.c \ |
| 591 | $(TOP)\src\vacuum.c \ |
| 592 | $(TOP)\src\vdbe.c \ |
| 593 | $(TOP)\src\vdbe.h \ |
| 594 | $(TOP)\src\vdbeapi.c \ |
| 595 | $(TOP)\src\vdbeaux.c \ |
| 596 | $(TOP)\src\vdbeblob.c \ |
| 597 | $(TOP)\src\vdbemem.c \ |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 598 | $(TOP)\src\vdbesort.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 599 | $(TOP)\src\vdbetrace.c \ |
| 600 | $(TOP)\src\vdbeInt.h \ |
| 601 | $(TOP)\src\vtab.c \ |
| 602 | $(TOP)\src\wal.c \ |
| 603 | $(TOP)\src\wal.h \ |
| 604 | $(TOP)\src\walker.c \ |
| 605 | $(TOP)\src\where.c |
| 606 | |
| 607 | # Source code for extensions |
| 608 | # |
| 609 | SRC = $(SRC) \ |
| 610 | $(TOP)\ext\fts1\fts1.c \ |
| 611 | $(TOP)\ext\fts1\fts1.h \ |
| 612 | $(TOP)\ext\fts1\fts1_hash.c \ |
| 613 | $(TOP)\ext\fts1\fts1_hash.h \ |
| 614 | $(TOP)\ext\fts1\fts1_porter.c \ |
| 615 | $(TOP)\ext\fts1\fts1_tokenizer.h \ |
| 616 | $(TOP)\ext\fts1\fts1_tokenizer1.c |
| 617 | SRC = $(SRC) \ |
| 618 | $(TOP)\ext\fts2\fts2.c \ |
| 619 | $(TOP)\ext\fts2\fts2.h \ |
| 620 | $(TOP)\ext\fts2\fts2_hash.c \ |
| 621 | $(TOP)\ext\fts2\fts2_hash.h \ |
| 622 | $(TOP)\ext\fts2\fts2_icu.c \ |
| 623 | $(TOP)\ext\fts2\fts2_porter.c \ |
| 624 | $(TOP)\ext\fts2\fts2_tokenizer.h \ |
| 625 | $(TOP)\ext\fts2\fts2_tokenizer.c \ |
| 626 | $(TOP)\ext\fts2\fts2_tokenizer1.c |
| 627 | SRC = $(SRC) \ |
| 628 | $(TOP)\ext\fts3\fts3.c \ |
| 629 | $(TOP)\ext\fts3\fts3.h \ |
| 630 | $(TOP)\ext\fts3\fts3Int.h \ |
| 631 | $(TOP)\ext\fts3\fts3_aux.c \ |
| 632 | $(TOP)\ext\fts3\fts3_expr.c \ |
| 633 | $(TOP)\ext\fts3\fts3_hash.c \ |
| 634 | $(TOP)\ext\fts3\fts3_hash.h \ |
| 635 | $(TOP)\ext\fts3\fts3_icu.c \ |
| 636 | $(TOP)\ext\fts3\fts3_porter.c \ |
| 637 | $(TOP)\ext\fts3\fts3_snippet.c \ |
| 638 | $(TOP)\ext\fts3\fts3_tokenizer.h \ |
| 639 | $(TOP)\ext\fts3\fts3_tokenizer.c \ |
| 640 | $(TOP)\ext\fts3\fts3_tokenizer1.c \ |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 641 | $(TOP)\ext\fts3\fts3_unicode.c \ |
| 642 | $(TOP)\ext\fts3\fts3_unicode2.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 643 | $(TOP)\ext\fts3\fts3_write.c |
| 644 | SRC = $(SRC) \ |
| 645 | $(TOP)\ext\icu\sqliteicu.h \ |
| 646 | $(TOP)\ext\icu\icu.c |
| 647 | SRC = $(SRC) \ |
| 648 | $(TOP)\ext\rtree\rtree.h \ |
| 649 | $(TOP)\ext\rtree\rtree.c |
| 650 | |
| 651 | |
| 652 | # Generated source code files |
| 653 | # |
| 654 | SRC = $(SRC) \ |
| 655 | keywordhash.h \ |
| 656 | opcodes.c \ |
| 657 | opcodes.h \ |
| 658 | parse.c \ |
| 659 | parse.h \ |
| 660 | sqlite3.h |
| 661 | |
| 662 | # Source code to the test files. |
| 663 | # |
| 664 | TESTSRC = \ |
| 665 | $(TOP)\src\test1.c \ |
| 666 | $(TOP)\src\test2.c \ |
| 667 | $(TOP)\src\test3.c \ |
| 668 | $(TOP)\src\test4.c \ |
| 669 | $(TOP)\src\test5.c \ |
| 670 | $(TOP)\src\test6.c \ |
| 671 | $(TOP)\src\test7.c \ |
| 672 | $(TOP)\src\test8.c \ |
| 673 | $(TOP)\src\test9.c \ |
| 674 | $(TOP)\src\test_autoext.c \ |
| 675 | $(TOP)\src\test_async.c \ |
| 676 | $(TOP)\src\test_backup.c \ |
| 677 | $(TOP)\src\test_btree.c \ |
| 678 | $(TOP)\src\test_config.c \ |
| 679 | $(TOP)\src\test_demovfs.c \ |
| 680 | $(TOP)\src\test_devsym.c \ |
mistachkin | 413c63b | 2013-01-17 03:18:14 +0000 | [diff] [blame] | 681 | $(TOP)\src\test_fs.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 682 | $(TOP)\src\test_func.c \ |
| 683 | $(TOP)\src\test_fuzzer.c \ |
| 684 | $(TOP)\src\test_hexio.c \ |
| 685 | $(TOP)\src\test_init.c \ |
| 686 | $(TOP)\src\test_intarray.c \ |
| 687 | $(TOP)\src\test_journal.c \ |
| 688 | $(TOP)\src\test_malloc.c \ |
| 689 | $(TOP)\src\test_multiplex.c \ |
| 690 | $(TOP)\src\test_mutex.c \ |
| 691 | $(TOP)\src\test_onefile.c \ |
| 692 | $(TOP)\src\test_osinst.c \ |
| 693 | $(TOP)\src\test_pcache.c \ |
| 694 | $(TOP)\src\test_quota.c \ |
drh | 1417274 | 2012-12-31 19:18:38 +0000 | [diff] [blame] | 695 | $(TOP)\src\test_regexp.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 696 | $(TOP)\src\test_rtree.c \ |
| 697 | $(TOP)\src\test_schema.c \ |
| 698 | $(TOP)\src\test_server.c \ |
| 699 | $(TOP)\src\test_superlock.c \ |
| 700 | $(TOP)\src\test_syscall.c \ |
| 701 | $(TOP)\src\test_stat.c \ |
| 702 | $(TOP)\src\test_tclvar.c \ |
| 703 | $(TOP)\src\test_thread.c \ |
| 704 | $(TOP)\src\test_vfs.c \ |
| 705 | $(TOP)\src\test_wholenumber.c \ |
| 706 | $(TOP)\src\test_wsd.c \ |
| 707 | $(TOP)\ext\fts3\fts3_term.c \ |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 708 | $(TOP)\ext\fts3\fts3_test.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 709 | |
| 710 | # Source code to the library files needed by the test fixture |
| 711 | # |
| 712 | TESTSRC2 = \ |
| 713 | $(TOP)\src\attach.c \ |
| 714 | $(TOP)\src\backup.c \ |
| 715 | $(TOP)\src\bitvec.c \ |
| 716 | $(TOP)\src\btree.c \ |
| 717 | $(TOP)\src\build.c \ |
| 718 | $(TOP)\src\ctime.c \ |
| 719 | $(TOP)\src\date.c \ |
| 720 | $(TOP)\src\expr.c \ |
| 721 | $(TOP)\src\func.c \ |
| 722 | $(TOP)\src\insert.c \ |
| 723 | $(TOP)\src\wal.c \ |
| 724 | $(TOP)\src\mem5.c \ |
| 725 | $(TOP)\src\os.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 726 | $(TOP)\src\os_unix.c \ |
| 727 | $(TOP)\src\os_win.c \ |
| 728 | $(TOP)\src\pager.c \ |
| 729 | $(TOP)\src\pragma.c \ |
| 730 | $(TOP)\src\prepare.c \ |
| 731 | $(TOP)\src\printf.c \ |
| 732 | $(TOP)\src\random.c \ |
| 733 | $(TOP)\src\pcache.c \ |
| 734 | $(TOP)\src\pcache1.c \ |
| 735 | $(TOP)\src\select.c \ |
| 736 | $(TOP)\src\tokenize.c \ |
| 737 | $(TOP)\src\utf.c \ |
| 738 | $(TOP)\src\util.c \ |
| 739 | $(TOP)\src\vdbeapi.c \ |
| 740 | $(TOP)\src\vdbeaux.c \ |
| 741 | $(TOP)\src\vdbe.c \ |
| 742 | $(TOP)\src\vdbemem.c \ |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 743 | $(TOP)\src\vdbesort.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 744 | $(TOP)\src\vdbetrace.c \ |
| 745 | $(TOP)\src\where.c \ |
| 746 | parse.c \ |
| 747 | $(TOP)\ext\fts3\fts3.c \ |
| 748 | $(TOP)\ext\fts3\fts3_aux.c \ |
| 749 | $(TOP)\ext\fts3\fts3_expr.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 750 | $(TOP)\ext\fts3\fts3_tokenizer.c \ |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 751 | $(TOP)\ext\fts3\fts3_unicode.c \ |
| 752 | $(TOP)\ext\fts3\fts3_unicode2.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 753 | $(TOP)\ext\fts3\fts3_write.c \ |
| 754 | $(TOP)\ext\async\sqlite3async.c |
| 755 | |
| 756 | # Header files used by all library source files. |
| 757 | # |
| 758 | HDR = \ |
| 759 | $(TOP)\src\btree.h \ |
| 760 | $(TOP)\src\btreeInt.h \ |
| 761 | $(TOP)\src\hash.h \ |
| 762 | $(TOP)\src\hwtime.h \ |
| 763 | keywordhash.h \ |
| 764 | $(TOP)\src\mutex.h \ |
| 765 | opcodes.h \ |
| 766 | $(TOP)\src\os.h \ |
| 767 | $(TOP)\src\os_common.h \ |
| 768 | $(TOP)\src\pager.h \ |
| 769 | $(TOP)\src\pcache.h \ |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 770 | parse.h \ |
| 771 | sqlite3.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 772 | $(TOP)\src\sqlite3ext.h \ |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 773 | $(TOP)\src\sqliteInt.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 774 | $(TOP)\src\sqliteLimit.h \ |
| 775 | $(TOP)\src\vdbe.h \ |
| 776 | $(TOP)\src\vdbeInt.h |
| 777 | |
| 778 | # Header files used by extensions |
| 779 | # |
| 780 | EXTHDR = $(EXTHDR) \ |
| 781 | $(TOP)\ext\fts1\fts1.h \ |
| 782 | $(TOP)\ext\fts1\fts1_hash.h \ |
| 783 | $(TOP)\ext\fts1\fts1_tokenizer.h |
| 784 | EXTHDR = $(EXTHDR) \ |
| 785 | $(TOP)\ext\fts2\fts2.h \ |
| 786 | $(TOP)\ext\fts2\fts2_hash.h \ |
| 787 | $(TOP)\ext\fts2\fts2_tokenizer.h |
| 788 | EXTHDR = $(EXTHDR) \ |
| 789 | $(TOP)\ext\fts3\fts3.h \ |
| 790 | $(TOP)\ext\fts3\fts3Int.h \ |
| 791 | $(TOP)\ext\fts3\fts3_hash.h \ |
| 792 | $(TOP)\ext\fts3\fts3_tokenizer.h |
| 793 | EXTHDR = $(EXTHDR) \ |
| 794 | $(TOP)\ext\rtree\rtree.h |
| 795 | EXTHDR = $(EXTHDR) \ |
| 796 | $(TOP)\ext\icu\sqliteicu.h |
| 797 | EXTHDR = $(EXTHDR) \ |
| 798 | $(TOP)\ext\rtree\sqlite3rtree.h |
| 799 | |
| 800 | # This is the default Makefile target. The objects listed here |
| 801 | # are what get build when you type just "make" with no arguments. |
| 802 | # |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 803 | all: dll libsqlite3.lib sqlite3.exe libtclsqlite3.lib |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 804 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 805 | libsqlite3.lib: $(LIBOBJ) |
shaneh | 29ebea8 | 2011-06-21 18:12:07 +0000 | [diff] [blame] | 806 | $(LTLIB) $(LTLIBOPTS) /OUT:$@ $(LIBOBJ) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 807 | |
| 808 | libtclsqlite3.lib: tclsqlite.lo libsqlite3.lib |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 809 | $(LTLIB) $(LTLIBOPTS) $(LTLIBPATHS) /OUT:$@ tclsqlite.lo libsqlite3.lib $(LIBTCL:tcl=tclstub) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 810 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 811 | sqlite3.exe: $(TOP)\src\shell.c libsqlite3.lib $(LIBRESOBJS) sqlite3.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 812 | $(LTLINK) $(READLINE_FLAGS) \ |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 813 | $(TOP)\src\shell.c \ |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 814 | /link $(LTLINKOPTS) $(LTLIBPATHS) libsqlite3.lib $(LIBRESOBJS) $(LIBREADLINE) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 815 | |
| 816 | # This target creates a directory named "tsrc" and fills it with |
| 817 | # copies of all of the C source code and header files needed to |
| 818 | # build on the target system. Some of the C source code and header |
| 819 | # files are automatically generated. This target takes care of |
| 820 | # all that automatic generation. |
| 821 | # |
| 822 | .target_source: $(SRC) $(TOP)\tool\vdbe-compress.tcl |
| 823 | -rmdir /S/Q tsrc |
| 824 | -mkdir tsrc |
| 825 | for %i in ($(SRC)) do copy /Y %i tsrc |
| 826 | del /Q tsrc\sqlite.h.in tsrc\parse.y |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 827 | $(TCLSH_CMD) $(TOP)\tool\vdbe-compress.tcl < tsrc\vdbe.c > vdbe.new |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 828 | move vdbe.new tsrc\vdbe.c |
| 829 | echo > .target_source |
| 830 | |
| 831 | sqlite3.c: .target_source $(TOP)\tool\mksqlite3c.tcl |
| 832 | $(TCLSH_CMD) $(TOP)\tool\mksqlite3c.tcl |
| 833 | |
mistachkin | 48dd9de | 2012-12-06 04:33:13 +0000 | [diff] [blame] | 834 | sqlite3-all.c: sqlite3.c $(TOP)\tool\split-sqlite3c.tcl |
| 835 | $(TCLSH_CMD) $(TOP)\tool\split-sqlite3c.tcl |
drh | 75e7bc1 | 2011-07-22 11:23:49 +0000 | [diff] [blame] | 836 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 837 | # Rule to build the amalgamation |
| 838 | # |
| 839 | sqlite3.lo: sqlite3.c |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 840 | $(LTCOMPILE) -c sqlite3.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 841 | |
| 842 | # Rules to build the LEMON compiler generator |
| 843 | # |
| 844 | lempar.c: $(TOP)\src\lempar.c |
| 845 | copy $(TOP)\src\lempar.c . |
| 846 | |
| 847 | lemon.exe: $(TOP)\tool\lemon.c lempar.c |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 848 | $(BCC) -Daccess=_access -Fe$@ $(TOP)\tool\lemon.c /link $(NLTLIBPATHS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 849 | |
| 850 | # Rules to build individual *.lo files from generated *.c files. This |
| 851 | # applies to: |
| 852 | # |
| 853 | # parse.lo |
| 854 | # opcodes.lo |
| 855 | # |
| 856 | parse.lo: parse.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 857 | $(LTCOMPILE) -c parse.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 858 | |
| 859 | opcodes.lo: opcodes.c |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 860 | $(LTCOMPILE) -c opcodes.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 861 | |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 862 | # Rule to build the Win32 resources object file. |
| 863 | # |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 864 | !IF $(USE_RC)!=0 |
| 865 | $(LIBRESOBJS): $(TOP)\src\sqlite3.rc $(HDR) |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 866 | echo #ifndef SQLITE_RESOURCE_VERSION > sqlite3rc.h |
mistachkin | 8ccc6d4 | 2012-09-27 21:03:53 +0000 | [diff] [blame] | 867 | for /F %%V in ('type "$(TOP)\VERSION"') do ( \ |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 868 | echo #define SQLITE_RESOURCE_VERSION %%V \ |
mistachkin | 597a8c5 | 2012-09-03 11:14:53 +0000 | [diff] [blame] | 869 | | $(NAWK) "/.*/ { gsub(/[.]/,\",\");print }" >> sqlite3rc.h \ |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 870 | ) |
| 871 | echo #endif >> sqlite3rc.h |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 872 | $(LTRCOMPILE) -fo $(LIBRESOBJS) $(TOP)\src\sqlite3.rc |
| 873 | !ENDIF |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 874 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 875 | # Rules to build individual *.lo files from files in the src directory. |
| 876 | # |
| 877 | alter.lo: $(TOP)\src\alter.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 878 | $(LTCOMPILE) -c $(TOP)\src\alter.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 879 | |
| 880 | analyze.lo: $(TOP)\src\analyze.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 881 | $(LTCOMPILE) -c $(TOP)\src\analyze.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 882 | |
| 883 | attach.lo: $(TOP)\src\attach.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 884 | $(LTCOMPILE) -c $(TOP)\src\attach.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 885 | |
| 886 | auth.lo: $(TOP)\src\auth.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 887 | $(LTCOMPILE) -c $(TOP)\src\auth.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 888 | |
| 889 | backup.lo: $(TOP)\src\backup.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 890 | $(LTCOMPILE) -c $(TOP)\src\backup.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 891 | |
| 892 | bitvec.lo: $(TOP)\src\bitvec.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 893 | $(LTCOMPILE) -c $(TOP)\src\bitvec.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 894 | |
| 895 | btmutex.lo: $(TOP)\src\btmutex.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 896 | $(LTCOMPILE) -c $(TOP)\src\btmutex.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 897 | |
| 898 | btree.lo: $(TOP)\src\btree.c $(HDR) $(TOP)\src\pager.h |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 899 | $(LTCOMPILE) -c $(TOP)\src\btree.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 900 | |
| 901 | build.lo: $(TOP)\src\build.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 902 | $(LTCOMPILE) -c $(TOP)\src\build.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 903 | |
| 904 | callback.lo: $(TOP)\src\callback.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 905 | $(LTCOMPILE) -c $(TOP)\src\callback.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 906 | |
| 907 | complete.lo: $(TOP)\src\complete.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 908 | $(LTCOMPILE) -c $(TOP)\src\complete.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 909 | |
| 910 | ctime.lo: $(TOP)\src\ctime.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 911 | $(LTCOMPILE) -c $(TOP)\src\ctime.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 912 | |
| 913 | date.lo: $(TOP)\src\date.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 914 | $(LTCOMPILE) -c $(TOP)\src\date.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 915 | |
| 916 | delete.lo: $(TOP)\src\delete.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 917 | $(LTCOMPILE) -c $(TOP)\src\delete.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 918 | |
| 919 | expr.lo: $(TOP)\src\expr.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 920 | $(LTCOMPILE) -c $(TOP)\src\expr.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 921 | |
| 922 | fault.lo: $(TOP)\src\fault.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 923 | $(LTCOMPILE) -c $(TOP)\src\fault.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 924 | |
| 925 | fkey.lo: $(TOP)\src\fkey.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 926 | $(LTCOMPILE) -c $(TOP)\src\fkey.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 927 | |
| 928 | func.lo: $(TOP)\src\func.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 929 | $(LTCOMPILE) -c $(TOP)\src\func.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 930 | |
| 931 | global.lo: $(TOP)\src\global.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 932 | $(LTCOMPILE) -c $(TOP)\src\global.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 933 | |
| 934 | hash.lo: $(TOP)\src\hash.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 935 | $(LTCOMPILE) -c $(TOP)\src\hash.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 936 | |
| 937 | insert.lo: $(TOP)\src\insert.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 938 | $(LTCOMPILE) -c $(TOP)\src\insert.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 939 | |
| 940 | journal.lo: $(TOP)\src\journal.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 941 | $(LTCOMPILE) -c $(TOP)\src\journal.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 942 | |
| 943 | legacy.lo: $(TOP)\src\legacy.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 944 | $(LTCOMPILE) -c $(TOP)\src\legacy.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 945 | |
| 946 | loadext.lo: $(TOP)\src\loadext.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 947 | $(LTCOMPILE) -c $(TOP)\src\loadext.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 948 | |
| 949 | main.lo: $(TOP)\src\main.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 950 | $(LTCOMPILE) -c $(TOP)\src\main.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 951 | |
| 952 | malloc.lo: $(TOP)\src\malloc.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 953 | $(LTCOMPILE) -c $(TOP)\src\malloc.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 954 | |
| 955 | mem0.lo: $(TOP)\src\mem0.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 956 | $(LTCOMPILE) -c $(TOP)\src\mem0.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 957 | |
| 958 | mem1.lo: $(TOP)\src\mem1.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 959 | $(LTCOMPILE) -c $(TOP)\src\mem1.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 960 | |
| 961 | mem2.lo: $(TOP)\src\mem2.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 962 | $(LTCOMPILE) -c $(TOP)\src\mem2.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 963 | |
| 964 | mem3.lo: $(TOP)\src\mem3.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 965 | $(LTCOMPILE) -c $(TOP)\src\mem3.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 966 | |
| 967 | mem5.lo: $(TOP)\src\mem5.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 968 | $(LTCOMPILE) -c $(TOP)\src\mem5.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 969 | |
| 970 | memjournal.lo: $(TOP)\src\memjournal.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 971 | $(LTCOMPILE) -c $(TOP)\src\memjournal.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 972 | |
| 973 | mutex.lo: $(TOP)\src\mutex.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 974 | $(LTCOMPILE) -c $(TOP)\src\mutex.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 975 | |
| 976 | mutex_noop.lo: $(TOP)\src\mutex_noop.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 977 | $(LTCOMPILE) -c $(TOP)\src\mutex_noop.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 978 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 979 | mutex_unix.lo: $(TOP)\src\mutex_unix.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 980 | $(LTCOMPILE) -c $(TOP)\src\mutex_unix.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 981 | |
| 982 | mutex_w32.lo: $(TOP)\src\mutex_w32.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 983 | $(LTCOMPILE) -c $(TOP)\src\mutex_w32.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 984 | |
| 985 | notify.lo: $(TOP)\src\notify.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 986 | $(LTCOMPILE) -c $(TOP)\src\notify.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 987 | |
| 988 | pager.lo: $(TOP)\src\pager.c $(HDR) $(TOP)\src\pager.h |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 989 | $(LTCOMPILE) -c $(TOP)\src\pager.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 990 | |
| 991 | pcache.lo: $(TOP)\src\pcache.c $(HDR) $(TOP)\src\pcache.h |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 992 | $(LTCOMPILE) -c $(TOP)\src\pcache.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 993 | |
| 994 | pcache1.lo: $(TOP)\src\pcache1.c $(HDR) $(TOP)\src\pcache.h |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 995 | $(LTCOMPILE) -c $(TOP)\src\pcache1.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 996 | |
| 997 | os.lo: $(TOP)\src\os.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 998 | $(LTCOMPILE) -c $(TOP)\src\os.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 999 | |
| 1000 | os_unix.lo: $(TOP)\src\os_unix.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1001 | $(LTCOMPILE) -c $(TOP)\src\os_unix.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1002 | |
| 1003 | os_win.lo: $(TOP)\src\os_win.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1004 | $(LTCOMPILE) -c $(TOP)\src\os_win.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1005 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1006 | pragma.lo: $(TOP)\src\pragma.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1007 | $(LTCOMPILE) -c $(TOP)\src\pragma.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1008 | |
| 1009 | prepare.lo: $(TOP)\src\prepare.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1010 | $(LTCOMPILE) -c $(TOP)\src\prepare.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1011 | |
| 1012 | printf.lo: $(TOP)\src\printf.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1013 | $(LTCOMPILE) -c $(TOP)\src\printf.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1014 | |
| 1015 | random.lo: $(TOP)\src\random.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1016 | $(LTCOMPILE) -c $(TOP)\src\random.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1017 | |
| 1018 | resolve.lo: $(TOP)\src\resolve.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1019 | $(LTCOMPILE) -c $(TOP)\src\resolve.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1020 | |
| 1021 | rowset.lo: $(TOP)\src\rowset.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1022 | $(LTCOMPILE) -c $(TOP)\src\rowset.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1023 | |
| 1024 | select.lo: $(TOP)\src\select.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1025 | $(LTCOMPILE) -c $(TOP)\src\select.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1026 | |
| 1027 | status.lo: $(TOP)\src\status.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1028 | $(LTCOMPILE) -c $(TOP)\src\status.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1029 | |
| 1030 | table.lo: $(TOP)\src\table.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1031 | $(LTCOMPILE) -c $(TOP)\src\table.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1032 | |
| 1033 | tokenize.lo: $(TOP)\src\tokenize.c keywordhash.h $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1034 | $(LTCOMPILE) -c $(TOP)\src\tokenize.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1035 | |
| 1036 | trigger.lo: $(TOP)\src\trigger.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1037 | $(LTCOMPILE) -c $(TOP)\src\trigger.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1038 | |
| 1039 | update.lo: $(TOP)\src\update.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1040 | $(LTCOMPILE) -c $(TOP)\src\update.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1041 | |
| 1042 | utf.lo: $(TOP)\src\utf.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1043 | $(LTCOMPILE) -c $(TOP)\src\utf.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1044 | |
| 1045 | util.lo: $(TOP)\src\util.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1046 | $(LTCOMPILE) -c $(TOP)\src\util.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1047 | |
| 1048 | vacuum.lo: $(TOP)\src\vacuum.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1049 | $(LTCOMPILE) -c $(TOP)\src\vacuum.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1050 | |
| 1051 | vdbe.lo: $(TOP)\src\vdbe.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1052 | $(LTCOMPILE) -c $(TOP)\src\vdbe.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1053 | |
| 1054 | vdbeapi.lo: $(TOP)\src\vdbeapi.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1055 | $(LTCOMPILE) -c $(TOP)\src\vdbeapi.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1056 | |
| 1057 | vdbeaux.lo: $(TOP)\src\vdbeaux.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1058 | $(LTCOMPILE) -c $(TOP)\src\vdbeaux.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1059 | |
| 1060 | vdbeblob.lo: $(TOP)\src\vdbeblob.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1061 | $(LTCOMPILE) -c $(TOP)\src\vdbeblob.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1062 | |
| 1063 | vdbemem.lo: $(TOP)\src\vdbemem.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1064 | $(LTCOMPILE) -c $(TOP)\src\vdbemem.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1065 | |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 1066 | vdbesort.lo: $(TOP)\src\vdbesort.c $(HDR) |
| 1067 | $(LTCOMPILE) -c $(TOP)\src\vdbesort.c |
| 1068 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1069 | vdbetrace.lo: $(TOP)\src\vdbetrace.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1070 | $(LTCOMPILE) -c $(TOP)\src\vdbetrace.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1071 | |
| 1072 | vtab.lo: $(TOP)\src\vtab.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1073 | $(LTCOMPILE) -c $(TOP)\src\vtab.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1074 | |
| 1075 | wal.lo: $(TOP)\src\wal.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1076 | $(LTCOMPILE) -c $(TOP)\src\wal.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1077 | |
| 1078 | walker.lo: $(TOP)\src\walker.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1079 | $(LTCOMPILE) -c $(TOP)\src\walker.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1080 | |
| 1081 | where.lo: $(TOP)\src\where.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1082 | $(LTCOMPILE) -c $(TOP)\src\where.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1083 | |
| 1084 | tclsqlite.lo: $(TOP)\src\tclsqlite.c $(HDR) |
| 1085 | $(LTCOMPILE) -DUSE_TCL_STUBS=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c |
| 1086 | |
| 1087 | tclsqlite-shell.lo: $(TOP)\src\tclsqlite.c $(HDR) |
| 1088 | $(LTCOMPILE) -DTCLSH=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c |
| 1089 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1090 | tclsqlite3.exe: tclsqlite-shell.lo libsqlite3.lib $(LIBRESOBJS) |
| 1091 | $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /OUT:$@ libsqlite3.lib tclsqlite-shell.lo $(LIBRESOBJS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1092 | |
| 1093 | # Rules to build opcodes.c and opcodes.h |
| 1094 | # |
| 1095 | opcodes.c: opcodes.h $(TOP)\mkopcodec.awk |
drh | 307ff30 | 2011-08-30 01:29:04 +0000 | [diff] [blame] | 1096 | $(NAWK) -f $(TOP)\mkopcodec.awk opcodes.h > opcodes.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1097 | |
| 1098 | opcodes.h: parse.h $(TOP)\src\vdbe.c $(TOP)\mkopcodeh.awk |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1099 | 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] | 1100 | |
| 1101 | # Rules to build parse.c and parse.h - the outputs of lemon. |
| 1102 | # |
| 1103 | parse.h: parse.c |
| 1104 | |
| 1105 | parse.c: $(TOP)\src\parse.y lemon.exe $(TOP)\addopcodes.awk |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1106 | del /Q parse.y parse.h parse.h.temp |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1107 | copy $(TOP)\src\parse.y . |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1108 | .\lemon.exe $(OPT_FEATURE_FLAGS) $(OPTS) parse.y |
| 1109 | move parse.h parse.h.temp |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1110 | $(NAWK) -f $(TOP)\addopcodes.awk parse.h.temp > parse.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1111 | |
| 1112 | sqlite3.h: $(TOP)\src\sqlite.h.in $(TOP)\manifest.uuid $(TOP)\VERSION |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1113 | $(TCLSH_CMD) $(TOP)\tool\mksqlite3h.tcl $(TOP) > sqlite3.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1114 | |
| 1115 | mkkeywordhash.exe: $(TOP)\tool\mkkeywordhash.c |
mistachkin | bd58d5f | 2012-06-30 22:22:34 +0000 | [diff] [blame] | 1116 | $(BCC) -Fe$@ $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)\tool\mkkeywordhash.c /link $(NLTLIBPATHS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1117 | |
| 1118 | keywordhash.h: $(TOP)\tool\mkkeywordhash.c mkkeywordhash.exe |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1119 | .\mkkeywordhash.exe > keywordhash.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1120 | |
| 1121 | |
| 1122 | |
| 1123 | # Rules to build the extension objects. |
| 1124 | # |
| 1125 | icu.lo: $(TOP)\ext\icu\icu.c $(HDR) $(EXTHDR) |
| 1126 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\icu\icu.c |
| 1127 | |
| 1128 | fts2.lo: $(TOP)\ext\fts2\fts2.c $(HDR) $(EXTHDR) |
| 1129 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2.c |
| 1130 | |
| 1131 | fts2_hash.lo: $(TOP)\ext\fts2\fts2_hash.c $(HDR) $(EXTHDR) |
| 1132 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_hash.c |
| 1133 | |
| 1134 | fts2_icu.lo: $(TOP)\ext\fts2\fts2_icu.c $(HDR) $(EXTHDR) |
| 1135 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_icu.c |
| 1136 | |
| 1137 | fts2_porter.lo: $(TOP)\ext\fts2\fts2_porter.c $(HDR) $(EXTHDR) |
| 1138 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_porter.c |
| 1139 | |
| 1140 | fts2_tokenizer.lo: $(TOP)\ext\fts2\fts2_tokenizer.c $(HDR) $(EXTHDR) |
| 1141 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer.c |
| 1142 | |
| 1143 | fts2_tokenizer1.lo: $(TOP)\ext\fts2\fts2_tokenizer1.c $(HDR) $(EXTHDR) |
| 1144 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer1.c |
| 1145 | |
| 1146 | fts3.lo: $(TOP)\ext\fts3\fts3.c $(HDR) $(EXTHDR) |
| 1147 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3.c |
| 1148 | |
| 1149 | fts3_aux.lo: $(TOP)\ext\fts3\fts3_aux.c $(HDR) $(EXTHDR) |
| 1150 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_aux.c |
| 1151 | |
| 1152 | fts3_expr.lo: $(TOP)\ext\fts3\fts3_expr.c $(HDR) $(EXTHDR) |
| 1153 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_expr.c |
| 1154 | |
| 1155 | fts3_hash.lo: $(TOP)\ext\fts3\fts3_hash.c $(HDR) $(EXTHDR) |
| 1156 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_hash.c |
| 1157 | |
| 1158 | fts3_icu.lo: $(TOP)\ext\fts3\fts3_icu.c $(HDR) $(EXTHDR) |
| 1159 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_icu.c |
| 1160 | |
| 1161 | fts3_snippet.lo: $(TOP)\ext\fts3\fts3_snippet.c $(HDR) $(EXTHDR) |
| 1162 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_snippet.c |
| 1163 | |
| 1164 | fts3_porter.lo: $(TOP)\ext\fts3\fts3_porter.c $(HDR) $(EXTHDR) |
| 1165 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_porter.c |
| 1166 | |
| 1167 | fts3_tokenizer.lo: $(TOP)\ext\fts3\fts3_tokenizer.c $(HDR) $(EXTHDR) |
| 1168 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer.c |
| 1169 | |
| 1170 | fts3_tokenizer1.lo: $(TOP)\ext\fts3\fts3_tokenizer1.c $(HDR) $(EXTHDR) |
| 1171 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer1.c |
| 1172 | |
drh | 391d4ba | 2012-05-28 20:22:16 +0000 | [diff] [blame] | 1173 | fts3_unicode.lo: $(TOP)\ext\fts3\fts3_unicode.c $(HDR) $(EXTHDR) |
| 1174 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode.c |
| 1175 | |
| 1176 | fts3_unicode2.lo: $(TOP)\ext\fts3\fts3_unicode2.c $(HDR) $(EXTHDR) |
| 1177 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_unicode2.c |
| 1178 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1179 | fts3_write.lo: $(TOP)\ext\fts3\fts3_write.c $(HDR) $(EXTHDR) |
| 1180 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_write.c |
| 1181 | |
| 1182 | rtree.lo: $(TOP)\ext\rtree\rtree.c $(HDR) $(EXTHDR) |
| 1183 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\rtree\rtree.c |
| 1184 | |
| 1185 | |
| 1186 | # Rules to build the 'testfixture' application. |
| 1187 | # |
| 1188 | # If using the amalgamation, use sqlite3.c directly to build the test |
| 1189 | # fixture. Otherwise link against libsqlite3.lib. (This distinction is |
| 1190 | # necessary because the test fixture requires non-API symbols which are |
| 1191 | # hidden when the library is built via the amalgamation). |
| 1192 | # |
| 1193 | TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1194 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1195 | |
| 1196 | TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.lib |
| 1197 | TESTFIXTURE_SRC1 = sqlite3.c |
| 1198 | !IF $(USE_AMALGAMATION)==0 |
| 1199 | TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC0) |
| 1200 | !ELSE |
| 1201 | TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC1) |
| 1202 | !ENDIF |
| 1203 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1204 | testfixture.exe: $(TESTFIXTURE_SRC) $(LIBRESOBJS) $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1205 | $(LTLINK) -DSQLITE_NO_SYNC=1 $(TESTFIXTURE_FLAGS) \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1206 | -DBUILD_sqlite -I$(TCLINCDIR) \ |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 1207 | $(TESTFIXTURE_SRC) \ |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1208 | /link $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1209 | |
| 1210 | fulltest: testfixture.exe sqlite3.exe |
| 1211 | .\testfixture.exe $(TOP)\test\all.test |
| 1212 | |
| 1213 | soaktest: testfixture.exe sqlite3.exe |
| 1214 | .\testfixture.exe $(TOP)\test\all.test -soak=1 |
| 1215 | |
mistachkin | c60941f | 2012-09-13 01:51:02 +0000 | [diff] [blame] | 1216 | fulltestonly: testfixture.exe sqlite3.exe |
| 1217 | .\testfixture.exe $(TOP)\test\full.test |
| 1218 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1219 | test: testfixture.exe sqlite3.exe |
| 1220 | .\testfixture.exe $(TOP)\test\veryquick.test |
| 1221 | |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 1222 | sqlite3_analyzer.c: sqlite3.c $(TOP)\src\test_stat.c $(TOP)\src\tclsqlite.c $(TOP)\tool\spaceanal.tcl |
| 1223 | copy sqlite3.c + $(TOP)\src\test_stat.c + $(TOP)\src\tclsqlite.c $@ |
| 1224 | echo static const char *tclsh_main_loop(void){ >> $@ |
| 1225 | echo static const char *zMainloop = >> $@ |
| 1226 | $(NAWK) -f $(TOP)\tool\tostr.awk $(TOP)\tool\spaceanal.tcl >> $@ |
| 1227 | echo ; return zMainloop; } >> $@ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1228 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1229 | sqlite3_analyzer.exe: sqlite3_analyzer.c $(LIBRESOBJS) |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 1230 | $(LTLINK) -DBUILD_sqlite -DTCLSH=2 -I$(TCLINCDIR) sqlite3_analyzer.c \ |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1231 | /link $(LTLINKOPTS) $(LTLIBPATHS) $(LIBRESOBJS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1232 | |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1233 | clean: |
mistachkin | 649591a | 2011-09-11 10:14:37 +0000 | [diff] [blame] | 1234 | del /Q *.lo *.ilk *.lib *.obj *.pdb sqlite3.exe libsqlite3.lib |
mistachkin | b482a44 | 2012-02-11 22:19:26 +0000 | [diff] [blame] | 1235 | del /Q *.da *.bb *.bbg gmon.out |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1236 | del /Q sqlite3.h opcodes.c opcodes.h |
| 1237 | del /Q lemon.exe lempar.c parse.* |
| 1238 | del /Q mkkeywordhash.exe keywordhash.h |
mistachkin | b482a44 | 2012-02-11 22:19:26 +0000 | [diff] [blame] | 1239 | -rmdir /Q/S .deps |
| 1240 | -rmdir /Q/S .libs |
mistachkin | f8a7846 | 2012-03-08 20:00:36 +0000 | [diff] [blame] | 1241 | -rmdir /Q/S quota2a |
| 1242 | -rmdir /Q/S quota2b |
| 1243 | -rmdir /Q/S quota2c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1244 | -rmdir /Q/S tsrc |
| 1245 | del /Q .target_source |
mistachkin | 0f104d5 | 2012-09-03 11:01:21 +0000 | [diff] [blame] | 1246 | del /Q tclsqlite3.exe tclsqlite3.exp |
shaneh | 603e426 | 2011-06-17 18:52:07 +0000 | [diff] [blame] | 1247 | del /Q testfixture.exe testfixture.exp test.db |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1248 | del /Q sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1249 | del /Q sqlite3.c |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1250 | del /Q sqlite3rc.h |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 1251 | del /Q sqlite3_analyzer.exe sqlite3_analyzer.exp sqlite3_analyzer.c |
mistachkin | 29b75bd | 2012-10-20 09:35:57 +0000 | [diff] [blame] | 1252 | del /Q sqlite-*-output.vsix |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1253 | |
mistachkin | 4d9d1f4 | 2012-09-03 10:32:32 +0000 | [diff] [blame] | 1254 | # Dynamic link library section. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1255 | # |
| 1256 | dll: sqlite3.dll |
| 1257 | |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1258 | sqlite3.def: libsqlite3.lib |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1259 | echo EXPORTS > sqlite3.def |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1260 | dumpbin /all libsqlite3.lib \ |
mistachkin | 6a3eb4a | 2011-08-17 07:46:48 +0000 | [diff] [blame] | 1261 | | $(NAWK) "/ 1 _?sqlite3_/ { sub(/^.* _?/,\"\");print }" \ |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1262 | | sort >> sqlite3.def |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1263 | |
mistachkin | 08c1c31 | 2012-10-06 03:48:25 +0000 | [diff] [blame] | 1264 | sqlite3.dll: $(LIBOBJ) $(LIBRESOBJS) sqlite3.def |
| 1265 | $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL /DEF:sqlite3.def /OUT:$@ $(LIBOBJ) $(LIBRESOBJS) $(LTLIBS) $(TLIBS) |