Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: third_party/sqlite/src/Makefile.in

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/make 1 #!/usr/make
2 # 2 #
3 # Makefile for SQLITE 3 # Makefile for SQLITE
4 # 4 #
5 # This makefile is suppose to be configured automatically using the 5 # This makefile is suppose to be configured automatically using the
6 # autoconf. But if that does not work for you, you can configure 6 # autoconf. But if that does not work for you, you can configure
7 # the makefile manually. Just set the parameters below to values that 7 # the makefile manually. Just set the parameters below to values that
8 # work well for your system. 8 # work well for your system.
9 # 9 #
10 # If the configure script does not work out-of-the-box, you might 10 # If the configure script does not work out-of-the-box, you might
11 # be able to get it to work by giving it some hints. See the comment 11 # be able to get it to work by giving it some hints. See the comment
12 # at the beginning of configure.in for additional information. 12 # at the beginning of configure.in for additional information.
13 # 13 #
14 14
15 # The toplevel directory of the source tree. This is the directory 15 # The toplevel directory of the source tree. This is the directory
16 # that contains this "Makefile.in" and the "configure.in" script. 16 # that contains this "Makefile.in" and the "configure.in" script.
17 # 17 #
18 TOP = @srcdir@ 18 TOP = @abs_srcdir@
19 19
20 # C Compiler and options for use in building executables that 20 # C Compiler and options for use in building executables that
21 # will run on the platform that is doing the build. 21 # will run on the platform that is doing the build.
22 # 22 #
23 BCC = @BUILD_CC@ @BUILD_CFLAGS@ 23 BCC = @BUILD_CC@ @BUILD_CFLAGS@
24 24
25 # C Compile and options for use in building executables that 25 # TCC is the C Compile and options for use in building executables that
26 # will run on the target platform. (BCC and TCC are usually the 26 # will run on the target platform. (BCC and TCC are usually the
27 # same unless your are cross-compiling.) 27 # same unless your are cross-compiling.) Separate CC and CFLAGS macros
28 # are provide so that these aspects of the build process can be changed
29 # on the "make" command-line. Ex: "make CC=clang CFLAGS=-fsanitize=undefined"
28 # 30 #
29 TCC = @CC@ @CPPFLAGS@ @CFLAGS@ -I. -I${TOP}/src -I${TOP}/ext/rtree 31 CC = @CC@
32 CFLAGS = @CPPFLAGS@ @CFLAGS@
33 TCC = $(CC) $(CFLAGS) -I. -I${TOP}/src -I${TOP}/ext/rtree -I${TOP}/ext/fts3
30 34
31 # Define this for the autoconf-based build, so that the code knows it can 35 # Define this for the autoconf-based build, so that the code knows it can
32 # include the generated config.h 36 # include the generated config.h
33 # 37 #
34 TCC += -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite 38 TCC += -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite
35 39
36 # Define -DNDEBUG to compile without debugging (i.e., for production usage) 40 # Define -DNDEBUG to compile without debugging (i.e., for production usage)
37 # Omitting the define will cause extra debugging code to be inserted and 41 # Omitting the define will cause extra debugging code to be inserted and
38 # includes extra comments when "EXPLAIN stmt" is used. 42 # includes extra comments when "EXPLAIN stmt" is used.
39 # 43 #
40 TCC += @TARGET_DEBUG@ @XTHREADCONNECT@ 44 TCC += @TARGET_DEBUG@
41 45
42 # Compiler options needed for programs that use the TCL library. 46 # Compiler options needed for programs that use the TCL library.
43 # 47 #
44 TCC += @TCL_INCLUDE_SPEC@ 48 TCC += @TCL_INCLUDE_SPEC@
45 49
46 # The library that programs using TCL must link against. 50 # The library that programs using TCL must link against.
47 # 51 #
48 LIBTCL = @TCL_LIB_SPEC@ 52 LIBTCL = @TCL_LIB_SPEC@
49 53
50 # Compiler options needed for programs that use the readline() library. 54 # Compiler options needed for programs that use the readline() library.
51 # 55 #
52 READLINE_FLAGS = -DHAVE_READLINE=@TARGET_HAVE_READLINE@ @TARGET_READLINE_INC@ 56 READLINE_FLAGS = -DHAVE_READLINE=@TARGET_HAVE_READLINE@ @TARGET_READLINE_INC@
57 READLINE_FLAGS += -DHAVE_EDITLINE=@TARGET_HAVE_EDITLINE@
53 58
54 # The library that programs using readline() must link against. 59 # The library that programs using readline() must link against.
55 # 60 #
56 LIBREADLINE = @TARGET_READLINE_LIBS@ 61 LIBREADLINE = @TARGET_READLINE_LIBS@
57 62
58 # Should the database engine be compiled threadsafe 63 # Should the database engine be compiled threadsafe
59 # 64 #
60 TCC += -DSQLITE_THREADSAFE=@SQLITE_THREADSAFE@ 65 TCC += -DSQLITE_THREADSAFE=@SQLITE_THREADSAFE@
61 66
62 # Any target libraries which libsqlite must be linked against 67 # Any target libraries which libsqlite must be linked against
63 # 68 #
64 TLIBS = @LIBS@ 69 TLIBS = @LIBS@ $(LIBS)
65 70
66 # Flags controlling use of the in memory btree implementation 71 # Flags controlling use of the in memory btree implementation
67 # 72 #
68 # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to 73 # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
69 # default to file, 2 to default to memory, and 3 to force temporary 74 # default to file, 2 to default to memory, and 3 to force temporary
70 # tables to always be in memory. 75 # tables to always be in memory.
71 # 76 #
72 TEMP_STORE = -DSQLITE_TEMP_STORE=@TEMP_STORE@ 77 TEMP_STORE = -DSQLITE_TEMP_STORE=@TEMP_STORE@
73 78
74 # Enable/disable loadable extensions, and other optional features 79 # Enable/disable loadable extensions, and other optional features
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 includedir = @includedir@ 149 includedir = @includedir@
145 INSTALL = @INSTALL@ 150 INSTALL = @INSTALL@
146 LIBTOOL = ./libtool 151 LIBTOOL = ./libtool
147 ALLOWRELEASE = @ALLOWRELEASE@ 152 ALLOWRELEASE = @ALLOWRELEASE@
148 153
149 # libtool compile/link/install 154 # libtool compile/link/install
150 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(TCC) $(LTCOMPILE_EXTRAS) 155 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(TCC) $(LTCOMPILE_EXTRAS)
151 LTLINK = $(LIBTOOL) --mode=link $(TCC) $(LTCOMPILE_EXTRAS) @LDFLAGS@ $(LTLINK_EX TRAS) 156 LTLINK = $(LIBTOOL) --mode=link $(TCC) $(LTCOMPILE_EXTRAS) @LDFLAGS@ $(LTLINK_EX TRAS)
152 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) 157 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
153 158
154 # nawk compatible awk.
155 NAWK = @AWK@
156
157 # You should not have to change anything below this line 159 # You should not have to change anything below this line
158 ############################################################################### 160 ###############################################################################
159 161
160 USE_AMALGAMATION = @USE_AMALGAMATION@ 162 USE_AMALGAMATION = @USE_AMALGAMATION@
161 163
162 # Object files for the SQLite library (non-amalgamation). 164 # Object files for the SQLite library (non-amalgamation).
163 # 165 #
164 LIBOBJS0 = alter.lo analyze.lo attach.lo auth.lo \ 166 LIBOBJS0 = alter.lo analyze.lo attach.lo auth.lo \
165 backup.lo bitvec.lo btmutex.lo btree.lo build.lo \ 167 backup.lo bitvec.lo btmutex.lo btree.lo build.lo \
166 callback.lo complete.lo ctime.lo date.lo delete.lo \ 168 callback.lo complete.lo ctime.lo date.lo dbstat.lo delete.lo \
167 expr.lo fault.lo fkey.lo \ 169 expr.lo fault.lo fkey.lo \
168 fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \ 170 fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \
169 fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \ 171 fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \
170 fts3_tokenize_vtab.lo \ 172 fts3_tokenize_vtab.lo \
171 fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \ 173 fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \
174 fts5.lo \
172 func.lo global.lo hash.lo \ 175 func.lo global.lo hash.lo \
173 icu.lo insert.lo journal.lo legacy.lo loadext.lo \ 176 icu.lo insert.lo journal.lo json1.lo legacy.lo loadext.lo \
174 main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \ 177 main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \
175 memjournal.lo \ 178 memjournal.lo \
176 mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \ 179 mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \
177 notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \ 180 notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \
178 pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \ 181 pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \
179 random.lo resolve.lo rowset.lo rtree.lo select.lo status.lo \ 182 random.lo resolve.lo rowset.lo rtree.lo select.lo status.lo \
180 table.lo threads.lo tokenize.lo trigger.lo \ 183 table.lo threads.lo tokenize.lo treeview.lo trigger.lo \
181 update.lo util.lo vacuum.lo \ 184 update.lo util.lo vacuum.lo \
182 vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \ 185 vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \
183 vdbetrace.lo wal.lo walker.lo where.lo utf.lo vtab.lo 186 vdbetrace.lo wal.lo walker.lo where.lo wherecode.lo whereexpr.lo \
187 utf.lo vtab.lo
184 188
185 # Object files for the amalgamation. 189 # Object files for the amalgamation.
186 # 190 #
187 LIBOBJS1 = sqlite3.lo 191 LIBOBJS1 = sqlite3.lo
188 192
189 # Determine the real value of LIBOBJ based on the 'configure' script 193 # Determine the real value of LIBOBJ based on the 'configure' script
190 # 194 #
191 LIBOBJ = $(LIBOBJS$(USE_AMALGAMATION)) 195 LIBOBJ = $(LIBOBJS$(USE_AMALGAMATION))
192 196
193 197
194 # All of the source code files. 198 # All of the source code files.
195 # 199 #
196 SRC = \ 200 SRC = \
197 $(TOP)/src/alter.c \ 201 $(TOP)/src/alter.c \
198 $(TOP)/src/analyze.c \ 202 $(TOP)/src/analyze.c \
199 $(TOP)/src/attach.c \ 203 $(TOP)/src/attach.c \
200 $(TOP)/src/auth.c \ 204 $(TOP)/src/auth.c \
201 $(TOP)/src/backup.c \ 205 $(TOP)/src/backup.c \
202 $(TOP)/src/bitvec.c \ 206 $(TOP)/src/bitvec.c \
203 $(TOP)/src/btmutex.c \ 207 $(TOP)/src/btmutex.c \
204 $(TOP)/src/btree.c \ 208 $(TOP)/src/btree.c \
205 $(TOP)/src/btree.h \ 209 $(TOP)/src/btree.h \
206 $(TOP)/src/btreeInt.h \ 210 $(TOP)/src/btreeInt.h \
207 $(TOP)/src/build.c \ 211 $(TOP)/src/build.c \
208 $(TOP)/src/callback.c \ 212 $(TOP)/src/callback.c \
209 $(TOP)/src/complete.c \ 213 $(TOP)/src/complete.c \
210 $(TOP)/src/ctime.c \ 214 $(TOP)/src/ctime.c \
211 $(TOP)/src/date.c \ 215 $(TOP)/src/date.c \
216 $(TOP)/src/dbstat.c \
212 $(TOP)/src/delete.c \ 217 $(TOP)/src/delete.c \
213 $(TOP)/src/expr.c \ 218 $(TOP)/src/expr.c \
214 $(TOP)/src/fault.c \ 219 $(TOP)/src/fault.c \
215 $(TOP)/src/fkey.c \ 220 $(TOP)/src/fkey.c \
216 $(TOP)/src/func.c \ 221 $(TOP)/src/func.c \
217 $(TOP)/src/global.c \ 222 $(TOP)/src/global.c \
218 $(TOP)/src/hash.c \ 223 $(TOP)/src/hash.c \
219 $(TOP)/src/hash.h \ 224 $(TOP)/src/hash.h \
220 $(TOP)/src/hwtime.h \ 225 $(TOP)/src/hwtime.h \
221 $(TOP)/src/insert.c \ 226 $(TOP)/src/insert.c \
222 $(TOP)/src/journal.c \ 227 $(TOP)/src/journal.c \
223 $(TOP)/src/legacy.c \ 228 $(TOP)/src/legacy.c \
224 $(TOP)/src/loadext.c \ 229 $(TOP)/src/loadext.c \
225 $(TOP)/src/main.c \ 230 $(TOP)/src/main.c \
226 $(TOP)/src/malloc.c \ 231 $(TOP)/src/malloc.c \
227 $(TOP)/src/mem0.c \ 232 $(TOP)/src/mem0.c \
228 $(TOP)/src/mem1.c \ 233 $(TOP)/src/mem1.c \
229 $(TOP)/src/mem2.c \ 234 $(TOP)/src/mem2.c \
230 $(TOP)/src/mem3.c \ 235 $(TOP)/src/mem3.c \
231 $(TOP)/src/mem5.c \ 236 $(TOP)/src/mem5.c \
232 $(TOP)/src/memjournal.c \ 237 $(TOP)/src/memjournal.c \
238 $(TOP)/src/msvc.h \
233 $(TOP)/src/mutex.c \ 239 $(TOP)/src/mutex.c \
234 $(TOP)/src/mutex.h \ 240 $(TOP)/src/mutex.h \
235 $(TOP)/src/mutex_noop.c \ 241 $(TOP)/src/mutex_noop.c \
236 $(TOP)/src/mutex_unix.c \ 242 $(TOP)/src/mutex_unix.c \
237 $(TOP)/src/mutex_w32.c \ 243 $(TOP)/src/mutex_w32.c \
238 $(TOP)/src/notify.c \ 244 $(TOP)/src/notify.c \
239 $(TOP)/src/os.c \ 245 $(TOP)/src/os.c \
240 $(TOP)/src/os.h \ 246 $(TOP)/src/os.h \
241 $(TOP)/src/os_common.h \ 247 $(TOP)/src/os_common.h \
242 $(TOP)/src/os_setup.h \ 248 $(TOP)/src/os_setup.h \
243 $(TOP)/src/os_unix.c \ 249 $(TOP)/src/os_unix.c \
244 $(TOP)/src/os_win.c \ 250 $(TOP)/src/os_win.c \
245 $(TOP)/src/os_win.h \ 251 $(TOP)/src/os_win.h \
246 $(TOP)/src/pager.c \ 252 $(TOP)/src/pager.c \
247 $(TOP)/src/pager.h \ 253 $(TOP)/src/pager.h \
248 $(TOP)/src/parse.y \ 254 $(TOP)/src/parse.y \
249 $(TOP)/src/pcache.c \ 255 $(TOP)/src/pcache.c \
250 $(TOP)/src/pcache.h \ 256 $(TOP)/src/pcache.h \
251 $(TOP)/src/pcache1.c \ 257 $(TOP)/src/pcache1.c \
252 $(TOP)/src/pragma.c \ 258 $(TOP)/src/pragma.c \
259 $(TOP)/src/pragma.h \
253 $(TOP)/src/prepare.c \ 260 $(TOP)/src/prepare.c \
254 $(TOP)/src/printf.c \ 261 $(TOP)/src/printf.c \
255 $(TOP)/src/random.c \ 262 $(TOP)/src/random.c \
256 $(TOP)/src/recover.c \ 263 $(TOP)/src/recover.c \
257 $(TOP)/src/resolve.c \ 264 $(TOP)/src/resolve.c \
258 $(TOP)/src/rowset.c \ 265 $(TOP)/src/rowset.c \
259 $(TOP)/src/select.c \ 266 $(TOP)/src/select.c \
260 $(TOP)/src/status.c \ 267 $(TOP)/src/status.c \
261 $(TOP)/src/shell.c \ 268 $(TOP)/src/shell.c \
262 $(TOP)/src/sqlite.h.in \ 269 $(TOP)/src/sqlite.h.in \
263 $(TOP)/src/sqlite3ext.h \ 270 $(TOP)/src/sqlite3ext.h \
264 $(TOP)/src/sqliteInt.h \ 271 $(TOP)/src/sqliteInt.h \
265 $(TOP)/src/sqliteLimit.h \ 272 $(TOP)/src/sqliteLimit.h \
266 $(TOP)/src/table.c \ 273 $(TOP)/src/table.c \
274 $(TOP)/src/tclsqlite.c \
267 $(TOP)/src/threads.c \ 275 $(TOP)/src/threads.c \
268 $(TOP)/src/tclsqlite.c \
269 $(TOP)/src/tokenize.c \ 276 $(TOP)/src/tokenize.c \
277 $(TOP)/src/treeview.c \
270 $(TOP)/src/trigger.c \ 278 $(TOP)/src/trigger.c \
271 $(TOP)/src/utf.c \ 279 $(TOP)/src/utf.c \
272 $(TOP)/src/update.c \ 280 $(TOP)/src/update.c \
273 $(TOP)/src/util.c \ 281 $(TOP)/src/util.c \
274 $(TOP)/src/vacuum.c \ 282 $(TOP)/src/vacuum.c \
275 $(TOP)/src/vdbe.c \ 283 $(TOP)/src/vdbe.c \
276 $(TOP)/src/vdbe.h \ 284 $(TOP)/src/vdbe.h \
277 $(TOP)/src/vdbeapi.c \ 285 $(TOP)/src/vdbeapi.c \
278 $(TOP)/src/vdbeaux.c \ 286 $(TOP)/src/vdbeaux.c \
279 $(TOP)/src/vdbeblob.c \ 287 $(TOP)/src/vdbeblob.c \
280 $(TOP)/src/vdbemem.c \ 288 $(TOP)/src/vdbemem.c \
281 $(TOP)/src/vdbesort.c \ 289 $(TOP)/src/vdbesort.c \
282 $(TOP)/src/vdbetrace.c \ 290 $(TOP)/src/vdbetrace.c \
283 $(TOP)/src/vdbeInt.h \ 291 $(TOP)/src/vdbeInt.h \
284 $(TOP)/src/vtab.c \ 292 $(TOP)/src/vtab.c \
293 $(TOP)/src/vxworks.h \
285 $(TOP)/src/wal.c \ 294 $(TOP)/src/wal.c \
286 $(TOP)/src/wal.h \ 295 $(TOP)/src/wal.h \
287 $(TOP)/src/walker.c \ 296 $(TOP)/src/walker.c \
288 $(TOP)/src/where.c \ 297 $(TOP)/src/where.c \
298 $(TOP)/src/wherecode.c \
299 $(TOP)/src/whereexpr.c \
289 $(TOP)/src/whereInt.h 300 $(TOP)/src/whereInt.h
290 301
291 # Source code for extensions 302 # Source code for extensions
292 # 303 #
293 SRC += \ 304 SRC += \
294 $(TOP)/ext/fts1/fts1.c \ 305 $(TOP)/ext/fts1/fts1.c \
295 $(TOP)/ext/fts1/fts1.h \ 306 $(TOP)/ext/fts1/fts1.h \
296 $(TOP)/ext/fts1/fts1_hash.c \ 307 $(TOP)/ext/fts1/fts1_hash.c \
297 $(TOP)/ext/fts1/fts1_hash.h \ 308 $(TOP)/ext/fts1/fts1_hash.h \
298 $(TOP)/ext/fts1/fts1_porter.c \ 309 $(TOP)/ext/fts1/fts1_porter.c \
(...skipping 26 matching lines...) Expand all
325 $(TOP)/ext/fts3/fts3_tokenize_vtab.c \ 336 $(TOP)/ext/fts3/fts3_tokenize_vtab.c \
326 $(TOP)/ext/fts3/fts3_unicode.c \ 337 $(TOP)/ext/fts3/fts3_unicode.c \
327 $(TOP)/ext/fts3/fts3_unicode2.c \ 338 $(TOP)/ext/fts3/fts3_unicode2.c \
328 $(TOP)/ext/fts3/fts3_write.c 339 $(TOP)/ext/fts3/fts3_write.c
329 SRC += \ 340 SRC += \
330 $(TOP)/ext/icu/sqliteicu.h \ 341 $(TOP)/ext/icu/sqliteicu.h \
331 $(TOP)/ext/icu/icu.c 342 $(TOP)/ext/icu/icu.c
332 SRC += \ 343 SRC += \
333 $(TOP)/ext/rtree/rtree.h \ 344 $(TOP)/ext/rtree/rtree.h \
334 $(TOP)/ext/rtree/rtree.c 345 $(TOP)/ext/rtree/rtree.c
346 SRC += \
347 $(TOP)/ext/rbu/sqlite3rbu.h \
348 $(TOP)/ext/rbu/sqlite3rbu.c
349 SRC += \
350 $(TOP)/ext/misc/json1.c
351
335 352
336 353
337 # Generated source code files 354 # Generated source code files
338 # 355 #
339 SRC += \ 356 SRC += \
340 keywordhash.h \ 357 keywordhash.h \
341 opcodes.c \ 358 opcodes.c \
342 opcodes.h \ 359 opcodes.h \
343 parse.c \ 360 parse.c \
344 parse.h \ 361 parse.h \
345 config.h \ 362 config.h \
346 sqlite3.h 363 sqlite3.h
347 364
348 # Source code to the test files. 365 # Source code to the test files.
349 # 366 #
350 TESTSRC = \ 367 TESTSRC = \
351 $(TOP)/src/test1.c \ 368 $(TOP)/src/test1.c \
352 $(TOP)/src/test2.c \ 369 $(TOP)/src/test2.c \
353 $(TOP)/src/test3.c \ 370 $(TOP)/src/test3.c \
354 $(TOP)/src/test4.c \ 371 $(TOP)/src/test4.c \
355 $(TOP)/src/test5.c \ 372 $(TOP)/src/test5.c \
356 $(TOP)/src/test6.c \ 373 $(TOP)/src/test6.c \
357 $(TOP)/src/test7.c \ 374 $(TOP)/src/test7.c \
358 $(TOP)/src/test8.c \ 375 $(TOP)/src/test8.c \
359 $(TOP)/src/test9.c \ 376 $(TOP)/src/test9.c \
360 $(TOP)/src/test_autoext.c \ 377 $(TOP)/src/test_autoext.c \
361 $(TOP)/src/test_async.c \ 378 $(TOP)/src/test_async.c \
362 $(TOP)/src/test_backup.c \ 379 $(TOP)/src/test_backup.c \
380 $(TOP)/src/test_blob.c \
363 $(TOP)/src/test_btree.c \ 381 $(TOP)/src/test_btree.c \
364 $(TOP)/src/test_config.c \ 382 $(TOP)/src/test_config.c \
365 $(TOP)/src/test_demovfs.c \ 383 $(TOP)/src/test_demovfs.c \
366 $(TOP)/src/test_devsym.c \ 384 $(TOP)/src/test_devsym.c \
367 $(TOP)/src/test_fs.c \ 385 $(TOP)/src/test_fs.c \
368 $(TOP)/src/test_func.c \ 386 $(TOP)/src/test_func.c \
369 $(TOP)/src/test_hexio.c \ 387 $(TOP)/src/test_hexio.c \
370 $(TOP)/src/test_init.c \ 388 $(TOP)/src/test_init.c \
371 $(TOP)/src/test_intarray.c \ 389 $(TOP)/src/test_intarray.c \
372 $(TOP)/src/test_journal.c \ 390 $(TOP)/src/test_journal.c \
373 $(TOP)/src/test_malloc.c \ 391 $(TOP)/src/test_malloc.c \
374 $(TOP)/src/test_multiplex.c \ 392 $(TOP)/src/test_multiplex.c \
375 $(TOP)/src/test_mutex.c \ 393 $(TOP)/src/test_mutex.c \
376 $(TOP)/src/test_onefile.c \ 394 $(TOP)/src/test_onefile.c \
377 $(TOP)/src/test_osinst.c \ 395 $(TOP)/src/test_osinst.c \
378 $(TOP)/src/test_pcache.c \ 396 $(TOP)/src/test_pcache.c \
379 $(TOP)/src/test_quota.c \ 397 $(TOP)/src/test_quota.c \
380 $(TOP)/src/test_rtree.c \ 398 $(TOP)/src/test_rtree.c \
381 $(TOP)/src/test_schema.c \ 399 $(TOP)/src/test_schema.c \
382 $(TOP)/src/test_server.c \ 400 $(TOP)/src/test_server.c \
383 $(TOP)/src/test_superlock.c \ 401 $(TOP)/src/test_superlock.c \
384 $(TOP)/src/test_syscall.c \ 402 $(TOP)/src/test_syscall.c \
385 $(TOP)/src/test_stat.c \
386 $(TOP)/src/test_tclvar.c \ 403 $(TOP)/src/test_tclvar.c \
387 $(TOP)/src/test_thread.c \ 404 $(TOP)/src/test_thread.c \
388 $(TOP)/src/test_vfs.c \ 405 $(TOP)/src/test_vfs.c \
406 $(TOP)/src/test_windirent.c \
389 $(TOP)/src/test_wsd.c \ 407 $(TOP)/src/test_wsd.c \
390 $(TOP)/ext/fts3/fts3_term.c \ 408 $(TOP)/ext/fts3/fts3_term.c \
391 $(TOP)/ext/fts3/fts3_test.c 409 $(TOP)/ext/fts3/fts3_test.c \
410 $(TOP)/ext/rbu/test_rbu.c
392 411
393 # Statically linked extensions 412 # Statically linked extensions
394 # 413 #
395 TESTSRC += \ 414 TESTSRC += \
396 $(TOP)/ext/misc/amatch.c \ 415 $(TOP)/ext/misc/amatch.c \
397 $(TOP)/ext/misc/closure.c \ 416 $(TOP)/ext/misc/closure.c \
417 $(TOP)/ext/misc/eval.c \
398 $(TOP)/ext/misc/fileio.c \ 418 $(TOP)/ext/misc/fileio.c \
399 $(TOP)/ext/misc/fuzzer.c \ 419 $(TOP)/ext/misc/fuzzer.c \
420 $(TOP)/ext/fts5/fts5_tcl.c \
421 $(TOP)/ext/fts5/fts5_test_mi.c \
400 $(TOP)/ext/misc/ieee754.c \ 422 $(TOP)/ext/misc/ieee754.c \
401 $(TOP)/ext/misc/nextchar.c \ 423 $(TOP)/ext/misc/nextchar.c \
402 $(TOP)/ext/misc/percentile.c \ 424 $(TOP)/ext/misc/percentile.c \
403 $(TOP)/ext/misc/regexp.c \ 425 $(TOP)/ext/misc/regexp.c \
426 $(TOP)/ext/misc/series.c \
404 $(TOP)/ext/misc/spellfix.c \ 427 $(TOP)/ext/misc/spellfix.c \
405 $(TOP)/ext/misc/totype.c \ 428 $(TOP)/ext/misc/totype.c \
406 $(TOP)/ext/misc/wholenumber.c 429 $(TOP)/ext/misc/wholenumber.c
407 430
408 # Source code to the library files needed by the test fixture 431 # Source code to the library files needed by the test fixture
409 # 432 #
410 TESTSRC2 = \ 433 TESTSRC2 = \
411 $(TOP)/src/attach.c \ 434 $(TOP)/src/attach.c \
412 $(TOP)/src/backup.c \ 435 $(TOP)/src/backup.c \
413 $(TOP)/src/bitvec.c \ 436 $(TOP)/src/bitvec.c \
414 $(TOP)/src/btree.c \ 437 $(TOP)/src/btree.c \
415 $(TOP)/src/build.c \ 438 $(TOP)/src/build.c \
416 $(TOP)/src/ctime.c \ 439 $(TOP)/src/ctime.c \
417 $(TOP)/src/date.c \ 440 $(TOP)/src/date.c \
441 $(TOP)/src/dbstat.c \
418 $(TOP)/src/expr.c \ 442 $(TOP)/src/expr.c \
419 $(TOP)/src/func.c \ 443 $(TOP)/src/func.c \
420 $(TOP)/src/insert.c \ 444 $(TOP)/src/insert.c \
421 $(TOP)/src/wal.c \ 445 $(TOP)/src/wal.c \
422 $(TOP)/src/main.c \ 446 $(TOP)/src/main.c \
423 $(TOP)/src/mem5.c \ 447 $(TOP)/src/mem5.c \
424 $(TOP)/src/os.c \ 448 $(TOP)/src/os.c \
425 $(TOP)/src/os_unix.c \ 449 $(TOP)/src/os_unix.c \
426 $(TOP)/src/os_win.c \ 450 $(TOP)/src/os_win.c \
427 $(TOP)/src/pager.c \ 451 $(TOP)/src/pager.c \
428 $(TOP)/src/pragma.c \ 452 $(TOP)/src/pragma.c \
429 $(TOP)/src/prepare.c \ 453 $(TOP)/src/prepare.c \
430 $(TOP)/src/printf.c \ 454 $(TOP)/src/printf.c \
431 $(TOP)/src/random.c \ 455 $(TOP)/src/random.c \
432 $(TOP)/src/pcache.c \ 456 $(TOP)/src/pcache.c \
433 $(TOP)/src/pcache1.c \ 457 $(TOP)/src/pcache1.c \
434 $(TOP)/src/select.c \ 458 $(TOP)/src/select.c \
435 $(TOP)/src/tokenize.c \ 459 $(TOP)/src/tokenize.c \
436 $(TOP)/src/utf.c \ 460 $(TOP)/src/utf.c \
437 $(TOP)/src/util.c \ 461 $(TOP)/src/util.c \
438 $(TOP)/src/vdbeapi.c \ 462 $(TOP)/src/vdbeapi.c \
439 $(TOP)/src/vdbeaux.c \ 463 $(TOP)/src/vdbeaux.c \
440 $(TOP)/src/vdbe.c \ 464 $(TOP)/src/vdbe.c \
441 $(TOP)/src/vdbemem.c \ 465 $(TOP)/src/vdbemem.c \
442 $(TOP)/src/vdbetrace.c \ 466 $(TOP)/src/vdbetrace.c \
443 $(TOP)/src/where.c \ 467 $(TOP)/src/where.c \
468 $(TOP)/src/wherecode.c \
469 $(TOP)/src/whereexpr.c \
444 parse.c \ 470 parse.c \
445 $(TOP)/ext/fts3/fts3.c \ 471 $(TOP)/ext/fts3/fts3.c \
446 $(TOP)/ext/fts3/fts3_aux.c \ 472 $(TOP)/ext/fts3/fts3_aux.c \
447 $(TOP)/ext/fts3/fts3_expr.c \ 473 $(TOP)/ext/fts3/fts3_expr.c \
448 $(TOP)/ext/fts3/fts3_term.c \ 474 $(TOP)/ext/fts3/fts3_term.c \
449 $(TOP)/ext/fts3/fts3_tokenizer.c \ 475 $(TOP)/ext/fts3/fts3_tokenizer.c \
450 $(TOP)/ext/fts3/fts3_write.c \ 476 $(TOP)/ext/fts3/fts3_write.c \
451 $(TOP)/ext/async/sqlite3async.c 477 $(TOP)/ext/async/sqlite3async.c
452 478
453 # Header files used by all library source files. 479 # Header files used by all library source files.
454 # 480 #
455 HDR = \ 481 HDR = \
456 $(TOP)/src/btree.h \ 482 $(TOP)/src/btree.h \
457 $(TOP)/src/btreeInt.h \ 483 $(TOP)/src/btreeInt.h \
458 $(TOP)/src/hash.h \ 484 $(TOP)/src/hash.h \
459 $(TOP)/src/hwtime.h \ 485 $(TOP)/src/hwtime.h \
460 keywordhash.h \ 486 keywordhash.h \
487 $(TOP)/src/msvc.h \
461 $(TOP)/src/mutex.h \ 488 $(TOP)/src/mutex.h \
462 opcodes.h \ 489 opcodes.h \
463 $(TOP)/src/os.h \ 490 $(TOP)/src/os.h \
464 $(TOP)/src/os_common.h \ 491 $(TOP)/src/os_common.h \
465 $(TOP)/src/os_setup.h \ 492 $(TOP)/src/os_setup.h \
466 $(TOP)/src/os_win.h \ 493 $(TOP)/src/os_win.h \
467 $(TOP)/src/pager.h \ 494 $(TOP)/src/pager.h \
468 $(TOP)/src/pcache.h \ 495 $(TOP)/src/pcache.h \
469 parse.h \ 496 parse.h \
497 $(TOP)/src/pragma.h \
470 sqlite3.h \ 498 sqlite3.h \
471 $(TOP)/src/sqlite3ext.h \ 499 $(TOP)/src/sqlite3ext.h \
472 $(TOP)/src/sqliteInt.h \ 500 $(TOP)/src/sqliteInt.h \
473 $(TOP)/src/sqliteLimit.h \ 501 $(TOP)/src/sqliteLimit.h \
474 $(TOP)/src/vdbe.h \ 502 $(TOP)/src/vdbe.h \
475 $(TOP)/src/vdbeInt.h \ 503 $(TOP)/src/vdbeInt.h \
504 $(TOP)/src/vxworks.h \
476 $(TOP)/src/whereInt.h \ 505 $(TOP)/src/whereInt.h \
477 config.h 506 config.h
478 507
479 # Header files used by extensions 508 # Header files used by extensions
480 # 509 #
481 EXTHDR += \ 510 EXTHDR += \
482 $(TOP)/ext/fts1/fts1.h \ 511 $(TOP)/ext/fts1/fts1.h \
483 $(TOP)/ext/fts1/fts1_hash.h \ 512 $(TOP)/ext/fts1/fts1_hash.h \
484 $(TOP)/ext/fts1/fts1_tokenizer.h 513 $(TOP)/ext/fts1/fts1_tokenizer.h
485 EXTHDR += \ 514 EXTHDR += \
486 $(TOP)/ext/fts2/fts2.h \ 515 $(TOP)/ext/fts2/fts2.h \
487 $(TOP)/ext/fts2/fts2_hash.h \ 516 $(TOP)/ext/fts2/fts2_hash.h \
488 $(TOP)/ext/fts2/fts2_tokenizer.h 517 $(TOP)/ext/fts2/fts2_tokenizer.h
489 EXTHDR += \ 518 EXTHDR += \
490 $(TOP)/ext/fts3/fts3.h \ 519 $(TOP)/ext/fts3/fts3.h \
491 $(TOP)/ext/fts3/fts3Int.h \ 520 $(TOP)/ext/fts3/fts3Int.h \
492 $(TOP)/ext/fts3/fts3_hash.h \ 521 $(TOP)/ext/fts3/fts3_hash.h \
493 $(TOP)/ext/fts3/fts3_tokenizer.h 522 $(TOP)/ext/fts3/fts3_tokenizer.h
494 EXTHDR += \ 523 EXTHDR += \
495 $(TOP)/ext/rtree/rtree.h 524 $(TOP)/ext/rtree/rtree.h
496 EXTHDR += \ 525 EXTHDR += \
497 $(TOP)/ext/icu/sqliteicu.h 526 $(TOP)/ext/icu/sqliteicu.h
498 EXTHDR += \ 527 EXTHDR += \
499 $(TOP)/ext/rtree/sqlite3rtree.h 528 $(TOP)/ext/rtree/sqlite3rtree.h
500 529
530 # executables needed for testing
531 #
532 TESTPROGS = \
533 testfixture$(TEXE) \
534 sqlite3$(TEXE) \
535 sqlite3_analyzer$(TEXE) \
536 sqldiff$(TEXE)
537
538 # Databases containing fuzzer test cases
539 #
540 FUZZDATA = \
541 $(TOP)/test/fuzzdata1.db \
542 $(TOP)/test/fuzzdata2.db \
543 $(TOP)/test/fuzzdata3.db \
544 $(TOP)/test/fuzzdata4.db
545
546 # Standard options to testfixture
547 #
548 TESTOPTS = --verbose=file --output=test-out.txt
549
550 # Extra compiler options for various shell tools
551 #
552 SHELL_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5
553 FUZZERSHELL_OPT = -DSQLITE_ENABLE_JSON1
554 FUZZCHECK_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5
555
501 # This is the default Makefile target. The objects listed here 556 # This is the default Makefile target. The objects listed here
502 # are what get build when you type just "make" with no arguments. 557 # are what get build when you type just "make" with no arguments.
503 # 558 #
504 all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la) 559 all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la)
505 560
506 Makefile: $(TOP)/Makefile.in 561 Makefile: $(TOP)/Makefile.in
507 ./config.status 562 ./config.status
508 563
509 sqlite3.pc: $(TOP)/sqlite3.pc.in 564 sqlite3.pc: $(TOP)/sqlite3.pc.in
510 ./config.status 565 ./config.status
511 566
512 libsqlite3.la: $(LIBOBJ) 567 libsqlite3.la: $(LIBOBJ)
513 $(LTLINK) -no-undefined -o $@ $(LIBOBJ) $(TLIBS) \ 568 $(LTLINK) -no-undefined -o $@ $(LIBOBJ) $(TLIBS) \
514 ${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8" 569 ${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8"
515 570
516 libtclsqlite3.la: tclsqlite.lo libsqlite3.la 571 libtclsqlite3.la: tclsqlite.lo libsqlite3.la
517 $(LTLINK) -no-undefined -o $@ tclsqlite.lo \ 572 $(LTLINK) -no-undefined -o $@ tclsqlite.lo \
518 libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \ 573 libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
519 -rpath "$(TCLLIBDIR)" \ 574 -rpath "$(TCLLIBDIR)" \
520 -version-info "8:6:8" \ 575 -version-info "8:6:8" \
521 -avoid-version 576 -avoid-version
522 577
523 sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h 578 sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h
524 » $(LTLINK) $(READLINE_FLAGS) \ 579 » $(LTLINK) $(READLINE_FLAGS) $(SHELL_OPT) -o $@ \
525 » » -o $@ $(TOP)/src/shell.c libsqlite3.la \ 580 » » $(TOP)/src/shell.c libsqlite3.la \
526 $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)" 581 $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
527 582
528 mptester$(EXE):»sqlite3.c $(TOP)/mptest/mptest.c 583 sqldiff$(TEXE):»$(TOP)/tool/sqldiff.c sqlite3.c sqlite3.h
584 » $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c sqlite3.c $(TLIBS)
585
586 fuzzershell$(TEXE):» $(TOP)/tool/fuzzershell.c sqlite3.c sqlite3.h
587 » $(LTLINK) -o $@ $(FUZZERSHELL_OPT) \
588 » $(TOP)/tool/fuzzershell.c sqlite3.c $(TLIBS)
589
590 fuzzcheck$(TEXE):» $(TOP)/test/fuzzcheck.c sqlite3.c sqlite3.h
591 » $(LTLINK) -o $@ $(FUZZCHECK_OPT) $(TOP)/test/fuzzcheck.c sqlite3.c $(TLI BS)
592
593 mptester$(TEXE):» sqlite3.c $(TOP)/mptest/mptest.c
529 $(LTLINK) -o $@ -I. $(TOP)/mptest/mptest.c sqlite3.c \ 594 $(LTLINK) -o $@ -I. $(TOP)/mptest/mptest.c sqlite3.c \
530 $(TLIBS) -rpath "$(libdir)" 595 $(TLIBS) -rpath "$(libdir)"
531 596
597 MPTEST1=./mptester$(TEXE) mptest.db $(TOP)/mptest/crash01.test --repeat 20
598 MPTEST2=./mptester$(TEXE) mptest.db $(TOP)/mptest/multiwrite01.test --repeat 20
599 mptest: mptester$(TEXE)
600 rm -f mptest.db
601 $(MPTEST1) --journalmode DELETE
602 $(MPTEST2) --journalmode WAL
603 $(MPTEST1) --journalmode WAL
604 $(MPTEST2) --journalmode PERSIST
605 $(MPTEST1) --journalmode PERSIST
606 $(MPTEST2) --journalmode TRUNCATE
607 $(MPTEST1) --journalmode TRUNCATE
608 $(MPTEST2) --journalmode DELETE
609
532 610
533 # This target creates a directory named "tsrc" and fills it with 611 # This target creates a directory named "tsrc" and fills it with
534 # copies of all of the C source code and header files needed to 612 # copies of all of the C source code and header files needed to
535 # build on the target system. Some of the C source code and header 613 # build on the target system. Some of the C source code and header
536 # files are automatically generated. This target takes care of 614 # files are automatically generated. This target takes care of
537 # all that automatic generation. 615 # all that automatic generation.
538 # 616 #
539 .target_source:»$(SRC) $(TOP)/tool/vdbe-compress.tcl 617 .target_source:»$(SRC) $(TOP)/tool/vdbe-compress.tcl fts5.c
540 rm -rf tsrc 618 rm -rf tsrc
541 mkdir tsrc 619 mkdir tsrc
542 cp -f $(SRC) tsrc 620 cp -f $(SRC) tsrc
543 rm tsrc/sqlite.h.in tsrc/parse.y 621 rm tsrc/sqlite.h.in tsrc/parse.y
544 $(TCLSH_CMD) $(TOP)/tool/vdbe-compress.tcl $(OPTS) <tsrc/vdbe.c >vdbe.ne w 622 $(TCLSH_CMD) $(TOP)/tool/vdbe-compress.tcl $(OPTS) <tsrc/vdbe.c >vdbe.ne w
545 mv vdbe.new tsrc/vdbe.c 623 mv vdbe.new tsrc/vdbe.c
624 cp fts5.c fts5.h tsrc
546 touch .target_source 625 touch .target_source
547 626
548 sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl 627 sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl
549 $(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl 628 $(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl
550 cp tsrc/shell.c tsrc/sqlite3ext.h . 629 cp tsrc/shell.c tsrc/sqlite3ext.h .
551 630
631 sqlite3ext.h: .target_source
632 cp tsrc/sqlite3ext.h .
633
552 tclsqlite3.c: sqlite3.c 634 tclsqlite3.c: sqlite3.c
553 echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c 635 echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c
554 cat sqlite3.c >>tclsqlite3.c 636 cat sqlite3.c >>tclsqlite3.c
555 echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c 637 echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c
556 cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c 638 cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
557 639
558 sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl 640 sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl
559 $(TCLSH_CMD) $(TOP)/tool/split-sqlite3c.tcl 641 $(TCLSH_CMD) $(TOP)/tool/split-sqlite3c.tcl
560 642
561 # Rule to build the amalgamation 643 # Rule to build the amalgamation
562 # 644 #
563 sqlite3.lo: sqlite3.c 645 sqlite3.lo: sqlite3.c
564 $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c 646 $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
565 647
566 # Rules to build the LEMON compiler generator 648 # Rules to build the LEMON compiler generator
567 # 649 #
568 lemon$(BEXE):» $(TOP)/tool/lemon.c $(TOP)/src/lempar.c 650 lemon$(BEXE):» $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
569 $(BCC) -o $@ $(TOP)/tool/lemon.c 651 $(BCC) -o $@ $(TOP)/tool/lemon.c
570 » cp $(TOP)/src/lempar.c . 652 » cp $(TOP)/tool/lempar.c .
571 653
572 # Rules to build individual *.o files from generated *.c files. This 654 # Rules to build individual *.o files from generated *.c files. This
573 # applies to: 655 # applies to:
574 # 656 #
575 # parse.o 657 # parse.o
576 # opcodes.o 658 # opcodes.o
577 # 659 #
578 parse.lo: parse.c $(HDR) 660 parse.lo: parse.c $(HDR)
579 $(LTCOMPILE) $(TEMP_STORE) -c parse.c 661 $(LTCOMPILE) $(TEMP_STORE) -c parse.c
580 662
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 697
616 complete.lo: $(TOP)/src/complete.c $(HDR) 698 complete.lo: $(TOP)/src/complete.c $(HDR)
617 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/complete.c 699 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/complete.c
618 700
619 ctime.lo: $(TOP)/src/ctime.c $(HDR) 701 ctime.lo: $(TOP)/src/ctime.c $(HDR)
620 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/ctime.c 702 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/ctime.c
621 703
622 date.lo: $(TOP)/src/date.c $(HDR) 704 date.lo: $(TOP)/src/date.c $(HDR)
623 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c 705 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c
624 706
707 dbstat.lo: $(TOP)/src/dbstat.c $(HDR)
708 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/dbstat.c
709
625 delete.lo: $(TOP)/src/delete.c $(HDR) 710 delete.lo: $(TOP)/src/delete.c $(HDR)
626 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c 711 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c
627 712
628 expr.lo: $(TOP)/src/expr.c $(HDR) 713 expr.lo: $(TOP)/src/expr.c $(HDR)
629 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/expr.c 714 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/expr.c
630 715
631 fault.lo: $(TOP)/src/fault.c $(HDR) 716 fault.lo: $(TOP)/src/fault.c $(HDR)
632 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fault.c 717 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fault.c
633 718
634 fkey.lo: $(TOP)/src/fkey.c $(HDR) 719 fkey.lo: $(TOP)/src/fkey.c $(HDR)
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 823
739 table.lo: $(TOP)/src/table.c $(HDR) 824 table.lo: $(TOP)/src/table.c $(HDR)
740 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c 825 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c
741 826
742 threads.lo: $(TOP)/src/threads.c $(HDR) 827 threads.lo: $(TOP)/src/threads.c $(HDR)
743 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/threads.c 828 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/threads.c
744 829
745 tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR) 830 tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
746 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/tokenize.c 831 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/tokenize.c
747 832
833 treeview.lo: $(TOP)/src/treeview.c $(HDR)
834 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/treeview.c
835
748 trigger.lo: $(TOP)/src/trigger.c $(HDR) 836 trigger.lo: $(TOP)/src/trigger.c $(HDR)
749 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/trigger.c 837 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/trigger.c
750 838
751 update.lo: $(TOP)/src/update.c $(HDR) 839 update.lo: $(TOP)/src/update.c $(HDR)
752 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/update.c 840 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/update.c
753 841
754 utf.lo: $(TOP)/src/utf.c $(HDR) 842 utf.lo: $(TOP)/src/utf.c $(HDR)
755 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/utf.c 843 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/utf.c
756 844
757 util.lo: $(TOP)/src/util.c $(HDR) 845 util.lo: $(TOP)/src/util.c $(HDR)
(...skipping 28 matching lines...) Expand all
786 874
787 wal.lo: $(TOP)/src/wal.c $(HDR) 875 wal.lo: $(TOP)/src/wal.c $(HDR)
788 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wal.c 876 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wal.c
789 877
790 walker.lo: $(TOP)/src/walker.c $(HDR) 878 walker.lo: $(TOP)/src/walker.c $(HDR)
791 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/walker.c 879 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/walker.c
792 880
793 where.lo: $(TOP)/src/where.c $(HDR) 881 where.lo: $(TOP)/src/where.c $(HDR)
794 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/where.c 882 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/where.c
795 883
884 wherecode.lo: $(TOP)/src/wherecode.c $(HDR)
885 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wherecode.c
886
887 whereexpr.lo: $(TOP)/src/whereexpr.c $(HDR)
888 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/whereexpr.c
889
796 tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR) 890 tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR)
797 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c 891 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c
798 892
799 tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR) 893 tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR)
800 $(LTCOMPILE) -DTCLSH=1 -o $@ -c $(TOP)/src/tclsqlite.c 894 $(LTCOMPILE) -DTCLSH=1 -o $@ -c $(TOP)/src/tclsqlite.c
801 895
802 tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR) 896 tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR)
803 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c 897 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c
804 898
805 tclsqlite3$(TEXE): tclsqlite-shell.lo libsqlite3.la 899 tclsqlite3$(TEXE): tclsqlite-shell.lo libsqlite3.la
806 $(LTLINK) -o $@ tclsqlite-shell.lo \ 900 $(LTLINK) -o $@ tclsqlite-shell.lo \
807 libsqlite3.la $(LIBTCL) 901 libsqlite3.la $(LIBTCL)
808 902
809 # Rules to build opcodes.c and opcodes.h 903 # Rules to build opcodes.c and opcodes.h
810 # 904 #
811 opcodes.c:» opcodes.h $(TOP)/mkopcodec.awk 905 opcodes.c:» opcodes.h $(TOP)/tool/mkopcodec.tcl
812 » $(NAWK) -f $(TOP)/mkopcodec.awk opcodes.h >opcodes.c 906 » $(TCLSH_CMD) $(TOP)/tool/mkopcodec.tcl opcodes.h >opcodes.c
813 907
814 opcodes.h:» parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk 908 opcodes.h:» parse.h $(TOP)/src/vdbe.c $(TOP)/tool/mkopcodeh.tcl
815 » cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes .h 909 » cat parse.h $(TOP)/src/vdbe.c | $(TCLSH_CMD) $(TOP)/tool/mkopcodeh.tcl > opcodes.h
816 910
817 # Rules to build parse.c and parse.h - the outputs of lemon. 911 # Rules to build parse.c and parse.h - the outputs of lemon.
818 # 912 #
819 parse.h: parse.c 913 parse.h: parse.c
820 914
821 parse.c:» $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/addopcodes.awk 915 parse.c:» $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/tool/addopcodes.tcl
822 cp $(TOP)/src/parse.y . 916 cp $(TOP)/src/parse.y .
823 rm -f parse.h 917 rm -f parse.h
824 ./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y 918 ./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y
825 mv parse.h parse.h.temp 919 mv parse.h parse.h.temp
826 » $(NAWK) -f $(TOP)/addopcodes.awk parse.h.temp >parse.h 920 » $(TCLSH_CMD) $(TOP)/tool/addopcodes.tcl parse.h.temp >parse.h
827 921
828 sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest.uuid $(TOP)/VERSION 922 sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest.uuid $(TOP)/VERSION
829 $(TCLSH_CMD) $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h 923 $(TCLSH_CMD) $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h
830 924
831 keywordhash.h: $(TOP)/tool/mkkeywordhash.c 925 keywordhash.h: $(TOP)/tool/mkkeywordhash.c
832 $(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/ mkkeywordhash.c 926 $(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/ mkkeywordhash.c
833 ./mkkeywordhash$(BEXE) >keywordhash.h 927 ./mkkeywordhash$(BEXE) >keywordhash.h
834 928
835 929
836 930
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 986
893 fts3_unicode2.lo: $(TOP)/ext/fts3/fts3_unicode2.c $(HDR) $(EXTHDR) 987 fts3_unicode2.lo: $(TOP)/ext/fts3/fts3_unicode2.c $(HDR) $(EXTHDR)
894 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode2.c 988 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode2.c
895 989
896 fts3_write.lo: $(TOP)/ext/fts3/fts3_write.c $(HDR) $(EXTHDR) 990 fts3_write.lo: $(TOP)/ext/fts3/fts3_write.c $(HDR) $(EXTHDR)
897 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_write.c 991 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_write.c
898 992
899 rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR) $(EXTHDR) 993 rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR) $(EXTHDR)
900 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/rtree/rtree.c 994 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/rtree/rtree.c
901 995
996 json1.lo: $(TOP)/ext/misc/json1.c
997 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/misc/json1.c
998
999 # FTS5 things
1000 #
1001 FTS5_SRC = \
1002 $(TOP)/ext/fts5/fts5.h \
1003 $(TOP)/ext/fts5/fts5Int.h \
1004 $(TOP)/ext/fts5/fts5_aux.c \
1005 $(TOP)/ext/fts5/fts5_buffer.c \
1006 $(TOP)/ext/fts5/fts5_main.c \
1007 $(TOP)/ext/fts5/fts5_config.c \
1008 $(TOP)/ext/fts5/fts5_expr.c \
1009 $(TOP)/ext/fts5/fts5_hash.c \
1010 $(TOP)/ext/fts5/fts5_index.c \
1011 fts5parse.c fts5parse.h \
1012 $(TOP)/ext/fts5/fts5_storage.c \
1013 $(TOP)/ext/fts5/fts5_tokenize.c \
1014 $(TOP)/ext/fts5/fts5_unicode2.c \
1015 $(TOP)/ext/fts5/fts5_varint.c \
1016 $(TOP)/ext/fts5/fts5_vocab.c \
1017
1018 fts5parse.c: $(TOP)/ext/fts5/fts5parse.y lemon
1019 cp $(TOP)/ext/fts5/fts5parse.y .
1020 rm -f fts5parse.h
1021 ./lemon $(OPTS) fts5parse.y
1022
1023 fts5parse.h: fts5parse.c
1024
1025 fts5.c: $(FTS5_SRC)
1026 $(TCLSH_CMD) $(TOP)/ext/fts5/tool/mkfts5c.tcl
1027 cp $(TOP)/ext/fts5/fts5.h .
1028
1029 fts5.lo: fts5.c $(HDR) $(EXTHDR)
1030 $(LTCOMPILE) -DSQLITE_CORE -c fts5.c
1031
902 1032
903 # Rules to build the 'testfixture' application. 1033 # Rules to build the 'testfixture' application.
904 # 1034 #
905 # If using the amalgamation, use sqlite3.c directly to build the test 1035 # If using the amalgamation, use sqlite3.c directly to build the test
906 # fixture. Otherwise link against libsqlite3.la. (This distinction is 1036 # fixture. Otherwise link against libsqlite3.la. (This distinction is
907 # necessary because the test fixture requires non-API symbols which are 1037 # necessary because the test fixture requires non-API symbols which are
908 # hidden when the library is built via the amalgamation). 1038 # hidden when the library is built via the amalgamation).
909 # 1039 #
910 TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 1040 TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1
911 TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE 1041 TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE
912 TESTFIXTURE_FLAGS += -DBUILD_sqlite 1042 TESTFIXTURE_FLAGS += -DBUILD_sqlite
913 1043
914 TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la 1044 TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la
915 TESTFIXTURE_SRC1 = sqlite3.c 1045 TESTFIXTURE_SRC1 = sqlite3.c
916 TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c 1046 TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c
917 TESTFIXTURE_SRC += $(TESTFIXTURE_SRC$(USE_AMALGAMATION)) 1047 TESTFIXTURE_SRC += $(TESTFIXTURE_SRC$(USE_AMALGAMATION))
918 1048
919 testfixture$(TEXE): $(TESTFIXTURE_SRC) 1049 testfixture$(TEXE): $(TESTFIXTURE_SRC)
920 $(LTLINK) -DSQLITE_NO_SYNC=1 $(TEMP_STORE) $(TESTFIXTURE_FLAGS) \ 1050 $(LTLINK) -DSQLITE_NO_SYNC=1 $(TEMP_STORE) $(TESTFIXTURE_FLAGS) \
921 -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS) 1051 -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS)
922 1052
1053 # A very detailed test running most or all test cases
1054 fulltest: $(TESTPROGS) fuzztest
1055 ./testfixture$(TEXE) $(TOP)/test/all.test $(TESTOPTS)
923 1056
924 fulltest:» testfixture$(TEXE) sqlite3$(TEXE) 1057 # Really really long testing
925 » ./testfixture$(TEXE) $(TOP)/test/all.test 1058 soaktest:» $(TESTPROGS)
1059 » ./testfixture$(TEXE) $(TOP)/test/all.test -soak=1 $(TESTOPTS)
926 1060
927 soaktest:» testfixture$(TEXE) sqlite3$(TEXE) 1061 # Do extra testing but not everything.
928 » ./testfixture$(TEXE) $(TOP)/test/all.test -soak=1 1062 fulltestonly:» $(TESTPROGS) fuzztest
929
930 fulltestonly:» testfixture$(TEXE) sqlite3$(TEXE)
931 ./testfixture$(TEXE) $(TOP)/test/full.test 1063 ./testfixture$(TEXE) $(TOP)/test/full.test
932 1064
933 test:» testfixture$(TEXE) sqlite3$(TEXE) 1065 # Fuzz testing
934 » ./testfixture$(TEXE) $(TOP)/test/veryquick.test 1066 fuzztest:» fuzzcheck$(TEXE) $(FUZZDATA)
1067 » ./fuzzcheck$(TEXE) $(FUZZDATA)
935 1068
936 sqlite3_analyzer.c: sqlite3.c $(TOP)/src/test_stat.c $(TOP)/src/tclsqlite.c $(TO P)/tool/spaceanal.tcl 1069 fastfuzztest:» fuzzcheck$(TEXE) $(FUZZDATA)
1070 » ./fuzzcheck$(TEXE) --limit-mem 100M $(FUZZDATA)
1071
1072 valgrindfuzz:» fuzzcheck$(TEXT) $(FUZZDATA)
1073 » valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M --timeout 600 $(FUZZDATA)
1074
1075 # Minimal testing that runs in less than 3 minutes
1076 #
1077 quicktest:» ./testfixture$(TEXE)
1078 » ./testfixture$(TEXE) $(TOP)/test/extraquick.test $(TESTOPTS)
1079
1080 # This is the common case. Run many tests that do not take too long,
1081 # including fuzzcheck, sqlite3_analyzer, and sqldiff tests.
1082 #
1083 test:» $(TESTPROGS) fastfuzztest
1084 » ./testfixture$(TEXE) $(TOP)/test/veryquick.test $(TESTOPTS)
1085
1086 # Run a test using valgrind. This can take a really long time
1087 # because valgrind is so much slower than a native machine.
1088 #
1089 valgrindtest:» $(TESTPROGS) valgrindfuzz
1090 » OMIT_MISUSE=1 valgrind -v ./testfixture$(TEXE) $(TOP)/test/permutations. test valgrind $(TESTOPTS)
1091
1092 # A very fast test that checks basic sanity. The name comes from
1093 # the 60s-era electronics testing: "Turn it on and see if smoke
1094 # comes out."
1095 #
1096 smoketest:» $(TESTPROGS) fuzzcheck$(TEXE)
1097 » ./testfixture$(TEXE) $(TOP)/test/main.test $(TESTOPTS)
1098
1099 sqlite3_analyzer.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
937 echo "#define TCLSH 2" > $@ 1100 echo "#define TCLSH 2" > $@
938 » cat sqlite3.c $(TOP)/src/test_stat.c $(TOP)/src/tclsqlite.c >> $@ 1101 » echo "#define SQLITE_ENABLE_DBSTAT_VTAB 1" >> $@
1102 » cat sqlite3.c $(TOP)/src/tclsqlite.c >> $@
939 echo "static const char *tclsh_main_loop(void){" >> $@ 1103 echo "static const char *tclsh_main_loop(void){" >> $@
940 echo "static const char *zMainloop = " >> $@ 1104 echo "static const char *zMainloop = " >> $@
941 » $(NAWK) -f $(TOP)/tool/tostr.awk $(TOP)/tool/spaceanal.tcl >> $@ 1105 » $(TCLSH_CMD) $(TOP)/tool/tostr.tcl $(TOP)/tool/spaceanal.tcl >> $@
942 echo "; return zMainloop; }" >> $@ 1106 echo "; return zMainloop; }" >> $@
943 1107
944 sqlite3_analyzer$(TEXE): sqlite3_analyzer.c 1108 sqlite3_analyzer$(TEXE): sqlite3_analyzer.c
945 $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS) 1109 $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS)
946 1110
947 showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo 1111 showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo
948 $(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS) 1112 $(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS)
949 1113
950 showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo 1114 showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo
951 $(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS) 1115 $(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS)
952 1116
953 showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo 1117 showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo
954 $(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS) 1118 $(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS)
955 1119
956 showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo 1120 showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo
957 $(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS) 1121 $(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS)
958 1122
959 rollback-test$(TEXE): $(TOP)/tool/rollback-test.c sqlite3.lo 1123 rollback-test$(TEXE): $(TOP)/tool/rollback-test.c sqlite3.lo
960 $(LTLINK) -o $@ $(TOP)/tool/rollback-test.c sqlite3.lo $(TLIBS) 1124 $(LTLINK) -o $@ $(TOP)/tool/rollback-test.c sqlite3.lo $(TLIBS)
961 1125
962 LogEst$(TEXE): $(TOP)/tool/logest.c sqlite3.h 1126 LogEst$(TEXE): $(TOP)/tool/logest.c sqlite3.h
963 $(LTLINK) -I. -o $@ $(TOP)/tool/logest.c 1127 $(LTLINK) -I. -o $@ $(TOP)/tool/logest.c
964 1128
965 wordcount$(TEXE): $(TOP)/test/wordcount.c sqlite3.c 1129 wordcount$(TEXE): $(TOP)/test/wordcount.c sqlite3.c
966 $(LTLINK) -o $@ $(TOP)/test/wordcount.c sqlite3.c $(TLIBS) 1130 $(LTLINK) -o $@ $(TOP)/test/wordcount.c sqlite3.c $(TLIBS)
967 1131
968 speedtest1$(TEXE):» $(TOP)/test/wordcount.c sqlite3.lo 1132 speedtest1$(TEXE):» $(TOP)/test/speedtest1.c sqlite3.lo
969 $(LTLINK) -o $@ $(TOP)/test/speedtest1.c sqlite3.lo $(TLIBS) 1133 $(LTLINK) -o $@ $(TOP)/test/speedtest1.c sqlite3.lo $(TLIBS)
970 1134
1135 # This target will fail if the SQLite amalgamation contains any exported
1136 # symbols that do not begin with "sqlite3_". It is run as part of the
1137 # releasetest.tcl script.
1138 #
1139 checksymbols: sqlite3.lo
1140 nm -g --defined-only sqlite3.o | grep -v " sqlite3_" ; test $$? -ne 0
1141 echo '0 errors out of 1 tests'
1142
1143 # Build the amalgamation-autoconf package.
1144 #
1145 amalgamation-tarball: sqlite3.c
1146 TOP=$(TOP) sh $(TOP)/tool/mkautoconfamal.sh
1147
1148 # The next two rules are used to support the "threadtest" target. Building
1149 # threadtest runs a few thread-safety tests that are implemented in C. This
1150 # target is invoked by the releasetest.tcl script.
1151 #
1152 THREADTEST3_SRC = $(TOP)/test/threadtest3.c \
1153 $(TOP)/test/tt3_checkpoint.c \
1154 $(TOP)/test/tt3_index.c \
1155 $(TOP)/test/tt3_vacuum.c \
1156 $(TOP)/test/tt3_stress.c \
1157 $(TOP)/test/tt3_lookaside1.c
1158
1159 threadtest3$(TEXE): sqlite3.lo $(THREADTEST3_SRC)
1160 $(LTLINK) $(TOP)/test/threadtest3.c $(TOP)/src/test_multiplex.c sqlite3. lo -o $@ $(TLIBS)
1161
1162 threadtest: threadtest3$(TEXE)
1163 ./threadtest3$(TEXE)
1164
1165 releasetest:
1166 $(TCLSH_CMD) $(TOP)/test/releasetest.tcl
1167
971 # Standard install and cleanup targets 1168 # Standard install and cleanup targets
972 # 1169 #
973 lib_install: libsqlite3.la 1170 lib_install: libsqlite3.la
974 $(INSTALL) -d $(DESTDIR)$(libdir) 1171 $(INSTALL) -d $(DESTDIR)$(libdir)
975 $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir) 1172 $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir)
976 1173
977 install: sqlite3$(BEXE) lib_install sqlite3.h sqlite3.pc ${HAVE_TCL:1=tcl _install} 1174 install: sqlite3$(BEXE) lib_install sqlite3.h sqlite3.pc ${HAVE_TCL:1=tcl _install}
978 $(INSTALL) -d $(DESTDIR)$(bindir) 1175 $(INSTALL) -d $(DESTDIR)$(bindir)
979 $(LTINSTALL) sqlite3$(BEXE) $(DESTDIR)$(bindir) 1176 $(LTINSTALL) sqlite3$(BEXE) $(DESTDIR)$(bindir)
980 $(INSTALL) -d $(DESTDIR)$(includedir) 1177 $(INSTALL) -d $(DESTDIR)$(includedir)
981 $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir) 1178 $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir)
982 $(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir) 1179 $(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir)
983 $(INSTALL) -d $(DESTDIR)$(pkgconfigdir) 1180 $(INSTALL) -d $(DESTDIR)$(pkgconfigdir)
984 $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir) 1181 $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir)
985 1182
986 pkgIndex.tcl: 1183 pkgIndex.tcl:
987 » echo 'package ifneeded sqlite3 $(RELEASE) [list load $(TCLLIBDIR)/libtcl sqlite3.so sqlite3]' > $@ 1184 » echo 'package ifneeded sqlite3 $(RELEASE) [list load $(TCLLIBDIR)/libtcl sqlite3$(SHLIB_SUFFIX) sqlite3]' > $@
988 tcl_install: lib_install libtclsqlite3.la pkgIndex.tcl 1185 tcl_install: lib_install libtclsqlite3.la pkgIndex.tcl
989 $(INSTALL) -d $(DESTDIR)$(TCLLIBDIR) 1186 $(INSTALL) -d $(DESTDIR)$(TCLLIBDIR)
990 $(LTINSTALL) libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR) 1187 $(LTINSTALL) libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)
991 rm -f $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)/lib tclsqlite3.a 1188 rm -f $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)/lib tclsqlite3.a
992 $(INSTALL) -m 0644 pkgIndex.tcl $(DESTDIR)$(TCLLIBDIR) 1189 $(INSTALL) -m 0644 pkgIndex.tcl $(DESTDIR)$(TCLLIBDIR)
993 1190
994 clean: 1191 clean:
995 rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la 1192 rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la
996 rm -f sqlite3.h opcodes.* 1193 rm -f sqlite3.h opcodes.*
997 rm -rf .libs .deps 1194 rm -rf .libs .deps
998 rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz 1195 rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz
999 rm -f mkkeywordhash$(BEXE) keywordhash.h 1196 rm -f mkkeywordhash$(BEXE) keywordhash.h
1000 rm -f *.da *.bb *.bbg gmon.out 1197 rm -f *.da *.bb *.bbg gmon.out
1001 rm -rf quota2a quota2b quota2c 1198 rm -rf quota2a quota2b quota2c
1002 rm -rf tsrc .target_source 1199 rm -rf tsrc .target_source
1003 rm -f tclsqlite3$(TEXE) 1200 rm -f tclsqlite3$(TEXE)
1004 rm -f testfixture$(TEXE) test.db 1201 rm -f testfixture$(TEXE) test.db
1005 rm -f LogEst$(TEXE) fts3view$(TEXE) rollback-test$(TEXE) showdb$(TEXE) 1202 rm -f LogEst$(TEXE) fts3view$(TEXE) rollback-test$(TEXE) showdb$(TEXE)
1006 rm -f showjournal$(TEXE) showstat4$(TEXE) showwal$(TEXE) speedtest1$(TEX E) 1203 rm -f showjournal$(TEXE) showstat4$(TEXE) showwal$(TEXE) speedtest1$(TEX E)
1007 rm -f wordcount$(TEXE) 1204 rm -f wordcount$(TEXE)
1008 rm -f sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def 1205 rm -f sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def
1009 rm -f sqlite3.c 1206 rm -f sqlite3.c
1010 rm -f sqlite3rc.h 1207 rm -f sqlite3rc.h
1011 rm -f shell.c sqlite3ext.h 1208 rm -f shell.c sqlite3ext.h
1012 rm -f sqlite3_analyzer$(TEXE) sqlite3_analyzer.c 1209 rm -f sqlite3_analyzer$(TEXE) sqlite3_analyzer.c
1013 rm -f sqlite-*-output.vsix 1210 rm -f sqlite-*-output.vsix
1014 rm -f mptester mptester.exe 1211 rm -f mptester mptester.exe
1212 rm -f fuzzershell fuzzershell.exe
1213 rm -f fuzzcheck fuzzcheck.exe
1214 rm -f sqldiff sqldiff.exe
1215 rm -f fts5.* fts5parse.*
1015 1216
1016 distclean: clean 1217 distclean: clean
1017 » rm -f config.log config.status libtool Makefile sqlite3.pc 1218 » rm -f config.h config.log config.status libtool Makefile sqlite3.pc
1018 1219
1019 # 1220 #
1020 # Windows section 1221 # Windows section
1021 # 1222 #
1022 dll: sqlite3.dll 1223 dll: sqlite3.dll
1023 1224
1024 REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o) 1225 REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o)
1025 1226
1026 $(REAL_LIBOBJ): $(LIBOBJ) 1227 $(REAL_LIBOBJ): $(LIBOBJ)
1027 1228
1028 sqlite3.def: $(REAL_LIBOBJ) 1229 sqlite3.def: $(REAL_LIBOBJ)
1029 echo 'EXPORTS' >sqlite3.def 1230 echo 'EXPORTS' >sqlite3.def
1030 nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \ 1231 nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \
1031 | sed 's/^.* _//' >>sqlite3.def 1232 | sed 's/^.* _//' >>sqlite3.def
1032 1233
1033 sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def 1234 sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def
1034 $(TCC) -shared -o $@ sqlite3.def \ 1235 $(TCC) -shared -o $@ sqlite3.def \
1035 -Wl,"--strip-all" $(REAL_LIBOBJ) 1236 -Wl,"--strip-all" $(REAL_LIBOBJ)
OLDNEW
« no previous file with comments | « third_party/sqlite/src/Makefile.arm-wince-mingw32ce-gcc ('k') | third_party/sqlite/src/Makefile.linux-gcc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698