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 | # |
| 12 | USE_AMALGAMATION = 1 |
| 13 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 14 | # Set this non-0 to use the International Components for Unicode (ICU). |
| 15 | # |
| 16 | USE_ICU = 0 |
| 17 | |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 18 | # Set this to non-0 to create and use PDBs. |
| 19 | # |
| 20 | SYMBOLS = 1 |
| 21 | |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 22 | # Set this to one of the following values to enable various debugging |
| 23 | # features. Each level includes the debugging options from the previous |
| 24 | # levels. Currently, the recognized values for DEBUG are: |
| 25 | # |
| 26 | # 0 == NDEBUG: Disables assert() and other runtime diagnostics. |
| 27 | # 1 == Disables NDEBUG and all optimizations and then enables PDBs. |
| 28 | # 2 == SQLITE_DEBUG: Enables various diagnostics messages and code. |
| 29 | # 3 == SQLITE_WIN32_MALLOC_VALIDATE: Validate the Win32 native heap per call. |
| 30 | # 4 == SQLITE_DEBUG_OS_TRACE: Enables output from the OSTRACE() macros. |
| 31 | # 5 == SQLITE_ENABLE_IOTRACE: Enables output from the IOTRACE() macros. |
| 32 | # |
| 33 | DEBUG = 0 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 34 | |
shaneh | 603e426 | 2011-06-17 18:52:07 +0000 | [diff] [blame] | 35 | # Version numbers and release number for the SQLite being compiled. |
| 36 | # |
| 37 | VERSION = 3.7 |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 38 | VERSION_NUMBER = 3007009 |
| 39 | RELEASE = 3.7.9 |
shaneh | 603e426 | 2011-06-17 18:52:07 +0000 | [diff] [blame] | 40 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 41 | # C Compiler and options for use in building executables that |
| 42 | # will run on the platform that is doing the build. |
| 43 | # |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 44 | BCC = cl.exe |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 45 | |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 46 | # C Compile and options for use in building executables that |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 47 | # will run on the target platform. (BCC and TCC are usually the |
| 48 | # same unless your are cross-compiling.) |
| 49 | # |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 50 | TCC = cl.exe -W3 -DSQLITE_OS_WIN=1 -I. -I$(TOP)\src -fp:precise |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 51 | |
mistachkin | 3212119 | 2011-11-09 17:01:40 +0000 | [diff] [blame] | 52 | # We always have the _msize function available when using MSVC. |
| 53 | TCC = $(TCC) -DHAVE_MALLOC_USABLE_SIZE -Dmalloc_usable_size=_msize |
| 54 | |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 55 | # The mksqlite3c.tcl and mksqlite3h.tcl scripts will pull in |
| 56 | # any extension header files by default. For non-amalgamation |
| 57 | # builds, we need to make sure the compiler can find these. |
| 58 | # |
| 59 | !IF $(USE_AMALGAMATION)==0 |
| 60 | TCC = $(TCC) -I$(TOP)\ext\fts3 |
| 61 | TCC = $(TCC) -I$(TOP)\ext\rtree |
| 62 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 63 | |
| 64 | # Define -DNDEBUG to compile without debugging (i.e., for production usage) |
| 65 | # Omitting the define will cause extra debugging code to be inserted and |
| 66 | # includes extra comments when "EXPLAIN stmt" is used. |
| 67 | # |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 68 | !IF $(DEBUG)==0 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 69 | TCC = $(TCC) -DNDEBUG |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 70 | !ENDIF |
| 71 | |
| 72 | !IF $(DEBUG)>1 |
| 73 | TCC = $(TCC) -DSQLITE_DEBUG |
| 74 | !ENDIF |
| 75 | |
| 76 | !IF $(DEBUG)>3 |
| 77 | TCC = $(TCC) -DSQLITE_DEBUG_OS_TRACE=1 |
| 78 | !ENDIF |
| 79 | |
| 80 | !IF $(DEBUG)>4 |
| 81 | TCC = $(TCC) -DSQLITE_ENABLE_IOTRACE |
| 82 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 83 | |
mistachkin | 176f1b4 | 2011-08-02 23:34:00 +0000 | [diff] [blame] | 84 | # |
| 85 | # Prevent warnings about "insecure" runtime library functions being used. |
| 86 | # |
| 87 | TCC = $(TCC) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS |
| 88 | |
mistachkin | 1b186a9 | 2011-08-24 16:13:57 +0000 | [diff] [blame] | 89 | # |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 90 | # Use native Win32 heap instead of malloc/free? |
mistachkin | 1b186a9 | 2011-08-24 16:13:57 +0000 | [diff] [blame] | 91 | # |
mistachkin | d2f496a | 2011-08-26 11:18:44 +0000 | [diff] [blame] | 92 | # TCC = $(TCC) -DSQLITE_WIN32_MALLOC=1 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 93 | |
| 94 | # |
| 95 | # Validate the heap on every call into the native Win32 heap subsystem? |
| 96 | # |
| 97 | !IF $(DEBUG)>2 |
| 98 | TCC = $(TCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1 |
| 99 | !ENDIF |
mistachkin | 1b186a9 | 2011-08-24 16:13:57 +0000 | [diff] [blame] | 100 | |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 101 | # The locations of the Tcl header and library files. Also, the library that |
| 102 | # non-stubs enabled programs using Tcl must link against. These variables |
| 103 | # (TCLINCDIR, TCLLIBDIR, and LIBTCL) may be overridden via the environment |
| 104 | # prior to running nmake in order to match the actual installed location and |
| 105 | # version on this machine. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 106 | # |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 107 | !if "$(TCLINCDIR)" == "" |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 108 | TCLINCDIR = c:\tcl\include |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 109 | !endif |
| 110 | |
| 111 | !if "$(TCLLIBDIR)" == "" |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 112 | TCLLIBDIR = c:\tcl\lib |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 113 | !endif |
| 114 | |
| 115 | !if "$(LIBTCL)" == "" |
| 116 | LIBTCL = tcl85.lib |
| 117 | !endif |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 118 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 119 | # The locations of the ICU header and library files. These variables |
| 120 | # (ICUINCDIR, ICULIBDIR, and LIBICU) may be overridden via the environment |
| 121 | # prior to running nmake in order to match the actual installed location on |
| 122 | # this machine. |
| 123 | # |
| 124 | !if "$(ICUINCDIR)" == "" |
| 125 | ICUINCDIR = c:\icu\include |
| 126 | !endif |
| 127 | |
| 128 | !if "$(ICULIBDIR)" == "" |
| 129 | ICULIBDIR = c:\icu\lib |
| 130 | !endif |
| 131 | |
| 132 | !if "$(LIBICU)" == "" |
| 133 | LIBICU = icuuc.lib icuin.lib |
| 134 | !endif |
| 135 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 136 | # 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] | 137 | # know the specific version we want to use. This variable (TCLSH_CMD) may be |
| 138 | # overridden via the environment prior to running nmake in order to select a |
| 139 | # specific Tcl shell to use. |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 140 | # |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 141 | !if "$(TCLSH_CMD)" == "" |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 142 | TCLSH_CMD = tclsh85 |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 143 | !endif |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 144 | |
| 145 | # Compiler options needed for programs that use the readline() library. |
| 146 | # |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 147 | READLINE_FLAGS = -DHAVE_READLINE=0 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 148 | |
| 149 | # The library that programs using readline() must link against. |
| 150 | # |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 151 | LIBREADLINE = |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 152 | |
| 153 | # Should the database engine be compiled threadsafe |
| 154 | # |
| 155 | TCC = $(TCC) -DSQLITE_THREADSAFE=1 |
| 156 | |
| 157 | # Do threads override each others locks by default (1), or do we test (-1) |
| 158 | # |
| 159 | TCC = $(TCC) -DSQLITE_THREAD_OVERRIDE_LOCK=-1 |
| 160 | |
| 161 | # Any target libraries which libsqlite must be linked against |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 162 | # |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 163 | !if "$(TLIBS)" == "" |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 164 | TLIBS = |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 165 | !endif |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 166 | |
| 167 | # Flags controlling use of the in memory btree implementation |
| 168 | # |
| 169 | # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to |
| 170 | # default to file, 2 to default to memory, and 3 to force temporary |
| 171 | # tables to always be in memory. |
| 172 | # |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 173 | TCC = $(TCC) -DSQLITE_TEMP_STORE=1 |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 174 | |
| 175 | # Enable/disable loadable extensions, and other optional features |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 176 | # based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*). |
| 177 | # The same set of OMIT and ENABLE flags should be passed to the |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 178 | # LEMON parser generator and the mkkeywordhash tool as well. |
| 179 | |
| 180 | # BEGIN standard options |
| 181 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_FTS3=1 |
| 182 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RTREE=1 |
| 183 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_COLUMN_METADATA=1 |
| 184 | # END standard options |
| 185 | |
| 186 | # BEGIN required Windows option |
| 187 | OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_MAX_TRIGGER_DEPTH=100 |
| 188 | # END required Windows option |
| 189 | |
| 190 | TCC = $(TCC) $(OPT_FEATURE_FLAGS) |
| 191 | |
| 192 | # Add in any optional parameters specified on the make commane line |
| 193 | # ie. make "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1". |
| 194 | TCC = $(TCC) $(OPTS) |
| 195 | |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 196 | # If symbols are enabled, enable PDBs. |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 197 | # If debugging is enabled, disable all optimizations and enable PDBs. |
| 198 | !IF $(DEBUG)>0 |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 199 | TCC = $(TCC) -Od -D_DEBUG |
| 200 | !ELSE |
| 201 | TCC = $(TCC) -O2 |
| 202 | !ENDIF |
| 203 | |
| 204 | !IF $(DEBUG)>0 || $(SYMBOLS)!=0 |
| 205 | TCC = $(TCC) -Zi |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 206 | !ENDIF |
| 207 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 208 | # If ICU support is enabled, add the compiler options for it. |
| 209 | !IF $(USE_ICU)!=0 |
| 210 | TCC = $(TCC) -DSQLITE_ENABLE_ICU=1 |
| 211 | TCC = $(TCC) -I$(TOP)\ext\icu |
| 212 | TCC = $(TCC) -I$(ICUINCDIR) |
| 213 | !ENDIF |
| 214 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 215 | # libtool compile/link |
| 216 | LTCOMPILE = $(TCC) -Fo$@ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 217 | LTLIB = lib.exe |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 218 | LTLINK = $(TCC) -Fe$@ |
| 219 | |
| 220 | # If a platform was set, force the linker to target that. |
| 221 | # Note that the vcvars*.bat family of batch files typically |
| 222 | # set this for you. Otherwise, the linker will attempt |
| 223 | # to deduce the binary type based on the object files. |
| 224 | !IF "$(PLATFORM)"!="" |
| 225 | LTLINKOPTS = /MACHINE:$(PLATFORM) |
shaneh | 29ebea8 | 2011-06-21 18:12:07 +0000 | [diff] [blame] | 226 | LTLIBOPTS = /MACHINE:$(PLATFORM) |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 227 | !ENDIF |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 228 | |
mistachkin | f2d25f2 | 2011-08-25 04:09:12 +0000 | [diff] [blame] | 229 | # If debugging is enabled, enable PDBs. |
mistachkin | 4d60be5 | 2011-08-26 05:40:31 +0000 | [diff] [blame] | 230 | !IF $(DEBUG)>0 || $(SYMBOLS)!=0 |
mistachkin | 753c544 | 2011-08-25 02:02:25 +0000 | [diff] [blame] | 231 | LTLINKOPTS = $(LTLINKOPTS) /DEBUG |
| 232 | !ENDIF |
| 233 | |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 234 | # Start with the Tcl related linker options. |
| 235 | LTLIBPATHS = /LIBPATH:$(TCLLIBDIR) |
| 236 | LTLIBS = $(LIBTCL) |
| 237 | |
| 238 | # If ICU support is enabled, add the linker options for it. |
| 239 | !IF $(USE_ICU)!=0 |
| 240 | LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ICULIBDIR) |
| 241 | LTLIBS = $(LTLIBS) $(LIBICU) |
| 242 | !ENDIF |
| 243 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 244 | # nawk compatible awk. |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 245 | NAWK = gawk.exe |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 246 | |
| 247 | # You should not have to change anything below this line |
| 248 | ############################################################################### |
| 249 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 250 | # Object files for the SQLite library (non-amalgamation). |
| 251 | # |
| 252 | LIBOBJS0 = alter.lo analyze.lo attach.lo auth.lo \ |
| 253 | backup.lo bitvec.lo btmutex.lo btree.lo build.lo \ |
| 254 | callback.lo complete.lo ctime.lo date.lo delete.lo \ |
| 255 | expr.lo fault.lo fkey.lo \ |
| 256 | fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo fts3_porter.lo \ |
| 257 | fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo fts3_write.lo \ |
| 258 | func.lo global.lo hash.lo \ |
| 259 | icu.lo insert.lo journal.lo legacy.lo loadext.lo \ |
| 260 | main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \ |
| 261 | memjournal.lo \ |
| 262 | mutex.lo mutex_noop.lo mutex_os2.lo mutex_unix.lo mutex_w32.lo \ |
| 263 | notify.lo opcodes.lo os.lo os_os2.lo os_unix.lo os_win.lo \ |
| 264 | pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \ |
| 265 | random.lo resolve.lo rowset.lo rtree.lo select.lo status.lo \ |
| 266 | table.lo tokenize.lo trigger.lo \ |
| 267 | update.lo util.lo vacuum.lo \ |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 268 | vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \ |
| 269 | vdbetrace.lo wal.lo walker.lo where.lo utf.lo vtab.lo |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 270 | |
| 271 | # Object files for the amalgamation. |
| 272 | # |
| 273 | LIBOBJS1 = sqlite3.lo |
| 274 | |
| 275 | # Determine the real value of LIBOBJ based on the 'configure' script |
| 276 | # |
| 277 | !IF $(USE_AMALGAMATION)==0 |
| 278 | LIBOBJ = $(LIBOBJS0) |
| 279 | !ELSE |
| 280 | LIBOBJ = $(LIBOBJS1) |
| 281 | !ENDIF |
| 282 | |
| 283 | # All of the source code files. |
| 284 | # |
| 285 | SRC = \ |
| 286 | $(TOP)\src\alter.c \ |
| 287 | $(TOP)\src\analyze.c \ |
| 288 | $(TOP)\src\attach.c \ |
| 289 | $(TOP)\src\auth.c \ |
| 290 | $(TOP)\src\backup.c \ |
| 291 | $(TOP)\src\bitvec.c \ |
| 292 | $(TOP)\src\btmutex.c \ |
| 293 | $(TOP)\src\btree.c \ |
| 294 | $(TOP)\src\btree.h \ |
| 295 | $(TOP)\src\btreeInt.h \ |
| 296 | $(TOP)\src\build.c \ |
| 297 | $(TOP)\src\callback.c \ |
| 298 | $(TOP)\src\complete.c \ |
| 299 | $(TOP)\src\ctime.c \ |
| 300 | $(TOP)\src\date.c \ |
| 301 | $(TOP)\src\delete.c \ |
| 302 | $(TOP)\src\expr.c \ |
| 303 | $(TOP)\src\fault.c \ |
| 304 | $(TOP)\src\fkey.c \ |
| 305 | $(TOP)\src\func.c \ |
| 306 | $(TOP)\src\global.c \ |
| 307 | $(TOP)\src\hash.c \ |
| 308 | $(TOP)\src\hash.h \ |
| 309 | $(TOP)\src\hwtime.h \ |
| 310 | $(TOP)\src\insert.c \ |
| 311 | $(TOP)\src\journal.c \ |
| 312 | $(TOP)\src\legacy.c \ |
| 313 | $(TOP)\src\loadext.c \ |
| 314 | $(TOP)\src\main.c \ |
| 315 | $(TOP)\src\malloc.c \ |
| 316 | $(TOP)\src\mem0.c \ |
| 317 | $(TOP)\src\mem1.c \ |
| 318 | $(TOP)\src\mem2.c \ |
| 319 | $(TOP)\src\mem3.c \ |
| 320 | $(TOP)\src\mem5.c \ |
| 321 | $(TOP)\src\memjournal.c \ |
| 322 | $(TOP)\src\mutex.c \ |
| 323 | $(TOP)\src\mutex.h \ |
| 324 | $(TOP)\src\mutex_noop.c \ |
| 325 | $(TOP)\src\mutex_os2.c \ |
| 326 | $(TOP)\src\mutex_unix.c \ |
| 327 | $(TOP)\src\mutex_w32.c \ |
| 328 | $(TOP)\src\notify.c \ |
| 329 | $(TOP)\src\os.c \ |
| 330 | $(TOP)\src\os.h \ |
| 331 | $(TOP)\src\os_common.h \ |
| 332 | $(TOP)\src\os_os2.c \ |
| 333 | $(TOP)\src\os_unix.c \ |
| 334 | $(TOP)\src\os_win.c \ |
| 335 | $(TOP)\src\pager.c \ |
| 336 | $(TOP)\src\pager.h \ |
| 337 | $(TOP)\src\parse.y \ |
| 338 | $(TOP)\src\pcache.c \ |
| 339 | $(TOP)\src\pcache.h \ |
| 340 | $(TOP)\src\pcache1.c \ |
| 341 | $(TOP)\src\pragma.c \ |
| 342 | $(TOP)\src\prepare.c \ |
| 343 | $(TOP)\src\printf.c \ |
| 344 | $(TOP)\src\random.c \ |
| 345 | $(TOP)\src\resolve.c \ |
| 346 | $(TOP)\src\rowset.c \ |
| 347 | $(TOP)\src\select.c \ |
| 348 | $(TOP)\src\status.c \ |
| 349 | $(TOP)\src\shell.c \ |
| 350 | $(TOP)\src\sqlite.h.in \ |
| 351 | $(TOP)\src\sqlite3ext.h \ |
| 352 | $(TOP)\src\sqliteInt.h \ |
| 353 | $(TOP)\src\sqliteLimit.h \ |
| 354 | $(TOP)\src\table.c \ |
| 355 | $(TOP)\src\tclsqlite.c \ |
| 356 | $(TOP)\src\tokenize.c \ |
| 357 | $(TOP)\src\trigger.c \ |
| 358 | $(TOP)\src\utf.c \ |
| 359 | $(TOP)\src\update.c \ |
| 360 | $(TOP)\src\util.c \ |
| 361 | $(TOP)\src\vacuum.c \ |
| 362 | $(TOP)\src\vdbe.c \ |
| 363 | $(TOP)\src\vdbe.h \ |
| 364 | $(TOP)\src\vdbeapi.c \ |
| 365 | $(TOP)\src\vdbeaux.c \ |
| 366 | $(TOP)\src\vdbeblob.c \ |
| 367 | $(TOP)\src\vdbemem.c \ |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 368 | $(TOP)\src\vdbesort.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 369 | $(TOP)\src\vdbetrace.c \ |
| 370 | $(TOP)\src\vdbeInt.h \ |
| 371 | $(TOP)\src\vtab.c \ |
| 372 | $(TOP)\src\wal.c \ |
| 373 | $(TOP)\src\wal.h \ |
| 374 | $(TOP)\src\walker.c \ |
| 375 | $(TOP)\src\where.c |
| 376 | |
| 377 | # Source code for extensions |
| 378 | # |
| 379 | SRC = $(SRC) \ |
| 380 | $(TOP)\ext\fts1\fts1.c \ |
| 381 | $(TOP)\ext\fts1\fts1.h \ |
| 382 | $(TOP)\ext\fts1\fts1_hash.c \ |
| 383 | $(TOP)\ext\fts1\fts1_hash.h \ |
| 384 | $(TOP)\ext\fts1\fts1_porter.c \ |
| 385 | $(TOP)\ext\fts1\fts1_tokenizer.h \ |
| 386 | $(TOP)\ext\fts1\fts1_tokenizer1.c |
| 387 | SRC = $(SRC) \ |
| 388 | $(TOP)\ext\fts2\fts2.c \ |
| 389 | $(TOP)\ext\fts2\fts2.h \ |
| 390 | $(TOP)\ext\fts2\fts2_hash.c \ |
| 391 | $(TOP)\ext\fts2\fts2_hash.h \ |
| 392 | $(TOP)\ext\fts2\fts2_icu.c \ |
| 393 | $(TOP)\ext\fts2\fts2_porter.c \ |
| 394 | $(TOP)\ext\fts2\fts2_tokenizer.h \ |
| 395 | $(TOP)\ext\fts2\fts2_tokenizer.c \ |
| 396 | $(TOP)\ext\fts2\fts2_tokenizer1.c |
| 397 | SRC = $(SRC) \ |
| 398 | $(TOP)\ext\fts3\fts3.c \ |
| 399 | $(TOP)\ext\fts3\fts3.h \ |
| 400 | $(TOP)\ext\fts3\fts3Int.h \ |
| 401 | $(TOP)\ext\fts3\fts3_aux.c \ |
| 402 | $(TOP)\ext\fts3\fts3_expr.c \ |
| 403 | $(TOP)\ext\fts3\fts3_hash.c \ |
| 404 | $(TOP)\ext\fts3\fts3_hash.h \ |
| 405 | $(TOP)\ext\fts3\fts3_icu.c \ |
| 406 | $(TOP)\ext\fts3\fts3_porter.c \ |
| 407 | $(TOP)\ext\fts3\fts3_snippet.c \ |
| 408 | $(TOP)\ext\fts3\fts3_tokenizer.h \ |
| 409 | $(TOP)\ext\fts3\fts3_tokenizer.c \ |
| 410 | $(TOP)\ext\fts3\fts3_tokenizer1.c \ |
| 411 | $(TOP)\ext\fts3\fts3_write.c |
| 412 | SRC = $(SRC) \ |
| 413 | $(TOP)\ext\icu\sqliteicu.h \ |
| 414 | $(TOP)\ext\icu\icu.c |
| 415 | SRC = $(SRC) \ |
| 416 | $(TOP)\ext\rtree\rtree.h \ |
| 417 | $(TOP)\ext\rtree\rtree.c |
| 418 | |
| 419 | |
| 420 | # Generated source code files |
| 421 | # |
| 422 | SRC = $(SRC) \ |
| 423 | keywordhash.h \ |
| 424 | opcodes.c \ |
| 425 | opcodes.h \ |
| 426 | parse.c \ |
| 427 | parse.h \ |
| 428 | sqlite3.h |
| 429 | |
| 430 | # Source code to the test files. |
| 431 | # |
| 432 | TESTSRC = \ |
| 433 | $(TOP)\src\test1.c \ |
| 434 | $(TOP)\src\test2.c \ |
| 435 | $(TOP)\src\test3.c \ |
| 436 | $(TOP)\src\test4.c \ |
| 437 | $(TOP)\src\test5.c \ |
| 438 | $(TOP)\src\test6.c \ |
| 439 | $(TOP)\src\test7.c \ |
| 440 | $(TOP)\src\test8.c \ |
| 441 | $(TOP)\src\test9.c \ |
| 442 | $(TOP)\src\test_autoext.c \ |
| 443 | $(TOP)\src\test_async.c \ |
| 444 | $(TOP)\src\test_backup.c \ |
| 445 | $(TOP)\src\test_btree.c \ |
| 446 | $(TOP)\src\test_config.c \ |
| 447 | $(TOP)\src\test_demovfs.c \ |
| 448 | $(TOP)\src\test_devsym.c \ |
| 449 | $(TOP)\src\test_func.c \ |
| 450 | $(TOP)\src\test_fuzzer.c \ |
| 451 | $(TOP)\src\test_hexio.c \ |
| 452 | $(TOP)\src\test_init.c \ |
| 453 | $(TOP)\src\test_intarray.c \ |
| 454 | $(TOP)\src\test_journal.c \ |
| 455 | $(TOP)\src\test_malloc.c \ |
| 456 | $(TOP)\src\test_multiplex.c \ |
| 457 | $(TOP)\src\test_mutex.c \ |
| 458 | $(TOP)\src\test_onefile.c \ |
| 459 | $(TOP)\src\test_osinst.c \ |
| 460 | $(TOP)\src\test_pcache.c \ |
| 461 | $(TOP)\src\test_quota.c \ |
| 462 | $(TOP)\src\test_rtree.c \ |
| 463 | $(TOP)\src\test_schema.c \ |
| 464 | $(TOP)\src\test_server.c \ |
| 465 | $(TOP)\src\test_superlock.c \ |
| 466 | $(TOP)\src\test_syscall.c \ |
| 467 | $(TOP)\src\test_stat.c \ |
| 468 | $(TOP)\src\test_tclvar.c \ |
| 469 | $(TOP)\src\test_thread.c \ |
| 470 | $(TOP)\src\test_vfs.c \ |
| 471 | $(TOP)\src\test_wholenumber.c \ |
| 472 | $(TOP)\src\test_wsd.c \ |
| 473 | $(TOP)\ext\fts3\fts3_term.c \ |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 474 | $(TOP)\ext\fts3\fts3_test.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 475 | |
| 476 | # Source code to the library files needed by the test fixture |
| 477 | # |
| 478 | TESTSRC2 = \ |
| 479 | $(TOP)\src\attach.c \ |
| 480 | $(TOP)\src\backup.c \ |
| 481 | $(TOP)\src\bitvec.c \ |
| 482 | $(TOP)\src\btree.c \ |
| 483 | $(TOP)\src\build.c \ |
| 484 | $(TOP)\src\ctime.c \ |
| 485 | $(TOP)\src\date.c \ |
| 486 | $(TOP)\src\expr.c \ |
| 487 | $(TOP)\src\func.c \ |
| 488 | $(TOP)\src\insert.c \ |
| 489 | $(TOP)\src\wal.c \ |
| 490 | $(TOP)\src\mem5.c \ |
| 491 | $(TOP)\src\os.c \ |
| 492 | $(TOP)\src\os_os2.c \ |
| 493 | $(TOP)\src\os_unix.c \ |
| 494 | $(TOP)\src\os_win.c \ |
| 495 | $(TOP)\src\pager.c \ |
| 496 | $(TOP)\src\pragma.c \ |
| 497 | $(TOP)\src\prepare.c \ |
| 498 | $(TOP)\src\printf.c \ |
| 499 | $(TOP)\src\random.c \ |
| 500 | $(TOP)\src\pcache.c \ |
| 501 | $(TOP)\src\pcache1.c \ |
| 502 | $(TOP)\src\select.c \ |
| 503 | $(TOP)\src\tokenize.c \ |
| 504 | $(TOP)\src\utf.c \ |
| 505 | $(TOP)\src\util.c \ |
| 506 | $(TOP)\src\vdbeapi.c \ |
| 507 | $(TOP)\src\vdbeaux.c \ |
| 508 | $(TOP)\src\vdbe.c \ |
| 509 | $(TOP)\src\vdbemem.c \ |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 510 | $(TOP)\src\vdbesort.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 511 | $(TOP)\src\vdbetrace.c \ |
| 512 | $(TOP)\src\where.c \ |
| 513 | parse.c \ |
| 514 | $(TOP)\ext\fts3\fts3.c \ |
| 515 | $(TOP)\ext\fts3\fts3_aux.c \ |
| 516 | $(TOP)\ext\fts3\fts3_expr.c \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 517 | $(TOP)\ext\fts3\fts3_tokenizer.c \ |
| 518 | $(TOP)\ext\fts3\fts3_write.c \ |
| 519 | $(TOP)\ext\async\sqlite3async.c |
| 520 | |
| 521 | # Header files used by all library source files. |
| 522 | # |
| 523 | HDR = \ |
| 524 | $(TOP)\src\btree.h \ |
| 525 | $(TOP)\src\btreeInt.h \ |
| 526 | $(TOP)\src\hash.h \ |
| 527 | $(TOP)\src\hwtime.h \ |
| 528 | keywordhash.h \ |
| 529 | $(TOP)\src\mutex.h \ |
| 530 | opcodes.h \ |
| 531 | $(TOP)\src\os.h \ |
| 532 | $(TOP)\src\os_common.h \ |
| 533 | $(TOP)\src\pager.h \ |
| 534 | $(TOP)\src\pcache.h \ |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 535 | parse.h \ |
| 536 | sqlite3.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 537 | $(TOP)\src\sqlite3ext.h \ |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 538 | $(TOP)\src\sqliteInt.h \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 539 | $(TOP)\src\sqliteLimit.h \ |
| 540 | $(TOP)\src\vdbe.h \ |
| 541 | $(TOP)\src\vdbeInt.h |
| 542 | |
| 543 | # Header files used by extensions |
| 544 | # |
| 545 | EXTHDR = $(EXTHDR) \ |
| 546 | $(TOP)\ext\fts1\fts1.h \ |
| 547 | $(TOP)\ext\fts1\fts1_hash.h \ |
| 548 | $(TOP)\ext\fts1\fts1_tokenizer.h |
| 549 | EXTHDR = $(EXTHDR) \ |
| 550 | $(TOP)\ext\fts2\fts2.h \ |
| 551 | $(TOP)\ext\fts2\fts2_hash.h \ |
| 552 | $(TOP)\ext\fts2\fts2_tokenizer.h |
| 553 | EXTHDR = $(EXTHDR) \ |
| 554 | $(TOP)\ext\fts3\fts3.h \ |
| 555 | $(TOP)\ext\fts3\fts3Int.h \ |
| 556 | $(TOP)\ext\fts3\fts3_hash.h \ |
| 557 | $(TOP)\ext\fts3\fts3_tokenizer.h |
| 558 | EXTHDR = $(EXTHDR) \ |
| 559 | $(TOP)\ext\rtree\rtree.h |
| 560 | EXTHDR = $(EXTHDR) \ |
| 561 | $(TOP)\ext\icu\sqliteicu.h |
| 562 | EXTHDR = $(EXTHDR) \ |
| 563 | $(TOP)\ext\rtree\sqlite3rtree.h |
| 564 | |
| 565 | # This is the default Makefile target. The objects listed here |
| 566 | # are what get build when you type just "make" with no arguments. |
| 567 | # |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 568 | all: dll libsqlite3.lib sqlite3.exe libtclsqlite3.lib |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 569 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 570 | libsqlite3.lib: $(LIBOBJ) |
shaneh | 29ebea8 | 2011-06-21 18:12:07 +0000 | [diff] [blame] | 571 | $(LTLIB) $(LTLIBOPTS) /OUT:$@ $(LIBOBJ) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 572 | |
| 573 | libtclsqlite3.lib: tclsqlite.lo libsqlite3.lib |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 574 | $(LTLIB) $(LTLIBOPTS) $(LTLIBPATHS) /OUT:$@ tclsqlite.lo libsqlite3.lib $(LIBTCL:tcl=tclstub) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 575 | |
| 576 | sqlite3.exe: $(TOP)\src\shell.c libsqlite3.lib sqlite3.h |
| 577 | $(LTLINK) $(READLINE_FLAGS) \ |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 578 | $(TOP)\src\shell.c \ |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 579 | /link $(LTLINKOPTS) $(LTLIBPATHS) libsqlite3.lib $(LIBREADLINE) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 580 | |
| 581 | # This target creates a directory named "tsrc" and fills it with |
| 582 | # copies of all of the C source code and header files needed to |
| 583 | # build on the target system. Some of the C source code and header |
| 584 | # files are automatically generated. This target takes care of |
| 585 | # all that automatic generation. |
| 586 | # |
| 587 | .target_source: $(SRC) $(TOP)\tool\vdbe-compress.tcl |
| 588 | -rmdir /S/Q tsrc |
| 589 | -mkdir tsrc |
| 590 | for %i in ($(SRC)) do copy /Y %i tsrc |
| 591 | del /Q tsrc\sqlite.h.in tsrc\parse.y |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 592 | $(TCLSH_CMD) $(TOP)\tool\vdbe-compress.tcl < tsrc\vdbe.c > vdbe.new |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 593 | move vdbe.new tsrc\vdbe.c |
| 594 | echo > .target_source |
| 595 | |
| 596 | sqlite3.c: .target_source $(TOP)\tool\mksqlite3c.tcl |
| 597 | $(TCLSH_CMD) $(TOP)\tool\mksqlite3c.tcl |
| 598 | |
drh | 75e7bc1 | 2011-07-22 11:23:49 +0000 | [diff] [blame] | 599 | sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl |
| 600 | $(TCLSH_CMD) $(TOP)/tool/split-sqlite3c.tcl |
| 601 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 602 | # Rule to build the amalgamation |
| 603 | # |
| 604 | sqlite3.lo: sqlite3.c |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 605 | $(LTCOMPILE) -c sqlite3.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 606 | |
| 607 | # Rules to build the LEMON compiler generator |
| 608 | # |
| 609 | lempar.c: $(TOP)\src\lempar.c |
| 610 | copy $(TOP)\src\lempar.c . |
| 611 | |
| 612 | lemon.exe: $(TOP)\tool\lemon.c lempar.c |
| 613 | $(BCC) -Fe$@ $(TOP)\tool\lemon.c |
| 614 | |
| 615 | # Rules to build individual *.lo files from generated *.c files. This |
| 616 | # applies to: |
| 617 | # |
| 618 | # parse.lo |
| 619 | # opcodes.lo |
| 620 | # |
| 621 | parse.lo: parse.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 622 | $(LTCOMPILE) -c parse.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 623 | |
| 624 | opcodes.lo: opcodes.c |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 625 | $(LTCOMPILE) -c opcodes.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 626 | |
| 627 | # Rules to build individual *.lo files from files in the src directory. |
| 628 | # |
| 629 | alter.lo: $(TOP)\src\alter.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 630 | $(LTCOMPILE) -c $(TOP)\src\alter.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 631 | |
| 632 | analyze.lo: $(TOP)\src\analyze.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 633 | $(LTCOMPILE) -c $(TOP)\src\analyze.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 634 | |
| 635 | attach.lo: $(TOP)\src\attach.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 636 | $(LTCOMPILE) -c $(TOP)\src\attach.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 637 | |
| 638 | auth.lo: $(TOP)\src\auth.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 639 | $(LTCOMPILE) -c $(TOP)\src\auth.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 640 | |
| 641 | backup.lo: $(TOP)\src\backup.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 642 | $(LTCOMPILE) -c $(TOP)\src\backup.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 643 | |
| 644 | bitvec.lo: $(TOP)\src\bitvec.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 645 | $(LTCOMPILE) -c $(TOP)\src\bitvec.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 646 | |
| 647 | btmutex.lo: $(TOP)\src\btmutex.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 648 | $(LTCOMPILE) -c $(TOP)\src\btmutex.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 649 | |
| 650 | btree.lo: $(TOP)\src\btree.c $(HDR) $(TOP)\src\pager.h |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 651 | $(LTCOMPILE) -c $(TOP)\src\btree.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 652 | |
| 653 | build.lo: $(TOP)\src\build.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 654 | $(LTCOMPILE) -c $(TOP)\src\build.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 655 | |
| 656 | callback.lo: $(TOP)\src\callback.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 657 | $(LTCOMPILE) -c $(TOP)\src\callback.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 658 | |
| 659 | complete.lo: $(TOP)\src\complete.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 660 | $(LTCOMPILE) -c $(TOP)\src\complete.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 661 | |
| 662 | ctime.lo: $(TOP)\src\ctime.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 663 | $(LTCOMPILE) -c $(TOP)\src\ctime.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 664 | |
| 665 | date.lo: $(TOP)\src\date.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 666 | $(LTCOMPILE) -c $(TOP)\src\date.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 667 | |
| 668 | delete.lo: $(TOP)\src\delete.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 669 | $(LTCOMPILE) -c $(TOP)\src\delete.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 670 | |
| 671 | expr.lo: $(TOP)\src\expr.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 672 | $(LTCOMPILE) -c $(TOP)\src\expr.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 673 | |
| 674 | fault.lo: $(TOP)\src\fault.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 675 | $(LTCOMPILE) -c $(TOP)\src\fault.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 676 | |
| 677 | fkey.lo: $(TOP)\src\fkey.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 678 | $(LTCOMPILE) -c $(TOP)\src\fkey.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 679 | |
| 680 | func.lo: $(TOP)\src\func.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 681 | $(LTCOMPILE) -c $(TOP)\src\func.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 682 | |
| 683 | global.lo: $(TOP)\src\global.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 684 | $(LTCOMPILE) -c $(TOP)\src\global.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 685 | |
| 686 | hash.lo: $(TOP)\src\hash.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 687 | $(LTCOMPILE) -c $(TOP)\src\hash.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 688 | |
| 689 | insert.lo: $(TOP)\src\insert.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 690 | $(LTCOMPILE) -c $(TOP)\src\insert.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 691 | |
| 692 | journal.lo: $(TOP)\src\journal.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 693 | $(LTCOMPILE) -c $(TOP)\src\journal.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 694 | |
| 695 | legacy.lo: $(TOP)\src\legacy.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 696 | $(LTCOMPILE) -c $(TOP)\src\legacy.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 697 | |
| 698 | loadext.lo: $(TOP)\src\loadext.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 699 | $(LTCOMPILE) -c $(TOP)\src\loadext.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 700 | |
| 701 | main.lo: $(TOP)\src\main.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 702 | $(LTCOMPILE) -c $(TOP)\src\main.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 703 | |
| 704 | malloc.lo: $(TOP)\src\malloc.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 705 | $(LTCOMPILE) -c $(TOP)\src\malloc.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 706 | |
| 707 | mem0.lo: $(TOP)\src\mem0.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 708 | $(LTCOMPILE) -c $(TOP)\src\mem0.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 709 | |
| 710 | mem1.lo: $(TOP)\src\mem1.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 711 | $(LTCOMPILE) -c $(TOP)\src\mem1.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 712 | |
| 713 | mem2.lo: $(TOP)\src\mem2.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 714 | $(LTCOMPILE) -c $(TOP)\src\mem2.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 715 | |
| 716 | mem3.lo: $(TOP)\src\mem3.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 717 | $(LTCOMPILE) -c $(TOP)\src\mem3.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 718 | |
| 719 | mem5.lo: $(TOP)\src\mem5.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 720 | $(LTCOMPILE) -c $(TOP)\src\mem5.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 721 | |
| 722 | memjournal.lo: $(TOP)\src\memjournal.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 723 | $(LTCOMPILE) -c $(TOP)\src\memjournal.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 724 | |
| 725 | mutex.lo: $(TOP)\src\mutex.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 726 | $(LTCOMPILE) -c $(TOP)\src\mutex.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 727 | |
| 728 | mutex_noop.lo: $(TOP)\src\mutex_noop.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 729 | $(LTCOMPILE) -c $(TOP)\src\mutex_noop.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 730 | |
| 731 | mutex_os2.lo: $(TOP)\src\mutex_os2.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 732 | $(LTCOMPILE) -c $(TOP)\src\mutex_os2.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 733 | |
| 734 | mutex_unix.lo: $(TOP)\src\mutex_unix.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 735 | $(LTCOMPILE) -c $(TOP)\src\mutex_unix.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 736 | |
| 737 | mutex_w32.lo: $(TOP)\src\mutex_w32.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 738 | $(LTCOMPILE) -c $(TOP)\src\mutex_w32.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 739 | |
| 740 | notify.lo: $(TOP)\src\notify.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 741 | $(LTCOMPILE) -c $(TOP)\src\notify.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 742 | |
| 743 | pager.lo: $(TOP)\src\pager.c $(HDR) $(TOP)\src\pager.h |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 744 | $(LTCOMPILE) -c $(TOP)\src\pager.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 745 | |
| 746 | pcache.lo: $(TOP)\src\pcache.c $(HDR) $(TOP)\src\pcache.h |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 747 | $(LTCOMPILE) -c $(TOP)\src\pcache.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 748 | |
| 749 | pcache1.lo: $(TOP)\src\pcache1.c $(HDR) $(TOP)\src\pcache.h |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 750 | $(LTCOMPILE) -c $(TOP)\src\pcache1.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 751 | |
| 752 | os.lo: $(TOP)\src\os.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 753 | $(LTCOMPILE) -c $(TOP)\src\os.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 754 | |
| 755 | os_unix.lo: $(TOP)\src\os_unix.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 756 | $(LTCOMPILE) -c $(TOP)\src\os_unix.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 757 | |
| 758 | os_win.lo: $(TOP)\src\os_win.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 759 | $(LTCOMPILE) -c $(TOP)\src\os_win.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 760 | |
| 761 | os_os2.lo: $(TOP)\src\os_os2.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 762 | $(LTCOMPILE) -c $(TOP)\src\os_os2.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 763 | |
| 764 | pragma.lo: $(TOP)\src\pragma.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 765 | $(LTCOMPILE) -c $(TOP)\src\pragma.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 766 | |
| 767 | prepare.lo: $(TOP)\src\prepare.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 768 | $(LTCOMPILE) -c $(TOP)\src\prepare.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 769 | |
| 770 | printf.lo: $(TOP)\src\printf.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 771 | $(LTCOMPILE) -c $(TOP)\src\printf.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 772 | |
| 773 | random.lo: $(TOP)\src\random.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 774 | $(LTCOMPILE) -c $(TOP)\src\random.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 775 | |
| 776 | resolve.lo: $(TOP)\src\resolve.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 777 | $(LTCOMPILE) -c $(TOP)\src\resolve.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 778 | |
| 779 | rowset.lo: $(TOP)\src\rowset.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 780 | $(LTCOMPILE) -c $(TOP)\src\rowset.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 781 | |
| 782 | select.lo: $(TOP)\src\select.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 783 | $(LTCOMPILE) -c $(TOP)\src\select.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 784 | |
| 785 | status.lo: $(TOP)\src\status.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 786 | $(LTCOMPILE) -c $(TOP)\src\status.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 787 | |
| 788 | table.lo: $(TOP)\src\table.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 789 | $(LTCOMPILE) -c $(TOP)\src\table.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 790 | |
| 791 | tokenize.lo: $(TOP)\src\tokenize.c keywordhash.h $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 792 | $(LTCOMPILE) -c $(TOP)\src\tokenize.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 793 | |
| 794 | trigger.lo: $(TOP)\src\trigger.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 795 | $(LTCOMPILE) -c $(TOP)\src\trigger.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 796 | |
| 797 | update.lo: $(TOP)\src\update.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 798 | $(LTCOMPILE) -c $(TOP)\src\update.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 799 | |
| 800 | utf.lo: $(TOP)\src\utf.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 801 | $(LTCOMPILE) -c $(TOP)\src\utf.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 802 | |
| 803 | util.lo: $(TOP)\src\util.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 804 | $(LTCOMPILE) -c $(TOP)\src\util.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 805 | |
| 806 | vacuum.lo: $(TOP)\src\vacuum.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 807 | $(LTCOMPILE) -c $(TOP)\src\vacuum.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 808 | |
| 809 | vdbe.lo: $(TOP)\src\vdbe.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 810 | $(LTCOMPILE) -c $(TOP)\src\vdbe.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 811 | |
| 812 | vdbeapi.lo: $(TOP)\src\vdbeapi.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 813 | $(LTCOMPILE) -c $(TOP)\src\vdbeapi.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 814 | |
| 815 | vdbeaux.lo: $(TOP)\src\vdbeaux.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 816 | $(LTCOMPILE) -c $(TOP)\src\vdbeaux.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 817 | |
| 818 | vdbeblob.lo: $(TOP)\src\vdbeblob.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 819 | $(LTCOMPILE) -c $(TOP)\src\vdbeblob.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 820 | |
| 821 | vdbemem.lo: $(TOP)\src\vdbemem.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 822 | $(LTCOMPILE) -c $(TOP)\src\vdbemem.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 823 | |
mistachkin | 81c428a | 2011-08-17 02:19:54 +0000 | [diff] [blame] | 824 | vdbesort.lo: $(TOP)\src\vdbesort.c $(HDR) |
| 825 | $(LTCOMPILE) -c $(TOP)\src\vdbesort.c |
| 826 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 827 | vdbetrace.lo: $(TOP)\src\vdbetrace.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 828 | $(LTCOMPILE) -c $(TOP)\src\vdbetrace.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 829 | |
| 830 | vtab.lo: $(TOP)\src\vtab.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 831 | $(LTCOMPILE) -c $(TOP)\src\vtab.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 832 | |
| 833 | wal.lo: $(TOP)\src\wal.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 834 | $(LTCOMPILE) -c $(TOP)\src\wal.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 835 | |
| 836 | walker.lo: $(TOP)\src\walker.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 837 | $(LTCOMPILE) -c $(TOP)\src\walker.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 838 | |
| 839 | where.lo: $(TOP)\src\where.c $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 840 | $(LTCOMPILE) -c $(TOP)\src\where.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 841 | |
| 842 | tclsqlite.lo: $(TOP)\src\tclsqlite.c $(HDR) |
| 843 | $(LTCOMPILE) -DUSE_TCL_STUBS=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c |
| 844 | |
| 845 | tclsqlite-shell.lo: $(TOP)\src\tclsqlite.c $(HDR) |
| 846 | $(LTCOMPILE) -DTCLSH=1 -DBUILD_sqlite -I$(TCLINCDIR) -c $(TOP)\src\tclsqlite.c |
| 847 | |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 848 | tclsqlite3.exe: tclsqlite-shell.lo libsqlite3.lib |
| 849 | $(LTLINK) tclsqlite-shell.lo \ |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 850 | /link $(LTLINKOPTS) $(LTLIBPATHS) libsqlite3.lib $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 851 | |
| 852 | # Rules to build opcodes.c and opcodes.h |
| 853 | # |
| 854 | opcodes.c: opcodes.h $(TOP)\mkopcodec.awk |
drh | 307ff30 | 2011-08-30 01:29:04 +0000 | [diff] [blame] | 855 | $(NAWK) -f $(TOP)\mkopcodec.awk opcodes.h > opcodes.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 856 | |
| 857 | opcodes.h: parse.h $(TOP)\src\vdbe.c $(TOP)\mkopcodeh.awk |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 858 | 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] | 859 | |
| 860 | # Rules to build parse.c and parse.h - the outputs of lemon. |
| 861 | # |
| 862 | parse.h: parse.c |
| 863 | |
| 864 | parse.c: $(TOP)\src\parse.y lemon.exe $(TOP)\addopcodes.awk |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 865 | del /Q parse.y parse.h parse.h.temp |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 866 | copy $(TOP)\src\parse.y . |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 867 | .\lemon.exe $(OPT_FEATURE_FLAGS) $(OPTS) parse.y |
| 868 | move parse.h parse.h.temp |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 869 | $(NAWK) -f $(TOP)\addopcodes.awk parse.h.temp > parse.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 870 | |
| 871 | sqlite3.h: $(TOP)\src\sqlite.h.in $(TOP)\manifest.uuid $(TOP)\VERSION |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 872 | $(TCLSH_CMD) $(TOP)\tool\mksqlite3h.tcl $(TOP) > sqlite3.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 873 | |
| 874 | mkkeywordhash.exe: $(TOP)\tool\mkkeywordhash.c |
| 875 | $(BCC) -Femkkeywordhash.exe $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)\tool\mkkeywordhash.c |
| 876 | |
| 877 | keywordhash.h: $(TOP)\tool\mkkeywordhash.c mkkeywordhash.exe |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 878 | .\mkkeywordhash.exe > keywordhash.h |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 879 | |
| 880 | |
| 881 | |
| 882 | # Rules to build the extension objects. |
| 883 | # |
| 884 | icu.lo: $(TOP)\ext\icu\icu.c $(HDR) $(EXTHDR) |
| 885 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\icu\icu.c |
| 886 | |
| 887 | fts2.lo: $(TOP)\ext\fts2\fts2.c $(HDR) $(EXTHDR) |
| 888 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2.c |
| 889 | |
| 890 | fts2_hash.lo: $(TOP)\ext\fts2\fts2_hash.c $(HDR) $(EXTHDR) |
| 891 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_hash.c |
| 892 | |
| 893 | fts2_icu.lo: $(TOP)\ext\fts2\fts2_icu.c $(HDR) $(EXTHDR) |
| 894 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_icu.c |
| 895 | |
| 896 | fts2_porter.lo: $(TOP)\ext\fts2\fts2_porter.c $(HDR) $(EXTHDR) |
| 897 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_porter.c |
| 898 | |
| 899 | fts2_tokenizer.lo: $(TOP)\ext\fts2\fts2_tokenizer.c $(HDR) $(EXTHDR) |
| 900 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer.c |
| 901 | |
| 902 | fts2_tokenizer1.lo: $(TOP)\ext\fts2\fts2_tokenizer1.c $(HDR) $(EXTHDR) |
| 903 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts2\fts2_tokenizer1.c |
| 904 | |
| 905 | fts3.lo: $(TOP)\ext\fts3\fts3.c $(HDR) $(EXTHDR) |
| 906 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3.c |
| 907 | |
| 908 | fts3_aux.lo: $(TOP)\ext\fts3\fts3_aux.c $(HDR) $(EXTHDR) |
| 909 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_aux.c |
| 910 | |
| 911 | fts3_expr.lo: $(TOP)\ext\fts3\fts3_expr.c $(HDR) $(EXTHDR) |
| 912 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_expr.c |
| 913 | |
| 914 | fts3_hash.lo: $(TOP)\ext\fts3\fts3_hash.c $(HDR) $(EXTHDR) |
| 915 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_hash.c |
| 916 | |
| 917 | fts3_icu.lo: $(TOP)\ext\fts3\fts3_icu.c $(HDR) $(EXTHDR) |
| 918 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_icu.c |
| 919 | |
| 920 | fts3_snippet.lo: $(TOP)\ext\fts3\fts3_snippet.c $(HDR) $(EXTHDR) |
| 921 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_snippet.c |
| 922 | |
| 923 | fts3_porter.lo: $(TOP)\ext\fts3\fts3_porter.c $(HDR) $(EXTHDR) |
| 924 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_porter.c |
| 925 | |
| 926 | fts3_tokenizer.lo: $(TOP)\ext\fts3\fts3_tokenizer.c $(HDR) $(EXTHDR) |
| 927 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer.c |
| 928 | |
| 929 | fts3_tokenizer1.lo: $(TOP)\ext\fts3\fts3_tokenizer1.c $(HDR) $(EXTHDR) |
| 930 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_tokenizer1.c |
| 931 | |
| 932 | fts3_write.lo: $(TOP)\ext\fts3\fts3_write.c $(HDR) $(EXTHDR) |
| 933 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\fts3\fts3_write.c |
| 934 | |
| 935 | rtree.lo: $(TOP)\ext\rtree\rtree.c $(HDR) $(EXTHDR) |
| 936 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)\ext\rtree\rtree.c |
| 937 | |
| 938 | |
| 939 | # Rules to build the 'testfixture' application. |
| 940 | # |
| 941 | # If using the amalgamation, use sqlite3.c directly to build the test |
| 942 | # fixture. Otherwise link against libsqlite3.lib. (This distinction is |
| 943 | # necessary because the test fixture requires non-API symbols which are |
| 944 | # hidden when the library is built via the amalgamation). |
| 945 | # |
| 946 | TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 947 | TESTFIXTURE_FLAGS = $(TESTFIXTURE_FLAGS) -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 948 | |
| 949 | TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.lib |
| 950 | TESTFIXTURE_SRC1 = sqlite3.c |
| 951 | !IF $(USE_AMALGAMATION)==0 |
| 952 | TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC0) |
| 953 | !ELSE |
| 954 | TESTFIXTURE_SRC = $(TESTSRC) $(TOP)\src\tclsqlite.c $(TESTFIXTURE_SRC1) |
| 955 | !ENDIF |
| 956 | |
shaneh | 603e426 | 2011-06-17 18:52:07 +0000 | [diff] [blame] | 957 | testfixture.exe: $(TESTFIXTURE_SRC) $(HDR) |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 958 | $(LTLINK) -DSQLITE_NO_SYNC=1 $(TESTFIXTURE_FLAGS) \ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 959 | -DBUILD_sqlite -I$(TCLINCDIR) \ |
shaneh | 2a0b9ef | 2011-06-20 20:52:32 +0000 | [diff] [blame] | 960 | $(TESTFIXTURE_SRC) \ |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 961 | /link $(LTLINKOPTS) $(LTLIBPATHS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 962 | |
| 963 | fulltest: testfixture.exe sqlite3.exe |
| 964 | .\testfixture.exe $(TOP)\test\all.test |
| 965 | |
| 966 | soaktest: testfixture.exe sqlite3.exe |
| 967 | .\testfixture.exe $(TOP)\test\all.test -soak=1 |
| 968 | |
| 969 | test: testfixture.exe sqlite3.exe |
| 970 | .\testfixture.exe $(TOP)\test\veryquick.test |
| 971 | |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 972 | sqlite3_analyzer.c: sqlite3.c $(TOP)\src\test_stat.c $(TOP)\src\tclsqlite.c $(TOP)\tool\spaceanal.tcl |
| 973 | copy sqlite3.c + $(TOP)\src\test_stat.c + $(TOP)\src\tclsqlite.c $@ |
| 974 | echo static const char *tclsh_main_loop(void){ >> $@ |
| 975 | echo static const char *zMainloop = >> $@ |
| 976 | $(NAWK) -f $(TOP)\tool\tostr.awk $(TOP)\tool\spaceanal.tcl >> $@ |
| 977 | echo ; return zMainloop; } >> $@ |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 978 | |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 979 | sqlite3_analyzer.exe: sqlite3_analyzer.c |
| 980 | $(LTLINK) -DBUILD_sqlite -DTCLSH=2 -I$(TCLINCDIR) sqlite3_analyzer.c \ |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 981 | /link $(LTLINKOPTS) $(LTLIBPATHS) $(LTLIBS) $(TLIBS) |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 982 | |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 983 | clean: |
mistachkin | 649591a | 2011-09-11 10:14:37 +0000 | [diff] [blame] | 984 | del /Q *.lo *.ilk *.lib *.obj *.pdb sqlite3.exe libsqlite3.lib |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 985 | del /Q sqlite3.h opcodes.c opcodes.h |
| 986 | del /Q lemon.exe lempar.c parse.* |
| 987 | del /Q mkkeywordhash.exe keywordhash.h |
| 988 | -rmdir /Q/S tsrc |
| 989 | del /Q .target_source |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 990 | del /Q tclsqlite3.exe |
shaneh | 603e426 | 2011-06-17 18:52:07 +0000 | [diff] [blame] | 991 | del /Q testfixture.exe testfixture.exp test.db |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 992 | del /Q sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 993 | del /Q sqlite3.c |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 994 | del /Q sqlite3_analyzer.exe sqlite3_analyzer.exp sqlite3_analyzer.c |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 995 | |
| 996 | # |
| 997 | # Windows section |
| 998 | # |
| 999 | dll: sqlite3.dll |
| 1000 | |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1001 | sqlite3.def: libsqlite3.lib |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1002 | echo EXPORTS > sqlite3.def |
shaneh | 6e7850c | 2011-06-17 15:57:07 +0000 | [diff] [blame] | 1003 | dumpbin /all libsqlite3.lib \ |
mistachkin | 6a3eb4a | 2011-08-17 07:46:48 +0000 | [diff] [blame] | 1004 | | $(NAWK) "/ 1 _?sqlite3_/ { sub(/^.* _?/,\"\");print }" \ |
mistachkin | 5b0b6fd | 2011-06-25 01:14:36 +0000 | [diff] [blame] | 1005 | | sort >> sqlite3.def |
shaneh | b2f20bf | 2011-06-17 07:07:24 +0000 | [diff] [blame] | 1006 | |
| 1007 | sqlite3.dll: $(LIBOBJ) sqlite3.def |
mistachkin | c756ded | 2011-10-02 05:23:16 +0000 | [diff] [blame] | 1008 | link $(LTLINKOPTS) $(LTLIBPATHS) /DLL /DEF:sqlite3.def /OUT:$@ $(LIBOBJ) $(LTLIBS) $(TLIBS) |