Artifact
f012feb95fc4acfb583f89b6f9d1dc6253a8f08d:
- File
main.mk
— part of check-in
[a24480a4]
at
2015-05-04 18:31:09
on branch dbstat-in-amalgamation
— Rename the test_stat.c source file to dbstat.c and rework the makefiles to
make dbstat.c a first-class source module.
(user:
drh
size: 24548)
[more...]
0000: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0010: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0020: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0030: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0040: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a ###############.
0050: 23 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 # The following
0060: 6d 61 63 72 6f 73 20 73 68 6f 75 6c 64 20 62 65 macros should be
0070: 20 64 65 66 69 6e 65 64 20 62 65 66 6f 72 65 20 defined before
0080: 74 68 69 73 20 73 63 72 69 70 74 20 69 73 0a 23 this script is.#
0090: 20 69 6e 76 6f 6b 65 64 3a 0a 23 0a 23 20 54 4f invoked:.#.# TO
00a0: 50 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 P T
00b0: 68 65 20 74 6f 70 6c 65 76 65 6c 20 64 69 72 65 he toplevel dire
00c0: 63 74 6f 72 79 20 6f 66 20 74 68 65 20 73 6f 75 ctory of the sou
00d0: 72 63 65 20 74 72 65 65 2e 20 20 54 68 69 73 20 rce tree. This
00e0: 69 73 20 74 68 65 0a 23 20 20 20 20 20 20 20 20 is the.#
00f0: 20 20 20 20 20 20 20 20 20 20 64 69 72 65 63 74 direct
0100: 6f 72 79 20 74 68 61 74 20 63 6f 6e 74 61 69 6e ory that contain
0110: 73 20 74 68 69 73 20 22 4d 61 6b 65 66 69 6c 65 s this "Makefile
0120: 2e 69 6e 22 20 61 6e 64 20 74 68 65 0a 23 20 20 .in" and the.#
0130: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0140: 22 63 6f 6e 66 69 67 75 72 65 2e 69 6e 22 20 73 "configure.in" s
0150: 63 72 69 70 74 2e 0a 23 0a 23 20 42 43 43 20 20 cript..#.# BCC
0160: 20 20 20 20 20 20 20 20 20 20 20 20 43 20 43 6f C Co
0170: 6d 70 69 6c 65 72 20 61 6e 64 20 6f 70 74 69 6f mpiler and optio
0180: 6e 73 20 66 6f 72 20 75 73 65 20 69 6e 20 62 75 ns for use in bu
0190: 69 6c 64 69 6e 67 20 65 78 65 63 75 74 61 62 6c ilding executabl
01a0: 65 73 20 74 68 61 74 0a 23 20 20 20 20 20 20 20 es that.#
01b0: 20 20 20 20 20 20 20 20 20 20 20 77 69 6c 6c 20 will
01c0: 72 75 6e 20 6f 6e 20 74 68 65 20 70 6c 61 74 66 run on the platf
01d0: 6f 72 6d 20 74 68 61 74 20 69 73 20 64 6f 69 6e orm that is doin
01e0: 67 20 74 68 65 20 62 75 69 6c 64 2e 0a 23 0a 23 g the build..#.#
01f0: 20 54 48 52 45 41 44 4c 49 42 20 20 20 20 20 20 THREADLIB
0200: 20 20 53 70 65 63 69 66 79 20 61 6e 79 20 65 78 Specify any ex
0210: 74 72 61 20 6c 69 6e 6b 65 72 20 6f 70 74 69 6f tra linker optio
0220: 6e 73 20 6e 65 65 64 65 64 20 74 6f 20 6d 61 6b ns needed to mak
0230: 65 20 74 68 65 20 6c 69 62 72 61 72 79 0a 23 20 e the library.#
0240: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0250: 20 74 68 72 65 61 64 20 73 61 66 65 0a 23 0a 23 thread safe.#.#
0260: 20 4f 50 54 53 20 20 20 20 20 20 20 20 20 20 20 OPTS
0270: 20 20 45 78 74 72 61 20 63 6f 6d 70 69 6c 65 72 Extra compiler
0280: 20 63 6f 6d 6d 61 6e 64 2d 6c 69 6e 65 20 6f 70 command-line op
0290: 74 69 6f 6e 73 2e 0a 23 0a 23 20 45 58 45 20 20 tions..#.# EXE
02a0: 20 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 The
02b0: 73 75 66 66 69 78 20 74 6f 20 61 64 64 20 74 6f suffix to add to
02c0: 20 65 78 65 63 75 74 61 62 6c 65 20 66 69 6c 65 executable file
02d0: 73 2e 20 20 22 2e 65 78 65 22 20 66 6f 72 20 77 s. ".exe" for w
02e0: 69 6e 64 6f 77 73 0a 23 20 20 20 20 20 20 20 20 indows.#
02f0: 20 20 20 20 20 20 20 20 20 20 61 6e 64 20 22 22 and ""
0300: 20 66 6f 72 20 55 6e 69 78 2e 0a 23 0a 23 20 54 for Unix..#.# T
0310: 43 43 20 20 20 20 20 20 20 20 20 20 20 20 20 20 CC
0320: 43 20 43 6f 6d 70 69 6c 65 72 20 61 6e 64 20 6f C Compiler and o
0330: 70 74 69 6f 6e 73 20 66 6f 72 20 75 73 65 20 69 ptions for use i
0340: 6e 20 62 75 69 6c 64 69 6e 67 20 65 78 65 63 75 n building execu
0350: 74 61 62 6c 65 73 20 74 68 61 74 20 0a 23 20 20 tables that .#
0360: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0370: 77 69 6c 6c 20 72 75 6e 20 6f 6e 20 74 68 65 20 will run on the
0380: 74 61 72 67 65 74 20 70 6c 61 74 66 6f 72 6d 2e target platform.
0390: 20 20 54 68 69 73 20 69 73 20 75 73 75 61 6c 6c This is usuall
03a0: 79 20 74 68 65 20 73 61 6d 65 0a 23 20 20 20 20 y the same.#
03b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 73 as
03c0: 20 42 43 43 2c 20 75 6e 6c 65 73 73 20 79 6f 75 BCC, unless you
03d0: 20 61 72 65 20 63 72 6f 73 73 2d 63 6f 6d 70 69 are cross-compi
03e0: 6c 69 6e 67 2e 0a 23 0a 23 20 41 52 20 20 20 20 ling..#.# AR
03f0: 20 20 20 20 20 20 20 20 20 20 20 54 6f 6f 6c 73 Tools
0400: 20 75 73 65 64 20 74 6f 20 62 75 69 6c 64 20 61 used to build a
0410: 20 73 74 61 74 69 63 20 6c 69 62 72 61 72 79 2e static library.
0420: 0a 23 20 52 41 4e 4c 49 42 0a 23 0a 23 20 54 43 .# RANLIB.#.# TC
0430: 4c 5f 46 4c 41 47 53 20 20 20 20 20 20 20 20 45 L_FLAGS E
0440: 78 74 72 61 20 63 6f 6d 70 69 6c 65 72 20 6f 70 xtra compiler op
0450: 74 69 6f 6e 73 20 6e 65 65 64 65 64 20 66 6f 72 tions needed for
0460: 20 70 72 6f 67 72 61 6d 73 20 74 68 61 74 20 75 programs that u
0470: 73 65 20 74 68 65 0a 23 20 20 20 20 20 20 20 20 se the.#
0480: 20 20 20 20 20 20 20 20 20 20 54 43 4c 20 6c 69 TCL li
0490: 62 72 61 72 79 2e 0a 23 0a 23 20 4c 49 42 54 43 brary..#.# LIBTC
04a0: 4c 20 20 20 20 20 20 20 20 20 20 20 4c 69 6e 6b L Link
04b0: 65 72 20 6f 70 74 69 6f 6e 73 20 6e 65 65 64 65 er options neede
04c0: 64 20 74 6f 20 6c 69 6e 6b 20 61 67 61 69 6e 73 d to link agains
04d0: 74 20 74 68 65 20 54 43 4c 20 6c 69 62 72 61 72 t the TCL librar
04e0: 79 2e 0a 23 0a 23 20 52 45 41 44 4c 49 4e 45 5f y..#.# READLINE_
04f0: 46 4c 41 47 53 20 20 20 43 6f 6d 70 69 6c 65 72 FLAGS Compiler
0500: 20 6f 70 74 69 6f 6e 73 20 6e 65 65 64 65 64 20 options needed
0510: 66 6f 72 20 70 72 6f 67 72 61 6d 73 20 74 68 61 for programs tha
0520: 74 20 75 73 65 20 74 68 65 0a 23 20 20 20 20 20 t use the.#
0530: 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 61 rea
0540: 64 6c 69 6e 65 28 29 20 6c 69 62 72 61 72 79 2e dline() library.
0550: 0a 23 0a 23 20 4c 49 42 52 45 41 44 4c 49 4e 45 .#.# LIBREADLINE
0560: 20 20 20 20 20 20 4c 69 6e 6b 65 72 20 6f 70 74 Linker opt
0570: 69 6f 6e 73 20 6e 65 65 64 65 64 20 62 79 20 70 ions needed by p
0580: 72 6f 67 72 61 6d 73 20 75 73 69 6e 67 20 72 65 rograms using re
0590: 61 64 6c 69 6e 65 28 29 20 6d 75 73 74 0a 23 20 adline() must.#
05a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
05b0: 20 6c 69 6e 6b 20 61 67 61 69 6e 73 74 2e 0a 23 link against..#
05c0: 0a 23 20 4e 41 57 4b 20 20 20 20 20 20 20 20 20 .# NAWK
05d0: 20 20 20 20 4e 61 77 6b 20 63 6f 6d 70 61 74 69 Nawk compati
05e0: 62 6c 65 20 61 77 6b 20 70 72 6f 67 72 61 6d 2e ble awk program.
05f0: 20 20 4f 6c 64 65 72 20 28 6f 62 73 6f 6c 65 74 Older (obsolet
0600: 65 3f 29 20 73 6f 6c 61 72 69 73 0a 23 20 20 20 e?) solaris.#
0610: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 s
0620: 79 73 74 65 6d 73 20 6e 65 65 64 20 74 68 69 73 ystems need this
0630: 20 74 6f 20 61 76 6f 69 64 20 75 73 69 6e 67 20 to avoid using
0640: 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 41 54 26 the original AT&
0650: 54 20 41 57 4b 2e 0a 23 0a 23 20 4f 6e 63 65 20 T AWK..#.# Once
0660: 74 68 65 20 6d 61 63 72 6f 73 20 61 62 6f 76 65 the macros above
0670: 20 61 72 65 20 64 65 66 69 6e 65 64 2c 20 74 68 are defined, th
0680: 65 20 72 65 73 74 20 6f 66 20 74 68 69 73 20 6d e rest of this m
0690: 61 6b 65 20 73 63 72 69 70 74 20 77 69 6c 6c 0a ake script will.
06a0: 23 20 62 75 69 6c 64 20 74 68 65 20 53 51 4c 69 # build the SQLi
06b0: 74 65 20 6c 69 62 72 61 72 79 20 61 6e 64 20 74 te library and t
06c0: 65 73 74 69 6e 67 20 74 6f 6f 6c 73 2e 0a 23 23 esting tools..##
06d0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
06e0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
06f0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0700: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0710: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 0a ##############..
0720: 23 20 54 68 69 73 20 69 73 20 68 6f 77 20 77 65 # This is how we
0730: 20 63 6f 6d 70 69 6c 65 0a 23 0a 54 43 43 58 20 compile.#.TCCX
0740: 3d 20 20 24 28 54 43 43 29 20 24 28 4f 50 54 53 = $(TCC) $(OPTS
0750: 29 20 2d 49 2e 20 2d 49 24 28 54 4f 50 29 2f 73 ) -I. -I$(TOP)/s
0760: 72 63 20 2d 49 24 28 54 4f 50 29 20 0a 54 43 43 rc -I$(TOP) .TCC
0770: 58 20 2b 3d 20 2d 49 24 28 54 4f 50 29 2f 65 78 X += -I$(TOP)/ex
0780: 74 2f 72 74 72 65 65 20 2d 49 24 28 54 4f 50 29 t/rtree -I$(TOP)
0790: 2f 65 78 74 2f 69 63 75 20 2d 49 24 28 54 4f 50 /ext/icu -I$(TOP
07a0: 29 2f 65 78 74 2f 66 74 73 33 0a 54 43 43 58 20 )/ext/fts3.TCCX
07b0: 2b 3d 20 2d 49 24 28 54 4f 50 29 2f 65 78 74 2f += -I$(TOP)/ext/
07c0: 61 73 79 6e 63 20 2d 49 24 28 54 4f 50 29 2f 65 async -I$(TOP)/e
07d0: 78 74 2f 75 73 65 72 61 75 74 68 0a 0a 23 20 4f xt/userauth..# O
07e0: 62 6a 65 63 74 20 66 69 6c 65 73 20 66 6f 72 20 bject files for
07f0: 74 68 65 20 53 51 4c 69 74 65 20 6c 69 62 72 61 the SQLite libra
0800: 72 79 2e 0a 23 0a 4c 49 42 4f 42 4a 2b 3d 20 76 ry..#.LIBOBJ+= v
0810: 64 62 65 2e 6f 20 70 61 72 73 65 2e 6f 20 5c 0a dbe.o parse.o \.
0820: 20 20 20 20 20 20 20 20 20 61 6c 74 65 72 2e 6f alter.o
0830: 20 61 6e 61 6c 79 7a 65 2e 6f 20 61 74 74 61 63 analyze.o attac
0840: 68 2e 6f 20 61 75 74 68 2e 6f 20 5c 0a 20 20 20 h.o auth.o \.
0850: 20 20 20 20 20 20 62 61 63 6b 75 70 2e 6f 20 62 backup.o b
0860: 69 74 76 65 63 2e 6f 20 62 74 6d 75 74 65 78 2e itvec.o btmutex.
0870: 6f 20 62 74 72 65 65 2e 6f 20 62 75 69 6c 64 2e o btree.o build.
0880: 6f 20 5c 0a 20 20 20 20 20 20 20 20 20 63 61 6c o \. cal
0890: 6c 62 61 63 6b 2e 6f 20 63 6f 6d 70 6c 65 74 65 lback.o complete
08a0: 2e 6f 20 63 74 69 6d 65 2e 6f 20 64 61 74 65 2e .o ctime.o date.
08b0: 6f 20 64 62 73 74 61 74 2e 6f 20 64 65 6c 65 74 o dbstat.o delet
08c0: 65 2e 6f 20 65 78 70 72 2e 6f 20 66 61 75 6c 74 e.o expr.o fault
08d0: 2e 6f 20 66 6b 65 79 2e 6f 20 5c 0a 20 20 20 20 .o fkey.o \.
08e0: 20 20 20 20 20 66 74 73 33 2e 6f 20 66 74 73 33 fts3.o fts3
08f0: 5f 61 75 78 2e 6f 20 66 74 73 33 5f 65 78 70 72 _aux.o fts3_expr
0900: 2e 6f 20 66 74 73 33 5f 68 61 73 68 2e 6f 20 66 .o fts3_hash.o f
0910: 74 73 33 5f 69 63 75 2e 6f 20 66 74 73 33 5f 70 ts3_icu.o fts3_p
0920: 6f 72 74 65 72 2e 6f 20 5c 0a 20 20 20 20 20 20 orter.o \.
0930: 20 20 20 66 74 73 33 5f 73 6e 69 70 70 65 74 2e fts3_snippet.
0940: 6f 20 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 72 o fts3_tokenizer
0950: 2e 6f 20 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 .o fts3_tokenize
0960: 72 31 2e 6f 20 5c 0a 20 20 20 20 20 20 20 20 20 r1.o \.
0970: 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 5f 76 74 fts3_tokenize_vt
0980: 61 62 2e 6f 20 5c 0a 09 20 66 74 73 33 5f 75 6e ab.o \.. fts3_un
0990: 69 63 6f 64 65 2e 6f 20 66 74 73 33 5f 75 6e 69 icode.o fts3_uni
09a0: 63 6f 64 65 32 2e 6f 20 5c 0a 20 20 20 20 20 20 code2.o \.
09b0: 20 20 20 66 74 73 33 5f 77 72 69 74 65 2e 6f 20 fts3_write.o
09c0: 66 75 6e 63 2e 6f 20 67 6c 6f 62 61 6c 2e 6f 20 func.o global.o
09d0: 68 61 73 68 2e 6f 20 5c 0a 20 20 20 20 20 20 20 hash.o \.
09e0: 20 20 69 63 75 2e 6f 20 69 6e 73 65 72 74 2e 6f icu.o insert.o
09f0: 20 6a 6f 75 72 6e 61 6c 2e 6f 20 6c 65 67 61 63 journal.o legac
0a00: 79 2e 6f 20 6c 6f 61 64 65 78 74 2e 6f 20 5c 0a y.o loadext.o \.
0a10: 20 20 20 20 20 20 20 20 20 6d 61 69 6e 2e 6f 20 main.o
0a20: 6d 61 6c 6c 6f 63 2e 6f 20 6d 65 6d 30 2e 6f 20 malloc.o mem0.o
0a30: 6d 65 6d 31 2e 6f 20 6d 65 6d 32 2e 6f 20 6d 65 mem1.o mem2.o me
0a40: 6d 33 2e 6f 20 6d 65 6d 35 2e 6f 20 5c 0a 20 20 m3.o mem5.o \.
0a50: 20 20 20 20 20 20 20 6d 65 6d 6a 6f 75 72 6e 61 memjourna
0a60: 6c 2e 6f 20 5c 0a 20 20 20 20 20 20 20 20 20 6d l.o \. m
0a70: 75 74 65 78 2e 6f 20 6d 75 74 65 78 5f 6e 6f 6f utex.o mutex_noo
0a80: 70 2e 6f 20 6d 75 74 65 78 5f 75 6e 69 78 2e 6f p.o mutex_unix.o
0a90: 20 6d 75 74 65 78 5f 77 33 32 2e 6f 20 5c 0a 20 mutex_w32.o \.
0aa0: 20 20 20 20 20 20 20 20 6e 6f 74 69 66 79 2e 6f notify.o
0ab0: 20 6f 70 63 6f 64 65 73 2e 6f 20 6f 73 2e 6f 20 opcodes.o os.o
0ac0: 6f 73 5f 75 6e 69 78 2e 6f 20 6f 73 5f 77 69 6e os_unix.o os_win
0ad0: 2e 6f 20 5c 0a 20 20 20 20 20 20 20 20 20 70 61 .o \. pa
0ae0: 67 65 72 2e 6f 20 70 63 61 63 68 65 2e 6f 20 70 ger.o pcache.o p
0af0: 63 61 63 68 65 31 2e 6f 20 70 72 61 67 6d 61 2e cache1.o pragma.
0b00: 6f 20 70 72 65 70 61 72 65 2e 6f 20 70 72 69 6e o prepare.o prin
0b10: 74 66 2e 6f 20 5c 0a 20 20 20 20 20 20 20 20 20 tf.o \.
0b20: 72 61 6e 64 6f 6d 2e 6f 20 72 65 73 6f 6c 76 65 random.o resolve
0b30: 2e 6f 20 72 6f 77 73 65 74 2e 6f 20 72 74 72 65 .o rowset.o rtre
0b40: 65 2e 6f 20 73 65 6c 65 63 74 2e 6f 20 73 74 61 e.o select.o sta
0b50: 74 75 73 2e 6f 20 5c 0a 20 20 20 20 20 20 20 20 tus.o \.
0b60: 20 74 61 62 6c 65 2e 6f 20 74 68 72 65 61 64 73 table.o threads
0b70: 2e 6f 20 74 6f 6b 65 6e 69 7a 65 2e 6f 20 74 72 .o tokenize.o tr
0b80: 69 67 67 65 72 2e 6f 20 5c 0a 20 20 20 20 20 20 igger.o \.
0b90: 20 20 20 75 70 64 61 74 65 2e 6f 20 75 73 65 72 update.o user
0ba0: 61 75 74 68 2e 6f 20 75 74 69 6c 2e 6f 20 76 61 auth.o util.o va
0bb0: 63 75 75 6d 2e 6f 20 5c 0a 20 20 20 20 20 20 20 cuum.o \.
0bc0: 20 20 76 64 62 65 61 70 69 2e 6f 20 76 64 62 65 vdbeapi.o vdbe
0bd0: 61 75 78 2e 6f 20 76 64 62 65 62 6c 6f 62 2e 6f aux.o vdbeblob.o
0be0: 20 76 64 62 65 6d 65 6d 2e 6f 20 76 64 62 65 73 vdbemem.o vdbes
0bf0: 6f 72 74 2e 6f 20 5c 0a 09 20 76 64 62 65 74 72 ort.o \.. vdbetr
0c00: 61 63 65 2e 6f 20 77 61 6c 2e 6f 20 77 61 6c 6b ace.o wal.o walk
0c10: 65 72 2e 6f 20 77 68 65 72 65 2e 6f 20 75 74 66 er.o where.o utf
0c20: 2e 6f 20 76 74 61 62 2e 6f 0a 0a 0a 0a 23 20 41 .o vtab.o....# A
0c30: 6c 6c 20 6f 66 20 74 68 65 20 73 6f 75 72 63 65 ll of the source
0c40: 20 63 6f 64 65 20 66 69 6c 65 73 2e 0a 23 0a 53 code files..#.S
0c50: 52 43 20 3d 20 5c 0a 20 20 24 28 54 4f 50 29 2f RC = \. $(TOP)/
0c60: 73 72 63 2f 61 6c 74 65 72 2e 63 20 5c 0a 20 20 src/alter.c \.
0c70: 24 28 54 4f 50 29 2f 73 72 63 2f 61 6e 61 6c 79 $(TOP)/src/analy
0c80: 7a 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f ze.c \. $(TOP)/
0c90: 73 72 63 2f 61 74 74 61 63 68 2e 63 20 5c 0a 20 src/attach.c \.
0ca0: 20 24 28 54 4f 50 29 2f 73 72 63 2f 61 75 74 68 $(TOP)/src/auth
0cb0: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
0cc0: 63 2f 62 61 63 6b 75 70 2e 63 20 5c 0a 20 20 24 c/backup.c \. $
0cd0: 28 54 4f 50 29 2f 73 72 63 2f 62 69 74 76 65 63 (TOP)/src/bitvec
0ce0: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
0cf0: 63 2f 62 74 6d 75 74 65 78 2e 63 20 5c 0a 20 20 c/btmutex.c \.
0d00: 24 28 54 4f 50 29 2f 73 72 63 2f 62 74 72 65 65 $(TOP)/src/btree
0d10: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
0d20: 63 2f 62 74 72 65 65 2e 68 20 5c 0a 20 20 24 28 c/btree.h \. $(
0d30: 54 4f 50 29 2f 73 72 63 2f 62 74 72 65 65 49 6e TOP)/src/btreeIn
0d40: 74 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 t.h \. $(TOP)/s
0d50: 72 63 2f 62 75 69 6c 64 2e 63 20 5c 0a 20 20 24 rc/build.c \. $
0d60: 28 54 4f 50 29 2f 73 72 63 2f 63 61 6c 6c 62 61 (TOP)/src/callba
0d70: 63 6b 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f ck.c \. $(TOP)/
0d80: 73 72 63 2f 63 6f 6d 70 6c 65 74 65 2e 63 20 5c src/complete.c \
0d90: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 63 74 . $(TOP)/src/ct
0da0: 69 6d 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 ime.c \. $(TOP)
0db0: 2f 73 72 63 2f 64 61 74 65 2e 63 20 5c 0a 20 20 /src/date.c \.
0dc0: 24 28 54 4f 50 29 2f 73 72 63 2f 64 62 73 74 61 $(TOP)/src/dbsta
0dd0: 74 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 t.c \. $(TOP)/s
0de0: 72 63 2f 64 65 6c 65 74 65 2e 63 20 5c 0a 20 20 rc/delete.c \.
0df0: 24 28 54 4f 50 29 2f 73 72 63 2f 65 78 70 72 2e $(TOP)/src/expr.
0e00: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
0e10: 2f 66 61 75 6c 74 2e 63 20 5c 0a 20 20 24 28 54 /fault.c \. $(T
0e20: 4f 50 29 2f 73 72 63 2f 66 6b 65 79 2e 63 20 5c OP)/src/fkey.c \
0e30: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 66 75 . $(TOP)/src/fu
0e40: 6e 63 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f nc.c \. $(TOP)/
0e50: 73 72 63 2f 67 6c 6f 62 61 6c 2e 63 20 5c 0a 20 src/global.c \.
0e60: 20 24 28 54 4f 50 29 2f 73 72 63 2f 68 61 73 68 $(TOP)/src/hash
0e70: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
0e80: 63 2f 68 61 73 68 2e 68 20 5c 0a 20 20 24 28 54 c/hash.h \. $(T
0e90: 4f 50 29 2f 73 72 63 2f 68 77 74 69 6d 65 2e 68 OP)/src/hwtime.h
0ea0: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
0eb0: 69 6e 73 65 72 74 2e 63 20 5c 0a 20 20 24 28 54 insert.c \. $(T
0ec0: 4f 50 29 2f 73 72 63 2f 6a 6f 75 72 6e 61 6c 2e OP)/src/journal.
0ed0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
0ee0: 2f 6c 65 67 61 63 79 2e 63 20 5c 0a 20 20 24 28 /legacy.c \. $(
0ef0: 54 4f 50 29 2f 73 72 63 2f 6c 6f 61 64 65 78 74 TOP)/src/loadext
0f00: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
0f10: 63 2f 6d 61 69 6e 2e 63 20 5c 0a 20 20 24 28 54 c/main.c \. $(T
0f20: 4f 50 29 2f 73 72 63 2f 6d 61 6c 6c 6f 63 2e 63 OP)/src/malloc.c
0f30: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
0f40: 6d 65 6d 30 2e 63 20 5c 0a 20 20 24 28 54 4f 50 mem0.c \. $(TOP
0f50: 29 2f 73 72 63 2f 6d 65 6d 31 2e 63 20 5c 0a 20 )/src/mem1.c \.
0f60: 20 24 28 54 4f 50 29 2f 73 72 63 2f 6d 65 6d 32 $(TOP)/src/mem2
0f70: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
0f80: 63 2f 6d 65 6d 33 2e 63 20 5c 0a 20 20 24 28 54 c/mem3.c \. $(T
0f90: 4f 50 29 2f 73 72 63 2f 6d 65 6d 35 2e 63 20 5c OP)/src/mem5.c \
0fa0: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6d 65 . $(TOP)/src/me
0fb0: 6d 6a 6f 75 72 6e 61 6c 2e 63 20 5c 0a 20 20 24 mjournal.c \. $
0fc0: 28 54 4f 50 29 2f 73 72 63 2f 6d 73 76 63 2e 68 (TOP)/src/msvc.h
0fd0: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
0fe0: 6d 75 74 65 78 2e 63 20 5c 0a 20 20 24 28 54 4f mutex.c \. $(TO
0ff0: 50 29 2f 73 72 63 2f 6d 75 74 65 78 2e 68 20 5c P)/src/mutex.h \
1000: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6d 75 . $(TOP)/src/mu
1010: 74 65 78 5f 6e 6f 6f 70 2e 63 20 5c 0a 20 20 24 tex_noop.c \. $
1020: 28 54 4f 50 29 2f 73 72 63 2f 6d 75 74 65 78 5f (TOP)/src/mutex_
1030: 75 6e 69 78 2e 63 20 5c 0a 20 20 24 28 54 4f 50 unix.c \. $(TOP
1040: 29 2f 73 72 63 2f 6d 75 74 65 78 5f 77 33 32 2e )/src/mutex_w32.
1050: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
1060: 2f 6e 6f 74 69 66 79 2e 63 20 5c 0a 20 20 24 28 /notify.c \. $(
1070: 54 4f 50 29 2f 73 72 63 2f 6f 73 2e 63 20 5c 0a TOP)/src/os.c \.
1080: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6f 73 2e $(TOP)/src/os.
1090: 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 h \. $(TOP)/src
10a0: 2f 6f 73 5f 63 6f 6d 6d 6f 6e 2e 68 20 5c 0a 20 /os_common.h \.
10b0: 20 24 28 54 4f 50 29 2f 73 72 63 2f 6f 73 5f 73 $(TOP)/src/os_s
10c0: 65 74 75 70 2e 68 20 5c 0a 20 20 24 28 54 4f 50 etup.h \. $(TOP
10d0: 29 2f 73 72 63 2f 6f 73 5f 75 6e 69 78 2e 63 20 )/src/os_unix.c
10e0: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6f \. $(TOP)/src/o
10f0: 73 5f 77 69 6e 2e 63 20 5c 0a 20 20 24 28 54 4f s_win.c \. $(TO
1100: 50 29 2f 73 72 63 2f 6f 73 5f 77 69 6e 2e 68 20 P)/src/os_win.h
1110: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 \. $(TOP)/src/p
1120: 61 67 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 ager.c \. $(TOP
1130: 29 2f 73 72 63 2f 70 61 67 65 72 2e 68 20 5c 0a )/src/pager.h \.
1140: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 61 72 $(TOP)/src/par
1150: 73 65 2e 79 20 5c 0a 20 20 24 28 54 4f 50 29 2f se.y \. $(TOP)/
1160: 73 72 63 2f 70 63 61 63 68 65 2e 63 20 5c 0a 20 src/pcache.c \.
1170: 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 63 61 63 $(TOP)/src/pcac
1180: 68 65 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f he.h \. $(TOP)/
1190: 73 72 63 2f 70 63 61 63 68 65 31 2e 63 20 5c 0a src/pcache1.c \.
11a0: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 72 61 $(TOP)/src/pra
11b0: 67 6d 61 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 gma.c \. $(TOP)
11c0: 2f 73 72 63 2f 70 72 61 67 6d 61 2e 68 20 5c 0a /src/pragma.h \.
11d0: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 72 65 $(TOP)/src/pre
11e0: 70 61 72 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 pare.c \. $(TOP
11f0: 29 2f 73 72 63 2f 70 72 69 6e 74 66 2e 63 20 5c )/src/printf.c \
1200: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 72 61 . $(TOP)/src/ra
1210: 6e 64 6f 6d 2e 63 20 5c 0a 20 20 24 28 54 4f 50 ndom.c \. $(TOP
1220: 29 2f 73 72 63 2f 72 65 73 6f 6c 76 65 2e 63 20 )/src/resolve.c
1230: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 72 \. $(TOP)/src/r
1240: 6f 77 73 65 74 2e 63 20 5c 0a 20 20 24 28 54 4f owset.c \. $(TO
1250: 50 29 2f 73 72 63 2f 73 65 6c 65 63 74 2e 63 20 P)/src/select.c
1260: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 73 \. $(TOP)/src/s
1270: 74 61 74 75 73 2e 63 20 5c 0a 20 20 24 28 54 4f tatus.c \. $(TO
1280: 50 29 2f 73 72 63 2f 73 68 65 6c 6c 2e 63 20 5c P)/src/shell.c \
1290: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 73 71 . $(TOP)/src/sq
12a0: 6c 69 74 65 2e 68 2e 69 6e 20 5c 0a 20 20 24 28 lite.h.in \. $(
12b0: 54 4f 50 29 2f 73 72 63 2f 73 71 6c 69 74 65 33 TOP)/src/sqlite3
12c0: 65 78 74 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 ext.h \. $(TOP)
12d0: 2f 73 72 63 2f 73 71 6c 69 74 65 49 6e 74 2e 68 /src/sqliteInt.h
12e0: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
12f0: 73 71 6c 69 74 65 4c 69 6d 69 74 2e 68 20 5c 0a sqliteLimit.h \.
1300: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 61 62 $(TOP)/src/tab
1310: 6c 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f le.c \. $(TOP)/
1320: 73 72 63 2f 74 63 6c 73 71 6c 69 74 65 2e 63 20 src/tclsqlite.c
1330: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 \. $(TOP)/src/t
1340: 68 72 65 61 64 73 2e 63 20 5c 0a 20 20 24 28 54 hreads.c \. $(T
1350: 4f 50 29 2f 73 72 63 2f 74 6f 6b 65 6e 69 7a 65 OP)/src/tokenize
1360: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
1370: 63 2f 74 72 69 67 67 65 72 2e 63 20 5c 0a 20 20 c/trigger.c \.
1380: 24 28 54 4f 50 29 2f 73 72 63 2f 75 74 66 2e 63 $(TOP)/src/utf.c
1390: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
13a0: 75 70 64 61 74 65 2e 63 20 5c 0a 20 20 24 28 54 update.c \. $(T
13b0: 4f 50 29 2f 73 72 63 2f 75 74 69 6c 2e 63 20 5c OP)/src/util.c \
13c0: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 76 61 . $(TOP)/src/va
13d0: 63 75 75 6d 2e 63 20 5c 0a 20 20 24 28 54 4f 50 cuum.c \. $(TOP
13e0: 29 2f 73 72 63 2f 76 64 62 65 2e 63 20 5c 0a 20 )/src/vdbe.c \.
13f0: 20 24 28 54 4f 50 29 2f 73 72 63 2f 76 64 62 65 $(TOP)/src/vdbe
1400: 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .h \. $(TOP)/sr
1410: 63 2f 76 64 62 65 61 70 69 2e 63 20 5c 0a 20 20 c/vdbeapi.c \.
1420: 24 28 54 4f 50 29 2f 73 72 63 2f 76 64 62 65 61 $(TOP)/src/vdbea
1430: 75 78 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f ux.c \. $(TOP)/
1440: 73 72 63 2f 76 64 62 65 62 6c 6f 62 2e 63 20 5c src/vdbeblob.c \
1450: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 76 64 . $(TOP)/src/vd
1460: 62 65 6d 65 6d 2e 63 20 5c 0a 20 20 24 28 54 4f bemem.c \. $(TO
1470: 50 29 2f 73 72 63 2f 76 64 62 65 73 6f 72 74 2e P)/src/vdbesort.
1480: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
1490: 2f 76 64 62 65 74 72 61 63 65 2e 63 20 5c 0a 20 /vdbetrace.c \.
14a0: 20 24 28 54 4f 50 29 2f 73 72 63 2f 76 64 62 65 $(TOP)/src/vdbe
14b0: 49 6e 74 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 Int.h \. $(TOP)
14c0: 2f 73 72 63 2f 76 74 61 62 2e 63 20 5c 0a 20 20 /src/vtab.c \.
14d0: 24 28 54 4f 50 29 2f 73 72 63 2f 76 78 77 6f 72 $(TOP)/src/vxwor
14e0: 6b 73 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f ks.h \. $(TOP)/
14f0: 73 72 63 2f 77 61 6c 2e 63 20 5c 0a 20 20 24 28 src/wal.c \. $(
1500: 54 4f 50 29 2f 73 72 63 2f 77 61 6c 2e 68 20 5c TOP)/src/wal.h \
1510: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 77 61 . $(TOP)/src/wa
1520: 6c 6b 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 lker.c \. $(TOP
1530: 29 2f 73 72 63 2f 77 68 65 72 65 2e 63 20 5c 0a )/src/where.c \.
1540: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 77 68 65 $(TOP)/src/whe
1550: 72 65 49 6e 74 2e 68 0a 0a 23 20 53 6f 75 72 63 reInt.h..# Sourc
1560: 65 20 63 6f 64 65 20 66 6f 72 20 65 78 74 65 6e e code for exten
1570: 73 69 6f 6e 73 0a 23 0a 53 52 43 20 2b 3d 20 5c sions.#.SRC += \
1580: 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 . $(TOP)/ext/ft
1590: 73 31 2f 66 74 73 31 2e 63 20 5c 0a 20 20 24 28 s1/fts1.c \. $(
15a0: 54 4f 50 29 2f 65 78 74 2f 66 74 73 31 2f 66 74 TOP)/ext/fts1/ft
15b0: 73 31 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f s1.h \. $(TOP)/
15c0: 65 78 74 2f 66 74 73 31 2f 66 74 73 31 5f 68 61 ext/fts1/fts1_ha
15d0: 73 68 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f sh.c \. $(TOP)/
15e0: 65 78 74 2f 66 74 73 31 2f 66 74 73 31 5f 68 61 ext/fts1/fts1_ha
15f0: 73 68 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f sh.h \. $(TOP)/
1600: 65 78 74 2f 66 74 73 31 2f 66 74 73 31 5f 70 6f ext/fts1/fts1_po
1610: 72 74 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 rter.c \. $(TOP
1620: 29 2f 65 78 74 2f 66 74 73 31 2f 66 74 73 31 5f )/ext/fts1/fts1_
1630: 74 6f 6b 65 6e 69 7a 65 72 2e 68 20 5c 0a 20 20 tokenizer.h \.
1640: 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 31 2f $(TOP)/ext/fts1/
1650: 66 74 73 31 5f 74 6f 6b 65 6e 69 7a 65 72 31 2e fts1_tokenizer1.
1660: 63 0a 53 52 43 20 2b 3d 20 5c 0a 20 20 24 28 54 c.SRC += \. $(T
1670: 4f 50 29 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 OP)/ext/fts2/fts
1680: 32 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 2.c \. $(TOP)/e
1690: 78 74 2f 66 74 73 32 2f 66 74 73 32 2e 68 20 5c xt/fts2/fts2.h \
16a0: 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 . $(TOP)/ext/ft
16b0: 73 32 2f 66 74 73 32 5f 68 61 73 68 2e 63 20 5c s2/fts2_hash.c \
16c0: 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 . $(TOP)/ext/ft
16d0: 73 32 2f 66 74 73 32 5f 68 61 73 68 2e 68 20 5c s2/fts2_hash.h \
16e0: 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 . $(TOP)/ext/ft
16f0: 73 32 2f 66 74 73 32 5f 69 63 75 2e 63 20 5c 0a s2/fts2_icu.c \.
1700: 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 $(TOP)/ext/fts
1710: 32 2f 66 74 73 32 5f 70 6f 72 74 65 72 2e 63 20 2/fts2_porter.c
1720: 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 \. $(TOP)/ext/f
1730: 74 73 32 2f 66 74 73 32 5f 74 6f 6b 65 6e 69 7a ts2/fts2_tokeniz
1740: 65 72 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f er.h \. $(TOP)/
1750: 65 78 74 2f 66 74 73 32 2f 66 74 73 32 5f 74 6f ext/fts2/fts2_to
1760: 6b 65 6e 69 7a 65 72 2e 63 20 5c 0a 20 20 24 28 kenizer.c \. $(
1770: 54 4f 50 29 2f 65 78 74 2f 66 74 73 32 2f 66 74 TOP)/ext/fts2/ft
1780: 73 32 5f 74 6f 6b 65 6e 69 7a 65 72 31 2e 63 0a s2_tokenizer1.c.
1790: 53 52 43 20 2b 3d 20 5c 0a 20 20 24 28 54 4f 50 SRC += \. $(TOP
17a0: 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 2e )/ext/fts3/fts3.
17b0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 c \. $(TOP)/ext
17c0: 2f 66 74 73 33 2f 66 74 73 33 2e 68 20 5c 0a 20 /fts3/fts3.h \.
17d0: 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 $(TOP)/ext/fts3
17e0: 2f 66 74 73 33 49 6e 74 2e 68 20 5c 0a 20 20 24 /fts3Int.h \. $
17f0: 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 (TOP)/ext/fts3/f
1800: 74 73 33 5f 61 75 78 2e 63 20 5c 0a 20 20 24 28 ts3_aux.c \. $(
1810: 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 TOP)/ext/fts3/ft
1820: 73 33 5f 65 78 70 72 2e 63 20 5c 0a 20 20 24 28 s3_expr.c \. $(
1830: 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 TOP)/ext/fts3/ft
1840: 73 33 5f 68 61 73 68 2e 63 20 5c 0a 20 20 24 28 s3_hash.c \. $(
1850: 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 TOP)/ext/fts3/ft
1860: 73 33 5f 68 61 73 68 2e 68 20 5c 0a 20 20 24 28 s3_hash.h \. $(
1870: 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 TOP)/ext/fts3/ft
1880: 73 33 5f 69 63 75 2e 63 20 5c 0a 20 20 24 28 54 s3_icu.c \. $(T
1890: 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 OP)/ext/fts3/fts
18a0: 33 5f 70 6f 72 74 65 72 2e 63 20 5c 0a 20 20 24 3_porter.c \. $
18b0: 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 (TOP)/ext/fts3/f
18c0: 74 73 33 5f 73 6e 69 70 70 65 74 2e 63 20 5c 0a ts3_snippet.c \.
18d0: 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 $(TOP)/ext/fts
18e0: 33 2f 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 72 3/fts3_tokenizer
18f0: 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 .h \. $(TOP)/ex
1900: 74 2f 66 74 73 33 2f 66 74 73 33 5f 74 6f 6b 65 t/fts3/fts3_toke
1910: 6e 69 7a 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f nizer.c \. $(TO
1920: 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 P)/ext/fts3/fts3
1930: 5f 74 6f 6b 65 6e 69 7a 65 72 31 2e 63 20 5c 0a _tokenizer1.c \.
1940: 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 $(TOP)/ext/fts
1950: 33 2f 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 5f 3/fts3_tokenize_
1960: 76 74 61 62 2e 63 20 5c 0a 20 20 24 28 54 4f 50 vtab.c \. $(TOP
1970: 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 5f )/ext/fts3/fts3_
1980: 75 6e 69 63 6f 64 65 2e 63 20 5c 0a 20 20 24 28 unicode.c \. $(
1990: 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 TOP)/ext/fts3/ft
19a0: 73 33 5f 75 6e 69 63 6f 64 65 32 2e 63 20 5c 0a s3_unicode2.c \.
19b0: 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 $(TOP)/ext/fts
19c0: 33 2f 66 74 73 33 5f 77 72 69 74 65 2e 63 0a 53 3/fts3_write.c.S
19d0: 52 43 20 2b 3d 20 5c 0a 20 20 24 28 54 4f 50 29 RC += \. $(TOP)
19e0: 2f 65 78 74 2f 69 63 75 2f 73 71 6c 69 74 65 69 /ext/icu/sqlitei
19f0: 63 75 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f cu.h \. $(TOP)/
1a00: 65 78 74 2f 69 63 75 2f 69 63 75 2e 63 0a 53 52 ext/icu/icu.c.SR
1a10: 43 20 2b 3d 20 5c 0a 20 20 24 28 54 4f 50 29 2f C += \. $(TOP)/
1a20: 65 78 74 2f 72 74 72 65 65 2f 73 71 6c 69 74 65 ext/rtree/sqlite
1a30: 33 72 74 72 65 65 2e 68 20 5c 0a 20 20 24 28 54 3rtree.h \. $(T
1a40: 4f 50 29 2f 65 78 74 2f 72 74 72 65 65 2f 72 74 OP)/ext/rtree/rt
1a50: 72 65 65 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 ree.h \. $(TOP)
1a60: 2f 65 78 74 2f 72 74 72 65 65 2f 72 74 72 65 65 /ext/rtree/rtree
1a70: 2e 63 0a 53 52 43 20 2b 3d 20 5c 0a 20 20 24 28 .c.SRC += \. $(
1a80: 54 4f 50 29 2f 65 78 74 2f 75 73 65 72 61 75 74 TOP)/ext/useraut
1a90: 68 2f 75 73 65 72 61 75 74 68 2e 63 20 5c 0a 20 h/userauth.c \.
1aa0: 20 24 28 54 4f 50 29 2f 65 78 74 2f 75 73 65 72 $(TOP)/ext/user
1ab0: 61 75 74 68 2f 73 71 6c 69 74 65 33 75 73 65 72 auth/sqlite3user
1ac0: 61 75 74 68 2e 68 0a 0a 23 20 47 65 6e 65 72 61 auth.h..# Genera
1ad0: 74 65 64 20 73 6f 75 72 63 65 20 63 6f 64 65 20 ted source code
1ae0: 66 69 6c 65 73 0a 23 0a 53 52 43 20 2b 3d 20 5c files.#.SRC += \
1af0: 0a 20 20 6b 65 79 77 6f 72 64 68 61 73 68 2e 68 . keywordhash.h
1b00: 20 5c 0a 20 20 6f 70 63 6f 64 65 73 2e 63 20 5c \. opcodes.c \
1b10: 0a 20 20 6f 70 63 6f 64 65 73 2e 68 20 5c 0a 20 . opcodes.h \.
1b20: 20 70 61 72 73 65 2e 63 20 5c 0a 20 20 70 61 72 parse.c \. par
1b30: 73 65 2e 68 20 5c 0a 20 20 73 71 6c 69 74 65 33 se.h \. sqlite3
1b40: 2e 68 0a 0a 0a 23 20 53 6f 75 72 63 65 20 63 6f .h...# Source co
1b50: 64 65 20 74 6f 20 74 68 65 20 74 65 73 74 20 66 de to the test f
1b60: 69 6c 65 73 2e 0a 23 0a 54 45 53 54 53 52 43 20 iles..#.TESTSRC
1b70: 3d 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 = \. $(TOP)/ext
1b80: 2f 66 74 73 33 2f 66 74 73 33 5f 74 65 72 6d 2e /fts3/fts3_term.
1b90: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 c \. $(TOP)/ext
1ba0: 2f 66 74 73 33 2f 66 74 73 33 5f 74 65 73 74 2e /fts3/fts3_test.
1bb0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
1bc0: 2f 74 65 73 74 31 2e 63 20 5c 0a 20 20 24 28 54 /test1.c \. $(T
1bd0: 4f 50 29 2f 73 72 63 2f 74 65 73 74 32 2e 63 20 OP)/src/test2.c
1be0: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 \. $(TOP)/src/t
1bf0: 65 73 74 33 2e 63 20 5c 0a 20 20 24 28 54 4f 50 est3.c \. $(TOP
1c00: 29 2f 73 72 63 2f 74 65 73 74 34 2e 63 20 5c 0a )/src/test4.c \.
1c10: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 $(TOP)/src/tes
1c20: 74 35 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f t5.c \. $(TOP)/
1c30: 73 72 63 2f 74 65 73 74 36 2e 63 20 5c 0a 20 20 src/test6.c \.
1c40: 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 37 $(TOP)/src/test7
1c50: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
1c60: 63 2f 74 65 73 74 38 2e 63 20 5c 0a 20 20 24 28 c/test8.c \. $(
1c70: 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 39 2e 63 TOP)/src/test9.c
1c80: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
1c90: 74 65 73 74 5f 61 75 74 6f 65 78 74 2e 63 20 5c test_autoext.c \
1ca0: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 . $(TOP)/src/te
1cb0: 73 74 5f 61 73 79 6e 63 2e 63 20 5c 0a 20 20 24 st_async.c \. $
1cc0: 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f 62 (TOP)/src/test_b
1cd0: 61 63 6b 75 70 2e 63 20 5c 0a 20 20 24 28 54 4f ackup.c \. $(TO
1ce0: 50 29 2f 73 72 63 2f 74 65 73 74 5f 62 6c 6f 62 P)/src/test_blob
1cf0: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
1d00: 63 2f 74 65 73 74 5f 62 74 72 65 65 2e 63 20 5c c/test_btree.c \
1d10: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 . $(TOP)/src/te
1d20: 73 74 5f 63 6f 6e 66 69 67 2e 63 20 5c 0a 20 20 st_config.c \.
1d30: 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f $(TOP)/src/test_
1d40: 64 65 6d 6f 76 66 73 2e 63 20 5c 0a 20 20 24 28 demovfs.c \. $(
1d50: 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f 64 65 TOP)/src/test_de
1d60: 76 73 79 6d 2e 63 20 5c 0a 20 20 24 28 54 4f 50 vsym.c \. $(TOP
1d70: 29 2f 73 72 63 2f 74 65 73 74 5f 66 73 2e 63 20 )/src/test_fs.c
1d80: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 \. $(TOP)/src/t
1d90: 65 73 74 5f 66 75 6e 63 2e 63 20 5c 0a 20 20 24 est_func.c \. $
1da0: 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f 68 (TOP)/src/test_h
1db0: 65 78 69 6f 2e 63 20 5c 0a 20 20 24 28 54 4f 50 exio.c \. $(TOP
1dc0: 29 2f 73 72 63 2f 74 65 73 74 5f 69 6e 69 74 2e )/src/test_init.
1dd0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
1de0: 2f 74 65 73 74 5f 69 6e 74 61 72 72 61 79 2e 63 /test_intarray.c
1df0: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
1e00: 74 65 73 74 5f 6a 6f 75 72 6e 61 6c 2e 63 20 5c test_journal.c \
1e10: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 . $(TOP)/src/te
1e20: 73 74 5f 6d 61 6c 6c 6f 63 2e 63 20 5c 0a 20 20 st_malloc.c \.
1e30: 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f $(TOP)/src/test_
1e40: 6d 75 6c 74 69 70 6c 65 78 2e 63 20 5c 0a 20 20 multiplex.c \.
1e50: 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f $(TOP)/src/test_
1e60: 6d 75 74 65 78 2e 63 20 5c 0a 20 20 24 28 54 4f mutex.c \. $(TO
1e70: 50 29 2f 73 72 63 2f 74 65 73 74 5f 6f 6e 65 66 P)/src/test_onef
1e80: 69 6c 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 ile.c \. $(TOP)
1e90: 2f 73 72 63 2f 74 65 73 74 5f 6f 73 69 6e 73 74 /src/test_osinst
1ea0: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
1eb0: 63 2f 74 65 73 74 5f 70 63 61 63 68 65 2e 63 20 c/test_pcache.c
1ec0: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 \. $(TOP)/src/t
1ed0: 65 73 74 5f 71 75 6f 74 61 2e 63 20 5c 0a 20 20 est_quota.c \.
1ee0: 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f $(TOP)/src/test_
1ef0: 72 74 72 65 65 2e 63 20 5c 0a 20 20 24 28 54 4f rtree.c \. $(TO
1f00: 50 29 2f 73 72 63 2f 74 65 73 74 5f 73 63 68 65 P)/src/test_sche
1f10: 6d 61 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f ma.c \. $(TOP)/
1f20: 73 72 63 2f 74 65 73 74 5f 73 65 72 76 65 72 2e src/test_server.
1f30: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
1f40: 2f 74 65 73 74 5f 73 71 6c 6c 6f 67 2e 63 20 5c /test_sqllog.c \
1f50: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 . $(TOP)/src/te
1f60: 73 74 5f 73 75 70 65 72 6c 6f 63 6b 2e 63 20 5c st_superlock.c \
1f70: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 . $(TOP)/src/te
1f80: 73 74 5f 73 79 73 63 61 6c 6c 2e 63 20 5c 0a 20 st_syscall.c \.
1f90: 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 $(TOP)/src/test
1fa0: 5f 74 63 6c 76 61 72 2e 63 20 5c 0a 20 20 24 28 _tclvar.c \. $(
1fb0: 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f 74 68 TOP)/src/test_th
1fc0: 72 65 61 64 2e 63 20 5c 0a 20 20 24 28 54 4f 50 read.c \. $(TOP
1fd0: 29 2f 73 72 63 2f 74 65 73 74 5f 76 66 73 2e 63 )/src/test_vfs.c
1fe0: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
1ff0: 74 65 73 74 5f 77 73 64 2e 63 0a 0a 23 20 45 78 test_wsd.c..# Ex
2000: 74 65 6e 73 69 6f 6e 73 20 74 6f 20 62 65 20 73 tensions to be s
2010: 74 61 74 69 63 61 6c 6c 79 20 6c 6f 61 64 65 64 tatically loaded
2020: 2e 0a 23 0a 54 45 53 54 53 52 43 20 2b 3d 20 5c ..#.TESTSRC += \
2030: 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 6d 69 . $(TOP)/ext/mi
2040: 73 63 2f 61 6d 61 74 63 68 2e 63 20 5c 0a 20 20 sc/amatch.c \.
2050: 24 28 54 4f 50 29 2f 65 78 74 2f 6d 69 73 63 2f $(TOP)/ext/misc/
2060: 63 6c 6f 73 75 72 65 2e 63 20 5c 0a 20 20 24 28 closure.c \. $(
2070: 54 4f 50 29 2f 65 78 74 2f 6d 69 73 63 2f 65 76 TOP)/ext/misc/ev
2080: 61 6c 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f al.c \. $(TOP)/
2090: 65 78 74 2f 6d 69 73 63 2f 66 69 6c 65 69 6f 2e ext/misc/fileio.
20a0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 c \. $(TOP)/ext
20b0: 2f 6d 69 73 63 2f 66 75 7a 7a 65 72 2e 63 20 5c /misc/fuzzer.c \
20c0: 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 6d 69 . $(TOP)/ext/mi
20d0: 73 63 2f 69 65 65 65 37 35 34 2e 63 20 5c 0a 20 sc/ieee754.c \.
20e0: 20 24 28 54 4f 50 29 2f 65 78 74 2f 6d 69 73 63 $(TOP)/ext/misc
20f0: 2f 6e 65 78 74 63 68 61 72 2e 63 20 5c 0a 20 20 /nextchar.c \.
2100: 24 28 54 4f 50 29 2f 65 78 74 2f 6d 69 73 63 2f $(TOP)/ext/misc/
2110: 70 65 72 63 65 6e 74 69 6c 65 2e 63 20 5c 0a 20 percentile.c \.
2120: 20 24 28 54 4f 50 29 2f 65 78 74 2f 6d 69 73 63 $(TOP)/ext/misc
2130: 2f 72 65 67 65 78 70 2e 63 20 5c 0a 20 20 24 28 /regexp.c \. $(
2140: 54 4f 50 29 2f 65 78 74 2f 6d 69 73 63 2f 73 70 TOP)/ext/misc/sp
2150: 65 6c 6c 66 69 78 2e 63 20 5c 0a 20 20 24 28 54 ellfix.c \. $(T
2160: 4f 50 29 2f 65 78 74 2f 6d 69 73 63 2f 74 6f 74 OP)/ext/misc/tot
2170: 79 70 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 ype.c \. $(TOP)
2180: 2f 65 78 74 2f 6d 69 73 63 2f 77 68 6f 6c 65 6e /ext/misc/wholen
2190: 75 6d 62 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f umber.c \. $(TO
21a0: 50 29 2f 65 78 74 2f 6d 69 73 63 2f 76 66 73 6c P)/ext/misc/vfsl
21b0: 6f 67 2e 63 0a 0a 0a 23 54 45 53 54 53 52 43 20 og.c...#TESTSRC
21c0: 2b 3d 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 += $(TOP)/ext/ft
21d0: 73 32 2f 66 74 73 32 5f 74 6f 6b 65 6e 69 7a 65 s2/fts2_tokenize
21e0: 72 2e 63 0a 23 54 45 53 54 53 52 43 20 2b 3d 20 r.c.#TESTSRC +=
21f0: 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f $(TOP)/ext/fts3/
2200: 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 72 2e 63 fts3_tokenizer.c
2210: 0a 0a 54 45 53 54 53 52 43 32 20 3d 20 5c 0a 20 ..TESTSRC2 = \.
2220: 20 24 28 54 4f 50 29 2f 73 72 63 2f 61 74 74 61 $(TOP)/src/atta
2230: 63 68 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f ch.c \. $(TOP)/
2240: 73 72 63 2f 62 61 63 6b 75 70 2e 63 20 5c 0a 20 src/backup.c \.
2250: 20 24 28 54 4f 50 29 2f 73 72 63 2f 62 74 72 65 $(TOP)/src/btre
2260: 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 e.c \. $(TOP)/s
2270: 72 63 2f 62 75 69 6c 64 2e 63 20 5c 0a 20 20 24 rc/build.c \. $
2280: 28 54 4f 50 29 2f 73 72 63 2f 64 61 74 65 2e 63 (TOP)/src/date.c
2290: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
22a0: 64 62 73 74 61 74 2e 63 20 5c 0a 20 20 24 28 54 dbstat.c \. $(T
22b0: 4f 50 29 2f 73 72 63 2f 65 78 70 72 2e 63 20 5c OP)/src/expr.c \
22c0: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 66 75 . $(TOP)/src/fu
22d0: 6e 63 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f nc.c \. $(TOP)/
22e0: 73 72 63 2f 69 6e 73 65 72 74 2e 63 20 5c 0a 20 src/insert.c \.
22f0: 20 24 28 54 4f 50 29 2f 73 72 63 2f 77 61 6c 2e $(TOP)/src/wal.
2300: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
2310: 2f 6d 61 69 6e 2e 63 20 5c 0a 20 20 24 28 54 4f /main.c \. $(TO
2320: 50 29 2f 73 72 63 2f 6d 65 6d 35 2e 63 20 5c 0a P)/src/mem5.c \.
2330: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6f 73 2e $(TOP)/src/os.
2340: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
2350: 2f 6f 73 5f 75 6e 69 78 2e 63 20 5c 0a 20 20 24 /os_unix.c \. $
2360: 28 54 4f 50 29 2f 73 72 63 2f 6f 73 5f 77 69 6e (TOP)/src/os_win
2370: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
2380: 63 2f 70 61 67 65 72 2e 63 20 5c 0a 20 20 24 28 c/pager.c \. $(
2390: 54 4f 50 29 2f 73 72 63 2f 70 72 61 67 6d 61 2e TOP)/src/pragma.
23a0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
23b0: 2f 70 72 65 70 61 72 65 2e 63 20 5c 0a 20 20 24 /prepare.c \. $
23c0: 28 54 4f 50 29 2f 73 72 63 2f 70 72 69 6e 74 66 (TOP)/src/printf
23d0: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
23e0: 63 2f 72 61 6e 64 6f 6d 2e 63 20 5c 0a 20 20 24 c/random.c \. $
23f0: 28 54 4f 50 29 2f 73 72 63 2f 70 63 61 63 68 65 (TOP)/src/pcache
2400: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
2410: 63 2f 70 63 61 63 68 65 31 2e 63 20 5c 0a 20 20 c/pcache1.c \.
2420: 24 28 54 4f 50 29 2f 73 72 63 2f 73 65 6c 65 63 $(TOP)/src/selec
2430: 74 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 t.c \. $(TOP)/s
2440: 72 63 2f 74 68 72 65 61 64 73 2e 63 20 5c 0a 20 rc/threads.c \.
2450: 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 6f 6b 65 $(TOP)/src/toke
2460: 6e 69 7a 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 nize.c \. $(TOP
2470: 29 2f 73 72 63 2f 75 74 66 2e 63 20 5c 0a 20 20 )/src/utf.c \.
2480: 24 28 54 4f 50 29 2f 73 72 63 2f 75 74 69 6c 2e $(TOP)/src/util.
2490: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
24a0: 2f 76 64 62 65 61 70 69 2e 63 20 5c 0a 20 20 24 /vdbeapi.c \. $
24b0: 28 54 4f 50 29 2f 73 72 63 2f 76 64 62 65 61 75 (TOP)/src/vdbeau
24c0: 78 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 x.c \. $(TOP)/s
24d0: 72 63 2f 76 64 62 65 2e 63 20 5c 0a 20 20 24 28 rc/vdbe.c \. $(
24e0: 54 4f 50 29 2f 73 72 63 2f 76 64 62 65 6d 65 6d TOP)/src/vdbemem
24f0: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
2500: 63 2f 77 68 65 72 65 2e 63 20 5c 0a 20 20 70 61 c/where.c \. pa
2510: 72 73 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 rse.c \. $(TOP)
2520: 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 2e 63 /ext/fts3/fts3.c
2530: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f \. $(TOP)/ext/
2540: 66 74 73 33 2f 66 74 73 33 5f 61 75 78 2e 63 20 fts3/fts3_aux.c
2550: 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 \. $(TOP)/ext/f
2560: 74 73 33 2f 66 74 73 33 5f 65 78 70 72 2e 63 20 ts3/fts3_expr.c
2570: 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 \. $(TOP)/ext/f
2580: 74 73 33 2f 66 74 73 33 5f 74 6f 6b 65 6e 69 7a ts3/fts3_tokeniz
2590: 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f er.c \. $(TOP)/
25a0: 65 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 77 72 ext/fts3/fts3_wr
25b0: 69 74 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 ite.c \. $(TOP)
25c0: 2f 65 78 74 2f 61 73 79 6e 63 2f 73 71 6c 69 74 /ext/async/sqlit
25d0: 65 33 61 73 79 6e 63 2e 63 0a 0a 23 20 48 65 61 e3async.c..# Hea
25e0: 64 65 72 20 66 69 6c 65 73 20 75 73 65 64 20 62 der files used b
25f0: 79 20 61 6c 6c 20 6c 69 62 72 61 72 79 20 73 6f y all library so
2600: 75 72 63 65 20 66 69 6c 65 73 2e 0a 23 0a 48 44 urce files..#.HD
2610: 52 20 3d 20 5c 0a 20 20 20 24 28 54 4f 50 29 2f R = \. $(TOP)/
2620: 73 72 63 2f 62 74 72 65 65 2e 68 20 5c 0a 20 20 src/btree.h \.
2630: 20 24 28 54 4f 50 29 2f 73 72 63 2f 62 74 72 65 $(TOP)/src/btre
2640: 65 49 6e 74 2e 68 20 5c 0a 20 20 20 24 28 54 4f eInt.h \. $(TO
2650: 50 29 2f 73 72 63 2f 68 61 73 68 2e 68 20 5c 0a P)/src/hash.h \.
2660: 20 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 68 77 $(TOP)/src/hw
2670: 74 69 6d 65 2e 68 20 5c 0a 20 20 20 6b 65 79 77 time.h \. keyw
2680: 6f 72 64 68 61 73 68 2e 68 20 5c 0a 20 20 20 24 ordhash.h \. $
2690: 28 54 4f 50 29 2f 73 72 63 2f 6d 73 76 63 2e 68 (TOP)/src/msvc.h
26a0: 20 5c 0a 20 20 20 24 28 54 4f 50 29 2f 73 72 63 \. $(TOP)/src
26b0: 2f 6d 75 74 65 78 2e 68 20 5c 0a 20 20 20 6f 70 /mutex.h \. op
26c0: 63 6f 64 65 73 2e 68 20 5c 0a 20 20 20 24 28 54 codes.h \. $(T
26d0: 4f 50 29 2f 73 72 63 2f 6f 73 2e 68 20 5c 0a 20 OP)/src/os.h \.
26e0: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6f 73 5f $(TOP)/src/os_
26f0: 63 6f 6d 6d 6f 6e 2e 68 20 5c 0a 20 20 20 24 28 common.h \. $(
2700: 54 4f 50 29 2f 73 72 63 2f 6f 73 5f 73 65 74 75 TOP)/src/os_setu
2710: 70 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 29 2f p.h \. $(TOP)/
2720: 73 72 63 2f 6f 73 5f 77 69 6e 2e 68 20 5c 0a 20 src/os_win.h \.
2730: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 61 67 $(TOP)/src/pag
2740: 65 72 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 29 er.h \. $(TOP)
2750: 2f 73 72 63 2f 70 63 61 63 68 65 2e 68 20 5c 0a /src/pcache.h \.
2760: 20 20 20 70 61 72 73 65 2e 68 20 20 5c 0a 20 20 parse.h \.
2770: 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 72 61 67 $(TOP)/src/prag
2780: 6d 61 2e 68 20 5c 0a 20 20 20 73 71 6c 69 74 65 ma.h \. sqlite
2790: 33 2e 68 20 20 5c 0a 20 20 20 24 28 54 4f 50 29 3.h \. $(TOP)
27a0: 2f 73 72 63 2f 73 71 6c 69 74 65 33 65 78 74 2e /src/sqlite3ext.
27b0: 68 20 5c 0a 20 20 20 24 28 54 4f 50 29 2f 73 72 h \. $(TOP)/sr
27c0: 63 2f 73 71 6c 69 74 65 49 6e 74 2e 68 20 20 5c c/sqliteInt.h \
27d0: 0a 20 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 73 . $(TOP)/src/s
27e0: 71 6c 69 74 65 4c 69 6d 69 74 2e 68 20 5c 0a 20 qliteLimit.h \.
27f0: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 76 64 62 $(TOP)/src/vdb
2800: 65 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 29 2f e.h \. $(TOP)/
2810: 73 72 63 2f 76 64 62 65 49 6e 74 2e 68 20 5c 0a src/vdbeInt.h \.
2820: 20 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 76 78 $(TOP)/src/vx
2830: 77 6f 72 6b 73 2e 68 20 5c 0a 20 20 20 24 28 54 works.h \. $(T
2840: 4f 50 29 2f 73 72 63 2f 77 68 65 72 65 49 6e 74 OP)/src/whereInt
2850: 2e 68 0a 0a 23 20 48 65 61 64 65 72 20 66 69 6c .h..# Header fil
2860: 65 73 20 75 73 65 64 20 62 79 20 65 78 74 65 6e es used by exten
2870: 73 69 6f 6e 73 0a 23 0a 45 58 54 48 44 52 20 2b sions.#.EXTHDR +
2880: 3d 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 = \. $(TOP)/ext
2890: 2f 66 74 73 31 2f 66 74 73 31 2e 68 20 5c 0a 20 /fts1/fts1.h \.
28a0: 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 31 $(TOP)/ext/fts1
28b0: 2f 66 74 73 31 5f 68 61 73 68 2e 68 20 5c 0a 20 /fts1_hash.h \.
28c0: 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 31 $(TOP)/ext/fts1
28d0: 2f 66 74 73 31 5f 74 6f 6b 65 6e 69 7a 65 72 2e /fts1_tokenizer.
28e0: 68 0a 45 58 54 48 44 52 20 2b 3d 20 5c 0a 20 20 h.EXTHDR += \.
28f0: 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 32 2f $(TOP)/ext/fts2/
2900: 66 74 73 32 2e 68 20 5c 0a 20 20 24 28 54 4f 50 fts2.h \. $(TOP
2910: 29 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 32 5f )/ext/fts2/fts2_
2920: 68 61 73 68 2e 68 20 5c 0a 20 20 24 28 54 4f 50 hash.h \. $(TOP
2930: 29 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 32 5f )/ext/fts2/fts2_
2940: 74 6f 6b 65 6e 69 7a 65 72 2e 68 0a 45 58 54 48 tokenizer.h.EXTH
2950: 44 52 20 2b 3d 20 5c 0a 20 20 24 28 54 4f 50 29 DR += \. $(TOP)
2960: 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 2e 68 /ext/fts3/fts3.h
2970: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f \. $(TOP)/ext/
2980: 66 74 73 33 2f 66 74 73 33 49 6e 74 2e 68 20 5c fts3/fts3Int.h \
2990: 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 . $(TOP)/ext/ft
29a0: 73 33 2f 66 74 73 33 5f 68 61 73 68 2e 68 20 5c s3/fts3_hash.h \
29b0: 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 . $(TOP)/ext/ft
29c0: 73 33 2f 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 s3/fts3_tokenize
29d0: 72 2e 68 0a 45 58 54 48 44 52 20 2b 3d 20 5c 0a r.h.EXTHDR += \.
29e0: 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 72 74 72 $(TOP)/ext/rtr
29f0: 65 65 2f 72 74 72 65 65 2e 68 0a 45 58 54 48 44 ee/rtree.h.EXTHD
2a00: 52 20 2b 3d 20 5c 0a 20 20 24 28 54 4f 50 29 2f R += \. $(TOP)/
2a10: 65 78 74 2f 69 63 75 2f 73 71 6c 69 74 65 69 63 ext/icu/sqliteic
2a20: 75 2e 68 0a 45 58 54 48 44 52 20 2b 3d 20 5c 0a u.h.EXTHDR += \.
2a30: 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 75 73 65 $(TOP)/ext/use
2a40: 72 61 75 74 68 2f 73 71 6c 69 74 65 33 75 73 65 rauth/sqlite3use
2a50: 72 61 75 74 68 2e 68 0a 0a 23 20 54 68 69 73 20 rauth.h..# This
2a60: 69 73 20 74 68 65 20 64 65 66 61 75 6c 74 20 4d is the default M
2a70: 61 6b 65 66 69 6c 65 20 74 61 72 67 65 74 2e 20 akefile target.
2a80: 20 54 68 65 20 6f 62 6a 65 63 74 73 20 6c 69 73 The objects lis
2a90: 74 65 64 20 68 65 72 65 0a 23 20 61 72 65 20 77 ted here.# are w
2aa0: 68 61 74 20 67 65 74 20 62 75 69 6c 64 20 77 68 hat get build wh
2ab0: 65 6e 20 79 6f 75 20 74 79 70 65 20 6a 75 73 74 en you type just
2ac0: 20 22 6d 61 6b 65 22 20 77 69 74 68 20 6e 6f 20 "make" with no
2ad0: 61 72 67 75 6d 65 6e 74 73 2e 0a 23 0a 61 6c 6c arguments..#.all
2ae0: 3a 09 73 71 6c 69 74 65 33 2e 68 20 6c 69 62 73 :.sqlite3.h libs
2af0: 71 6c 69 74 65 33 2e 61 20 73 71 6c 69 74 65 33 qlite3.a sqlite3
2b00: 24 28 45 58 45 29 0a 0a 6c 69 62 73 71 6c 69 74 $(EXE)..libsqlit
2b10: 65 33 2e 61 3a 09 24 28 4c 49 42 4f 42 4a 29 0a e3.a:.$(LIBOBJ).
2b20: 09 24 28 41 52 29 20 6c 69 62 73 71 6c 69 74 65 .$(AR) libsqlite
2b30: 33 2e 61 20 24 28 4c 49 42 4f 42 4a 29 0a 09 24 3.a $(LIBOBJ)..$
2b40: 28 52 41 4e 4c 49 42 29 20 6c 69 62 73 71 6c 69 (RANLIB) libsqli
2b50: 74 65 33 2e 61 0a 0a 73 71 6c 69 74 65 33 24 28 te3.a..sqlite3$(
2b60: 45 58 45 29 3a 09 24 28 54 4f 50 29 2f 73 72 63 EXE):.$(TOP)/src
2b70: 2f 73 68 65 6c 6c 2e 63 20 6c 69 62 73 71 6c 69 /shell.c libsqli
2b80: 74 65 33 2e 61 20 73 71 6c 69 74 65 33 2e 68 0a te3.a sqlite3.h.
2b90: 09 24 28 54 43 43 58 29 20 24 28 52 45 41 44 4c .$(TCCX) $(READL
2ba0: 49 4e 45 5f 46 4c 41 47 53 29 20 2d 6f 20 73 71 INE_FLAGS) -o sq
2bb0: 6c 69 74 65 33 24 28 45 58 45 29 20 20 20 20 20 lite3$(EXE)
2bc0: 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 0a 09 \..
2bd0: 09 24 28 54 4f 50 29 2f 73 72 63 2f 73 68 65 6c .$(TOP)/src/shel
2be0: 6c 2e 63 20 20 20 20 20 20 20 20 20 20 20 20 20 l.c
2bf0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2c00: 20 20 20 20 20 5c 0a 09 09 6c 69 62 73 71 6c 69 \...libsqli
2c10: 74 65 33 2e 61 20 24 28 4c 49 42 52 45 41 44 4c te3.a $(LIBREADL
2c20: 49 4e 45 29 20 24 28 54 4c 49 42 53 29 20 24 28 INE) $(TLIBS) $(
2c30: 54 48 52 45 41 44 4c 49 42 29 0a 0a 73 71 6c 64 THREADLIB)..sqld
2c40: 69 66 66 24 28 45 58 45 29 3a 09 24 28 54 4f 50 iff$(EXE):.$(TOP
2c50: 29 2f 74 6f 6f 6c 2f 73 71 6c 64 69 66 66 2e 63 )/tool/sqldiff.c
2c60: 20 73 71 6c 69 74 65 33 2e 63 20 73 71 6c 69 74 sqlite3.c sqlit
2c70: 65 33 2e 68 0a 09 24 28 54 43 43 58 29 20 2d 6f e3.h..$(TCCX) -o
2c80: 20 73 71 6c 64 69 66 66 24 28 45 58 45 29 20 2d sqldiff$(EXE) -
2c90: 44 53 51 4c 49 54 45 5f 54 48 52 45 41 44 53 41 DSQLITE_THREADSA
2ca0: 46 45 3d 30 20 5c 0a 09 09 24 28 54 4f 50 29 2f FE=0 \...$(TOP)/
2cb0: 74 6f 6f 6c 2f 73 71 6c 64 69 66 66 2e 63 09 73 tool/sqldiff.c.s
2cc0: 71 6c 69 74 65 33 2e 63 20 24 28 54 4c 49 42 53 qlite3.c $(TLIBS
2cd0: 29 20 24 28 54 48 52 45 41 44 4c 49 42 29 0a 0a ) $(THREADLIB)..
2ce0: 66 75 7a 7a 65 72 73 68 65 6c 6c 24 28 45 58 45 fuzzershell$(EXE
2cf0: 29 3a 09 24 28 54 4f 50 29 2f 74 6f 6f 6c 2f 66 ):.$(TOP)/tool/f
2d00: 75 7a 7a 65 72 73 68 65 6c 6c 2e 63 20 73 71 6c uzzershell.c sql
2d10: 69 74 65 33 2e 63 20 73 71 6c 69 74 65 33 2e 68 ite3.c sqlite3.h
2d20: 0a 09 24 28 54 43 43 58 29 20 2d 6f 20 66 75 7a ..$(TCCX) -o fuz
2d30: 7a 65 72 73 68 65 6c 6c 24 28 45 58 45 29 20 2d zershell$(EXE) -
2d40: 44 53 51 4c 49 54 45 5f 54 48 52 45 41 44 53 41 DSQLITE_THREADSA
2d50: 46 45 3d 30 20 2d 44 53 51 4c 49 54 45 5f 4f 4d FE=0 -DSQLITE_OM
2d60: 49 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f IT_LOAD_EXTENSIO
2d70: 4e 5c 0a 09 09 24 28 54 4f 50 29 2f 74 6f 6f 6c N\...$(TOP)/tool
2d80: 2f 66 75 7a 7a 65 72 73 68 65 6c 6c 2e 63 09 73 /fuzzershell.c.s
2d90: 71 6c 69 74 65 33 2e 63 20 24 28 54 4c 49 42 53 qlite3.c $(TLIBS
2da0: 29 20 24 28 54 48 52 45 41 44 4c 49 42 29 0a 0a ) $(THREADLIB)..
2db0: 6d 70 74 65 73 74 65 72 24 28 45 58 45 29 3a 09 mptester$(EXE):.
2dc0: 73 71 6c 69 74 65 33 2e 63 20 24 28 54 4f 50 29 sqlite3.c $(TOP)
2dd0: 2f 6d 70 74 65 73 74 2f 6d 70 74 65 73 74 2e 63 /mptest/mptest.c
2de0: 0a 09 24 28 54 43 43 58 29 20 2d 6f 20 24 40 20 ..$(TCCX) -o $@
2df0: 2d 49 2e 20 24 28 54 4f 50 29 2f 6d 70 74 65 73 -I. $(TOP)/mptes
2e00: 74 2f 6d 70 74 65 73 74 2e 63 20 73 71 6c 69 74 t/mptest.c sqlit
2e10: 65 33 2e 63 20 5c 0a 09 09 24 28 54 4c 49 42 53 e3.c \...$(TLIBS
2e20: 29 20 24 28 54 48 52 45 41 44 4c 49 42 29 0a 0a ) $(THREADLIB)..
2e30: 4d 50 54 45 53 54 31 3d 2e 2f 6d 70 74 65 73 74 MPTEST1=./mptest
2e40: 65 72 24 28 45 58 45 29 20 6d 70 74 65 73 74 2e er$(EXE) mptest.
2e50: 64 62 20 24 28 54 4f 50 29 2f 6d 70 74 65 73 74 db $(TOP)/mptest
2e60: 2f 63 72 61 73 68 30 31 2e 74 65 73 74 20 2d 2d /crash01.test --
2e70: 72 65 70 65 61 74 20 32 30 0a 4d 50 54 45 53 54 repeat 20.MPTEST
2e80: 32 3d 2e 2f 6d 70 74 65 73 74 65 72 24 28 45 58 2=./mptester$(EX
2e90: 45 29 20 6d 70 74 65 73 74 2e 64 62 20 24 28 54 E) mptest.db $(T
2ea0: 4f 50 29 2f 6d 70 74 65 73 74 2f 6d 75 6c 74 69 OP)/mptest/multi
2eb0: 77 72 69 74 65 30 31 2e 74 65 73 74 20 2d 2d 72 write01.test --r
2ec0: 65 70 65 61 74 20 32 30 0a 6d 70 74 65 73 74 3a epeat 20.mptest:
2ed0: 09 6d 70 74 65 73 74 65 72 24 28 45 58 45 29 0a .mptester$(EXE).
2ee0: 09 72 6d 20 2d 66 20 6d 70 74 65 73 74 2e 64 62 .rm -f mptest.db
2ef0: 0a 09 24 28 4d 50 54 45 53 54 31 29 20 2d 2d 6a ..$(MPTEST1) --j
2f00: 6f 75 72 6e 61 6c 6d 6f 64 65 20 44 45 4c 45 54 ournalmode DELET
2f10: 45 0a 09 24 28 4d 50 54 45 53 54 32 29 20 2d 2d E..$(MPTEST2) --
2f20: 6a 6f 75 72 6e 61 6c 6d 6f 64 65 20 57 41 4c 0a journalmode WAL.
2f30: 09 24 28 4d 50 54 45 53 54 31 29 20 2d 2d 6a 6f .$(MPTEST1) --jo
2f40: 75 72 6e 61 6c 6d 6f 64 65 20 57 41 4c 0a 09 24 urnalmode WAL..$
2f50: 28 4d 50 54 45 53 54 32 29 20 2d 2d 6a 6f 75 72 (MPTEST2) --jour
2f60: 6e 61 6c 6d 6f 64 65 20 50 45 52 53 49 53 54 0a nalmode PERSIST.
2f70: 09 24 28 4d 50 54 45 53 54 31 29 20 2d 2d 6a 6f .$(MPTEST1) --jo
2f80: 75 72 6e 61 6c 6d 6f 64 65 20 50 45 52 53 49 53 urnalmode PERSIS
2f90: 54 0a 09 24 28 4d 50 54 45 53 54 32 29 20 2d 2d T..$(MPTEST2) --
2fa0: 6a 6f 75 72 6e 61 6c 6d 6f 64 65 20 54 52 55 4e journalmode TRUN
2fb0: 43 41 54 45 0a 09 24 28 4d 50 54 45 53 54 31 29 CATE..$(MPTEST1)
2fc0: 20 2d 2d 6a 6f 75 72 6e 61 6c 6d 6f 64 65 20 54 --journalmode T
2fd0: 52 55 4e 43 41 54 45 0a 09 24 28 4d 50 54 45 53 RUNCATE..$(MPTES
2fe0: 54 32 29 20 2d 2d 6a 6f 75 72 6e 61 6c 6d 6f 64 T2) --journalmod
2ff0: 65 20 44 45 4c 45 54 45 0a 0a 73 71 6c 69 74 65 e DELETE..sqlite
3000: 33 2e 6f 3a 09 73 71 6c 69 74 65 33 2e 63 0a 09 3.o:.sqlite3.c..
3010: 24 28 54 43 43 58 29 20 2d 49 2e 20 2d 63 20 73 $(TCCX) -I. -c s
3020: 71 6c 69 74 65 33 2e 63 0a 0a 23 20 54 68 69 73 qlite3.c..# This
3030: 20 74 61 72 67 65 74 20 63 72 65 61 74 65 73 20 target creates
3040: 61 20 64 69 72 65 63 74 6f 72 79 20 6e 61 6d 65 a directory name
3050: 64 20 22 74 73 72 63 22 20 61 6e 64 20 66 69 6c d "tsrc" and fil
3060: 6c 73 20 69 74 20 77 69 74 68 0a 23 20 63 6f 70 ls it with.# cop
3070: 69 65 73 20 6f 66 20 61 6c 6c 20 6f 66 20 74 68 ies of all of th
3080: 65 20 43 20 73 6f 75 72 63 65 20 63 6f 64 65 20 e C source code
3090: 61 6e 64 20 68 65 61 64 65 72 20 66 69 6c 65 73 and header files
30a0: 20 6e 65 65 64 65 64 20 74 6f 0a 23 20 62 75 69 needed to.# bui
30b0: 6c 64 20 6f 6e 20 74 68 65 20 74 61 72 67 65 74 ld on the target
30c0: 20 73 79 73 74 65 6d 2e 20 20 53 6f 6d 65 20 6f system. Some o
30d0: 66 20 74 68 65 20 43 20 73 6f 75 72 63 65 20 63 f the C source c
30e0: 6f 64 65 20 61 6e 64 20 68 65 61 64 65 72 0a 23 ode and header.#
30f0: 20 66 69 6c 65 73 20 61 72 65 20 61 75 74 6f 6d files are autom
3100: 61 74 69 63 61 6c 6c 79 20 67 65 6e 65 72 61 74 atically generat
3110: 65 64 2e 20 20 54 68 69 73 20 74 61 72 67 65 74 ed. This target
3120: 20 74 61 6b 65 73 20 63 61 72 65 20 6f 66 0a 23 takes care of.#
3130: 20 61 6c 6c 20 74 68 61 74 20 61 75 74 6f 6d 61 all that automa
3140: 74 69 63 20 67 65 6e 65 72 61 74 69 6f 6e 2e 0a tic generation..
3150: 23 0a 74 61 72 67 65 74 5f 73 6f 75 72 63 65 3a #.target_source:
3160: 09 24 28 53 52 43 29 20 24 28 54 4f 50 29 2f 74 .$(SRC) $(TOP)/t
3170: 6f 6f 6c 2f 76 64 62 65 2d 63 6f 6d 70 72 65 73 ool/vdbe-compres
3180: 73 2e 74 63 6c 0a 09 72 6d 20 2d 72 66 20 74 73 s.tcl..rm -rf ts
3190: 72 63 0a 09 6d 6b 64 69 72 20 74 73 72 63 0a 09 rc..mkdir tsrc..
31a0: 63 70 20 2d 66 20 24 28 53 52 43 29 20 74 73 72 cp -f $(SRC) tsr
31b0: 63 0a 09 72 6d 20 74 73 72 63 2f 73 71 6c 69 74 c..rm tsrc/sqlit
31c0: 65 2e 68 2e 69 6e 20 74 73 72 63 2f 70 61 72 73 e.h.in tsrc/pars
31d0: 65 2e 79 0a 09 74 63 6c 73 68 20 24 28 54 4f 50 e.y..tclsh $(TOP
31e0: 29 2f 74 6f 6f 6c 2f 76 64 62 65 2d 63 6f 6d 70 )/tool/vdbe-comp
31f0: 72 65 73 73 2e 74 63 6c 20 24 28 4f 50 54 53 29 ress.tcl $(OPTS)
3200: 20 3c 74 73 72 63 2f 76 64 62 65 2e 63 20 3e 76 <tsrc/vdbe.c >v
3210: 64 62 65 2e 6e 65 77 0a 09 6d 76 20 76 64 62 65 dbe.new..mv vdbe
3220: 2e 6e 65 77 20 74 73 72 63 2f 76 64 62 65 2e 63 .new tsrc/vdbe.c
3230: 0a 09 74 6f 75 63 68 20 74 61 72 67 65 74 5f 73 ..touch target_s
3240: 6f 75 72 63 65 0a 0a 73 71 6c 69 74 65 33 2e 63 ource..sqlite3.c
3250: 3a 09 74 61 72 67 65 74 5f 73 6f 75 72 63 65 20 :.target_source
3260: 24 28 54 4f 50 29 2f 74 6f 6f 6c 2f 6d 6b 73 71 $(TOP)/tool/mksq
3270: 6c 69 74 65 33 63 2e 74 63 6c 0a 09 74 63 6c 73 lite3c.tcl..tcls
3280: 68 20 24 28 54 4f 50 29 2f 74 6f 6f 6c 2f 6d 6b h $(TOP)/tool/mk
3290: 73 71 6c 69 74 65 33 63 2e 74 63 6c 0a 09 63 70 sqlite3c.tcl..cp
32a0: 20 74 73 72 63 2f 73 68 65 6c 6c 2e 63 20 74 73 tsrc/shell.c ts
32b0: 72 63 2f 73 71 6c 69 74 65 33 65 78 74 2e 68 20 rc/sqlite3ext.h
32c0: 2e 0a 09 65 63 68 6f 20 27 23 69 66 6e 64 65 66 ...echo '#ifndef
32d0: 20 55 53 45 5f 53 59 53 54 45 4d 5f 53 51 4c 49 USE_SYSTEM_SQLI
32e0: 54 45 27 20 3e 74 63 6c 73 71 6c 69 74 65 33 2e TE' >tclsqlite3.
32f0: 63 0a 09 63 61 74 20 73 71 6c 69 74 65 33 2e 63 c..cat sqlite3.c
3300: 20 3e 3e 74 63 6c 73 71 6c 69 74 65 33 2e 63 0a >>tclsqlite3.c.
3310: 09 65 63 68 6f 20 27 23 65 6e 64 69 66 20 2f 2a .echo '#endif /*
3320: 20 55 53 45 5f 53 59 53 54 45 4d 5f 53 51 4c 49 USE_SYSTEM_SQLI
3330: 54 45 20 2a 2f 27 20 3e 3e 74 63 6c 73 71 6c 69 TE */' >>tclsqli
3340: 74 65 33 2e 63 0a 09 63 61 74 20 24 28 54 4f 50 te3.c..cat $(TOP
3350: 29 2f 73 72 63 2f 74 63 6c 73 71 6c 69 74 65 2e )/src/tclsqlite.
3360: 63 20 3e 3e 74 63 6c 73 71 6c 69 74 65 33 2e 63 c >>tclsqlite3.c
3370: 0a 0a 73 71 6c 69 74 65 33 2e 63 2d 64 65 62 75 ..sqlite3.c-debu
3380: 67 3a 09 74 61 72 67 65 74 5f 73 6f 75 72 63 65 g:.target_source
3390: 20 24 28 54 4f 50 29 2f 74 6f 6f 6c 2f 6d 6b 73 $(TOP)/tool/mks
33a0: 71 6c 69 74 65 33 63 2e 74 63 6c 0a 09 74 63 6c qlite3c.tcl..tcl
33b0: 73 68 20 24 28 54 4f 50 29 2f 74 6f 6f 6c 2f 6d sh $(TOP)/tool/m
33c0: 6b 73 71 6c 69 74 65 33 63 2e 74 63 6c 20 2d 2d ksqlite3c.tcl --
33d0: 6c 69 6e 65 6d 61 63 72 6f 73 0a 09 65 63 68 6f linemacros..echo
33e0: 20 27 23 69 66 6e 64 65 66 20 55 53 45 5f 53 59 '#ifndef USE_SY
33f0: 53 54 45 4d 5f 53 51 4c 49 54 45 27 20 3e 74 63 STEM_SQLITE' >tc
3400: 6c 73 71 6c 69 74 65 33 2e 63 0a 09 63 61 74 20 lsqlite3.c..cat
3410: 73 71 6c 69 74 65 33 2e 63 20 3e 3e 74 63 6c 73 sqlite3.c >>tcls
3420: 71 6c 69 74 65 33 2e 63 0a 09 65 63 68 6f 20 27 qlite3.c..echo '
3430: 23 65 6e 64 69 66 20 2f 2a 20 55 53 45 5f 53 59 #endif /* USE_SY
3440: 53 54 45 4d 5f 53 51 4c 49 54 45 20 2a 2f 27 20 STEM_SQLITE */'
3450: 3e 3e 74 63 6c 73 71 6c 69 74 65 33 2e 63 0a 09 >>tclsqlite3.c..
3460: 65 63 68 6f 20 27 23 6c 69 6e 65 20 31 20 22 74 echo '#line 1 "t
3470: 63 6c 73 71 6c 69 74 65 2e 63 22 27 20 3e 3e 74 clsqlite.c"' >>t
3480: 63 6c 73 71 6c 69 74 65 33 2e 63 0a 09 63 61 74 clsqlite3.c..cat
3490: 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 63 6c 73 $(TOP)/src/tcls
34a0: 71 6c 69 74 65 2e 63 20 3e 3e 74 63 6c 73 71 6c qlite.c >>tclsql
34b0: 69 74 65 33 2e 63 0a 0a 73 71 6c 69 74 65 33 2d ite3.c..sqlite3-
34c0: 61 6c 6c 2e 63 3a 09 73 71 6c 69 74 65 33 2e 63 all.c:.sqlite3.c
34d0: 20 24 28 54 4f 50 29 2f 74 6f 6f 6c 2f 73 70 6c $(TOP)/tool/spl
34e0: 69 74 2d 73 71 6c 69 74 65 33 63 2e 74 63 6c 0a it-sqlite3c.tcl.
34f0: 09 74 63 6c 73 68 20 24 28 54 4f 50 29 2f 74 6f .tclsh $(TOP)/to
3500: 6f 6c 2f 73 70 6c 69 74 2d 73 71 6c 69 74 65 33 ol/split-sqlite3
3510: 63 2e 74 63 6c 0a 0a 66 74 73 32 61 6d 61 6c 2e c.tcl..fts2amal.
3520: 63 3a 09 74 61 72 67 65 74 5f 73 6f 75 72 63 65 c:.target_source
3530: 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 32 $(TOP)/ext/fts2
3540: 2f 6d 6b 66 74 73 32 61 6d 61 6c 2e 74 63 6c 0a /mkfts2amal.tcl.
3550: 09 74 63 6c 73 68 20 24 28 54 4f 50 29 2f 65 78 .tclsh $(TOP)/ex
3560: 74 2f 66 74 73 32 2f 6d 6b 66 74 73 32 61 6d 61 t/fts2/mkfts2ama
3570: 6c 2e 74 63 6c 0a 0a 66 74 73 33 61 6d 61 6c 2e l.tcl..fts3amal.
3580: 63 3a 09 74 61 72 67 65 74 5f 73 6f 75 72 63 65 c:.target_source
3590: 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 $(TOP)/ext/fts3
35a0: 2f 6d 6b 66 74 73 33 61 6d 61 6c 2e 74 63 6c 0a /mkfts3amal.tcl.
35b0: 09 74 63 6c 73 68 20 24 28 54 4f 50 29 2f 65 78 .tclsh $(TOP)/ex
35c0: 74 2f 66 74 73 33 2f 6d 6b 66 74 73 33 61 6d 61 t/fts3/mkfts3ama
35d0: 6c 2e 74 63 6c 0a 0a 23 20 52 75 6c 65 73 20 74 l.tcl..# Rules t
35e0: 6f 20 62 75 69 6c 64 20 74 68 65 20 4c 45 4d 4f o build the LEMO
35f0: 4e 20 63 6f 6d 70 69 6c 65 72 20 67 65 6e 65 72 N compiler gener
3600: 61 74 6f 72 0a 23 0a 6c 65 6d 6f 6e 3a 09 24 28 ator.#.lemon:.$(
3610: 54 4f 50 29 2f 74 6f 6f 6c 2f 6c 65 6d 6f 6e 2e TOP)/tool/lemon.
3620: 63 20 24 28 54 4f 50 29 2f 73 72 63 2f 6c 65 6d c $(TOP)/src/lem
3630: 70 61 72 2e 63 0a 09 24 28 42 43 43 29 20 2d 6f par.c..$(BCC) -o
3640: 20 6c 65 6d 6f 6e 20 24 28 54 4f 50 29 2f 74 6f lemon $(TOP)/to
3650: 6f 6c 2f 6c 65 6d 6f 6e 2e 63 0a 09 63 70 20 24 ol/lemon.c..cp $
3660: 28 54 4f 50 29 2f 73 72 63 2f 6c 65 6d 70 61 72 (TOP)/src/lempar
3670: 2e 63 20 2e 0a 0a 23 20 52 75 6c 65 73 20 74 6f .c ...# Rules to
3680: 20 62 75 69 6c 64 20 69 6e 64 69 76 69 64 75 61 build individua
3690: 6c 20 2a 2e 6f 20 66 69 6c 65 73 20 66 72 6f 6d l *.o files from
36a0: 20 67 65 6e 65 72 61 74 65 64 20 2a 2e 63 20 66 generated *.c f
36b0: 69 6c 65 73 2e 20 54 68 69 73 0a 23 20 61 70 70 iles. This.# app
36c0: 6c 69 65 73 20 74 6f 3a 0a 23 0a 23 20 20 20 20 lies to:.#.#
36d0: 20 70 61 72 73 65 2e 6f 0a 23 20 20 20 20 20 6f parse.o.# o
36e0: 70 63 6f 64 65 73 2e 6f 0a 23 0a 25 2e 6f 3a 20 pcodes.o.#.%.o:
36f0: 25 2e 63 20 24 28 48 44 52 29 0a 09 24 28 54 43 %.c $(HDR)..$(TC
3700: 43 58 29 20 2d 63 20 24 3c 0a 0a 23 20 52 75 6c CX) -c $<..# Rul
3710: 65 73 20 74 6f 20 62 75 69 6c 64 20 69 6e 64 69 es to build indi
3720: 76 69 64 75 61 6c 20 2a 2e 6f 20 66 69 6c 65 73 vidual *.o files
3730: 20 66 72 6f 6d 20 66 69 6c 65 73 20 69 6e 20 74 from files in t
3740: 68 65 20 73 72 63 20 64 69 72 65 63 74 6f 72 79 he src directory
3750: 2e 0a 23 0a 25 2e 6f 3a 20 24 28 54 4f 50 29 2f ..#.%.o: $(TOP)/
3760: 73 72 63 2f 25 2e 63 20 24 28 48 44 52 29 0a 09 src/%.c $(HDR)..
3770: 24 28 54 43 43 58 29 20 2d 63 20 24 3c 0a 0a 74 $(TCCX) -c $<..t
3780: 63 6c 73 71 6c 69 74 65 2e 6f 3a 09 24 28 54 4f clsqlite.o:.$(TO
3790: 50 29 2f 73 72 63 2f 74 63 6c 73 71 6c 69 74 65 P)/src/tclsqlite
37a0: 2e 63 20 24 28 48 44 52 29 0a 09 24 28 54 43 43 .c $(HDR)..$(TCC
37b0: 58 29 20 24 28 54 43 4c 5f 46 4c 41 47 53 29 20 X) $(TCL_FLAGS)
37c0: 2d 63 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 63 -c $(TOP)/src/tc
37d0: 6c 73 71 6c 69 74 65 2e 63 0a 0a 0a 0a 23 20 52 lsqlite.c....# R
37e0: 75 6c 65 73 20 74 6f 20 62 75 69 6c 64 20 6f 70 ules to build op
37f0: 63 6f 64 65 73 2e 63 20 61 6e 64 20 6f 70 63 6f codes.c and opco
3800: 64 65 73 2e 68 0a 23 0a 6f 70 63 6f 64 65 73 2e des.h.#.opcodes.
3810: 63 3a 09 6f 70 63 6f 64 65 73 2e 68 20 24 28 54 c:.opcodes.h $(T
3820: 4f 50 29 2f 6d 6b 6f 70 63 6f 64 65 63 2e 61 77 OP)/mkopcodec.aw
3830: 6b 0a 09 24 28 4e 41 57 4b 29 20 2d 66 20 24 28 k..$(NAWK) -f $(
3840: 54 4f 50 29 2f 6d 6b 6f 70 63 6f 64 65 63 2e 61 TOP)/mkopcodec.a
3850: 77 6b 20 6f 70 63 6f 64 65 73 2e 68 20 3e 6f 70 wk opcodes.h >op
3860: 63 6f 64 65 73 2e 63 0a 0a 6f 70 63 6f 64 65 73 codes.c..opcodes
3870: 2e 68 3a 09 70 61 72 73 65 2e 68 20 24 28 54 4f .h:.parse.h $(TO
3880: 50 29 2f 73 72 63 2f 76 64 62 65 2e 63 20 24 28 P)/src/vdbe.c $(
3890: 54 4f 50 29 2f 6d 6b 6f 70 63 6f 64 65 68 2e 61 TOP)/mkopcodeh.a
38a0: 77 6b 0a 09 63 61 74 20 70 61 72 73 65 2e 68 20 wk..cat parse.h
38b0: 24 28 54 4f 50 29 2f 73 72 63 2f 76 64 62 65 2e $(TOP)/src/vdbe.
38c0: 63 20 7c 20 5c 0a 09 09 24 28 4e 41 57 4b 29 20 c | \...$(NAWK)
38d0: 2d 66 20 24 28 54 4f 50 29 2f 6d 6b 6f 70 63 6f -f $(TOP)/mkopco
38e0: 64 65 68 2e 61 77 6b 20 3e 6f 70 63 6f 64 65 73 deh.awk >opcodes
38f0: 2e 68 0a 0a 23 20 52 75 6c 65 73 20 74 6f 20 62 .h..# Rules to b
3900: 75 69 6c 64 20 70 61 72 73 65 2e 63 20 61 6e 64 uild parse.c and
3910: 20 70 61 72 73 65 2e 68 20 2d 20 74 68 65 20 6f parse.h - the o
3920: 75 74 70 75 74 73 20 6f 66 20 6c 65 6d 6f 6e 2e utputs of lemon.
3930: 0a 23 0a 70 61 72 73 65 2e 68 3a 09 70 61 72 73 .#.parse.h:.pars
3940: 65 2e 63 0a 0a 70 61 72 73 65 2e 63 3a 09 24 28 e.c..parse.c:.$(
3950: 54 4f 50 29 2f 73 72 63 2f 70 61 72 73 65 2e 79 TOP)/src/parse.y
3960: 20 6c 65 6d 6f 6e 20 24 28 54 4f 50 29 2f 61 64 lemon $(TOP)/ad
3970: 64 6f 70 63 6f 64 65 73 2e 61 77 6b 0a 09 63 70 dopcodes.awk..cp
3980: 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 61 72 73 $(TOP)/src/pars
3990: 65 2e 79 20 2e 0a 09 72 6d 20 2d 66 20 70 61 72 e.y ...rm -f par
39a0: 73 65 2e 68 0a 09 2e 2f 6c 65 6d 6f 6e 20 24 28 se.h.../lemon $(
39b0: 4f 50 54 53 29 20 70 61 72 73 65 2e 79 0a 09 6d OPTS) parse.y..m
39c0: 76 20 70 61 72 73 65 2e 68 20 70 61 72 73 65 2e v parse.h parse.
39d0: 68 2e 74 65 6d 70 0a 09 24 28 4e 41 57 4b 29 20 h.temp..$(NAWK)
39e0: 2d 66 20 24 28 54 4f 50 29 2f 61 64 64 6f 70 63 -f $(TOP)/addopc
39f0: 6f 64 65 73 2e 61 77 6b 20 70 61 72 73 65 2e 68 odes.awk parse.h
3a00: 2e 74 65 6d 70 20 3e 70 61 72 73 65 2e 68 0a 0a .temp >parse.h..
3a10: 73 71 6c 69 74 65 33 2e 68 3a 09 24 28 54 4f 50 sqlite3.h:.$(TOP
3a20: 29 2f 73 72 63 2f 73 71 6c 69 74 65 2e 68 2e 69 )/src/sqlite.h.i
3a30: 6e 20 24 28 54 4f 50 29 2f 6d 61 6e 69 66 65 73 n $(TOP)/manifes
3a40: 74 2e 75 75 69 64 20 24 28 54 4f 50 29 2f 56 45 t.uuid $(TOP)/VE
3a50: 52 53 49 4f 4e 20 24 28 54 4f 50 29 2f 65 78 74 RSION $(TOP)/ext
3a60: 2f 72 74 72 65 65 2f 73 71 6c 69 74 65 33 72 74 /rtree/sqlite3rt
3a70: 72 65 65 2e 68 0a 09 74 63 6c 73 68 20 24 28 54 ree.h..tclsh $(T
3a80: 4f 50 29 2f 74 6f 6f 6c 2f 6d 6b 73 71 6c 69 74 OP)/tool/mksqlit
3a90: 65 33 68 2e 74 63 6c 20 24 28 54 4f 50 29 20 3e e3h.tcl $(TOP) >
3aa0: 73 71 6c 69 74 65 33 2e 68 0a 0a 6b 65 79 77 6f sqlite3.h..keywo
3ab0: 72 64 68 61 73 68 2e 68 3a 09 24 28 54 4f 50 29 rdhash.h:.$(TOP)
3ac0: 2f 74 6f 6f 6c 2f 6d 6b 6b 65 79 77 6f 72 64 68 /tool/mkkeywordh
3ad0: 61 73 68 2e 63 0a 09 24 28 42 43 43 29 20 2d 6f ash.c..$(BCC) -o
3ae0: 20 6d 6b 6b 65 79 77 6f 72 64 68 61 73 68 20 24 mkkeywordhash $
3af0: 28 4f 50 54 53 29 20 24 28 54 4f 50 29 2f 74 6f (OPTS) $(TOP)/to
3b00: 6f 6c 2f 6d 6b 6b 65 79 77 6f 72 64 68 61 73 68 ol/mkkeywordhash
3b10: 2e 63 0a 09 2e 2f 6d 6b 6b 65 79 77 6f 72 64 68 .c.../mkkeywordh
3b20: 61 73 68 20 3e 6b 65 79 77 6f 72 64 68 61 73 68 ash >keywordhash
3b30: 2e 68 0a 0a 0a 0a 23 20 52 75 6c 65 73 20 74 6f .h....# Rules to
3b40: 20 62 75 69 6c 64 20 74 68 65 20 65 78 74 65 6e build the exten
3b50: 73 69 6f 6e 20 6f 62 6a 65 63 74 73 2e 0a 23 0a sion objects..#.
3b60: 69 63 75 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 78 icu.o:.$(TOP)/ex
3b70: 74 2f 69 63 75 2f 69 63 75 2e 63 20 24 28 48 44 t/icu/icu.c $(HD
3b80: 52 29 20 24 28 45 58 54 48 44 52 29 0a 09 24 28 R) $(EXTHDR)..$(
3b90: 54 43 43 58 29 20 2d 44 53 51 4c 49 54 45 5f 43 TCCX) -DSQLITE_C
3ba0: 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 ORE -c $(TOP)/ex
3bb0: 74 2f 69 63 75 2f 69 63 75 2e 63 0a 0a 66 74 73 t/icu/icu.c..fts
3bc0: 32 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 78 74 2f 2.o:.$(TOP)/ext/
3bd0: 66 74 73 32 2f 66 74 73 32 2e 63 20 24 28 48 44 fts2/fts2.c $(HD
3be0: 52 29 20 24 28 45 58 54 48 44 52 29 0a 09 24 28 R) $(EXTHDR)..$(
3bf0: 54 43 43 58 29 20 2d 44 53 51 4c 49 54 45 5f 43 TCCX) -DSQLITE_C
3c00: 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 ORE -c $(TOP)/ex
3c10: 74 2f 66 74 73 32 2f 66 74 73 32 2e 63 0a 0a 66 t/fts2/fts2.c..f
3c20: 74 73 32 5f 68 61 73 68 2e 6f 3a 09 24 28 54 4f ts2_hash.o:.$(TO
3c30: 50 29 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 32 P)/ext/fts2/fts2
3c40: 5f 68 61 73 68 2e 63 20 24 28 48 44 52 29 20 24 _hash.c $(HDR) $
3c50: 28 45 58 54 48 44 52 29 0a 09 24 28 54 43 43 58 (EXTHDR)..$(TCCX
3c60: 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 ) -DSQLITE_CORE
3c70: 2d 63 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 -c $(TOP)/ext/ft
3c80: 73 32 2f 66 74 73 32 5f 68 61 73 68 2e 63 0a 0a s2/fts2_hash.c..
3c90: 66 74 73 32 5f 69 63 75 2e 6f 3a 09 24 28 54 4f fts2_icu.o:.$(TO
3ca0: 50 29 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 32 P)/ext/fts2/fts2
3cb0: 5f 69 63 75 2e 63 20 24 28 48 44 52 29 20 24 28 _icu.c $(HDR) $(
3cc0: 45 58 54 48 44 52 29 0a 09 24 28 54 43 43 58 29 EXTHDR)..$(TCCX)
3cd0: 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d -DSQLITE_CORE -
3ce0: 63 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 c $(TOP)/ext/fts
3cf0: 32 2f 66 74 73 32 5f 69 63 75 2e 63 0a 0a 66 74 2/fts2_icu.c..ft
3d00: 73 32 5f 70 6f 72 74 65 72 2e 6f 3a 09 24 28 54 s2_porter.o:.$(T
3d10: 4f 50 29 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 OP)/ext/fts2/fts
3d20: 32 5f 70 6f 72 74 65 72 2e 63 20 24 28 48 44 52 2_porter.c $(HDR
3d30: 29 20 24 28 45 58 54 48 44 52 29 0a 09 24 28 54 ) $(EXTHDR)..$(T
3d40: 43 43 58 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f CCX) -DSQLITE_CO
3d50: 52 45 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 74 RE -c $(TOP)/ext
3d60: 2f 66 74 73 32 2f 66 74 73 32 5f 70 6f 72 74 65 /fts2/fts2_porte
3d70: 72 2e 63 0a 0a 66 74 73 32 5f 74 6f 6b 65 6e 69 r.c..fts2_tokeni
3d80: 7a 65 72 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 78 zer.o:.$(TOP)/ex
3d90: 74 2f 66 74 73 32 2f 66 74 73 32 5f 74 6f 6b 65 t/fts2/fts2_toke
3da0: 6e 69 7a 65 72 2e 63 20 24 28 48 44 52 29 20 24 nizer.c $(HDR) $
3db0: 28 45 58 54 48 44 52 29 0a 09 24 28 54 43 43 58 (EXTHDR)..$(TCCX
3dc0: 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 ) -DSQLITE_CORE
3dd0: 2d 63 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 -c $(TOP)/ext/ft
3de0: 73 32 2f 66 74 73 32 5f 74 6f 6b 65 6e 69 7a 65 s2/fts2_tokenize
3df0: 72 2e 63 0a 0a 66 74 73 32 5f 74 6f 6b 65 6e 69 r.c..fts2_tokeni
3e00: 7a 65 72 31 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 zer1.o:.$(TOP)/e
3e10: 78 74 2f 66 74 73 32 2f 66 74 73 32 5f 74 6f 6b xt/fts2/fts2_tok
3e20: 65 6e 69 7a 65 72 31 2e 63 20 24 28 48 44 52 29 enizer1.c $(HDR)
3e30: 20 24 28 45 58 54 48 44 52 29 0a 09 24 28 54 43 $(EXTHDR)..$(TC
3e40: 43 58 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 CX) -DSQLITE_COR
3e50: 45 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 74 2f E -c $(TOP)/ext/
3e60: 66 74 73 32 2f 66 74 73 32 5f 74 6f 6b 65 6e 69 fts2/fts2_tokeni
3e70: 7a 65 72 31 2e 63 0a 0a 66 74 73 33 2e 6f 3a 09 zer1.c..fts3.o:.
3e80: 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f $(TOP)/ext/fts3/
3e90: 66 74 73 33 2e 63 20 24 28 48 44 52 29 20 24 28 fts3.c $(HDR) $(
3ea0: 45 58 54 48 44 52 29 0a 09 24 28 54 43 43 58 29 EXTHDR)..$(TCCX)
3eb0: 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d -DSQLITE_CORE -
3ec0: 63 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 c $(TOP)/ext/fts
3ed0: 33 2f 66 74 73 33 2e 63 0a 0a 66 74 73 33 5f 61 3/fts3.c..fts3_a
3ee0: 75 78 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 78 74 ux.o:.$(TOP)/ext
3ef0: 2f 66 74 73 33 2f 66 74 73 33 5f 61 75 78 2e 63 /fts3/fts3_aux.c
3f00: 20 24 28 48 44 52 29 20 24 28 45 58 54 48 44 52 $(HDR) $(EXTHDR
3f10: 29 0a 09 24 28 54 43 43 58 29 20 2d 44 53 51 4c )..$(TCCX) -DSQL
3f20: 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f ITE_CORE -c $(TO
3f30: 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 P)/ext/fts3/fts3
3f40: 5f 61 75 78 2e 63 0a 0a 66 74 73 33 5f 65 78 70 _aux.c..fts3_exp
3f50: 72 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 78 74 2f r.o:.$(TOP)/ext/
3f60: 66 74 73 33 2f 66 74 73 33 5f 65 78 70 72 2e 63 fts3/fts3_expr.c
3f70: 20 24 28 48 44 52 29 20 24 28 45 58 54 48 44 52 $(HDR) $(EXTHDR
3f80: 29 0a 09 24 28 54 43 43 58 29 20 2d 44 53 51 4c )..$(TCCX) -DSQL
3f90: 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f ITE_CORE -c $(TO
3fa0: 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 P)/ext/fts3/fts3
3fb0: 5f 65 78 70 72 2e 63 0a 0a 66 74 73 33 5f 68 61 _expr.c..fts3_ha
3fc0: 73 68 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 78 74 sh.o:.$(TOP)/ext
3fd0: 2f 66 74 73 33 2f 66 74 73 33 5f 68 61 73 68 2e /fts3/fts3_hash.
3fe0: 63 20 24 28 48 44 52 29 20 24 28 45 58 54 48 44 c $(HDR) $(EXTHD
3ff0: 52 29 0a 09 24 28 54 43 43 58 29 20 2d 44 53 51 R)..$(TCCX) -DSQ
4000: 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 54 LITE_CORE -c $(T
4010: 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 OP)/ext/fts3/fts
4020: 33 5f 68 61 73 68 2e 63 0a 0a 66 74 73 33 5f 69 3_hash.c..fts3_i
4030: 63 75 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 78 74 cu.o:.$(TOP)/ext
4040: 2f 66 74 73 33 2f 66 74 73 33 5f 69 63 75 2e 63 /fts3/fts3_icu.c
4050: 20 24 28 48 44 52 29 20 24 28 45 58 54 48 44 52 $(HDR) $(EXTHDR
4060: 29 0a 09 24 28 54 43 43 58 29 20 2d 44 53 51 4c )..$(TCCX) -DSQL
4070: 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f ITE_CORE -c $(TO
4080: 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 P)/ext/fts3/fts3
4090: 5f 69 63 75 2e 63 0a 0a 66 74 73 33 5f 73 6e 69 _icu.c..fts3_sni
40a0: 70 70 65 74 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 ppet.o:.$(TOP)/e
40b0: 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 73 6e 69 xt/fts3/fts3_sni
40c0: 70 70 65 74 2e 63 20 24 28 48 44 52 29 20 24 28 ppet.c $(HDR) $(
40d0: 45 58 54 48 44 52 29 0a 09 24 28 54 43 43 58 29 EXTHDR)..$(TCCX)
40e0: 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d -DSQLITE_CORE -
40f0: 63 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 c $(TOP)/ext/fts
4100: 33 2f 66 74 73 33 5f 73 6e 69 70 70 65 74 2e 63 3/fts3_snippet.c
4110: 0a 0a 66 74 73 33 5f 70 6f 72 74 65 72 2e 6f 3a ..fts3_porter.o:
4120: 09 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 .$(TOP)/ext/fts3
4130: 2f 66 74 73 33 5f 70 6f 72 74 65 72 2e 63 20 24 /fts3_porter.c $
4140: 28 48 44 52 29 20 24 28 45 58 54 48 44 52 29 0a (HDR) $(EXTHDR).
4150: 09 24 28 54 43 43 58 29 20 2d 44 53 51 4c 49 54 .$(TCCX) -DSQLIT
4160: 45 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 E_CORE -c $(TOP)
4170: 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 70 /ext/fts3/fts3_p
4180: 6f 72 74 65 72 2e 63 0a 0a 66 74 73 33 5f 74 6f orter.c..fts3_to
4190: 6b 65 6e 69 7a 65 72 2e 6f 3a 09 24 28 54 4f 50 kenizer.o:.$(TOP
41a0: 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 5f )/ext/fts3/fts3_
41b0: 74 6f 6b 65 6e 69 7a 65 72 2e 63 20 24 28 48 44 tokenizer.c $(HD
41c0: 52 29 20 24 28 45 58 54 48 44 52 29 0a 09 24 28 R) $(EXTHDR)..$(
41d0: 54 43 43 58 29 20 2d 44 53 51 4c 49 54 45 5f 43 TCCX) -DSQLITE_C
41e0: 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 ORE -c $(TOP)/ex
41f0: 74 2f 66 74 73 33 2f 66 74 73 33 5f 74 6f 6b 65 t/fts3/fts3_toke
4200: 6e 69 7a 65 72 2e 63 0a 0a 66 74 73 33 5f 74 6f nizer.c..fts3_to
4210: 6b 65 6e 69 7a 65 72 31 2e 6f 3a 09 24 28 54 4f kenizer1.o:.$(TO
4220: 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 P)/ext/fts3/fts3
4230: 5f 74 6f 6b 65 6e 69 7a 65 72 31 2e 63 20 24 28 _tokenizer1.c $(
4240: 48 44 52 29 20 24 28 45 58 54 48 44 52 29 0a 09 HDR) $(EXTHDR)..
4250: 24 28 54 43 43 58 29 20 2d 44 53 51 4c 49 54 45 $(TCCX) -DSQLITE
4260: 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 2f _CORE -c $(TOP)/
4270: 65 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 74 6f ext/fts3/fts3_to
4280: 6b 65 6e 69 7a 65 72 31 2e 63 0a 0a 66 74 73 33 kenizer1.c..fts3
4290: 5f 74 6f 6b 65 6e 69 7a 65 5f 76 74 61 62 2e 6f _tokenize_vtab.o
42a0: 3a 09 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 :.$(TOP)/ext/fts
42b0: 33 2f 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 5f 3/fts3_tokenize_
42c0: 76 74 61 62 2e 63 20 24 28 48 44 52 29 20 24 28 vtab.c $(HDR) $(
42d0: 45 58 54 48 44 52 29 0a 09 24 28 54 43 43 58 29 EXTHDR)..$(TCCX)
42e0: 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d -DSQLITE_CORE -
42f0: 63 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 c $(TOP)/ext/fts
4300: 33 2f 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 5f 3/fts3_tokenize_
4310: 76 74 61 62 2e 63 0a 0a 66 74 73 33 5f 75 6e 69 vtab.c..fts3_uni
4320: 63 6f 64 65 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 code.o:.$(TOP)/e
4330: 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 75 6e 69 xt/fts3/fts3_uni
4340: 63 6f 64 65 2e 63 20 24 28 48 44 52 29 20 24 28 code.c $(HDR) $(
4350: 45 58 54 48 44 52 29 0a 09 24 28 54 43 43 58 29 EXTHDR)..$(TCCX)
4360: 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d -DSQLITE_CORE -
4370: 63 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 c $(TOP)/ext/fts
4380: 33 2f 66 74 73 33 5f 75 6e 69 63 6f 64 65 2e 63 3/fts3_unicode.c
4390: 0a 0a 66 74 73 33 5f 75 6e 69 63 6f 64 65 32 2e ..fts3_unicode2.
43a0: 6f 3a 09 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 o:.$(TOP)/ext/ft
43b0: 73 33 2f 66 74 73 33 5f 75 6e 69 63 6f 64 65 32 s3/fts3_unicode2
43c0: 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 54 48 .c $(HDR) $(EXTH
43d0: 44 52 29 0a 09 24 28 54 43 43 58 29 20 2d 44 53 DR)..$(TCCX) -DS
43e0: 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 QLITE_CORE -c $(
43f0: 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 TOP)/ext/fts3/ft
4400: 73 33 5f 75 6e 69 63 6f 64 65 32 2e 63 0a 0a 66 s3_unicode2.c..f
4410: 74 73 33 5f 77 72 69 74 65 2e 6f 3a 09 24 28 54 ts3_write.o:.$(T
4420: 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 OP)/ext/fts3/fts
4430: 33 5f 77 72 69 74 65 2e 63 20 24 28 48 44 52 29 3_write.c $(HDR)
4440: 20 24 28 45 58 54 48 44 52 29 0a 09 24 28 54 43 $(EXTHDR)..$(TC
4450: 43 58 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 CX) -DSQLITE_COR
4460: 45 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 74 2f E -c $(TOP)/ext/
4470: 66 74 73 33 2f 66 74 73 33 5f 77 72 69 74 65 2e fts3/fts3_write.
4480: 63 0a 0a 72 74 72 65 65 2e 6f 3a 09 24 28 54 4f c..rtree.o:.$(TO
4490: 50 29 2f 65 78 74 2f 72 74 72 65 65 2f 72 74 72 P)/ext/rtree/rtr
44a0: 65 65 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 ee.c $(HDR) $(EX
44b0: 54 48 44 52 29 0a 09 24 28 54 43 43 58 29 20 2d THDR)..$(TCCX) -
44c0: 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 DSQLITE_CORE -c
44d0: 24 28 54 4f 50 29 2f 65 78 74 2f 72 74 72 65 65 $(TOP)/ext/rtree
44e0: 2f 72 74 72 65 65 2e 63 0a 0a 75 73 65 72 61 75 /rtree.c..userau
44f0: 74 68 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 78 74 th.o:.$(TOP)/ext
4500: 2f 75 73 65 72 61 75 74 68 2f 75 73 65 72 61 75 /userauth/userau
4510: 74 68 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 th.c $(HDR) $(EX
4520: 54 48 44 52 29 0a 09 24 28 54 43 43 58 29 20 2d THDR)..$(TCCX) -
4530: 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 DSQLITE_CORE -c
4540: 24 28 54 4f 50 29 2f 65 78 74 2f 75 73 65 72 61 $(TOP)/ext/usera
4550: 75 74 68 2f 75 73 65 72 61 75 74 68 2e 63 0a 0a uth/userauth.c..
4560: 0a 23 20 52 75 6c 65 73 20 66 6f 72 20 62 75 69 .# Rules for bui
4570: 6c 64 69 6e 67 20 74 65 73 74 20 70 72 6f 67 72 lding test progr
4580: 61 6d 73 20 61 6e 64 20 66 6f 72 20 72 75 6e 6e ams and for runn
4590: 69 6e 67 20 74 65 73 74 73 0a 23 0a 74 63 6c 73 ing tests.#.tcls
45a0: 71 6c 69 74 65 33 3a 09 24 28 54 4f 50 29 2f 73 qlite3:.$(TOP)/s
45b0: 72 63 2f 74 63 6c 73 71 6c 69 74 65 2e 63 20 6c rc/tclsqlite.c l
45c0: 69 62 73 71 6c 69 74 65 33 2e 61 0a 09 24 28 54 ibsqlite3.a..$(T
45d0: 43 43 58 29 20 24 28 54 43 4c 5f 46 4c 41 47 53 CCX) $(TCL_FLAGS
45e0: 29 20 2d 44 54 43 4c 53 48 3d 31 20 2d 6f 20 74 ) -DTCLSH=1 -o t
45f0: 63 6c 73 71 6c 69 74 65 33 20 5c 0a 09 09 24 28 clsqlite3 \...$(
4600: 54 4f 50 29 2f 73 72 63 2f 74 63 6c 73 71 6c 69 TOP)/src/tclsqli
4610: 74 65 2e 63 20 6c 69 62 73 71 6c 69 74 65 33 2e te.c libsqlite3.
4620: 61 20 24 28 4c 49 42 54 43 4c 29 20 24 28 54 48 a $(LIBTCL) $(TH
4630: 52 45 41 44 4c 49 42 29 0a 0a 73 71 6c 69 74 65 READLIB)..sqlite
4640: 33 5f 61 6e 61 6c 79 7a 65 72 2e 63 3a 20 73 71 3_analyzer.c: sq
4650: 6c 69 74 65 33 2e 63 20 24 28 54 4f 50 29 2f 73 lite3.c $(TOP)/s
4660: 72 63 2f 74 63 6c 73 71 6c 69 74 65 2e 63 20 24 rc/tclsqlite.c $
4670: 28 54 4f 50 29 2f 74 6f 6f 6c 2f 73 70 61 63 65 (TOP)/tool/space
4680: 61 6e 61 6c 2e 74 63 6c 0a 09 65 63 68 6f 20 22 anal.tcl..echo "
4690: 23 64 65 66 69 6e 65 20 54 43 4c 53 48 20 32 22 #define TCLSH 2"
46a0: 20 3e 20 24 40 0a 09 65 63 68 6f 20 22 23 64 65 > $@..echo "#de
46b0: 66 69 6e 65 20 53 51 4c 49 54 45 5f 45 4e 41 42 fine SQLITE_ENAB
46c0: 4c 45 5f 44 42 53 54 41 54 5f 56 54 41 42 20 31 LE_DBSTAT_VTAB 1
46d0: 22 20 3e 3e 20 24 40 0a 09 63 61 74 20 73 71 6c " >> $@..cat sql
46e0: 69 74 65 33 2e 63 20 24 28 54 4f 50 29 2f 73 72 ite3.c $(TOP)/sr
46f0: 63 2f 74 63 6c 73 71 6c 69 74 65 2e 63 20 3e 3e c/tclsqlite.c >>
4700: 20 24 40 0a 09 65 63 68 6f 20 22 73 74 61 74 69 $@..echo "stati
4710: 63 20 63 6f 6e 73 74 20 63 68 61 72 20 2a 74 63 c const char *tc
4720: 6c 73 68 5f 6d 61 69 6e 5f 6c 6f 6f 70 28 76 6f lsh_main_loop(vo
4730: 69 64 29 7b 22 20 3e 3e 20 24 40 0a 09 65 63 68 id){" >> $@..ech
4740: 6f 20 22 73 74 61 74 69 63 20 63 6f 6e 73 74 20 o "static const
4750: 63 68 61 72 20 2a 7a 4d 61 69 6e 6c 6f 6f 70 20 char *zMainloop
4760: 3d 20 22 20 3e 3e 20 24 40 0a 09 24 28 4e 41 57 = " >> $@..$(NAW
4770: 4b 29 20 2d 66 20 24 28 54 4f 50 29 2f 74 6f 6f K) -f $(TOP)/too
4780: 6c 2f 74 6f 73 74 72 2e 61 77 6b 20 24 28 54 4f l/tostr.awk $(TO
4790: 50 29 2f 74 6f 6f 6c 2f 73 70 61 63 65 61 6e 61 P)/tool/spaceana
47a0: 6c 2e 74 63 6c 20 3e 3e 20 24 40 0a 09 65 63 68 l.tcl >> $@..ech
47b0: 6f 20 22 3b 20 72 65 74 75 72 6e 20 7a 4d 61 69 o "; return zMai
47c0: 6e 6c 6f 6f 70 3b 20 7d 22 20 3e 3e 20 24 40 0a nloop; }" >> $@.
47d0: 0a 73 71 6c 69 74 65 33 5f 61 6e 61 6c 79 7a 65 .sqlite3_analyze
47e0: 72 24 28 45 58 45 29 3a 20 73 71 6c 69 74 65 33 r$(EXE): sqlite3
47f0: 5f 61 6e 61 6c 79 7a 65 72 2e 63 0a 09 24 28 54 _analyzer.c..$(T
4800: 43 43 58 29 20 24 28 54 43 4c 5f 46 4c 41 47 53 CCX) $(TCL_FLAGS
4810: 29 20 73 71 6c 69 74 65 33 5f 61 6e 61 6c 79 7a ) sqlite3_analyz
4820: 65 72 2e 63 20 2d 6f 20 24 40 20 24 28 4c 49 42 er.c -o $@ $(LIB
4830: 54 43 4c 29 20 24 28 54 48 52 45 41 44 4c 49 42 TCL) $(THREADLIB
4840: 29 20 0a 0a 23 20 52 75 6c 65 73 20 74 6f 20 62 ) ..# Rules to b
4850: 75 69 6c 64 20 74 68 65 20 27 74 65 73 74 66 69 uild the 'testfi
4860: 78 74 75 72 65 27 20 61 70 70 6c 69 63 61 74 69 xture' applicati
4870: 6f 6e 2e 0a 23 0a 54 45 53 54 46 49 58 54 55 52 on..#.TESTFIXTUR
4880: 45 5f 46 4c 41 47 53 20 20 3d 20 2d 44 53 51 4c E_FLAGS = -DSQL
4890: 49 54 45 5f 54 45 53 54 3d 31 20 2d 44 53 51 4c ITE_TEST=1 -DSQL
48a0: 49 54 45 5f 43 52 41 53 48 5f 54 45 53 54 3d 31 ITE_CRASH_TEST=1
48b0: 0a 54 45 53 54 46 49 58 54 55 52 45 5f 46 4c 41 .TESTFIXTURE_FLA
48c0: 47 53 20 2b 3d 20 2d 44 53 51 4c 49 54 45 5f 53 GS += -DSQLITE_S
48d0: 45 52 56 45 52 3d 31 20 2d 44 53 51 4c 49 54 45 ERVER=1 -DSQLITE
48e0: 5f 50 52 49 56 41 54 45 3d 22 22 20 2d 44 53 51 _PRIVATE="" -DSQ
48f0: 4c 49 54 45 5f 43 4f 52 45 20 0a 0a 74 65 73 74 LITE_CORE ..test
4900: 66 69 78 74 75 72 65 24 28 45 58 45 29 3a 20 24 fixture$(EXE): $
4910: 28 54 45 53 54 53 52 43 32 29 20 6c 69 62 73 71 (TESTSRC2) libsq
4920: 6c 69 74 65 33 2e 61 20 24 28 54 45 53 54 53 52 lite3.a $(TESTSR
4930: 43 29 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 63 C) $(TOP)/src/tc
4940: 6c 73 71 6c 69 74 65 2e 63 0a 09 24 28 54 43 43 lsqlite.c..$(TCC
4950: 58 29 20 24 28 54 43 4c 5f 46 4c 41 47 53 29 20 X) $(TCL_FLAGS)
4960: 2d 44 54 43 4c 53 48 3d 31 20 24 28 54 45 53 54 -DTCLSH=1 $(TEST
4970: 46 49 58 54 55 52 45 5f 46 4c 41 47 53 29 20 20 FIXTURE_FLAGS)
4980: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4990: 5c 0a 09 09 24 28 54 45 53 54 53 52 43 29 20 24 \...$(TESTSRC) $
49a0: 28 54 45 53 54 53 52 43 32 29 20 24 28 54 4f 50 (TESTSRC2) $(TOP
49b0: 29 2f 73 72 63 2f 74 63 6c 73 71 6c 69 74 65 2e )/src/tclsqlite.
49c0: 63 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 c
49d0: 20 5c 0a 09 09 2d 6f 20 74 65 73 74 66 69 78 74 \...-o testfixt
49e0: 75 72 65 24 28 45 58 45 29 20 24 28 4c 49 42 54 ure$(EXE) $(LIBT
49f0: 43 4c 29 20 6c 69 62 73 71 6c 69 74 65 33 2e 61 CL) libsqlite3.a
4a00: 20 24 28 54 48 52 45 41 44 4c 49 42 29 0a 0a 61 $(THREADLIB)..a
4a10: 6d 61 6c 67 61 6d 61 74 69 6f 6e 2d 74 65 73 74 malgamation-test
4a20: 66 69 78 74 75 72 65 24 28 45 58 45 29 3a 20 73 fixture$(EXE): s
4a30: 71 6c 69 74 65 33 2e 63 20 24 28 54 45 53 54 53 qlite3.c $(TESTS
4a40: 52 43 29 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 RC) $(TOP)/src/t
4a50: 63 6c 73 71 6c 69 74 65 2e 63 0a 09 24 28 54 43 clsqlite.c..$(TC
4a60: 43 58 29 20 24 28 54 43 4c 5f 46 4c 41 47 53 29 CX) $(TCL_FLAGS)
4a70: 20 2d 44 54 43 4c 53 48 3d 31 20 24 28 54 45 53 -DTCLSH=1 $(TES
4a80: 54 46 49 58 54 55 52 45 5f 46 4c 41 47 53 29 20 TFIXTURE_FLAGS)
4a90: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4aa0: 20 5c 0a 09 09 24 28 54 45 53 54 53 52 43 29 20 \...$(TESTSRC)
4ab0: 24 28 54 4f 50 29 2f 73 72 63 2f 74 63 6c 73 71 $(TOP)/src/tclsq
4ac0: 6c 69 74 65 2e 63 20 73 71 6c 69 74 65 33 2e 63 lite.c sqlite3.c
4ad0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4ae0: 20 20 5c 0a 09 09 2d 6f 20 74 65 73 74 66 69 78 \...-o testfix
4af0: 74 75 72 65 24 28 45 58 45 29 20 24 28 4c 49 42 ture$(EXE) $(LIB
4b00: 54 43 4c 29 20 24 28 54 48 52 45 41 44 4c 49 42 TCL) $(THREADLIB
4b10: 29 0a 0a 66 74 73 33 2d 74 65 73 74 66 69 78 74 )..fts3-testfixt
4b20: 75 72 65 24 28 45 58 45 29 3a 20 73 71 6c 69 74 ure$(EXE): sqlit
4b30: 65 33 2e 63 20 66 74 73 33 61 6d 61 6c 2e 63 20 e3.c fts3amal.c
4b40: 24 28 54 45 53 54 53 52 43 29 20 24 28 54 4f 50 $(TESTSRC) $(TOP
4b50: 29 2f 73 72 63 2f 74 63 6c 73 71 6c 69 74 65 2e )/src/tclsqlite.
4b60: 63 0a 09 24 28 54 43 43 58 29 20 24 28 54 43 4c c..$(TCCX) $(TCL
4b70: 5f 46 4c 41 47 53 29 20 2d 44 54 43 4c 53 48 3d _FLAGS) -DTCLSH=
4b80: 31 20 24 28 54 45 53 54 46 49 58 54 55 52 45 5f 1 $(TESTFIXTURE_
4b90: 46 4c 41 47 53 29 20 20 20 20 20 20 20 20 20 20 FLAGS)
4ba0: 20 20 20 20 20 20 20 20 5c 0a 09 2d 44 53 51 4c \..-DSQL
4bb0: 49 54 45 5f 45 4e 41 42 4c 45 5f 46 54 53 33 3d ITE_ENABLE_FTS3=
4bc0: 31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 1
4bd0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4be0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4bf0: 5c 0a 09 09 24 28 54 45 53 54 53 52 43 29 20 24 \...$(TESTSRC) $
4c00: 28 54 4f 50 29 2f 73 72 63 2f 74 63 6c 73 71 6c (TOP)/src/tclsql
4c10: 69 74 65 2e 63 20 73 71 6c 69 74 65 33 2e 63 20 ite.c sqlite3.c
4c20: 66 74 73 33 61 6d 61 6c 2e 63 20 20 20 20 20 20 fts3amal.c
4c30: 20 5c 0a 09 09 2d 6f 20 74 65 73 74 66 69 78 74 \...-o testfixt
4c40: 75 72 65 24 28 45 58 45 29 20 24 28 4c 49 42 54 ure$(EXE) $(LIBT
4c50: 43 4c 29 20 24 28 54 48 52 45 41 44 4c 49 42 29 CL) $(THREADLIB)
4c60: 0a 0a 66 75 6c 6c 74 65 73 74 3a 09 74 65 73 74 ..fulltest:.test
4c70: 66 69 78 74 75 72 65 24 28 45 58 45 29 20 73 71 fixture$(EXE) sq
4c80: 6c 69 74 65 33 24 28 45 58 45 29 20 66 75 7a 7a lite3$(EXE) fuzz
4c90: 74 65 73 74 0a 09 2e 2f 74 65 73 74 66 69 78 74 test.../testfixt
4ca0: 75 72 65 24 28 45 58 45 29 20 24 28 54 4f 50 29 ure$(EXE) $(TOP)
4cb0: 2f 74 65 73 74 2f 61 6c 6c 2e 74 65 73 74 0a 0a /test/all.test..
4cc0: 73 6f 61 6b 74 65 73 74 3a 09 74 65 73 74 66 69 soaktest:.testfi
4cd0: 78 74 75 72 65 24 28 45 58 45 29 20 73 71 6c 69 xture$(EXE) sqli
4ce0: 74 65 33 24 28 45 58 45 29 20 66 75 7a 7a 6f 6f te3$(EXE) fuzzoo
4cf0: 6d 74 65 73 74 0a 09 2e 2f 74 65 73 74 66 69 78 mtest.../testfix
4d00: 74 75 72 65 24 28 45 58 45 29 20 24 28 54 4f 50 ture$(EXE) $(TOP
4d10: 29 2f 74 65 73 74 2f 61 6c 6c 2e 74 65 73 74 20 )/test/all.test
4d20: 2d 73 6f 61 6b 3d 31 0a 0a 66 75 6c 6c 74 65 73 -soak=1..fulltes
4d30: 74 6f 6e 6c 79 3a 09 74 65 73 74 66 69 78 74 75 tonly:.testfixtu
4d40: 72 65 24 28 45 58 45 29 20 73 71 6c 69 74 65 33 re$(EXE) sqlite3
4d50: 24 28 45 58 45 29 20 66 75 7a 7a 74 65 73 74 0a $(EXE) fuzztest.
4d60: 09 2e 2f 74 65 73 74 66 69 78 74 75 72 65 24 28 ../testfixture$(
4d70: 45 58 45 29 20 24 28 54 4f 50 29 2f 74 65 73 74 EXE) $(TOP)/test
4d80: 2f 66 75 6c 6c 2e 74 65 73 74 0a 0a 71 75 65 72 /full.test..quer
4d90: 79 70 6c 61 6e 74 65 73 74 3a 09 74 65 73 74 66 yplantest:.testf
4da0: 69 78 74 75 72 65 24 28 45 58 45 29 20 73 71 6c ixture$(EXE) sql
4db0: 69 74 65 33 24 28 45 58 45 29 0a 09 2e 2f 74 65 ite3$(EXE).../te
4dc0: 73 74 66 69 78 74 75 72 65 24 28 45 58 45 29 20 stfixture$(EXE)
4dd0: 24 28 54 4f 50 29 2f 74 65 73 74 2f 70 65 72 6d $(TOP)/test/perm
4de0: 75 74 61 74 69 6f 6e 73 2e 74 65 73 74 20 71 75 utations.test qu
4df0: 65 72 79 70 6c 61 6e 6e 65 72 0a 0a 66 75 7a 7a eryplanner..fuzz
4e00: 74 65 73 74 3a 09 66 75 7a 7a 65 72 73 68 65 6c test:.fuzzershel
4e10: 6c 24 28 45 58 45 29 0a 09 2e 2f 66 75 7a 7a 65 l$(EXE).../fuzze
4e20: 72 73 68 65 6c 6c 24 28 45 58 45 29 20 24 28 54 rshell$(EXE) $(T
4e30: 4f 50 29 2f 74 65 73 74 2f 66 75 7a 7a 64 61 74 OP)/test/fuzzdat
4e40: 61 31 2e 74 78 74 20 24 28 54 4f 50 29 2f 74 65 a1.txt $(TOP)/te
4e50: 73 74 2f 66 75 7a 7a 64 61 74 61 32 2e 74 78 74 st/fuzzdata2.txt
4e60: 0a 0a 66 75 7a 7a 6f 6f 6d 74 65 73 74 3a 09 66 ..fuzzoomtest:.f
4e70: 75 7a 7a 65 72 73 68 65 6c 6c 24 28 45 58 45 29 uzzershell$(EXE)
4e80: 0a 09 2e 2f 66 75 7a 7a 65 72 73 68 65 6c 6c 24 .../fuzzershell$
4e90: 28 45 58 45 29 20 2d 66 20 24 28 54 4f 50 29 2f (EXE) -f $(TOP)/
4ea0: 74 65 73 74 2f 66 75 7a 7a 64 61 74 61 31 2e 74 test/fuzzdata1.t
4eb0: 78 74 20 2d 2d 6f 6f 6d 0a 0a 74 65 73 74 3a 09 xt --oom..test:.
4ec0: 74 65 73 74 66 69 78 74 75 72 65 24 28 45 58 45 testfixture$(EXE
4ed0: 29 20 73 71 6c 69 74 65 33 24 28 45 58 45 29 20 ) sqlite3$(EXE)
4ee0: 66 75 7a 7a 74 65 73 74 0a 09 2e 2f 74 65 73 74 fuzztest.../test
4ef0: 66 69 78 74 75 72 65 24 28 45 58 45 29 20 24 28 fixture$(EXE) $(
4f00: 54 4f 50 29 2f 74 65 73 74 2f 76 65 72 79 71 75 TOP)/test/veryqu
4f10: 69 63 6b 2e 74 65 73 74 0a 0a 23 20 52 75 6e 20 ick.test..# Run
4f20: 61 20 74 65 73 74 20 75 73 69 6e 67 20 76 61 6c a test using val
4f30: 67 72 69 6e 64 2e 20 20 54 68 69 73 20 63 61 6e grind. This can
4f40: 20 74 61 6b 65 20 61 20 72 65 61 6c 6c 79 20 6c take a really l
4f50: 6f 6e 67 20 74 69 6d 65 0a 23 20 62 65 63 61 75 ong time.# becau
4f60: 73 65 20 76 61 6c 67 72 69 6e 64 20 69 73 20 73 se valgrind is s
4f70: 6f 20 6d 75 63 68 20 73 6c 6f 77 65 72 20 74 68 o much slower th
4f80: 61 6e 20 61 20 6e 61 74 69 76 65 20 6d 61 63 68 an a native mach
4f90: 69 6e 65 2e 0a 23 0a 76 61 6c 67 72 69 6e 64 74 ine..#.valgrindt
4fa0: 65 73 74 3a 09 74 65 73 74 66 69 78 74 75 72 65 est:.testfixture
4fb0: 24 28 45 58 45 29 20 73 71 6c 69 74 65 33 24 28 $(EXE) sqlite3$(
4fc0: 45 58 45 29 20 66 75 7a 7a 65 72 73 68 65 6c 6c EXE) fuzzershell
4fd0: 24 28 45 58 45 29 0a 09 76 61 6c 67 72 69 6e 64 $(EXE)..valgrind
4fe0: 20 2d 76 20 2e 2f 66 75 7a 7a 65 72 73 68 65 6c -v ./fuzzershel
4ff0: 6c 24 28 45 58 45 29 20 2d 66 20 24 28 54 4f 50 l$(EXE) -f $(TOP
5000: 29 2f 74 65 73 74 2f 66 75 7a 7a 64 61 74 61 31 )/test/fuzzdata1
5010: 2e 74 78 74 0a 09 4f 4d 49 54 5f 4d 49 53 55 53 .txt..OMIT_MISUS
5020: 45 3d 31 20 76 61 6c 67 72 69 6e 64 20 2d 76 20 E=1 valgrind -v
5030: 2e 2f 74 65 73 74 66 69 78 74 75 72 65 24 28 45 ./testfixture$(E
5040: 58 45 29 20 24 28 54 4f 50 29 2f 74 65 73 74 2f XE) $(TOP)/test/
5050: 70 65 72 6d 75 74 61 74 69 6f 6e 73 2e 74 65 73 permutations.tes
5060: 74 20 76 61 6c 67 72 69 6e 64 0a 0a 23 20 54 68 t valgrind..# Th
5070: 65 20 6e 65 78 74 20 74 77 6f 20 72 75 6c 65 73 e next two rules
5080: 20 61 72 65 20 75 73 65 64 20 74 6f 20 73 75 70 are used to sup
5090: 70 6f 72 74 20 74 68 65 20 22 74 68 72 65 61 64 port the "thread
50a0: 74 65 73 74 22 20 74 61 72 67 65 74 2e 20 42 75 test" target. Bu
50b0: 69 6c 64 69 6e 67 0a 23 20 74 68 72 65 61 64 74 ilding.# threadt
50c0: 65 73 74 20 72 75 6e 73 20 61 20 66 65 77 20 74 est runs a few t
50d0: 68 72 65 61 64 2d 73 61 66 65 74 79 20 74 65 73 hread-safety tes
50e0: 74 73 20 74 68 61 74 20 61 72 65 20 69 6d 70 6c ts that are impl
50f0: 65 6d 65 6e 74 65 64 20 69 6e 20 43 2e 20 54 68 emented in C. Th
5100: 69 73 0a 23 20 74 61 72 67 65 74 20 69 73 20 69 is.# target is i
5110: 6e 76 6f 6b 65 64 20 62 79 20 74 68 65 20 72 65 nvoked by the re
5120: 6c 65 61 73 65 74 65 73 74 2e 74 63 6c 20 73 63 leasetest.tcl sc
5130: 72 69 70 74 2e 0a 23 20 0a 54 48 52 45 41 44 54 ript..# .THREADT
5140: 45 53 54 33 5f 53 52 43 20 3d 20 24 28 54 4f 50 EST3_SRC = $(TOP
5150: 29 2f 74 65 73 74 2f 74 68 72 65 61 64 74 65 73 )/test/threadtes
5160: 74 33 2e 63 20 20 20 20 5c 0a 20 20 20 20 20 20 t3.c \.
5170: 20 20 20 20 20 20 20 20 20 20 20 20 24 28 54 4f $(TO
5180: 50 29 2f 74 65 73 74 2f 74 74 33 5f 63 68 65 63 P)/test/tt3_chec
5190: 6b 70 6f 69 6e 74 2e 63 20 5c 0a 20 20 20 20 20 kpoint.c \.
51a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 24 28 54 $(T
51b0: 4f 50 29 2f 74 65 73 74 2f 74 74 33 5f 69 6e 64 OP)/test/tt3_ind
51c0: 65 78 2e 63 20 20 20 20 20 20 5c 0a 20 20 20 20 ex.c \.
51d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 24 28 $(
51e0: 54 4f 50 29 2f 74 65 73 74 2f 74 74 33 5f 76 61 TOP)/test/tt3_va
51f0: 63 75 75 6d 2e 63 20 20 20 20 20 20 5c 0a 20 20 cuum.c \.
5200: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
5210: 24 28 54 4f 50 29 2f 74 65 73 74 2f 74 74 33 5f $(TOP)/test/tt3_
5220: 73 74 72 65 73 73 2e 63 20 20 20 20 20 20 5c 0a stress.c \.
5230: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
5240: 20 20 24 28 54 4f 50 29 2f 74 65 73 74 2f 74 74 $(TOP)/test/tt
5250: 33 5f 6c 6f 6f 6b 61 73 69 64 65 31 2e 63 0a 0a 3_lookaside1.c..
5260: 74 68 72 65 61 64 74 65 73 74 33 24 28 45 58 45 threadtest3$(EXE
5270: 29 3a 20 73 71 6c 69 74 65 33 2e 6f 20 24 28 54 ): sqlite3.o $(T
5280: 48 52 45 41 44 54 45 53 54 33 5f 53 52 43 29 0a HREADTEST3_SRC).
5290: 09 24 28 54 43 43 58 29 20 24 28 54 4f 50 29 2f .$(TCCX) $(TOP)/
52a0: 74 65 73 74 2f 74 68 72 65 61 64 74 65 73 74 33 test/threadtest3
52b0: 2e 63 20 73 71 6c 69 74 65 33 2e 6f 20 2d 6f 20 .c sqlite3.o -o
52c0: 24 40 20 24 28 54 48 52 45 41 44 4c 49 42 29 0a $@ $(THREADLIB).
52d0: 0a 74 68 72 65 61 64 74 65 73 74 3a 20 74 68 72 .threadtest: thr
52e0: 65 61 64 74 65 73 74 33 24 28 45 58 45 29 0a 09 eadtest3$(EXE)..
52f0: 2e 2f 74 68 72 65 61 64 74 65 73 74 33 24 28 45 ./threadtest3$(E
5300: 58 45 29 0a 0a 54 45 53 54 5f 45 58 54 45 4e 53 XE)..TEST_EXTENS
5310: 49 4f 4e 20 3d 20 24 28 53 48 50 52 45 46 49 58 ION = $(SHPREFIX
5320: 29 74 65 73 74 6c 6f 61 64 65 78 74 2e 24 28 53 )testloadext.$(S
5330: 4f 29 0a 24 28 54 45 53 54 5f 45 58 54 45 4e 53 O).$(TEST_EXTENS
5340: 49 4f 4e 29 3a 20 24 28 54 4f 50 29 2f 73 72 63 ION): $(TOP)/src
5350: 2f 74 65 73 74 5f 6c 6f 61 64 65 78 74 2e 63 0a /test_loadext.c.
5360: 09 24 28 4d 4b 53 48 4c 49 42 29 20 24 28 54 4f .$(MKSHLIB) $(TO
5370: 50 29 2f 73 72 63 2f 74 65 73 74 5f 6c 6f 61 64 P)/src/test_load
5380: 65 78 74 2e 63 20 2d 6f 20 24 28 54 45 53 54 5f ext.c -o $(TEST_
5390: 45 58 54 45 4e 53 49 4f 4e 29 0a 0a 65 78 74 65 EXTENSION)..exte
53a0: 6e 73 69 6f 6e 74 65 73 74 3a 20 74 65 73 74 66 nsiontest: testf
53b0: 69 78 74 75 72 65 24 28 45 58 45 29 20 24 28 54 ixture$(EXE) $(T
53c0: 45 53 54 5f 45 58 54 45 4e 53 49 4f 4e 29 0a 09 EST_EXTENSION)..
53d0: 2e 2f 74 65 73 74 66 69 78 74 75 72 65 24 28 45 ./testfixture$(E
53e0: 58 45 29 20 24 28 54 4f 50 29 2f 74 65 73 74 2f XE) $(TOP)/test/
53f0: 6c 6f 61 64 65 78 74 2e 74 65 73 74 0a 0a 73 68 loadext.test..sh
5400: 6f 77 64 62 24 28 45 58 45 29 3a 09 24 28 54 4f owdb$(EXE):.$(TO
5410: 50 29 2f 74 6f 6f 6c 2f 73 68 6f 77 64 62 2e 63 P)/tool/showdb.c
5420: 20 73 71 6c 69 74 65 33 2e 6f 0a 09 24 28 54 43 sqlite3.o..$(TC
5430: 43 29 20 2d 44 53 51 4c 49 54 45 5f 54 48 52 45 C) -DSQLITE_THRE
5440: 41 44 53 41 46 45 3d 30 20 2d 44 53 51 4c 49 54 ADSAFE=0 -DSQLIT
5450: 45 5f 4f 4d 49 54 5f 4c 4f 41 44 5f 45 58 54 45 E_OMIT_LOAD_EXTE
5460: 4e 53 49 4f 4e 20 2d 6f 20 73 68 6f 77 64 62 24 NSION -o showdb$
5470: 28 45 58 45 29 20 5c 0a 09 09 24 28 54 4f 50 29 (EXE) \...$(TOP)
5480: 2f 74 6f 6f 6c 2f 73 68 6f 77 64 62 2e 63 20 73 /tool/showdb.c s
5490: 71 6c 69 74 65 33 2e 6f 20 24 28 54 48 52 45 41 qlite3.o $(THREA
54a0: 44 4c 49 42 29 0a 0a 73 68 6f 77 73 74 61 74 34 DLIB)..showstat4
54b0: 24 28 45 58 45 29 3a 09 24 28 54 4f 50 29 2f 74 $(EXE):.$(TOP)/t
54c0: 6f 6f 6c 2f 73 68 6f 77 73 74 61 74 34 2e 63 20 ool/showstat4.c
54d0: 73 71 6c 69 74 65 33 2e 6f 0a 09 24 28 54 43 43 sqlite3.o..$(TCC
54e0: 29 20 2d 44 53 51 4c 49 54 45 5f 54 48 52 45 41 ) -DSQLITE_THREA
54f0: 44 53 41 46 45 3d 30 20 2d 44 53 51 4c 49 54 45 DSAFE=0 -DSQLITE
5500: 5f 4f 4d 49 54 5f 4c 4f 41 44 5f 45 58 54 45 4e _OMIT_LOAD_EXTEN
5510: 53 49 4f 4e 20 2d 6f 20 73 68 6f 77 73 74 61 74 SION -o showstat
5520: 34 24 28 45 58 45 29 20 5c 0a 09 09 24 28 54 4f 4$(EXE) \...$(TO
5530: 50 29 2f 74 6f 6f 6c 2f 73 68 6f 77 73 74 61 74 P)/tool/showstat
5540: 34 2e 63 20 73 71 6c 69 74 65 33 2e 6f 20 24 28 4.c sqlite3.o $(
5550: 54 48 52 45 41 44 4c 49 42 29 0a 0a 73 68 6f 77 THREADLIB)..show
5560: 6a 6f 75 72 6e 61 6c 24 28 45 58 45 29 3a 09 24 journal$(EXE):.$
5570: 28 54 4f 50 29 2f 74 6f 6f 6c 2f 73 68 6f 77 6a (TOP)/tool/showj
5580: 6f 75 72 6e 61 6c 2e 63 20 73 71 6c 69 74 65 33 ournal.c sqlite3
5590: 2e 6f 0a 09 24 28 54 43 43 29 20 2d 44 53 51 4c .o..$(TCC) -DSQL
55a0: 49 54 45 5f 54 48 52 45 41 44 53 41 46 45 3d 30 ITE_THREADSAFE=0
55b0: 20 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 4c -DSQLITE_OMIT_L
55c0: 4f 41 44 5f 45 58 54 45 4e 53 49 4f 4e 20 2d 6f OAD_EXTENSION -o
55d0: 20 73 68 6f 77 6a 6f 75 72 6e 61 6c 24 28 45 58 showjournal$(EX
55e0: 45 29 20 5c 0a 09 09 24 28 54 4f 50 29 2f 74 6f E) \...$(TOP)/to
55f0: 6f 6c 2f 73 68 6f 77 6a 6f 75 72 6e 61 6c 2e 63 ol/showjournal.c
5600: 20 73 71 6c 69 74 65 33 2e 6f 20 24 28 54 48 52 sqlite3.o $(THR
5610: 45 41 44 4c 49 42 29 0a 0a 73 68 6f 77 77 61 6c EADLIB)..showwal
5620: 24 28 45 58 45 29 3a 09 24 28 54 4f 50 29 2f 74 $(EXE):.$(TOP)/t
5630: 6f 6f 6c 2f 73 68 6f 77 77 61 6c 2e 63 20 73 71 ool/showwal.c sq
5640: 6c 69 74 65 33 2e 6f 0a 09 24 28 54 43 43 29 20 lite3.o..$(TCC)
5650: 2d 44 53 51 4c 49 54 45 5f 54 48 52 45 41 44 53 -DSQLITE_THREADS
5660: 41 46 45 3d 30 20 2d 44 53 51 4c 49 54 45 5f 4f AFE=0 -DSQLITE_O
5670: 4d 49 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 49 MIT_LOAD_EXTENSI
5680: 4f 4e 20 2d 6f 20 73 68 6f 77 77 61 6c 24 28 45 ON -o showwal$(E
5690: 58 45 29 20 5c 0a 09 09 24 28 54 4f 50 29 2f 74 XE) \...$(TOP)/t
56a0: 6f 6f 6c 2f 73 68 6f 77 77 61 6c 2e 63 20 73 71 ool/showwal.c sq
56b0: 6c 69 74 65 33 2e 6f 20 24 28 54 48 52 45 41 44 lite3.o $(THREAD
56c0: 4c 49 42 29 0a 0a 66 74 73 33 76 69 65 77 24 28 LIB)..fts3view$(
56d0: 45 58 45 29 3a 09 24 28 54 4f 50 29 2f 65 78 74 EXE):.$(TOP)/ext
56e0: 2f 66 74 73 33 2f 74 6f 6f 6c 2f 66 74 73 33 76 /fts3/tool/fts3v
56f0: 69 65 77 2e 63 20 73 71 6c 69 74 65 33 2e 6f 0a iew.c sqlite3.o.
5700: 09 24 28 54 43 43 29 20 2d 44 53 51 4c 49 54 45 .$(TCC) -DSQLITE
5710: 5f 54 48 52 45 41 44 53 41 46 45 3d 30 20 2d 44 _THREADSAFE=0 -D
5720: 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 4c 4f 41 44 SQLITE_OMIT_LOAD
5730: 5f 45 58 54 45 4e 53 49 4f 4e 20 2d 6f 20 66 74 _EXTENSION -o ft
5740: 73 33 76 69 65 77 24 28 45 58 45 29 20 5c 0a 09 s3view$(EXE) \..
5750: 09 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 .$(TOP)/ext/fts3
5760: 2f 74 6f 6f 6c 2f 66 74 73 33 76 69 65 77 2e 63 /tool/fts3view.c
5770: 20 73 71 6c 69 74 65 33 2e 6f 20 24 28 54 48 52 sqlite3.o $(THR
5780: 45 41 44 4c 49 42 29 0a 0a 72 6f 6c 6c 62 61 63 EADLIB)..rollbac
5790: 6b 2d 74 65 73 74 24 28 45 58 45 29 3a 09 24 28 k-test$(EXE):.$(
57a0: 54 4f 50 29 2f 74 6f 6f 6c 2f 72 6f 6c 6c 62 61 TOP)/tool/rollba
57b0: 63 6b 2d 74 65 73 74 2e 63 20 73 71 6c 69 74 65 ck-test.c sqlite
57c0: 33 2e 6f 0a 09 24 28 54 43 43 29 20 2d 44 53 51 3.o..$(TCC) -DSQ
57d0: 4c 49 54 45 5f 54 48 52 45 41 44 53 41 46 45 3d LITE_THREADSAFE=
57e0: 30 20 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 0 -DSQLITE_OMIT_
57f0: 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f 4e 20 2d LOAD_EXTENSION -
5800: 6f 20 72 6f 6c 6c 62 61 63 6b 2d 74 65 73 74 24 o rollback-test$
5810: 28 45 58 45 29 20 5c 0a 09 09 24 28 54 4f 50 29 (EXE) \...$(TOP)
5820: 2f 74 6f 6f 6c 2f 72 6f 6c 6c 62 61 63 6b 2d 74 /tool/rollback-t
5830: 65 73 74 2e 63 20 73 71 6c 69 74 65 33 2e 6f 20 est.c sqlite3.o
5840: 24 28 54 48 52 45 41 44 4c 49 42 29 0a 0a 4c 6f $(THREADLIB)..Lo
5850: 67 45 73 74 24 28 45 58 45 29 3a 09 24 28 54 4f gEst$(EXE):.$(TO
5860: 50 29 2f 74 6f 6f 6c 2f 6c 6f 67 65 73 74 2e 63 P)/tool/logest.c
5870: 20 73 71 6c 69 74 65 33 2e 68 0a 09 24 28 54 43 sqlite3.h..$(TC
5880: 43 29 20 2d 6f 20 4c 6f 67 45 73 74 24 28 45 58 C) -o LogEst$(EX
5890: 45 29 20 24 28 54 4f 50 29 2f 74 6f 6f 6c 2f 6c E) $(TOP)/tool/l
58a0: 6f 67 65 73 74 2e 63 0a 0a 77 6f 72 64 63 6f 75 ogest.c..wordcou
58b0: 6e 74 24 28 45 58 45 29 3a 09 24 28 54 4f 50 29 nt$(EXE):.$(TOP)
58c0: 2f 74 65 73 74 2f 77 6f 72 64 63 6f 75 6e 74 2e /test/wordcount.
58d0: 63 20 73 71 6c 69 74 65 33 2e 63 0a 09 24 28 54 c sqlite3.c..$(T
58e0: 43 43 29 20 2d 44 53 51 4c 49 54 45 5f 54 48 52 CC) -DSQLITE_THR
58f0: 45 41 44 53 41 46 45 3d 30 20 2d 44 53 51 4c 49 EADSAFE=0 -DSQLI
5900: 54 45 5f 4f 4d 49 54 5f 4c 4f 41 44 5f 45 58 54 TE_OMIT_LOAD_EXT
5910: 45 4e 53 49 4f 4e 20 2d 6f 20 77 6f 72 64 63 6f ENSION -o wordco
5920: 75 6e 74 24 28 45 58 45 29 20 5c 0a 09 09 24 28 unt$(EXE) \...$(
5930: 54 4f 50 29 2f 74 65 73 74 2f 77 6f 72 64 63 6f TOP)/test/wordco
5940: 75 6e 74 2e 63 20 73 71 6c 69 74 65 33 2e 63 0a unt.c sqlite3.c.
5950: 0a 73 70 65 65 64 74 65 73 74 31 24 28 45 58 45 .speedtest1$(EXE
5960: 29 3a 09 24 28 54 4f 50 29 2f 74 65 73 74 2f 73 ):.$(TOP)/test/s
5970: 70 65 65 64 74 65 73 74 31 2e 63 20 73 71 6c 69 peedtest1.c sqli
5980: 74 65 33 2e 6f 0a 09 24 28 54 43 43 29 20 2d 49 te3.o..$(TCC) -I
5990: 2e 20 2d 6f 20 73 70 65 65 64 74 65 73 74 31 24 . -o speedtest1$
59a0: 28 45 58 45 29 20 24 28 54 4f 50 29 2f 74 65 73 (EXE) $(TOP)/tes
59b0: 74 2f 73 70 65 65 64 74 65 73 74 31 2e 63 20 73 t/speedtest1.c s
59c0: 71 6c 69 74 65 33 2e 6f 20 24 28 54 48 52 45 41 qlite3.o $(THREA
59d0: 44 4c 49 42 29 0a 0a 23 20 54 68 69 73 20 74 61 DLIB)..# This ta
59e0: 72 67 65 74 20 77 69 6c 6c 20 66 61 69 6c 20 69 rget will fail i
59f0: 66 20 74 68 65 20 53 51 4c 69 74 65 20 61 6d 61 f the SQLite ama
5a00: 6c 67 61 6d 61 74 69 6f 6e 20 63 6f 6e 74 61 69 lgamation contai
5a10: 6e 73 20 61 6e 79 20 65 78 70 6f 72 74 65 64 0a ns any exported.
5a20: 23 20 73 79 6d 62 6f 6c 73 20 74 68 61 74 20 64 # symbols that d
5a30: 6f 20 6e 6f 74 20 62 65 67 69 6e 20 77 69 74 68 o not begin with
5a40: 20 22 73 71 6c 69 74 65 33 5f 22 2e 20 49 74 20 "sqlite3_". It
5a50: 69 73 20 72 75 6e 20 61 73 20 70 61 72 74 20 6f is run as part o
5a60: 66 20 74 68 65 0a 23 20 72 65 6c 65 61 73 65 74 f the.# releaset
5a70: 65 73 74 2e 74 63 6c 20 73 63 72 69 70 74 2e 0a est.tcl script..
5a80: 23 0a 63 68 65 63 6b 73 79 6d 62 6f 6c 73 3a 20 #.checksymbols:
5a90: 73 71 6c 69 74 65 33 2e 6f 0a 09 6e 6d 20 2d 67 sqlite3.o..nm -g
5aa0: 20 2d 2d 64 65 66 69 6e 65 64 2d 6f 6e 6c 79 20 --defined-only
5ab0: 73 71 6c 69 74 65 33 2e 6f 20 7c 20 67 72 65 70 sqlite3.o | grep
5ac0: 20 2d 76 20 22 20 73 71 6c 69 74 65 33 5f 22 20 -v " sqlite3_"
5ad0: 3b 20 74 65 73 74 20 24 24 3f 20 2d 6e 65 20 30 ; test $$? -ne 0
5ae0: 0a 0a 23 20 42 75 69 6c 64 20 74 68 65 20 61 6d ..# Build the am
5af0: 61 6c 67 61 6d 61 74 69 6f 6e 2d 61 75 74 6f 63 algamation-autoc
5b00: 6f 6e 66 20 70 61 63 6b 61 67 65 2e 0a 23 0a 61 onf package..#.a
5b10: 6d 61 6c 67 61 6d 61 74 69 6f 6e 2d 74 61 72 62 malgamation-tarb
5b20: 61 6c 6c 3a 20 73 71 6c 69 74 65 33 2e 63 0a 09 all: sqlite3.c..
5b30: 54 4f 50 3d 24 28 54 4f 50 29 20 73 68 20 24 28 TOP=$(TOP) sh $(
5b40: 54 4f 50 29 2f 74 6f 6f 6c 2f 6d 6b 61 75 74 6f TOP)/tool/mkauto
5b50: 63 6f 6e 66 61 6d 61 6c 2e 73 68 0a 0a 0a 23 20 confamal.sh...#
5b60: 53 74 61 6e 64 61 72 64 20 69 6e 73 74 61 6c 6c Standard install
5b70: 20 61 6e 64 20 63 6c 65 61 6e 75 70 20 74 61 72 and cleanup tar
5b80: 67 65 74 73 0a 23 0a 69 6e 73 74 61 6c 6c 3a 09 gets.#.install:.
5b90: 73 71 6c 69 74 65 33 20 6c 69 62 73 71 6c 69 74 sqlite3 libsqlit
5ba0: 65 33 2e 61 20 73 71 6c 69 74 65 33 2e 68 0a 09 e3.a sqlite3.h..
5bb0: 6d 76 20 73 71 6c 69 74 65 33 20 2f 75 73 72 2f mv sqlite3 /usr/
5bc0: 62 69 6e 0a 09 6d 76 20 6c 69 62 73 71 6c 69 74 bin..mv libsqlit
5bd0: 65 33 2e 61 20 2f 75 73 72 2f 6c 69 62 0a 09 6d e3.a /usr/lib..m
5be0: 76 20 73 71 6c 69 74 65 33 2e 68 20 2f 75 73 72 v sqlite3.h /usr
5bf0: 2f 69 6e 63 6c 75 64 65 0a 0a 63 6c 65 61 6e 3a /include..clean:
5c00: 09 0a 09 72 6d 20 2d 66 20 2a 2e 6f 20 73 71 6c ...rm -f *.o sql
5c10: 69 74 65 33 20 73 71 6c 69 74 65 33 2e 65 78 65 ite3 sqlite3.exe
5c20: 20 6c 69 62 73 71 6c 69 74 65 33 2e 61 20 73 71 libsqlite3.a sq
5c30: 6c 69 74 65 33 2e 68 20 6f 70 63 6f 64 65 73 2e lite3.h opcodes.
5c40: 2a 0a 09 72 6d 20 2d 66 20 6c 65 6d 6f 6e 20 6c *..rm -f lemon l
5c50: 65 6d 6f 6e 2e 65 78 65 20 6c 65 6d 70 61 72 2e emon.exe lempar.
5c60: 63 20 70 61 72 73 65 2e 2a 20 73 71 6c 69 74 65 c parse.* sqlite
5c70: 2a 2e 74 61 72 2e 67 7a 0a 09 72 6d 20 2d 66 20 *.tar.gz..rm -f
5c80: 6d 6b 6b 65 79 77 6f 72 64 68 61 73 68 20 6d 6b mkkeywordhash mk
5c90: 6b 65 79 77 6f 72 64 68 61 73 68 2e 65 78 65 20 keywordhash.exe
5ca0: 6b 65 79 77 6f 72 64 68 61 73 68 2e 68 0a 09 72 keywordhash.h..r
5cb0: 6d 20 2d 66 20 24 28 50 55 42 4c 49 53 48 29 0a m -f $(PUBLISH).
5cc0: 09 72 6d 20 2d 66 20 2a 2e 64 61 20 2a 2e 62 62 .rm -f *.da *.bb
5cd0: 20 2a 2e 62 62 67 20 67 6d 6f 6e 2e 6f 75 74 0a *.bbg gmon.out.
5ce0: 09 72 6d 20 2d 72 66 20 71 75 6f 74 61 32 61 20 .rm -rf quota2a
5cf0: 71 75 6f 74 61 32 62 20 71 75 6f 74 61 32 63 0a quota2b quota2c.
5d00: 09 72 6d 20 2d 72 66 20 74 73 72 63 20 74 61 72 .rm -rf tsrc tar
5d10: 67 65 74 5f 73 6f 75 72 63 65 0a 09 72 6d 20 2d get_source..rm -
5d20: 66 20 74 65 73 74 6c 6f 61 64 65 78 74 2e 64 6c f testloadext.dl
5d30: 6c 20 6c 69 62 74 65 73 74 6c 6f 61 64 65 78 74 l libtestloadext
5d40: 2e 73 6f 0a 09 72 6d 20 2d 66 20 61 6d 61 6c 67 .so..rm -f amalg
5d50: 61 6d 61 74 69 6f 6e 2d 74 65 73 74 66 69 78 74 amation-testfixt
5d60: 75 72 65 20 61 6d 61 6c 67 61 6d 61 74 69 6f 6e ure amalgamation
5d70: 2d 74 65 73 74 66 69 78 74 75 72 65 2e 65 78 65 -testfixture.exe
5d80: 0a 09 72 6d 20 2d 66 20 66 74 73 33 2d 74 65 73 ..rm -f fts3-tes
5d90: 74 66 69 78 74 75 72 65 20 66 74 73 33 2d 74 65 tfixture fts3-te
5da0: 73 74 66 69 78 74 75 72 65 2e 65 78 65 0a 09 72 stfixture.exe..r
5db0: 6d 20 2d 66 20 74 65 73 74 66 69 78 74 75 72 65 m -f testfixture
5dc0: 20 74 65 73 74 66 69 78 74 75 72 65 2e 65 78 65 testfixture.exe
5dd0: 0a 09 72 6d 20 2d 66 20 74 68 72 65 61 64 74 65 ..rm -f threadte
5de0: 73 74 33 20 74 68 72 65 61 64 74 65 73 74 33 2e st3 threadtest3.
5df0: 65 78 65 0a 09 72 6d 20 2d 66 20 4c 6f 67 45 73 exe..rm -f LogEs
5e00: 74 20 4c 6f 67 45 73 74 2e 65 78 65 0a 09 72 6d t LogEst.exe..rm
5e10: 20 2d 66 20 66 74 73 33 76 69 65 77 20 66 74 73 -f fts3view fts
5e20: 33 76 69 65 77 2e 65 78 65 0a 09 72 6d 20 2d 66 3view.exe..rm -f
5e30: 20 72 6f 6c 6c 62 61 63 6b 2d 74 65 73 74 20 72 rollback-test r
5e40: 6f 6c 6c 62 61 63 6b 2d 74 65 73 74 2e 65 78 65 ollback-test.exe
5e50: 0a 09 72 6d 20 2d 66 20 73 68 6f 77 64 62 20 73 ..rm -f showdb s
5e60: 68 6f 77 64 62 2e 65 78 65 0a 09 72 6d 20 2d 66 howdb.exe..rm -f
5e70: 20 73 68 6f 77 6a 6f 75 72 6e 61 6c 20 73 68 6f showjournal sho
5e80: 77 6a 6f 75 72 6e 61 6c 2e 65 78 65 0a 09 72 6d wjournal.exe..rm
5e90: 20 2d 66 20 73 68 6f 77 73 74 61 74 34 20 73 68 -f showstat4 sh
5ea0: 6f 77 73 74 61 74 34 2e 65 78 65 0a 09 72 6d 20 owstat4.exe..rm
5eb0: 2d 66 20 73 68 6f 77 77 61 6c 20 73 68 6f 77 77 -f showwal showw
5ec0: 61 6c 2e 65 78 65 0a 09 72 6d 20 2d 66 20 73 70 al.exe..rm -f sp
5ed0: 65 65 64 74 65 73 74 31 20 73 70 65 65 64 74 65 eedtest1 speedte
5ee0: 73 74 31 2e 65 78 65 0a 09 72 6d 20 2d 66 20 77 st1.exe..rm -f w
5ef0: 6f 72 64 63 6f 75 6e 74 20 77 6f 72 64 63 6f 75 ordcount wordcou
5f00: 6e 74 2e 65 78 65 0a 09 72 6d 20 2d 66 20 73 71 nt.exe..rm -f sq
5f10: 6c 69 74 65 33 2e 63 20 73 71 6c 69 74 65 33 2d lite3.c sqlite3-
5f20: 2a 2e 63 20 66 74 73 3f 61 6d 61 6c 2e 63 20 74 *.c fts?amal.c t
5f30: 63 6c 73 71 6c 69 74 65 33 2e 63 0a 09 72 6d 20 clsqlite3.c..rm
5f40: 2d 66 20 73 71 6c 69 74 65 33 72 63 2e 68 0a 09 -f sqlite3rc.h..
5f50: 72 6d 20 2d 66 20 73 68 65 6c 6c 2e 63 20 73 71 rm -f shell.c sq
5f60: 6c 69 74 65 33 65 78 74 2e 68 0a 09 72 6d 20 2d lite3ext.h..rm -
5f70: 66 20 73 71 6c 69 74 65 33 5f 61 6e 61 6c 79 7a f sqlite3_analyz
5f80: 65 72 20 73 71 6c 69 74 65 33 5f 61 6e 61 6c 79 er sqlite3_analy
5f90: 7a 65 72 2e 65 78 65 20 73 71 6c 69 74 65 33 5f zer.exe sqlite3_
5fa0: 61 6e 61 6c 79 7a 65 72 2e 63 0a 09 72 6d 20 2d analyzer.c..rm -
5fb0: 66 20 73 71 6c 69 74 65 2d 2a 2d 6f 75 74 70 75 f sqlite-*-outpu
5fc0: 74 2e 76 73 69 78 0a 09 72 6d 20 2d 66 20 6d 70 t.vsix..rm -f mp
5fd0: 74 65 73 74 65 72 20 6d 70 74 65 73 74 65 72 2e tester mptester.
5fe0: 65 78 65 0a exe.