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

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

Issue 1610543003: [sql] Import reference version of 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/resolve.c \ 263 $(TOP)/src/resolve.c \
257 $(TOP)/src/rowset.c \ 264 $(TOP)/src/rowset.c \
258 $(TOP)/src/select.c \ 265 $(TOP)/src/select.c \
259 $(TOP)/src/status.c \ 266 $(TOP)/src/status.c \
260 $(TOP)/src/shell.c \ 267 $(TOP)/src/shell.c \
261 $(TOP)/src/sqlite.h.in \ 268 $(TOP)/src/sqlite.h.in \
262 $(TOP)/src/sqlite3ext.h \ 269 $(TOP)/src/sqlite3ext.h \
263 $(TOP)/src/sqliteInt.h \ 270 $(TOP)/src/sqliteInt.h \
264 $(TOP)/src/sqliteLimit.h \ 271 $(TOP)/src/sqliteLimit.h \
265 $(TOP)/src/table.c \ 272 $(TOP)/src/table.c \
273 $(TOP)/src/tclsqlite.c \
266 $(TOP)/src/threads.c \ 274 $(TOP)/src/threads.c \
267 $(TOP)/src/tclsqlite.c \
268 $(TOP)/src/tokenize.c \ 275 $(TOP)/src/tokenize.c \
276 $(TOP)/src/treeview.c \
269 $(TOP)/src/trigger.c \ 277 $(TOP)/src/trigger.c \
270 $(TOP)/src/utf.c \ 278 $(TOP)/src/utf.c \
271 $(TOP)/src/update.c \ 279 $(TOP)/src/update.c \
272 $(TOP)/src/util.c \ 280 $(TOP)/src/util.c \
273 $(TOP)/src/vacuum.c \ 281 $(TOP)/src/vacuum.c \
274 $(TOP)/src/vdbe.c \ 282 $(TOP)/src/vdbe.c \
275 $(TOP)/src/vdbe.h \ 283 $(TOP)/src/vdbe.h \
276 $(TOP)/src/vdbeapi.c \ 284 $(TOP)/src/vdbeapi.c \
277 $(TOP)/src/vdbeaux.c \ 285 $(TOP)/src/vdbeaux.c \
278 $(TOP)/src/vdbeblob.c \ 286 $(TOP)/src/vdbeblob.c \
279 $(TOP)/src/vdbemem.c \ 287 $(TOP)/src/vdbemem.c \
280 $(TOP)/src/vdbesort.c \ 288 $(TOP)/src/vdbesort.c \
281 $(TOP)/src/vdbetrace.c \ 289 $(TOP)/src/vdbetrace.c \
282 $(TOP)/src/vdbeInt.h \ 290 $(TOP)/src/vdbeInt.h \
283 $(TOP)/src/vtab.c \ 291 $(TOP)/src/vtab.c \
292 $(TOP)/src/vxworks.h \
284 $(TOP)/src/wal.c \ 293 $(TOP)/src/wal.c \
285 $(TOP)/src/wal.h \ 294 $(TOP)/src/wal.h \
286 $(TOP)/src/walker.c \ 295 $(TOP)/src/walker.c \
287 $(TOP)/src/where.c \ 296 $(TOP)/src/where.c \
297 $(TOP)/src/wherecode.c \
298 $(TOP)/src/whereexpr.c \
288 $(TOP)/src/whereInt.h 299 $(TOP)/src/whereInt.h
289 300
290 # Source code for extensions 301 # Source code for extensions
291 # 302 #
292 SRC += \ 303 SRC += \
293 $(TOP)/ext/fts1/fts1.c \ 304 $(TOP)/ext/fts1/fts1.c \
294 $(TOP)/ext/fts1/fts1.h \ 305 $(TOP)/ext/fts1/fts1.h \
295 $(TOP)/ext/fts1/fts1_hash.c \ 306 $(TOP)/ext/fts1/fts1_hash.c \
296 $(TOP)/ext/fts1/fts1_hash.h \ 307 $(TOP)/ext/fts1/fts1_hash.h \
297 $(TOP)/ext/fts1/fts1_porter.c \ 308 $(TOP)/ext/fts1/fts1_porter.c \
(...skipping 26 matching lines...) Expand all
324 $(TOP)/ext/fts3/fts3_tokenize_vtab.c \ 335 $(TOP)/ext/fts3/fts3_tokenize_vtab.c \
325 $(TOP)/ext/fts3/fts3_unicode.c \ 336 $(TOP)/ext/fts3/fts3_unicode.c \
326 $(TOP)/ext/fts3/fts3_unicode2.c \ 337 $(TOP)/ext/fts3/fts3_unicode2.c \
327 $(TOP)/ext/fts3/fts3_write.c 338 $(TOP)/ext/fts3/fts3_write.c
328 SRC += \ 339 SRC += \
329 $(TOP)/ext/icu/sqliteicu.h \ 340 $(TOP)/ext/icu/sqliteicu.h \
330 $(TOP)/ext/icu/icu.c 341 $(TOP)/ext/icu/icu.c
331 SRC += \ 342 SRC += \
332 $(TOP)/ext/rtree/rtree.h \ 343 $(TOP)/ext/rtree/rtree.h \
333 $(TOP)/ext/rtree/rtree.c 344 $(TOP)/ext/rtree/rtree.c
345 SRC += \
346 $(TOP)/ext/rbu/sqlite3rbu.h \
347 $(TOP)/ext/rbu/sqlite3rbu.c
348 SRC += \
349 $(TOP)/ext/misc/json1.c
350
334 351
335 352
336 # Generated source code files 353 # Generated source code files
337 # 354 #
338 SRC += \ 355 SRC += \
339 keywordhash.h \ 356 keywordhash.h \
340 opcodes.c \ 357 opcodes.c \
341 opcodes.h \ 358 opcodes.h \
342 parse.c \ 359 parse.c \
343 parse.h \ 360 parse.h \
344 config.h \ 361 config.h \
345 sqlite3.h 362 sqlite3.h
346 363
347 # Source code to the test files. 364 # Source code to the test files.
348 # 365 #
349 TESTSRC = \ 366 TESTSRC = \
350 $(TOP)/src/test1.c \ 367 $(TOP)/src/test1.c \
351 $(TOP)/src/test2.c \ 368 $(TOP)/src/test2.c \
352 $(TOP)/src/test3.c \ 369 $(TOP)/src/test3.c \
353 $(TOP)/src/test4.c \ 370 $(TOP)/src/test4.c \
354 $(TOP)/src/test5.c \ 371 $(TOP)/src/test5.c \
355 $(TOP)/src/test6.c \ 372 $(TOP)/src/test6.c \
356 $(TOP)/src/test7.c \ 373 $(TOP)/src/test7.c \
357 $(TOP)/src/test8.c \ 374 $(TOP)/src/test8.c \
358 $(TOP)/src/test9.c \ 375 $(TOP)/src/test9.c \
359 $(TOP)/src/test_autoext.c \ 376 $(TOP)/src/test_autoext.c \
360 $(TOP)/src/test_async.c \ 377 $(TOP)/src/test_async.c \
361 $(TOP)/src/test_backup.c \ 378 $(TOP)/src/test_backup.c \
379 $(TOP)/src/test_blob.c \
362 $(TOP)/src/test_btree.c \ 380 $(TOP)/src/test_btree.c \
363 $(TOP)/src/test_config.c \ 381 $(TOP)/src/test_config.c \
364 $(TOP)/src/test_demovfs.c \ 382 $(TOP)/src/test_demovfs.c \
365 $(TOP)/src/test_devsym.c \ 383 $(TOP)/src/test_devsym.c \
366 $(TOP)/src/test_fs.c \ 384 $(TOP)/src/test_fs.c \
367 $(TOP)/src/test_func.c \ 385 $(TOP)/src/test_func.c \
368 $(TOP)/src/test_hexio.c \ 386 $(TOP)/src/test_hexio.c \
369 $(TOP)/src/test_init.c \ 387 $(TOP)/src/test_init.c \
370 $(TOP)/src/test_intarray.c \ 388 $(TOP)/src/test_intarray.c \
371 $(TOP)/src/test_journal.c \ 389 $(TOP)/src/test_journal.c \
372 $(TOP)/src/test_malloc.c \ 390 $(TOP)/src/test_malloc.c \
373 $(TOP)/src/test_multiplex.c \ 391 $(TOP)/src/test_multiplex.c \
374 $(TOP)/src/test_mutex.c \ 392 $(TOP)/src/test_mutex.c \
375 $(TOP)/src/test_onefile.c \ 393 $(TOP)/src/test_onefile.c \
376 $(TOP)/src/test_osinst.c \ 394 $(TOP)/src/test_osinst.c \
377 $(TOP)/src/test_pcache.c \ 395 $(TOP)/src/test_pcache.c \
378 $(TOP)/src/test_quota.c \ 396 $(TOP)/src/test_quota.c \
379 $(TOP)/src/test_rtree.c \ 397 $(TOP)/src/test_rtree.c \
380 $(TOP)/src/test_schema.c \ 398 $(TOP)/src/test_schema.c \
381 $(TOP)/src/test_server.c \ 399 $(TOP)/src/test_server.c \
382 $(TOP)/src/test_superlock.c \ 400 $(TOP)/src/test_superlock.c \
383 $(TOP)/src/test_syscall.c \ 401 $(TOP)/src/test_syscall.c \
384 $(TOP)/src/test_stat.c \
385 $(TOP)/src/test_tclvar.c \ 402 $(TOP)/src/test_tclvar.c \
386 $(TOP)/src/test_thread.c \ 403 $(TOP)/src/test_thread.c \
387 $(TOP)/src/test_vfs.c \ 404 $(TOP)/src/test_vfs.c \
405 $(TOP)/src/test_windirent.c \
388 $(TOP)/src/test_wsd.c \ 406 $(TOP)/src/test_wsd.c \
389 $(TOP)/ext/fts3/fts3_term.c \ 407 $(TOP)/ext/fts3/fts3_term.c \
390 $(TOP)/ext/fts3/fts3_test.c 408 $(TOP)/ext/fts3/fts3_test.c \
409 $(TOP)/ext/rbu/test_rbu.c
391 410
392 # Statically linked extensions 411 # Statically linked extensions
393 # 412 #
394 TESTSRC += \ 413 TESTSRC += \
395 $(TOP)/ext/misc/amatch.c \ 414 $(TOP)/ext/misc/amatch.c \
396 $(TOP)/ext/misc/closure.c \ 415 $(TOP)/ext/misc/closure.c \
416 $(TOP)/ext/misc/eval.c \
397 $(TOP)/ext/misc/fileio.c \ 417 $(TOP)/ext/misc/fileio.c \
398 $(TOP)/ext/misc/fuzzer.c \ 418 $(TOP)/ext/misc/fuzzer.c \
419 $(TOP)/ext/fts5/fts5_tcl.c \
420 $(TOP)/ext/fts5/fts5_test_mi.c \
399 $(TOP)/ext/misc/ieee754.c \ 421 $(TOP)/ext/misc/ieee754.c \
400 $(TOP)/ext/misc/nextchar.c \ 422 $(TOP)/ext/misc/nextchar.c \
401 $(TOP)/ext/misc/percentile.c \ 423 $(TOP)/ext/misc/percentile.c \
402 $(TOP)/ext/misc/regexp.c \ 424 $(TOP)/ext/misc/regexp.c \
425 $(TOP)/ext/misc/series.c \
403 $(TOP)/ext/misc/spellfix.c \ 426 $(TOP)/ext/misc/spellfix.c \
404 $(TOP)/ext/misc/totype.c \ 427 $(TOP)/ext/misc/totype.c \
405 $(TOP)/ext/misc/wholenumber.c 428 $(TOP)/ext/misc/wholenumber.c
406 429
407 # Source code to the library files needed by the test fixture 430 # Source code to the library files needed by the test fixture
408 # 431 #
409 TESTSRC2 = \ 432 TESTSRC2 = \
410 $(TOP)/src/attach.c \ 433 $(TOP)/src/attach.c \
411 $(TOP)/src/backup.c \ 434 $(TOP)/src/backup.c \
412 $(TOP)/src/bitvec.c \ 435 $(TOP)/src/bitvec.c \
413 $(TOP)/src/btree.c \ 436 $(TOP)/src/btree.c \
414 $(TOP)/src/build.c \ 437 $(TOP)/src/build.c \
415 $(TOP)/src/ctime.c \ 438 $(TOP)/src/ctime.c \
416 $(TOP)/src/date.c \ 439 $(TOP)/src/date.c \
440 $(TOP)/src/dbstat.c \
417 $(TOP)/src/expr.c \ 441 $(TOP)/src/expr.c \
418 $(TOP)/src/func.c \ 442 $(TOP)/src/func.c \
419 $(TOP)/src/insert.c \ 443 $(TOP)/src/insert.c \
420 $(TOP)/src/wal.c \ 444 $(TOP)/src/wal.c \
421 $(TOP)/src/main.c \ 445 $(TOP)/src/main.c \
422 $(TOP)/src/mem5.c \ 446 $(TOP)/src/mem5.c \
423 $(TOP)/src/os.c \ 447 $(TOP)/src/os.c \
424 $(TOP)/src/os_unix.c \ 448 $(TOP)/src/os_unix.c \
425 $(TOP)/src/os_win.c \ 449 $(TOP)/src/os_win.c \
426 $(TOP)/src/pager.c \ 450 $(TOP)/src/pager.c \
427 $(TOP)/src/pragma.c \ 451 $(TOP)/src/pragma.c \
428 $(TOP)/src/prepare.c \ 452 $(TOP)/src/prepare.c \
429 $(TOP)/src/printf.c \ 453 $(TOP)/src/printf.c \
430 $(TOP)/src/random.c \ 454 $(TOP)/src/random.c \
431 $(TOP)/src/pcache.c \ 455 $(TOP)/src/pcache.c \
432 $(TOP)/src/pcache1.c \ 456 $(TOP)/src/pcache1.c \
433 $(TOP)/src/select.c \ 457 $(TOP)/src/select.c \
434 $(TOP)/src/tokenize.c \ 458 $(TOP)/src/tokenize.c \
435 $(TOP)/src/utf.c \ 459 $(TOP)/src/utf.c \
436 $(TOP)/src/util.c \ 460 $(TOP)/src/util.c \
437 $(TOP)/src/vdbeapi.c \ 461 $(TOP)/src/vdbeapi.c \
438 $(TOP)/src/vdbeaux.c \ 462 $(TOP)/src/vdbeaux.c \
439 $(TOP)/src/vdbe.c \ 463 $(TOP)/src/vdbe.c \
440 $(TOP)/src/vdbemem.c \ 464 $(TOP)/src/vdbemem.c \
441 $(TOP)/src/vdbetrace.c \ 465 $(TOP)/src/vdbetrace.c \
442 $(TOP)/src/where.c \ 466 $(TOP)/src/where.c \
467 $(TOP)/src/wherecode.c \
468 $(TOP)/src/whereexpr.c \
443 parse.c \ 469 parse.c \
444 $(TOP)/ext/fts3/fts3.c \ 470 $(TOP)/ext/fts3/fts3.c \
445 $(TOP)/ext/fts3/fts3_aux.c \ 471 $(TOP)/ext/fts3/fts3_aux.c \
446 $(TOP)/ext/fts3/fts3_expr.c \ 472 $(TOP)/ext/fts3/fts3_expr.c \
447 $(TOP)/ext/fts3/fts3_term.c \ 473 $(TOP)/ext/fts3/fts3_term.c \
448 $(TOP)/ext/fts3/fts3_tokenizer.c \ 474 $(TOP)/ext/fts3/fts3_tokenizer.c \
449 $(TOP)/ext/fts3/fts3_write.c \ 475 $(TOP)/ext/fts3/fts3_write.c \
450 $(TOP)/ext/async/sqlite3async.c 476 $(TOP)/ext/async/sqlite3async.c
451 477
452 # Header files used by all library source files. 478 # Header files used by all library source files.
453 # 479 #
454 HDR = \ 480 HDR = \
455 $(TOP)/src/btree.h \ 481 $(TOP)/src/btree.h \
456 $(TOP)/src/btreeInt.h \ 482 $(TOP)/src/btreeInt.h \
457 $(TOP)/src/hash.h \ 483 $(TOP)/src/hash.h \
458 $(TOP)/src/hwtime.h \ 484 $(TOP)/src/hwtime.h \
459 keywordhash.h \ 485 keywordhash.h \
486 $(TOP)/src/msvc.h \
460 $(TOP)/src/mutex.h \ 487 $(TOP)/src/mutex.h \
461 opcodes.h \ 488 opcodes.h \
462 $(TOP)/src/os.h \ 489 $(TOP)/src/os.h \
463 $(TOP)/src/os_common.h \ 490 $(TOP)/src/os_common.h \
464 $(TOP)/src/os_setup.h \ 491 $(TOP)/src/os_setup.h \
465 $(TOP)/src/os_win.h \ 492 $(TOP)/src/os_win.h \
466 $(TOP)/src/pager.h \ 493 $(TOP)/src/pager.h \
467 $(TOP)/src/pcache.h \ 494 $(TOP)/src/pcache.h \
468 parse.h \ 495 parse.h \
496 $(TOP)/src/pragma.h \
469 sqlite3.h \ 497 sqlite3.h \
470 $(TOP)/src/sqlite3ext.h \ 498 $(TOP)/src/sqlite3ext.h \
471 $(TOP)/src/sqliteInt.h \ 499 $(TOP)/src/sqliteInt.h \
472 $(TOP)/src/sqliteLimit.h \ 500 $(TOP)/src/sqliteLimit.h \
473 $(TOP)/src/vdbe.h \ 501 $(TOP)/src/vdbe.h \
474 $(TOP)/src/vdbeInt.h \ 502 $(TOP)/src/vdbeInt.h \
503 $(TOP)/src/vxworks.h \
475 $(TOP)/src/whereInt.h \ 504 $(TOP)/src/whereInt.h \
476 config.h 505 config.h
477 506
478 # Header files used by extensions 507 # Header files used by extensions
479 # 508 #
480 EXTHDR += \ 509 EXTHDR += \
481 $(TOP)/ext/fts1/fts1.h \ 510 $(TOP)/ext/fts1/fts1.h \
482 $(TOP)/ext/fts1/fts1_hash.h \ 511 $(TOP)/ext/fts1/fts1_hash.h \
483 $(TOP)/ext/fts1/fts1_tokenizer.h 512 $(TOP)/ext/fts1/fts1_tokenizer.h
484 EXTHDR += \ 513 EXTHDR += \
485 $(TOP)/ext/fts2/fts2.h \ 514 $(TOP)/ext/fts2/fts2.h \
486 $(TOP)/ext/fts2/fts2_hash.h \ 515 $(TOP)/ext/fts2/fts2_hash.h \
487 $(TOP)/ext/fts2/fts2_tokenizer.h 516 $(TOP)/ext/fts2/fts2_tokenizer.h
488 EXTHDR += \ 517 EXTHDR += \
489 $(TOP)/ext/fts3/fts3.h \ 518 $(TOP)/ext/fts3/fts3.h \
490 $(TOP)/ext/fts3/fts3Int.h \ 519 $(TOP)/ext/fts3/fts3Int.h \
491 $(TOP)/ext/fts3/fts3_hash.h \ 520 $(TOP)/ext/fts3/fts3_hash.h \
492 $(TOP)/ext/fts3/fts3_tokenizer.h 521 $(TOP)/ext/fts3/fts3_tokenizer.h
493 EXTHDR += \ 522 EXTHDR += \
494 $(TOP)/ext/rtree/rtree.h 523 $(TOP)/ext/rtree/rtree.h
495 EXTHDR += \ 524 EXTHDR += \
496 $(TOP)/ext/icu/sqliteicu.h 525 $(TOP)/ext/icu/sqliteicu.h
497 EXTHDR += \ 526 EXTHDR += \
498 $(TOP)/ext/rtree/sqlite3rtree.h 527 $(TOP)/ext/rtree/sqlite3rtree.h
499 528
529 # executables needed for testing
530 #
531 TESTPROGS = \
532 testfixture$(TEXE) \
533 sqlite3$(TEXE) \
534 sqlite3_analyzer$(TEXE) \
535 sqldiff$(TEXE)
536
537 # Databases containing fuzzer test cases
538 #
539 FUZZDATA = \
540 $(TOP)/test/fuzzdata1.db \
541 $(TOP)/test/fuzzdata2.db \
542 $(TOP)/test/fuzzdata3.db \
543 $(TOP)/test/fuzzdata4.db
544
545 # Standard options to testfixture
546 #
547 TESTOPTS = --verbose=file --output=test-out.txt
548
549 # Extra compiler options for various shell tools
550 #
551 SHELL_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5
552 FUZZERSHELL_OPT = -DSQLITE_ENABLE_JSON1
553 FUZZCHECK_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5
554
500 # This is the default Makefile target. The objects listed here 555 # This is the default Makefile target. The objects listed here
501 # are what get build when you type just "make" with no arguments. 556 # are what get build when you type just "make" with no arguments.
502 # 557 #
503 all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la) 558 all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la)
504 559
505 Makefile: $(TOP)/Makefile.in 560 Makefile: $(TOP)/Makefile.in
506 ./config.status 561 ./config.status
507 562
508 sqlite3.pc: $(TOP)/sqlite3.pc.in 563 sqlite3.pc: $(TOP)/sqlite3.pc.in
509 ./config.status 564 ./config.status
510 565
511 libsqlite3.la: $(LIBOBJ) 566 libsqlite3.la: $(LIBOBJ)
512 $(LTLINK) -no-undefined -o $@ $(LIBOBJ) $(TLIBS) \ 567 $(LTLINK) -no-undefined -o $@ $(LIBOBJ) $(TLIBS) \
513 ${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8" 568 ${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8"
514 569
515 libtclsqlite3.la: tclsqlite.lo libsqlite3.la 570 libtclsqlite3.la: tclsqlite.lo libsqlite3.la
516 $(LTLINK) -no-undefined -o $@ tclsqlite.lo \ 571 $(LTLINK) -no-undefined -o $@ tclsqlite.lo \
517 libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \ 572 libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
518 -rpath "$(TCLLIBDIR)" \ 573 -rpath "$(TCLLIBDIR)" \
519 -version-info "8:6:8" \ 574 -version-info "8:6:8" \
520 -avoid-version 575 -avoid-version
521 576
522 sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h 577 sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h
523 » $(LTLINK) $(READLINE_FLAGS) \ 578 » $(LTLINK) $(READLINE_FLAGS) $(SHELL_OPT) -o $@ \
524 » » -o $@ $(TOP)/src/shell.c libsqlite3.la \ 579 » » $(TOP)/src/shell.c libsqlite3.la \
525 $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)" 580 $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
526 581
527 mptester$(EXE):»sqlite3.c $(TOP)/mptest/mptest.c 582 sqldiff$(TEXE):»$(TOP)/tool/sqldiff.c sqlite3.c sqlite3.h
583 » $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c sqlite3.c $(TLIBS)
584
585 fuzzershell$(TEXE):» $(TOP)/tool/fuzzershell.c sqlite3.c sqlite3.h
586 » $(LTLINK) -o $@ $(FUZZERSHELL_OPT) \
587 » $(TOP)/tool/fuzzershell.c sqlite3.c $(TLIBS)
588
589 fuzzcheck$(TEXE):» $(TOP)/test/fuzzcheck.c sqlite3.c sqlite3.h
590 » $(LTLINK) -o $@ $(FUZZCHECK_OPT) $(TOP)/test/fuzzcheck.c sqlite3.c $(TLI BS)
591
592 mptester$(TEXE):» sqlite3.c $(TOP)/mptest/mptest.c
528 $(LTLINK) -o $@ -I. $(TOP)/mptest/mptest.c sqlite3.c \ 593 $(LTLINK) -o $@ -I. $(TOP)/mptest/mptest.c sqlite3.c \
529 $(TLIBS) -rpath "$(libdir)" 594 $(TLIBS) -rpath "$(libdir)"
530 595
596 MPTEST1=./mptester$(TEXE) mptest.db $(TOP)/mptest/crash01.test --repeat 20
597 MPTEST2=./mptester$(TEXE) mptest.db $(TOP)/mptest/multiwrite01.test --repeat 20
598 mptest: mptester$(TEXE)
599 rm -f mptest.db
600 $(MPTEST1) --journalmode DELETE
601 $(MPTEST2) --journalmode WAL
602 $(MPTEST1) --journalmode WAL
603 $(MPTEST2) --journalmode PERSIST
604 $(MPTEST1) --journalmode PERSIST
605 $(MPTEST2) --journalmode TRUNCATE
606 $(MPTEST1) --journalmode TRUNCATE
607 $(MPTEST2) --journalmode DELETE
608
531 609
532 # This target creates a directory named "tsrc" and fills it with 610 # This target creates a directory named "tsrc" and fills it with
533 # copies of all of the C source code and header files needed to 611 # copies of all of the C source code and header files needed to
534 # build on the target system. Some of the C source code and header 612 # build on the target system. Some of the C source code and header
535 # files are automatically generated. This target takes care of 613 # files are automatically generated. This target takes care of
536 # all that automatic generation. 614 # all that automatic generation.
537 # 615 #
538 .target_source:»$(SRC) $(TOP)/tool/vdbe-compress.tcl 616 .target_source:»$(SRC) $(TOP)/tool/vdbe-compress.tcl fts5.c
539 rm -rf tsrc 617 rm -rf tsrc
540 mkdir tsrc 618 mkdir tsrc
541 cp -f $(SRC) tsrc 619 cp -f $(SRC) tsrc
542 rm tsrc/sqlite.h.in tsrc/parse.y 620 rm tsrc/sqlite.h.in tsrc/parse.y
543 $(TCLSH_CMD) $(TOP)/tool/vdbe-compress.tcl $(OPTS) <tsrc/vdbe.c >vdbe.ne w 621 $(TCLSH_CMD) $(TOP)/tool/vdbe-compress.tcl $(OPTS) <tsrc/vdbe.c >vdbe.ne w
544 mv vdbe.new tsrc/vdbe.c 622 mv vdbe.new tsrc/vdbe.c
623 cp fts5.c fts5.h tsrc
545 touch .target_source 624 touch .target_source
546 625
547 sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl 626 sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl
548 $(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl 627 $(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl
549 cp tsrc/shell.c tsrc/sqlite3ext.h . 628 cp tsrc/shell.c tsrc/sqlite3ext.h .
550 629
630 sqlite3ext.h: .target_source
631 cp tsrc/sqlite3ext.h .
632
551 tclsqlite3.c: sqlite3.c 633 tclsqlite3.c: sqlite3.c
552 echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c 634 echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c
553 cat sqlite3.c >>tclsqlite3.c 635 cat sqlite3.c >>tclsqlite3.c
554 echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c 636 echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c
555 cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c 637 cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
556 638
557 sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl 639 sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl
558 $(TCLSH_CMD) $(TOP)/tool/split-sqlite3c.tcl 640 $(TCLSH_CMD) $(TOP)/tool/split-sqlite3c.tcl
559 641
560 # Rule to build the amalgamation 642 # Rule to build the amalgamation
561 # 643 #
562 sqlite3.lo: sqlite3.c 644 sqlite3.lo: sqlite3.c
563 $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c 645 $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
564 646
565 # Rules to build the LEMON compiler generator 647 # Rules to build the LEMON compiler generator
566 # 648 #
567 lemon$(BEXE):» $(TOP)/tool/lemon.c $(TOP)/src/lempar.c 649 lemon$(BEXE):» $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
568 $(BCC) -o $@ $(TOP)/tool/lemon.c 650 $(BCC) -o $@ $(TOP)/tool/lemon.c
569 » cp $(TOP)/src/lempar.c . 651 » cp $(TOP)/tool/lempar.c .
570 652
571 # Rules to build individual *.o files from generated *.c files. This 653 # Rules to build individual *.o files from generated *.c files. This
572 # applies to: 654 # applies to:
573 # 655 #
574 # parse.o 656 # parse.o
575 # opcodes.o 657 # opcodes.o
576 # 658 #
577 parse.lo: parse.c $(HDR) 659 parse.lo: parse.c $(HDR)
578 $(LTCOMPILE) $(TEMP_STORE) -c parse.c 660 $(LTCOMPILE) $(TEMP_STORE) -c parse.c
579 661
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 696
615 complete.lo: $(TOP)/src/complete.c $(HDR) 697 complete.lo: $(TOP)/src/complete.c $(HDR)
616 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/complete.c 698 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/complete.c
617 699
618 ctime.lo: $(TOP)/src/ctime.c $(HDR) 700 ctime.lo: $(TOP)/src/ctime.c $(HDR)
619 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/ctime.c 701 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/ctime.c
620 702
621 date.lo: $(TOP)/src/date.c $(HDR) 703 date.lo: $(TOP)/src/date.c $(HDR)
622 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c 704 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c
623 705
706 dbstat.lo: $(TOP)/src/dbstat.c $(HDR)
707 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/dbstat.c
708
624 delete.lo: $(TOP)/src/delete.c $(HDR) 709 delete.lo: $(TOP)/src/delete.c $(HDR)
625 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c 710 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c
626 711
627 expr.lo: $(TOP)/src/expr.c $(HDR) 712 expr.lo: $(TOP)/src/expr.c $(HDR)
628 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/expr.c 713 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/expr.c
629 714
630 fault.lo: $(TOP)/src/fault.c $(HDR) 715 fault.lo: $(TOP)/src/fault.c $(HDR)
631 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fault.c 716 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fault.c
632 717
633 fkey.lo: $(TOP)/src/fkey.c $(HDR) 718 fkey.lo: $(TOP)/src/fkey.c $(HDR)
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 822
738 table.lo: $(TOP)/src/table.c $(HDR) 823 table.lo: $(TOP)/src/table.c $(HDR)
739 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c 824 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c
740 825
741 threads.lo: $(TOP)/src/threads.c $(HDR) 826 threads.lo: $(TOP)/src/threads.c $(HDR)
742 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/threads.c 827 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/threads.c
743 828
744 tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR) 829 tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
745 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/tokenize.c 830 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/tokenize.c
746 831
832 treeview.lo: $(TOP)/src/treeview.c $(HDR)
833 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/treeview.c
834
747 trigger.lo: $(TOP)/src/trigger.c $(HDR) 835 trigger.lo: $(TOP)/src/trigger.c $(HDR)
748 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/trigger.c 836 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/trigger.c
749 837
750 update.lo: $(TOP)/src/update.c $(HDR) 838 update.lo: $(TOP)/src/update.c $(HDR)
751 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/update.c 839 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/update.c
752 840
753 utf.lo: $(TOP)/src/utf.c $(HDR) 841 utf.lo: $(TOP)/src/utf.c $(HDR)
754 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/utf.c 842 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/utf.c
755 843
756 util.lo: $(TOP)/src/util.c $(HDR) 844 util.lo: $(TOP)/src/util.c $(HDR)
(...skipping 28 matching lines...) Expand all
785 873
786 wal.lo: $(TOP)/src/wal.c $(HDR) 874 wal.lo: $(TOP)/src/wal.c $(HDR)
787 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wal.c 875 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wal.c
788 876
789 walker.lo: $(TOP)/src/walker.c $(HDR) 877 walker.lo: $(TOP)/src/walker.c $(HDR)
790 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/walker.c 878 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/walker.c
791 879
792 where.lo: $(TOP)/src/where.c $(HDR) 880 where.lo: $(TOP)/src/where.c $(HDR)
793 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/where.c 881 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/where.c
794 882
883 wherecode.lo: $(TOP)/src/wherecode.c $(HDR)
884 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wherecode.c
885
886 whereexpr.lo: $(TOP)/src/whereexpr.c $(HDR)
887 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/whereexpr.c
888
795 tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR) 889 tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR)
796 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c 890 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c
797 891
798 tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR) 892 tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR)
799 $(LTCOMPILE) -DTCLSH=1 -o $@ -c $(TOP)/src/tclsqlite.c 893 $(LTCOMPILE) -DTCLSH=1 -o $@ -c $(TOP)/src/tclsqlite.c
800 894
801 tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR) 895 tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR)
802 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c 896 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c
803 897
804 tclsqlite3$(TEXE): tclsqlite-shell.lo libsqlite3.la 898 tclsqlite3$(TEXE): tclsqlite-shell.lo libsqlite3.la
805 $(LTLINK) -o $@ tclsqlite-shell.lo \ 899 $(LTLINK) -o $@ tclsqlite-shell.lo \
806 libsqlite3.la $(LIBTCL) 900 libsqlite3.la $(LIBTCL)
807 901
808 # Rules to build opcodes.c and opcodes.h 902 # Rules to build opcodes.c and opcodes.h
809 # 903 #
810 opcodes.c:» opcodes.h $(TOP)/mkopcodec.awk 904 opcodes.c:» opcodes.h $(TOP)/tool/mkopcodec.tcl
811 » $(NAWK) -f $(TOP)/mkopcodec.awk opcodes.h >opcodes.c 905 » $(TCLSH_CMD) $(TOP)/tool/mkopcodec.tcl opcodes.h >opcodes.c
812 906
813 opcodes.h:» parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk 907 opcodes.h:» parse.h $(TOP)/src/vdbe.c $(TOP)/tool/mkopcodeh.tcl
814 » cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes .h 908 » cat parse.h $(TOP)/src/vdbe.c | $(TCLSH_CMD) $(TOP)/tool/mkopcodeh.tcl > opcodes.h
815 909
816 # Rules to build parse.c and parse.h - the outputs of lemon. 910 # Rules to build parse.c and parse.h - the outputs of lemon.
817 # 911 #
818 parse.h: parse.c 912 parse.h: parse.c
819 913
820 parse.c:» $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/addopcodes.awk 914 parse.c:» $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/tool/addopcodes.tcl
821 cp $(TOP)/src/parse.y . 915 cp $(TOP)/src/parse.y .
822 rm -f parse.h 916 rm -f parse.h
823 ./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y 917 ./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y
824 mv parse.h parse.h.temp 918 mv parse.h parse.h.temp
825 » $(NAWK) -f $(TOP)/addopcodes.awk parse.h.temp >parse.h 919 » $(TCLSH_CMD) $(TOP)/tool/addopcodes.tcl parse.h.temp >parse.h
826 920
827 sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest.uuid $(TOP)/VERSION 921 sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest.uuid $(TOP)/VERSION
828 $(TCLSH_CMD) $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h 922 $(TCLSH_CMD) $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h
829 923
830 keywordhash.h: $(TOP)/tool/mkkeywordhash.c 924 keywordhash.h: $(TOP)/tool/mkkeywordhash.c
831 $(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/ mkkeywordhash.c 925 $(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/ mkkeywordhash.c
832 ./mkkeywordhash$(BEXE) >keywordhash.h 926 ./mkkeywordhash$(BEXE) >keywordhash.h
833 927
834 928
835 929
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 985
892 fts3_unicode2.lo: $(TOP)/ext/fts3/fts3_unicode2.c $(HDR) $(EXTHDR) 986 fts3_unicode2.lo: $(TOP)/ext/fts3/fts3_unicode2.c $(HDR) $(EXTHDR)
893 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode2.c 987 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode2.c
894 988
895 fts3_write.lo: $(TOP)/ext/fts3/fts3_write.c $(HDR) $(EXTHDR) 989 fts3_write.lo: $(TOP)/ext/fts3/fts3_write.c $(HDR) $(EXTHDR)
896 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_write.c 990 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_write.c
897 991
898 rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR) $(EXTHDR) 992 rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR) $(EXTHDR)
899 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/rtree/rtree.c 993 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/rtree/rtree.c
900 994
995 json1.lo: $(TOP)/ext/misc/json1.c
996 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/misc/json1.c
997
998 # FTS5 things
999 #
1000 FTS5_SRC = \
1001 $(TOP)/ext/fts5/fts5.h \
1002 $(TOP)/ext/fts5/fts5Int.h \
1003 $(TOP)/ext/fts5/fts5_aux.c \
1004 $(TOP)/ext/fts5/fts5_buffer.c \
1005 $(TOP)/ext/fts5/fts5_main.c \
1006 $(TOP)/ext/fts5/fts5_config.c \
1007 $(TOP)/ext/fts5/fts5_expr.c \
1008 $(TOP)/ext/fts5/fts5_hash.c \
1009 $(TOP)/ext/fts5/fts5_index.c \
1010 fts5parse.c fts5parse.h \
1011 $(TOP)/ext/fts5/fts5_storage.c \
1012 $(TOP)/ext/fts5/fts5_tokenize.c \
1013 $(TOP)/ext/fts5/fts5_unicode2.c \
1014 $(TOP)/ext/fts5/fts5_varint.c \
1015 $(TOP)/ext/fts5/fts5_vocab.c \
1016
1017 fts5parse.c: $(TOP)/ext/fts5/fts5parse.y lemon
1018 cp $(TOP)/ext/fts5/fts5parse.y .
1019 rm -f fts5parse.h
1020 ./lemon $(OPTS) fts5parse.y
1021
1022 fts5parse.h: fts5parse.c
1023
1024 fts5.c: $(FTS5_SRC)
1025 $(TCLSH_CMD) $(TOP)/ext/fts5/tool/mkfts5c.tcl
1026 cp $(TOP)/ext/fts5/fts5.h .
1027
1028 fts5.lo: fts5.c $(HDR) $(EXTHDR)
1029 $(LTCOMPILE) -DSQLITE_CORE -c fts5.c
1030
901 1031
902 # Rules to build the 'testfixture' application. 1032 # Rules to build the 'testfixture' application.
903 # 1033 #
904 # If using the amalgamation, use sqlite3.c directly to build the test 1034 # If using the amalgamation, use sqlite3.c directly to build the test
905 # fixture. Otherwise link against libsqlite3.la. (This distinction is 1035 # fixture. Otherwise link against libsqlite3.la. (This distinction is
906 # necessary because the test fixture requires non-API symbols which are 1036 # necessary because the test fixture requires non-API symbols which are
907 # hidden when the library is built via the amalgamation). 1037 # hidden when the library is built via the amalgamation).
908 # 1038 #
909 TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 1039 TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1
910 TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE 1040 TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE
911 TESTFIXTURE_FLAGS += -DBUILD_sqlite 1041 TESTFIXTURE_FLAGS += -DBUILD_sqlite
912 1042
913 TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la 1043 TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la
914 TESTFIXTURE_SRC1 = sqlite3.c 1044 TESTFIXTURE_SRC1 = sqlite3.c
915 TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c 1045 TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c
916 TESTFIXTURE_SRC += $(TESTFIXTURE_SRC$(USE_AMALGAMATION)) 1046 TESTFIXTURE_SRC += $(TESTFIXTURE_SRC$(USE_AMALGAMATION))
917 1047
918 testfixture$(TEXE): $(TESTFIXTURE_SRC) 1048 testfixture$(TEXE): $(TESTFIXTURE_SRC)
919 $(LTLINK) -DSQLITE_NO_SYNC=1 $(TEMP_STORE) $(TESTFIXTURE_FLAGS) \ 1049 $(LTLINK) -DSQLITE_NO_SYNC=1 $(TEMP_STORE) $(TESTFIXTURE_FLAGS) \
920 -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS) 1050 -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS)
921 1051
1052 # A very detailed test running most or all test cases
1053 fulltest: $(TESTPROGS) fuzztest
1054 ./testfixture$(TEXE) $(TOP)/test/all.test $(TESTOPTS)
922 1055
923 fulltest:» testfixture$(TEXE) sqlite3$(TEXE) 1056 # Really really long testing
924 » ./testfixture$(TEXE) $(TOP)/test/all.test 1057 soaktest:» $(TESTPROGS)
1058 » ./testfixture$(TEXE) $(TOP)/test/all.test -soak=1 $(TESTOPTS)
925 1059
926 soaktest:» testfixture$(TEXE) sqlite3$(TEXE) 1060 # Do extra testing but not everything.
927 » ./testfixture$(TEXE) $(TOP)/test/all.test -soak=1 1061 fulltestonly:» $(TESTPROGS) fuzztest
928
929 fulltestonly:» testfixture$(TEXE) sqlite3$(TEXE)
930 ./testfixture$(TEXE) $(TOP)/test/full.test 1062 ./testfixture$(TEXE) $(TOP)/test/full.test
931 1063
932 test:» testfixture$(TEXE) sqlite3$(TEXE) 1064 # Fuzz testing
933 » ./testfixture$(TEXE) $(TOP)/test/veryquick.test 1065 fuzztest:» fuzzcheck$(TEXE) $(FUZZDATA)
1066 » ./fuzzcheck$(TEXE) $(FUZZDATA)
934 1067
935 sqlite3_analyzer.c: sqlite3.c $(TOP)/src/test_stat.c $(TOP)/src/tclsqlite.c $(TO P)/tool/spaceanal.tcl 1068 fastfuzztest:» fuzzcheck$(TEXE) $(FUZZDATA)
1069 » ./fuzzcheck$(TEXE) --limit-mem 100M $(FUZZDATA)
1070
1071 valgrindfuzz:» fuzzcheck$(TEXT) $(FUZZDATA)
1072 » valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M --timeout 600 $(FUZZDATA)
1073
1074 # Minimal testing that runs in less than 3 minutes
1075 #
1076 quicktest:» ./testfixture$(TEXE)
1077 » ./testfixture$(TEXE) $(TOP)/test/extraquick.test $(TESTOPTS)
1078
1079 # This is the common case. Run many tests that do not take too long,
1080 # including fuzzcheck, sqlite3_analyzer, and sqldiff tests.
1081 #
1082 test:» $(TESTPROGS) fastfuzztest
1083 » ./testfixture$(TEXE) $(TOP)/test/veryquick.test $(TESTOPTS)
1084
1085 # Run a test using valgrind. This can take a really long time
1086 # because valgrind is so much slower than a native machine.
1087 #
1088 valgrindtest:» $(TESTPROGS) valgrindfuzz
1089 » OMIT_MISUSE=1 valgrind -v ./testfixture$(TEXE) $(TOP)/test/permutations. test valgrind $(TESTOPTS)
1090
1091 # A very fast test that checks basic sanity. The name comes from
1092 # the 60s-era electronics testing: "Turn it on and see if smoke
1093 # comes out."
1094 #
1095 smoketest:» $(TESTPROGS) fuzzcheck$(TEXE)
1096 » ./testfixture$(TEXE) $(TOP)/test/main.test $(TESTOPTS)
1097
1098 sqlite3_analyzer.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
936 echo "#define TCLSH 2" > $@ 1099 echo "#define TCLSH 2" > $@
937 » cat sqlite3.c $(TOP)/src/test_stat.c $(TOP)/src/tclsqlite.c >> $@ 1100 » echo "#define SQLITE_ENABLE_DBSTAT_VTAB 1" >> $@
1101 » cat sqlite3.c $(TOP)/src/tclsqlite.c >> $@
938 echo "static const char *tclsh_main_loop(void){" >> $@ 1102 echo "static const char *tclsh_main_loop(void){" >> $@
939 echo "static const char *zMainloop = " >> $@ 1103 echo "static const char *zMainloop = " >> $@
940 » $(NAWK) -f $(TOP)/tool/tostr.awk $(TOP)/tool/spaceanal.tcl >> $@ 1104 » $(TCLSH_CMD) $(TOP)/tool/tostr.tcl $(TOP)/tool/spaceanal.tcl >> $@
941 echo "; return zMainloop; }" >> $@ 1105 echo "; return zMainloop; }" >> $@
942 1106
943 sqlite3_analyzer$(TEXE): sqlite3_analyzer.c 1107 sqlite3_analyzer$(TEXE): sqlite3_analyzer.c
944 $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS) 1108 $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS)
945 1109
946 showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo 1110 showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo
947 $(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS) 1111 $(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS)
948 1112
949 showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo 1113 showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo
950 $(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS) 1114 $(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS)
951 1115
952 showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo 1116 showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo
953 $(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS) 1117 $(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS)
954 1118
955 showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo 1119 showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo
956 $(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS) 1120 $(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS)
957 1121
958 rollback-test$(TEXE): $(TOP)/tool/rollback-test.c sqlite3.lo 1122 rollback-test$(TEXE): $(TOP)/tool/rollback-test.c sqlite3.lo
959 $(LTLINK) -o $@ $(TOP)/tool/rollback-test.c sqlite3.lo $(TLIBS) 1123 $(LTLINK) -o $@ $(TOP)/tool/rollback-test.c sqlite3.lo $(TLIBS)
960 1124
961 LogEst$(TEXE): $(TOP)/tool/logest.c sqlite3.h 1125 LogEst$(TEXE): $(TOP)/tool/logest.c sqlite3.h
962 $(LTLINK) -I. -o $@ $(TOP)/tool/logest.c 1126 $(LTLINK) -I. -o $@ $(TOP)/tool/logest.c
963 1127
964 wordcount$(TEXE): $(TOP)/test/wordcount.c sqlite3.c 1128 wordcount$(TEXE): $(TOP)/test/wordcount.c sqlite3.c
965 $(LTLINK) -o $@ $(TOP)/test/wordcount.c sqlite3.c $(TLIBS) 1129 $(LTLINK) -o $@ $(TOP)/test/wordcount.c sqlite3.c $(TLIBS)
966 1130
967 speedtest1$(TEXE):» $(TOP)/test/wordcount.c sqlite3.lo 1131 speedtest1$(TEXE):» $(TOP)/test/speedtest1.c sqlite3.lo
968 $(LTLINK) -o $@ $(TOP)/test/speedtest1.c sqlite3.lo $(TLIBS) 1132 $(LTLINK) -o $@ $(TOP)/test/speedtest1.c sqlite3.lo $(TLIBS)
969 1133
1134 # This target will fail if the SQLite amalgamation contains any exported
1135 # symbols that do not begin with "sqlite3_". It is run as part of the
1136 # releasetest.tcl script.
1137 #
1138 checksymbols: sqlite3.lo
1139 nm -g --defined-only sqlite3.o | grep -v " sqlite3_" ; test $$? -ne 0
1140 echo '0 errors out of 1 tests'
1141
1142 # Build the amalgamation-autoconf package.
1143 #
1144 amalgamation-tarball: sqlite3.c
1145 TOP=$(TOP) sh $(TOP)/tool/mkautoconfamal.sh
1146
1147 # The next two rules are used to support the "threadtest" target. Building
1148 # threadtest runs a few thread-safety tests that are implemented in C. This
1149 # target is invoked by the releasetest.tcl script.
1150 #
1151 THREADTEST3_SRC = $(TOP)/test/threadtest3.c \
1152 $(TOP)/test/tt3_checkpoint.c \
1153 $(TOP)/test/tt3_index.c \
1154 $(TOP)/test/tt3_vacuum.c \
1155 $(TOP)/test/tt3_stress.c \
1156 $(TOP)/test/tt3_lookaside1.c
1157
1158 threadtest3$(TEXE): sqlite3.lo $(THREADTEST3_SRC)
1159 $(LTLINK) $(TOP)/test/threadtest3.c $(TOP)/src/test_multiplex.c sqlite3. lo -o $@ $(TLIBS)
1160
1161 threadtest: threadtest3$(TEXE)
1162 ./threadtest3$(TEXE)
1163
1164 releasetest:
1165 $(TCLSH_CMD) $(TOP)/test/releasetest.tcl
1166
970 # Standard install and cleanup targets 1167 # Standard install and cleanup targets
971 # 1168 #
972 lib_install: libsqlite3.la 1169 lib_install: libsqlite3.la
973 $(INSTALL) -d $(DESTDIR)$(libdir) 1170 $(INSTALL) -d $(DESTDIR)$(libdir)
974 $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir) 1171 $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir)
975 1172
976 install: sqlite3$(BEXE) lib_install sqlite3.h sqlite3.pc ${HAVE_TCL:1=tcl _install} 1173 install: sqlite3$(BEXE) lib_install sqlite3.h sqlite3.pc ${HAVE_TCL:1=tcl _install}
977 $(INSTALL) -d $(DESTDIR)$(bindir) 1174 $(INSTALL) -d $(DESTDIR)$(bindir)
978 $(LTINSTALL) sqlite3$(BEXE) $(DESTDIR)$(bindir) 1175 $(LTINSTALL) sqlite3$(BEXE) $(DESTDIR)$(bindir)
979 $(INSTALL) -d $(DESTDIR)$(includedir) 1176 $(INSTALL) -d $(DESTDIR)$(includedir)
980 $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir) 1177 $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir)
981 $(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir) 1178 $(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir)
982 $(INSTALL) -d $(DESTDIR)$(pkgconfigdir) 1179 $(INSTALL) -d $(DESTDIR)$(pkgconfigdir)
983 $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir) 1180 $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir)
984 1181
985 pkgIndex.tcl: 1182 pkgIndex.tcl:
986 » echo 'package ifneeded sqlite3 $(RELEASE) [list load $(TCLLIBDIR)/libtcl sqlite3.so sqlite3]' > $@ 1183 » echo 'package ifneeded sqlite3 $(RELEASE) [list load $(TCLLIBDIR)/libtcl sqlite3$(SHLIB_SUFFIX) sqlite3]' > $@
987 tcl_install: lib_install libtclsqlite3.la pkgIndex.tcl 1184 tcl_install: lib_install libtclsqlite3.la pkgIndex.tcl
988 $(INSTALL) -d $(DESTDIR)$(TCLLIBDIR) 1185 $(INSTALL) -d $(DESTDIR)$(TCLLIBDIR)
989 $(LTINSTALL) libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR) 1186 $(LTINSTALL) libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)
990 rm -f $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)/lib tclsqlite3.a 1187 rm -f $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)/lib tclsqlite3.a
991 $(INSTALL) -m 0644 pkgIndex.tcl $(DESTDIR)$(TCLLIBDIR) 1188 $(INSTALL) -m 0644 pkgIndex.tcl $(DESTDIR)$(TCLLIBDIR)
992 1189
993 clean: 1190 clean:
994 rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la 1191 rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la
995 rm -f sqlite3.h opcodes.* 1192 rm -f sqlite3.h opcodes.*
996 rm -rf .libs .deps 1193 rm -rf .libs .deps
997 rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz 1194 rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz
998 rm -f mkkeywordhash$(BEXE) keywordhash.h 1195 rm -f mkkeywordhash$(BEXE) keywordhash.h
999 rm -f *.da *.bb *.bbg gmon.out 1196 rm -f *.da *.bb *.bbg gmon.out
1000 rm -rf quota2a quota2b quota2c 1197 rm -rf quota2a quota2b quota2c
1001 rm -rf tsrc .target_source 1198 rm -rf tsrc .target_source
1002 rm -f tclsqlite3$(TEXE) 1199 rm -f tclsqlite3$(TEXE)
1003 rm -f testfixture$(TEXE) test.db 1200 rm -f testfixture$(TEXE) test.db
1004 rm -f LogEst$(TEXE) fts3view$(TEXE) rollback-test$(TEXE) showdb$(TEXE) 1201 rm -f LogEst$(TEXE) fts3view$(TEXE) rollback-test$(TEXE) showdb$(TEXE)
1005 rm -f showjournal$(TEXE) showstat4$(TEXE) showwal$(TEXE) speedtest1$(TEX E) 1202 rm -f showjournal$(TEXE) showstat4$(TEXE) showwal$(TEXE) speedtest1$(TEX E)
1006 rm -f wordcount$(TEXE) 1203 rm -f wordcount$(TEXE)
1007 rm -f sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def 1204 rm -f sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def
1008 rm -f sqlite3.c 1205 rm -f sqlite3.c
1009 rm -f sqlite3rc.h 1206 rm -f sqlite3rc.h
1010 rm -f shell.c sqlite3ext.h 1207 rm -f shell.c sqlite3ext.h
1011 rm -f sqlite3_analyzer$(TEXE) sqlite3_analyzer.c 1208 rm -f sqlite3_analyzer$(TEXE) sqlite3_analyzer.c
1012 rm -f sqlite-*-output.vsix 1209 rm -f sqlite-*-output.vsix
1013 rm -f mptester mptester.exe 1210 rm -f mptester mptester.exe
1211 rm -f fuzzershell fuzzershell.exe
1212 rm -f fuzzcheck fuzzcheck.exe
1213 rm -f sqldiff sqldiff.exe
1214 rm -f fts5.* fts5parse.*
1014 1215
1015 distclean: clean 1216 distclean: clean
1016 » rm -f config.log config.status libtool Makefile sqlite3.pc 1217 » rm -f config.h config.log config.status libtool Makefile sqlite3.pc
1017 1218
1018 # 1219 #
1019 # Windows section 1220 # Windows section
1020 # 1221 #
1021 dll: sqlite3.dll 1222 dll: sqlite3.dll
1022 1223
1023 REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o) 1224 REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o)
1024 1225
1025 $(REAL_LIBOBJ): $(LIBOBJ) 1226 $(REAL_LIBOBJ): $(LIBOBJ)
1026 1227
1027 sqlite3.def: $(REAL_LIBOBJ) 1228 sqlite3.def: $(REAL_LIBOBJ)
1028 echo 'EXPORTS' >sqlite3.def 1229 echo 'EXPORTS' >sqlite3.def
1029 nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \ 1230 nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \
1030 | sed 's/^.* _//' >>sqlite3.def 1231 | sed 's/^.* _//' >>sqlite3.def
1031 1232
1032 sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def 1233 sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def
1033 $(TCC) -shared -o $@ sqlite3.def \ 1234 $(TCC) -shared -o $@ sqlite3.def \
1034 -Wl,"--strip-all" $(REAL_LIBOBJ) 1235 -Wl,"--strip-all" $(REAL_LIBOBJ)
OLDNEW
« no previous file with comments | « third_party/sqlite/README.chromium ('k') | third_party/sqlite/sqlite-src-3100200/Makefile.linux-gcc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698