Artifact
40c707b2589f61436b89788003b1ccf5679ec3e6:
- File
Makefile.vxworks
— part of check-in
[e4a370c7]
at
2009-04-13 08:14:04
on branch trunk
— updated Makefile.vxwSH4 and renamed it to Makefile.vxworks,
should now be able to support SH4 and PPC targets. (CVS 6500)
(user:
chw
size: 19780)
0000: 23 21 2f 75 73 72 2f 6d 61 6b 65 0a 23 0a 23 20 #!/usr/make.#.#
0010: 4d 61 6b 65 66 69 6c 65 20 66 6f 72 20 53 51 4c Makefile for SQL
0020: 49 54 45 20 6f 6e 20 56 78 57 6f 72 6b 73 0a 0a ITE on VxWorks..
0030: 69 66 65 71 20 28 24 28 46 4f 52 43 50 55 29 2c ifeq ($(FORCPU),
0040: 29 0a 20 20 46 4f 52 43 50 55 20 3d 20 53 48 33 ). FORCPU = SH3
0050: 32 67 6e 75 6c 65 0a 65 6e 64 69 66 0a 0a 54 4f 2gnule.endif..TO
0060: 4f 4c 5f 46 41 4d 49 4c 59 20 3d 20 67 6e 75 0a OL_FAMILY = gnu.
0070: 0a 69 6e 63 6c 75 64 65 20 24 28 57 49 4e 44 5f .include $(WIND_
0080: 55 53 52 29 2f 74 6f 6f 6c 2f 67 6e 75 2f 6d 61 USR)/tool/gnu/ma
0090: 6b 65 2e 24 28 46 4f 52 43 50 55 29 0a 0a 23 23 ke.$(FORCPU)..##
00a0: 23 23 20 54 68 65 20 74 6f 70 6c 65 76 65 6c 20 ## The toplevel
00b0: 64 69 72 65 63 74 6f 72 79 20 6f 66 20 74 68 65 directory of the
00c0: 20 73 6f 75 72 63 65 20 74 72 65 65 2e 20 20 54 source tree. T
00d0: 68 69 73 20 69 73 20 74 68 65 20 64 69 72 65 63 his is the direc
00e0: 74 6f 72 79 0a 23 20 20 20 20 74 68 61 74 20 63 tory.# that c
00f0: 6f 6e 74 61 69 6e 73 20 74 68 69 73 20 22 4d 61 ontains this "Ma
0100: 6b 65 66 69 6c 65 2e 69 6e 22 20 61 6e 64 20 74 kefile.in" and t
0110: 68 65 20 22 63 6f 6e 66 69 67 75 72 65 2e 69 6e he "configure.in
0120: 22 20 73 63 72 69 70 74 2e 0a 23 0a 54 4f 50 20 " script..#.TOP
0130: 3d 20 2e 0a 0a 23 23 23 23 20 43 20 43 6f 6d 70 = ...#### C Comp
0140: 69 6c 65 72 20 61 6e 64 20 6f 70 74 69 6f 6e 73 iler and options
0150: 20 66 6f 72 20 75 73 65 20 69 6e 20 62 75 69 6c for use in buil
0160: 64 69 6e 67 20 65 78 65 63 75 74 61 62 6c 65 73 ding executables
0170: 20 74 68 61 74 0a 23 20 20 20 20 77 69 6c 6c 20 that.# will
0180: 72 75 6e 20 6f 6e 20 74 68 65 20 70 6c 61 74 66 run on the platf
0190: 6f 72 6d 20 74 68 61 74 20 69 73 20 64 6f 69 6e orm that is doin
01a0: 67 20 74 68 65 20 62 75 69 6c 64 2e 0a 23 0a 42 g the build..#.B
01b0: 43 43 20 3d 20 67 63 63 20 2d 67 20 2d 4f 32 0a CC = gcc -g -O2.
01c0: 23 42 43 43 20 3d 20 2f 6f 70 74 2f 61 6e 63 69 #BCC = /opt/anci
01d0: 63 2f 62 69 6e 2f 63 38 39 20 2d 30 0a 0a 23 23 c/bin/c89 -0..##
01e0: 23 23 20 49 66 20 74 68 65 20 74 61 72 67 65 74 ## If the target
01f0: 20 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74 65 operating syste
0200: 6d 20 73 75 70 70 6f 72 74 73 20 74 68 65 20 22 m supports the "
0210: 75 73 6c 65 65 70 28 29 22 20 73 79 73 74 65 6d usleep()" system
0220: 0a 23 20 20 20 20 63 61 6c 6c 2c 20 74 68 65 6e .# call, then
0230: 20 64 65 66 69 6e 65 20 74 68 65 20 48 41 56 45 define the HAVE
0240: 5f 55 53 4c 45 45 50 20 6d 61 63 72 6f 20 66 6f _USLEEP macro fo
0250: 72 20 61 6c 6c 20 43 20 6d 6f 64 75 6c 65 73 2e r all C modules.
0260: 0a 23 0a 55 53 4c 45 45 50 20 3d 20 0a 23 55 53 .#.USLEEP = .#US
0270: 4c 45 45 50 20 3d 20 2d 44 48 41 56 45 5f 55 53 LEEP = -DHAVE_US
0280: 4c 45 45 50 3d 31 0a 0a 23 23 23 23 20 49 66 20 LEEP=1..#### If
0290: 79 6f 75 20 77 61 6e 74 20 74 68 65 20 53 51 4c you want the SQL
02a0: 69 74 65 20 6c 69 62 72 61 72 79 20 74 6f 20 62 ite library to b
02b0: 65 20 73 61 66 65 20 66 6f 72 20 75 73 65 20 77 e safe for use w
02c0: 69 74 68 69 6e 20 61 20 0a 23 20 20 20 20 6d 75 ithin a .# mu
02d0: 6c 74 69 2d 74 68 72 65 61 64 65 64 20 70 72 6f lti-threaded pro
02e0: 67 72 61 6d 2c 20 74 68 65 6e 20 64 65 66 69 6e gram, then defin
02f0: 65 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 e the following
0300: 6d 61 63 72 6f 0a 23 20 20 20 20 61 70 70 72 6f macro.# appro
0310: 70 72 69 61 74 65 6c 79 3a 0a 23 0a 54 48 52 45 priately:.#.THRE
0320: 41 44 53 41 46 45 20 3d 20 2d 44 53 51 4c 49 54 ADSAFE = -DSQLIT
0330: 45 5f 54 48 52 45 41 44 53 41 46 45 3d 31 0a 23 E_THREADSAFE=1.#
0340: 54 48 52 45 41 44 53 41 46 45 20 3d 20 2d 44 53 THREADSAFE = -DS
0350: 51 4c 49 54 45 5f 54 48 52 45 41 44 53 41 46 45 QLITE_THREADSAFE
0360: 3d 30 0a 0a 23 23 23 23 20 53 70 65 63 69 66 79 =0..#### Specify
0370: 20 61 6e 79 20 65 78 74 72 61 20 6c 69 6e 6b 65 any extra linke
0380: 72 20 6f 70 74 69 6f 6e 73 20 6e 65 65 64 65 64 r options needed
0390: 20 74 6f 20 6d 61 6b 65 20 74 68 65 20 6c 69 62 to make the lib
03a0: 72 61 72 79 0a 23 20 20 20 20 74 68 72 65 61 64 rary.# thread
03b0: 20 73 61 66 65 0a 23 0a 23 54 48 52 45 41 44 4c safe.#.#THREADL
03c0: 49 42 20 3d 20 2d 6c 70 74 68 72 65 61 64 0a 54 IB = -lpthread.T
03d0: 48 52 45 41 44 4c 49 42 20 3d 20 0a 0a 23 23 23 HREADLIB = ..###
03e0: 23 20 53 70 65 63 69 66 79 20 61 6e 79 20 65 78 # Specify any ex
03f0: 74 72 61 20 6c 69 62 72 61 72 69 65 73 20 6e 65 tra libraries ne
0400: 65 64 65 64 20 74 6f 20 61 63 63 65 73 73 20 72 eded to access r
0410: 65 71 75 69 72 65 64 20 66 75 6e 63 74 69 6f 6e equired function
0420: 73 2e 0a 23 0a 69 66 65 71 20 28 24 28 43 50 55 s..#.ifeq ($(CPU
0430: 29 2c 53 48 33 32 29 20 0a 20 20 23 20 66 6f 72 ),SH32) . # for
0440: 20 53 48 34 20 73 68 61 72 65 64 20 6c 69 62 72 SH4 shared libr
0450: 61 72 79 0a 20 20 54 4c 49 42 53 5f 53 48 41 52 ary. TLIBS_SHAR
0460: 45 44 20 2b 3d 20 2d 4c 24 28 57 49 4e 44 5f 55 ED += -L$(WIND_U
0470: 53 52 29 2f 6c 69 62 2f 73 68 2f 53 48 33 32 2f SR)/lib/sh/SH32/
0480: 63 6f 6d 6d 6f 6e 6c 65 2f 50 49 43 0a 65 6c 73 commonle/PIC.els
0490: 65 20 0a 20 20 23 20 66 6f 72 20 61 6c 6c 20 6f e . # for all o
04a0: 74 68 65 72 20 43 50 55 73 20 73 68 61 72 65 64 ther CPUs shared
04b0: 20 6c 69 62 72 61 72 79 0a 20 20 54 4c 49 42 53 library. TLIBS
04c0: 5f 53 48 41 52 45 44 20 2b 3d 20 24 28 4c 44 5f _SHARED += $(LD_
04d0: 4c 49 4e 4b 5f 50 41 54 48 5f 41 54 45 4e 44 29 LINK_PATH_ATEND)
04e0: 20 24 28 4c 44 5f 50 41 52 54 49 41 4c 5f 4c 41 $(LD_PARTIAL_LA
04f0: 53 54 5f 46 4c 41 47 53 29 0a 65 6e 64 69 66 0a ST_FLAGS).endif.
0500: 23 20 66 6f 72 20 73 74 61 74 69 63 20 6c 69 62 # for static lib
0510: 72 61 72 79 0a 54 4c 49 42 53 20 2b 3d 20 24 28 rary.TLIBS += $(
0520: 4c 44 5f 4c 49 4e 4b 5f 50 41 54 48 5f 41 54 45 LD_LINK_PATH_ATE
0530: 4e 44 29 20 24 28 4c 44 5f 50 41 52 54 49 41 4c ND) $(LD_PARTIAL
0540: 5f 4c 41 53 54 5f 46 4c 41 47 53 29 0a 0a 23 23 _LAST_FLAGS)..##
0550: 23 23 20 4c 65 61 76 65 20 53 51 4c 49 54 45 5f ## Leave SQLITE_
0560: 44 45 42 55 47 20 75 6e 64 65 66 69 6e 65 64 20 DEBUG undefined
0570: 66 6f 72 20 6d 61 78 69 6d 75 6d 20 73 70 65 65 for maximum spee
0580: 64 2e 20 20 55 73 65 20 53 51 4c 49 54 45 5f 44 d. Use SQLITE_D
0590: 45 42 55 47 3d 31 0a 23 20 20 20 20 74 6f 20 63 EBUG=1.# to c
05a0: 68 65 63 6b 20 66 6f 72 20 6d 65 6d 6f 72 79 20 heck for memory
05b0: 6c 65 61 6b 73 2e 20 20 55 73 65 20 53 51 4c 49 leaks. Use SQLI
05c0: 54 45 5f 44 45 42 55 47 3d 32 20 74 6f 20 70 72 TE_DEBUG=2 to pr
05d0: 69 6e 74 20 61 20 6c 6f 67 20 6f 66 20 61 6c 6c int a log of all
05e0: 0a 23 20 20 20 20 6d 61 6c 6c 6f 63 28 29 73 20 .# malloc()s
05f0: 61 6e 64 20 66 72 65 65 28 29 73 20 69 6e 20 6f and free()s in o
0600: 72 64 65 72 20 74 6f 20 74 72 61 63 6b 20 64 6f rder to track do
0610: 77 6e 20 6d 65 6d 6f 72 79 20 6c 65 61 6b 73 2e wn memory leaks.
0620: 0a 23 20 20 20 20 0a 23 20 20 20 20 53 51 4c 69 .# .# SQLi
0630: 74 65 20 75 73 65 73 20 73 6f 6d 65 20 65 78 70 te uses some exp
0640: 65 6e 73 69 76 65 20 61 73 73 65 72 74 28 29 20 ensive assert()
0650: 73 74 61 74 65 6d 65 6e 74 73 20 69 6e 20 74 68 statements in th
0660: 65 20 69 6e 6e 65 72 20 6c 6f 6f 70 2e 0a 23 20 e inner loop..#
0670: 20 20 20 59 6f 75 20 63 61 6e 20 6d 61 6b 65 20 You can make
0680: 74 68 65 20 6c 69 62 72 61 72 79 20 67 6f 20 61 the library go a
0690: 6c 6d 6f 73 74 20 74 77 69 63 65 20 61 73 20 66 lmost twice as f
06a0: 61 73 74 20 69 66 20 79 6f 75 20 63 6f 6d 70 69 ast if you compi
06b0: 6c 65 0a 23 20 20 20 20 77 69 74 68 20 2d 44 4e le.# with -DN
06c0: 44 45 42 55 47 3d 31 0a 23 0a 23 4f 50 54 53 20 DEBUG=1.#.#OPTS
06d0: 3d 20 2d 44 53 51 4c 49 54 45 5f 44 45 42 55 47 = -DSQLITE_DEBUG
06e0: 3d 32 0a 23 4f 50 54 53 20 3d 20 2d 44 53 51 4c =2.#OPTS = -DSQL
06f0: 49 54 45 5f 44 45 42 55 47 3d 31 0a 23 4f 50 54 ITE_DEBUG=1.#OPT
0700: 53 20 3d 20 0a 4f 50 54 53 20 3d 20 2d 44 4e 44 S = .OPTS = -DND
0710: 45 42 55 47 3d 31 20 2d 44 53 51 4c 49 54 45 5f EBUG=1 -DSQLITE_
0720: 4f 53 5f 55 4e 49 58 3d 31 20 24 28 54 48 52 45 OS_UNIX=1 $(THRE
0730: 41 44 53 41 46 45 29 0a 4f 50 54 53 20 2b 3d 20 ADSAFE).OPTS +=
0740: 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 4c 4f -DSQLITE_OMIT_LO
0750: 41 44 5f 45 58 54 45 4e 53 49 4f 4e 3d 31 0a 4f AD_EXTENSION=1.O
0760: 50 54 53 20 2b 3d 20 2d 44 53 51 4c 49 54 45 5f PTS += -DSQLITE_
0770: 45 4e 41 42 4c 45 5f 4c 4f 43 4b 49 4e 47 5f 53 ENABLE_LOCKING_S
0780: 54 59 4c 45 3d 31 0a 4f 50 54 53 20 2b 3d 20 2d TYLE=1.OPTS += -
0790: 44 53 51 4c 49 54 45 5f 54 48 52 45 41 44 5f 4f DSQLITE_THREAD_O
07a0: 56 45 52 52 49 44 45 5f 4c 4f 43 4b 3d 30 0a 4f VERRIDE_LOCK=0.O
07b0: 50 54 53 20 2b 3d 20 2d 44 53 51 4c 49 54 45 5f PTS += -DSQLITE_
07c0: 45 4e 41 42 4c 45 5f 43 4f 4c 55 4d 4e 5f 4d 45 ENABLE_COLUMN_ME
07d0: 54 41 44 41 54 41 3d 31 0a 4f 50 54 53 20 2b 3d TADATA=1.OPTS +=
07e0: 20 2d 44 48 41 56 45 5f 46 44 41 54 41 53 59 4e -DHAVE_FDATASYN
07f0: 43 3d 31 0a 0a 23 23 23 23 20 54 68 65 20 73 75 C=1..#### The su
0800: 66 66 69 78 20 74 6f 20 61 64 64 20 74 6f 20 65 ffix to add to e
0810: 78 65 63 75 74 61 62 6c 65 20 66 69 6c 65 73 2e xecutable files.
0820: 20 20 22 2e 65 78 65 22 20 66 6f 72 20 77 69 6e ".exe" for win
0830: 64 6f 77 73 2e 0a 23 20 20 20 20 4e 6f 74 68 69 dows..# Nothi
0840: 6e 67 20 66 6f 72 20 75 6e 69 78 2e 0a 23 0a 45 ng for unix..#.E
0850: 58 45 20 3d 20 2e 76 78 65 0a 23 45 58 45 20 3d XE = .vxe.#EXE =
0860: 0a 0a 23 23 23 23 20 43 20 43 6f 6d 70 69 6c 65 ..#### C Compile
0870: 20 61 6e 64 20 6f 70 74 69 6f 6e 73 20 66 6f 72 and options for
0880: 20 75 73 65 20 69 6e 20 62 75 69 6c 64 69 6e 67 use in building
0890: 20 65 78 65 63 75 74 61 62 6c 65 73 20 74 68 61 executables tha
08a0: 74 20 0a 23 20 20 20 20 77 69 6c 6c 20 72 75 6e t .# will run
08b0: 20 6f 6e 20 74 68 65 20 74 61 72 67 65 74 20 70 on the target p
08c0: 6c 61 74 66 6f 72 6d 2e 20 20 54 68 69 73 20 69 latform. This i
08d0: 73 20 75 73 75 61 6c 6c 79 20 74 68 65 20 73 61 s usually the sa
08e0: 6d 65 0a 23 20 20 20 20 61 73 20 42 43 43 2c 20 me.# as BCC,
08f0: 75 6e 6c 65 73 73 20 79 6f 75 20 61 72 65 20 63 unless you are c
0900: 72 6f 73 73 2d 63 6f 6d 70 69 6c 69 6e 67 2e 0a ross-compiling..
0910: 23 0a 23 54 43 43 20 3d 20 67 63 63 20 2d 4f 36 #.#TCC = gcc -O6
0920: 0a 23 54 43 43 20 3d 20 67 63 63 20 2d 67 20 2d .#TCC = gcc -g -
0930: 4f 30 20 2d 57 61 6c 6c 0a 23 54 43 43 20 3d 20 O0 -Wall.#TCC =
0940: 67 63 63 20 2d 67 20 2d 4f 30 20 2d 57 61 6c 6c gcc -g -O0 -Wall
0950: 20 2d 66 70 72 6f 66 69 6c 65 2d 61 72 63 73 20 -fprofile-arcs
0960: 2d 66 74 65 73 74 2d 63 6f 76 65 72 61 67 65 0a -ftest-coverage.
0970: 23 54 43 43 20 3d 20 2f 6f 70 74 2f 6d 69 6e 67 #TCC = /opt/ming
0980: 77 2f 62 69 6e 2f 69 33 38 36 2d 6d 69 6e 67 77 w/bin/i386-mingw
0990: 33 32 2d 67 63 63 20 2d 4f 36 0a 54 43 43 20 3d 32-gcc -O6.TCC =
09a0: 20 24 28 43 43 29 20 24 28 44 45 46 49 4e 45 5f $(CC) $(DEFINE_
09b0: 43 43 29 20 2d 4f 32 20 2d 67 20 2d 6d 72 74 70 CC) -O2 -g -mrtp
09c0: 20 24 28 43 43 5f 41 52 43 48 5f 53 50 45 43 29 $(CC_ARCH_SPEC)
09d0: 20 2d 44 5f 52 45 45 4e 54 52 41 4e 54 3d 31 20 -D_REENTRANT=1
09e0: 2d 44 5f 56 58 5f 43 50 55 3d 5f 56 58 5f 24 28 -D_VX_CPU=_VX_$(
09f0: 43 50 55 29 20 2d 44 5f 56 58 5f 54 4f 4f 4c 5f CPU) -D_VX_TOOL_
0a00: 46 41 4d 49 4c 59 3d 24 28 54 4f 4f 4c 5f 46 41 FAMILY=$(TOOL_FA
0a10: 4d 49 4c 59 29 20 2d 44 5f 56 58 5f 54 4f 4f 4c MILY) -D_VX_TOOL
0a20: 3d 24 28 54 4f 4f 4c 29 0a 54 43 43 20 2b 3d 20 =$(TOOL).TCC +=
0a30: 2d 49 24 28 57 49 4e 44 5f 55 53 52 29 2f 68 20 -I$(WIND_USR)/h
0a40: 2d 49 24 28 57 49 4e 44 5f 55 53 52 29 2f 68 2f -I$(WIND_USR)/h/
0a50: 77 72 6e 2f 63 6f 72 65 69 70 0a 23 54 43 43 20 wrn/coreip.#TCC
0a60: 3d 20 2f 6f 70 74 2f 61 6e 73 69 63 2f 62 69 6e = /opt/ansic/bin
0a70: 2f 63 38 39 20 2d 4f 20 2b 7a 20 2d 57 6c 2c 2d /c89 -O +z -Wl,-
0a80: 61 2c 61 72 63 68 69 76 65 0a 0a 23 54 43 43 5f a,archive..#TCC_
0a90: 53 48 41 52 45 44 20 3d 20 24 28 54 43 43 29 20 SHARED = $(TCC)
0aa0: 2d 66 50 49 43 0a 54 43 43 5f 53 48 41 52 45 44 -fPIC.TCC_SHARED
0ab0: 20 3d 20 24 28 54 43 43 29 0a 0a 23 23 23 23 20 = $(TCC)..####
0ac0: 54 6f 6f 6c 73 20 75 73 65 64 20 74 6f 20 62 75 Tools used to bu
0ad0: 69 6c 64 20 61 20 73 74 61 74 69 63 20 6c 69 62 ild a static lib
0ae0: 72 61 72 79 2e 0a 23 0a 23 41 52 58 20 3d 20 61 rary..#.#ARX = a
0af0: 72 20 63 72 0a 23 41 52 58 20 3d 20 2f 6f 70 74 r cr.#ARX = /opt
0b00: 2f 6d 69 6e 67 77 2f 62 69 6e 2f 69 33 38 36 2d /mingw/bin/i386-
0b10: 6d 69 6e 67 77 33 32 2d 61 72 20 63 72 0a 41 52 mingw32-ar cr.AR
0b20: 20 2b 3d 20 63 72 0a 23 52 41 4e 4c 49 42 20 3d += cr.#RANLIB =
0b30: 20 72 61 6e 6c 69 62 0a 23 52 41 4e 4c 49 42 20 ranlib.#RANLIB
0b40: 3d 20 2f 6f 70 74 2f 6d 69 6e 67 77 2f 62 69 6e = /opt/mingw/bin
0b50: 2f 69 33 38 36 2d 6d 69 6e 67 77 33 32 2d 72 61 /i386-mingw32-ra
0b60: 6e 6c 69 62 0a 0a 23 4d 4b 53 48 4c 49 42 20 3d nlib..#MKSHLIB =
0b70: 20 67 63 63 20 2d 73 68 61 72 65 64 0a 23 53 4f gcc -shared.#SO
0b80: 20 3d 20 73 6f 0a 23 53 48 50 52 45 46 49 58 20 = so.#SHPREFIX
0b90: 3d 20 6c 69 62 0a 4d 4b 53 48 4c 49 42 20 3d 20 = lib.MKSHLIB =
0ba0: 24 28 43 43 29 20 24 28 44 45 46 49 4e 45 5f 43 $(CC) $(DEFINE_C
0bb0: 43 29 20 2d 6d 72 74 70 20 2d 73 68 61 72 65 64 C) -mrtp -shared
0bc0: 20 24 28 43 43 5f 41 52 43 48 5f 53 50 45 43 29 $(CC_ARCH_SPEC)
0bd0: 20 2d 44 5f 56 58 5f 43 50 55 3d 5f 56 58 5f 24 -D_VX_CPU=_VX_$
0be0: 28 43 50 55 29 20 2d 44 5f 56 58 5f 54 4f 4f 4c (CPU) -D_VX_TOOL
0bf0: 5f 46 41 4d 49 4c 59 3d 24 28 54 4f 4f 4c 5f 46 _FAMILY=$(TOOL_F
0c00: 41 4d 49 4c 59 29 20 2d 44 5f 56 58 5f 54 4f 4f AMILY) -D_VX_TOO
0c10: 4c 3d 24 28 54 4f 4f 4c 29 0a 53 4f 20 3d 20 73 L=$(TOOL).SO = s
0c20: 6f 0a 53 48 50 52 45 46 49 58 20 3d 20 6c 69 62 o.SHPREFIX = lib
0c30: 0a 0a 23 23 23 23 20 45 78 74 72 61 20 63 6f 6d ..#### Extra com
0c40: 70 69 6c 65 72 20 6f 70 74 69 6f 6e 73 20 6e 65 piler options ne
0c50: 65 64 65 64 20 66 6f 72 20 70 72 6f 67 72 61 6d eded for program
0c60: 73 20 74 68 61 74 20 75 73 65 20 74 68 65 20 54 s that use the T
0c70: 43 4c 20 6c 69 62 72 61 72 79 2e 0a 23 0a 23 54 CL library..#.#T
0c80: 43 4c 5f 46 4c 41 47 53 20 3d 0a 23 54 43 4c 5f CL_FLAGS =.#TCL_
0c90: 46 4c 41 47 53 20 3d 20 2d 44 53 54 41 54 49 43 FLAGS = -DSTATIC
0ca0: 5f 42 55 49 4c 44 3d 31 0a 54 43 4c 5f 46 4c 41 _BUILD=1.TCL_FLA
0cb0: 47 53 20 3d 20 2d 49 2f 68 6f 6d 65 2f 64 72 68 GS = -I/home/drh
0cc0: 2f 74 63 6c 74 6b 2f 38 2e 34 6c 69 6e 75 78 0a /tcltk/8.4linux.
0cd0: 23 54 43 4c 5f 46 4c 41 47 53 20 3d 20 2d 49 2f #TCL_FLAGS = -I/
0ce0: 68 6f 6d 65 2f 64 72 68 2f 74 63 6c 74 6b 2f 38 home/drh/tcltk/8
0cf0: 2e 34 77 69 6e 20 2d 44 53 54 41 54 49 43 5f 42 .4win -DSTATIC_B
0d00: 55 49 4c 44 3d 31 0a 23 54 43 4c 5f 46 4c 41 47 UILD=1.#TCL_FLAG
0d10: 53 20 3d 20 2d 49 2f 68 6f 6d 65 2f 64 72 68 2f S = -I/home/drh/
0d20: 74 63 6c 74 6b 2f 38 2e 33 68 70 75 78 0a 0a 23 tcltk/8.3hpux..#
0d30: 23 23 23 20 4c 69 6e 6b 65 72 20 6f 70 74 69 6f ### Linker optio
0d40: 6e 73 20 6e 65 65 64 65 64 20 74 6f 20 6c 69 6e ns needed to lin
0d50: 6b 20 61 67 61 69 6e 73 74 20 74 68 65 20 54 43 k against the TC
0d60: 4c 20 6c 69 62 72 61 72 79 2e 0a 23 0a 23 4c 49 L library..#.#LI
0d70: 42 54 43 4c 20 3d 20 2d 6c 74 63 6c 20 2d 6c 6d BTCL = -ltcl -lm
0d80: 20 2d 6c 64 6c 0a 4c 49 42 54 43 4c 20 3d 20 2f -ldl.LIBTCL = /
0d90: 68 6f 6d 65 2f 64 72 68 2f 74 63 6c 74 6b 2f 38 home/drh/tcltk/8
0da0: 2e 34 6c 69 6e 75 78 2f 6c 69 62 74 63 6c 38 2e .4linux/libtcl8.
0db0: 34 67 2e 61 20 2d 6c 6d 20 2d 6c 64 6c 0a 23 4c 4g.a -lm -ldl.#L
0dc0: 49 42 54 43 4c 20 3d 20 2f 68 6f 6d 65 2f 64 72 IBTCL = /home/dr
0dd0: 68 2f 74 63 6c 74 6b 2f 38 2e 34 77 69 6e 2f 6c h/tcltk/8.4win/l
0de0: 69 62 74 63 6c 38 34 73 2e 61 20 2d 6c 6d 73 76 ibtcl84s.a -lmsv
0df0: 63 72 74 0a 23 4c 49 42 54 43 4c 20 3d 20 2f 68 crt.#LIBTCL = /h
0e00: 6f 6d 65 2f 64 72 68 2f 74 63 6c 74 6b 2f 38 2e ome/drh/tcltk/8.
0e10: 33 68 70 75 78 2f 6c 69 62 74 63 6c 38 2e 33 2e 3hpux/libtcl8.3.
0e20: 61 20 2d 6c 64 6c 64 20 2d 6c 6d 20 2d 6c 63 0a a -ldld -lm -lc.
0e30: 0a 23 23 23 23 20 41 64 64 69 74 69 6f 6e 61 6c .#### Additional
0e40: 20 6f 62 6a 65 63 74 73 20 66 6f 72 20 53 51 4c objects for SQL
0e50: 69 74 65 20 6c 69 62 72 61 72 79 20 77 68 65 6e ite library when
0e60: 20 54 43 4c 20 73 75 70 70 6f 72 74 20 69 73 20 TCL support is
0e70: 65 6e 61 62 6c 65 64 2e 0a 54 43 4c 4f 42 4a 20 enabled..TCLOBJ
0e80: 3d 0a 23 54 43 4c 4f 42 4a 20 3d 20 74 63 6c 73 =.#TCLOBJ = tcls
0e90: 71 6c 69 74 65 2e 6f 0a 0a 23 23 23 23 20 43 6f qlite.o..#### Co
0ea0: 6d 70 69 6c 65 72 20 6f 70 74 69 6f 6e 73 20 6e mpiler options n
0eb0: 65 65 64 65 64 20 66 6f 72 20 70 72 6f 67 72 61 eeded for progra
0ec0: 6d 73 20 74 68 61 74 20 75 73 65 20 74 68 65 20 ms that use the
0ed0: 72 65 61 64 6c 69 6e 65 28 29 20 6c 69 62 72 61 readline() libra
0ee0: 72 79 2e 0a 23 0a 52 45 41 44 4c 49 4e 45 5f 46 ry..#.READLINE_F
0ef0: 4c 41 47 53 20 3d 0a 23 52 45 41 44 4c 49 4e 45 LAGS =.#READLINE
0f00: 5f 46 4c 41 47 53 20 3d 20 2d 44 48 41 56 45 5f _FLAGS = -DHAVE_
0f10: 52 45 41 44 4c 49 4e 45 3d 31 20 2d 49 2f 75 73 READLINE=1 -I/us
0f20: 72 2f 69 6e 63 6c 75 64 65 2f 72 65 61 64 6c 69 r/include/readli
0f30: 6e 65 0a 0a 23 23 23 23 20 4c 69 6e 6b 65 72 20 ne..#### Linker
0f40: 6f 70 74 69 6f 6e 73 20 6e 65 65 64 65 64 20 62 options needed b
0f50: 79 20 70 72 6f 67 72 61 6d 73 20 75 73 69 6e 67 y programs using
0f60: 20 72 65 61 64 6c 69 6e 65 28 29 20 6d 75 73 74 readline() must
0f70: 20 6c 69 6e 6b 20 61 67 61 69 6e 73 74 2e 0a 23 link against..#
0f80: 0a 4c 49 42 52 45 41 44 4c 49 4e 45 20 3d 0a 23 .LIBREADLINE =.#
0f90: 4c 49 42 52 45 41 44 4c 49 4e 45 20 3d 20 2d 73 LIBREADLINE = -s
0fa0: 74 61 74 69 63 20 2d 6c 72 65 61 64 6c 69 6e 65 tatic -lreadline
0fb0: 20 2d 6c 74 65 72 6d 63 61 70 0a 0a 23 23 23 23 -ltermcap..####
0fc0: 20 57 68 69 63 68 20 22 61 77 6b 22 20 70 72 6f Which "awk" pro
0fd0: 67 72 61 6d 20 70 72 6f 76 69 64 65 73 20 6e 61 gram provides na
0fe0: 77 6b 20 63 6f 6d 70 61 74 69 62 69 6c 74 79 0a wk compatibilty.
0ff0: 23 0a 23 20 4e 41 57 4b 20 3d 20 6e 61 77 6b 0a #.# NAWK = nawk.
1000: 4e 41 57 4b 20 3d 20 61 77 6b 0a 0a 0a 23 23 23 NAWK = awk...###
1010: 23 20 50 61 73 74 65 64 20 61 6e 64 20 61 64 61 # Pasted and ada
1020: 70 74 65 64 20 6d 61 69 6e 2e 6d 6b 20 66 69 6c pted main.mk fil
1030: 65 0a 23 23 23 23 23 23 23 23 23 23 23 23 23 23 e.##############
1040: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
1050: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
1060: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
1070: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
1080: 23 0a 23 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e #.# The followin
1090: 67 20 6d 61 63 72 6f 73 20 73 68 6f 75 6c 64 20 g macros should
10a0: 62 65 20 64 65 66 69 6e 65 64 20 62 65 66 6f 72 be defined befor
10b0: 65 20 74 68 69 73 20 73 63 72 69 70 74 20 69 73 e this script is
10c0: 0a 23 20 69 6e 76 6f 6b 65 64 3a 0a 23 0a 23 20 .# invoked:.#.#
10d0: 54 4f 50 20 20 20 20 20 20 20 20 20 20 20 20 20 TOP
10e0: 20 54 68 65 20 74 6f 70 6c 65 76 65 6c 20 64 69 The toplevel di
10f0: 72 65 63 74 6f 72 79 20 6f 66 20 74 68 65 20 73 rectory of the s
1100: 6f 75 72 63 65 20 74 72 65 65 2e 20 20 54 68 69 ource tree. Thi
1110: 73 20 69 73 20 74 68 65 0a 23 20 20 20 20 20 20 s is the.#
1120: 20 20 20 20 20 20 20 20 20 20 20 20 64 69 72 65 dire
1130: 63 74 6f 72 79 20 74 68 61 74 20 63 6f 6e 74 61 ctory that conta
1140: 69 6e 73 20 74 68 69 73 20 22 4d 61 6b 65 66 69 ins this "Makefi
1150: 6c 65 2e 69 6e 22 20 61 6e 64 20 74 68 65 0a 23 le.in" and the.#
1160: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
1170: 20 20 22 63 6f 6e 66 69 67 75 72 65 2e 69 6e 22 "configure.in"
1180: 20 73 63 72 69 70 74 2e 0a 23 0a 23 20 42 43 43 script..#.# BCC
1190: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 20 C
11a0: 43 6f 6d 70 69 6c 65 72 20 61 6e 64 20 6f 70 74 Compiler and opt
11b0: 69 6f 6e 73 20 66 6f 72 20 75 73 65 20 69 6e 20 ions for use in
11c0: 62 75 69 6c 64 69 6e 67 20 65 78 65 63 75 74 61 building executa
11d0: 62 6c 65 73 20 74 68 61 74 0a 23 20 20 20 20 20 bles that.#
11e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6c wil
11f0: 6c 20 72 75 6e 20 6f 6e 20 74 68 65 20 70 6c 61 l run on the pla
1200: 74 66 6f 72 6d 20 74 68 61 74 20 69 73 20 64 6f tform that is do
1210: 69 6e 67 20 74 68 65 20 62 75 69 6c 64 2e 0a 23 ing the build..#
1220: 0a 23 20 54 48 52 45 41 44 4c 49 42 20 20 20 20 .# THREADLIB
1230: 20 20 20 20 53 70 65 63 69 66 79 20 61 6e 79 20 Specify any
1240: 65 78 74 72 61 20 6c 69 6e 6b 65 72 20 6f 70 74 extra linker opt
1250: 69 6f 6e 73 20 6e 65 65 64 65 64 20 74 6f 20 6d ions needed to m
1260: 61 6b 65 20 74 68 65 20 6c 69 62 72 61 72 79 0a ake the library.
1270: 23 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 #
1280: 20 20 20 74 68 72 65 61 64 20 73 61 66 65 0a 23 thread safe.#
1290: 0a 23 20 4f 50 54 53 20 20 20 20 20 20 20 20 20 .# OPTS
12a0: 20 20 20 20 45 78 74 72 61 20 63 6f 6d 70 69 6c Extra compil
12b0: 65 72 20 63 6f 6d 6d 61 6e 64 2d 6c 69 6e 65 20 er command-line
12c0: 6f 70 74 69 6f 6e 73 2e 0a 23 0a 23 20 45 58 45 options..#.# EXE
12d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 Th
12e0: 65 20 73 75 66 66 69 78 20 74 6f 20 61 64 64 20 e suffix to add
12f0: 74 6f 20 65 78 65 63 75 74 61 62 6c 65 20 66 69 to executable fi
1300: 6c 65 73 2e 20 20 22 2e 65 78 65 22 20 66 6f 72 les. ".exe" for
1310: 20 77 69 6e 64 6f 77 73 0a 23 20 20 20 20 20 20 windows.#
1320: 20 20 20 20 20 20 20 20 20 20 20 20 61 6e 64 20 and
1330: 22 22 20 66 6f 72 20 55 6e 69 78 2e 0a 23 0a 23 "" for Unix..#.#
1340: 20 54 43 43 20 20 20 20 20 20 20 20 20 20 20 20 TCC
1350: 20 20 43 20 43 6f 6d 70 69 6c 65 72 20 61 6e 64 C Compiler and
1360: 20 6f 70 74 69 6f 6e 73 20 66 6f 72 20 75 73 65 options for use
1370: 20 69 6e 20 62 75 69 6c 64 69 6e 67 20 65 78 65 in building exe
1380: 63 75 74 61 62 6c 65 73 20 74 68 61 74 20 0a 23 cutables that .#
1390: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13a0: 20 20 77 69 6c 6c 20 72 75 6e 20 6f 6e 20 74 68 will run on th
13b0: 65 20 74 61 72 67 65 74 20 70 6c 61 74 66 6f 72 e target platfor
13c0: 6d 2e 20 20 54 68 69 73 20 69 73 20 75 73 75 61 m. This is usua
13d0: 6c 6c 79 20 74 68 65 20 73 61 6d 65 0a 23 20 20 lly the same.#
13e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13f0: 61 73 20 42 43 43 2c 20 75 6e 6c 65 73 73 20 79 as BCC, unless y
1400: 6f 75 20 61 72 65 20 63 72 6f 73 73 2d 63 6f 6d ou are cross-com
1410: 70 69 6c 69 6e 67 2e 0a 23 0a 23 20 41 52 20 20 piling..#.# AR
1420: 20 20 20 20 20 20 20 20 20 20 20 20 20 54 6f 6f Too
1430: 6c 73 20 75 73 65 64 20 74 6f 20 62 75 69 6c 64 ls used to build
1440: 20 61 20 73 74 61 74 69 63 20 6c 69 62 72 61 72 a static librar
1450: 79 2e 0a 23 20 52 41 4e 4c 49 42 0a 23 0a 23 20 y..# RANLIB.#.#
1460: 54 43 4c 5f 46 4c 41 47 53 20 20 20 20 20 20 20 TCL_FLAGS
1470: 20 45 78 74 72 61 20 63 6f 6d 70 69 6c 65 72 20 Extra compiler
1480: 6f 70 74 69 6f 6e 73 20 6e 65 65 64 65 64 20 66 options needed f
1490: 6f 72 20 70 72 6f 67 72 61 6d 73 20 74 68 61 74 or programs that
14a0: 20 75 73 65 20 74 68 65 0a 23 20 20 20 20 20 20 use the.#
14b0: 20 20 20 20 20 20 20 20 20 20 20 20 54 43 4c 20 TCL
14c0: 6c 69 62 72 61 72 79 2e 0a 23 0a 23 20 4c 49 42 library..#.# LIB
14d0: 54 43 4c 20 20 20 20 20 20 20 20 20 20 20 4c 69 TCL Li
14e0: 6e 6b 65 72 20 6f 70 74 69 6f 6e 73 20 6e 65 65 nker options nee
14f0: 64 65 64 20 74 6f 20 6c 69 6e 6b 20 61 67 61 69 ded to link agai
1500: 6e 73 74 20 74 68 65 20 54 43 4c 20 6c 69 62 72 nst the TCL libr
1510: 61 72 79 2e 0a 23 0a 23 20 52 45 41 44 4c 49 4e ary..#.# READLIN
1520: 45 5f 46 4c 41 47 53 20 20 20 43 6f 6d 70 69 6c E_FLAGS Compil
1530: 65 72 20 6f 70 74 69 6f 6e 73 20 6e 65 65 64 65 er options neede
1540: 64 20 66 6f 72 20 70 72 6f 67 72 61 6d 73 20 74 d for programs t
1550: 68 61 74 20 75 73 65 20 74 68 65 0a 23 20 20 20 hat use the.#
1560: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 r
1570: 65 61 64 6c 69 6e 65 28 29 20 6c 69 62 72 61 72 eadline() librar
1580: 79 2e 0a 23 0a 23 20 4c 49 42 52 45 41 44 4c 49 y..#.# LIBREADLI
1590: 4e 45 20 20 20 20 20 20 4c 69 6e 6b 65 72 20 6f NE Linker o
15a0: 70 74 69 6f 6e 73 20 6e 65 65 64 65 64 20 62 79 ptions needed by
15b0: 20 70 72 6f 67 72 61 6d 73 20 75 73 69 6e 67 20 programs using
15c0: 72 65 61 64 6c 69 6e 65 28 29 20 6d 75 73 74 0a readline() must.
15d0: 23 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 #
15e0: 20 20 20 6c 69 6e 6b 20 61 67 61 69 6e 73 74 2e link against.
15f0: 0a 23 0a 23 20 4e 41 57 4b 20 20 20 20 20 20 20 .#.# NAWK
1600: 20 20 20 20 20 20 4e 61 77 6b 20 63 6f 6d 70 61 Nawk compa
1610: 74 69 62 6c 65 20 61 77 6b 20 70 72 6f 67 72 61 tible awk progra
1620: 6d 2e 20 20 4f 6c 64 65 72 20 28 6f 62 73 6f 6c m. Older (obsol
1630: 65 74 65 3f 29 20 73 6f 6c 61 72 69 73 0a 23 20 ete?) solaris.#
1640: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
1650: 20 73 79 73 74 65 6d 73 20 6e 65 65 64 20 74 68 systems need th
1660: 69 73 20 74 6f 20 61 76 6f 69 64 20 75 73 69 6e is to avoid usin
1670: 67 20 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 41 g the original A
1680: 54 26 54 20 41 57 4b 2e 0a 23 0a 23 20 4f 6e 63 T&T AWK..#.# Onc
1690: 65 20 74 68 65 20 6d 61 63 72 6f 73 20 61 62 6f e the macros abo
16a0: 76 65 20 61 72 65 20 64 65 66 69 6e 65 64 2c 20 ve are defined,
16b0: 74 68 65 20 72 65 73 74 20 6f 66 20 74 68 69 73 the rest of this
16c0: 20 6d 61 6b 65 20 73 63 72 69 70 74 20 77 69 6c make script wil
16d0: 6c 0a 23 20 62 75 69 6c 64 20 74 68 65 20 53 51 l.# build the SQ
16e0: 4c 69 74 65 20 6c 69 62 72 61 72 79 20 61 6e 64 Lite library and
16f0: 20 74 65 73 74 69 6e 67 20 74 6f 6f 6c 73 2e 0a testing tools..
1700: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
1710: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
1720: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
1730: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
1740: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
1750: 0a 0a 23 20 54 68 69 73 20 69 73 20 68 6f 77 20 ..# This is how
1760: 77 65 20 63 6f 6d 70 69 6c 65 0a 23 0a 54 43 43 we compile.#.TCC
1770: 58 20 3d 20 24 28 54 43 43 29 20 24 28 4f 50 54 X = $(TCC) $(OPT
1780: 53 29 20 2d 49 2e 20 2d 49 24 28 54 4f 50 29 2f S) -I. -I$(TOP)/
1790: 73 72 63 20 2d 49 24 28 54 4f 50 29 20 2d 49 24 src -I$(TOP) -I$
17a0: 28 54 4f 50 29 2f 65 78 74 2f 72 74 72 65 65 0a (TOP)/ext/rtree.
17b0: 54 43 43 58 5f 53 48 41 52 45 44 20 3d 20 24 28 TCCX_SHARED = $(
17c0: 54 43 43 5f 53 48 41 52 45 44 29 20 24 28 4f 50 TCC_SHARED) $(OP
17d0: 54 53 29 20 2d 49 2e 20 2d 49 24 28 54 4f 50 29 TS) -I. -I$(TOP)
17e0: 2f 73 72 63 20 2d 49 24 28 54 4f 50 29 20 2d 49 /src -I$(TOP) -I
17f0: 24 28 54 4f 50 29 2f 65 78 74 2f 72 74 72 65 65 $(TOP)/ext/rtree
1800: 0a 0a 23 20 4f 62 6a 65 63 74 20 66 69 6c 65 73 ..# Object files
1810: 20 66 6f 72 20 74 68 65 20 53 51 4c 69 74 65 20 for the SQLite
1820: 6c 69 62 72 61 72 79 2e 0a 23 0a 4c 49 42 4f 42 library..#.LIBOB
1830: 4a 2b 3d 20 61 6c 74 65 72 2e 6f 20 61 6e 61 6c J+= alter.o anal
1840: 79 7a 65 2e 6f 20 61 74 74 61 63 68 2e 6f 20 61 yze.o attach.o a
1850: 75 74 68 2e 6f 20 5c 0a 20 20 20 20 20 20 20 20 uth.o \.
1860: 20 62 61 63 6b 75 70 2e 6f 20 62 69 74 76 65 63 backup.o bitvec
1870: 2e 6f 20 62 74 6d 75 74 65 78 2e 6f 20 62 74 72 .o btmutex.o btr
1880: 65 65 2e 6f 20 62 75 69 6c 64 2e 6f 20 5c 0a 20 ee.o build.o \.
1890: 20 20 20 20 20 20 20 20 63 61 6c 6c 62 61 63 6b callback
18a0: 2e 6f 20 63 6f 6d 70 6c 65 74 65 2e 6f 20 64 61 .o complete.o da
18b0: 74 65 2e 6f 20 64 65 6c 65 74 65 2e 6f 20 5c 0a te.o delete.o \.
18c0: 20 20 20 20 20 20 20 20 20 65 78 70 72 2e 6f 20 expr.o
18d0: 66 61 75 6c 74 2e 6f 20 66 75 6e 63 2e 6f 20 67 fault.o func.o g
18e0: 6c 6f 62 61 6c 2e 6f 20 68 61 73 68 2e 6f 20 5c lobal.o hash.o \
18f0: 0a 20 20 20 20 20 20 20 20 20 69 63 75 2e 6f 20 . icu.o
1900: 69 6e 73 65 72 74 2e 6f 20 6a 6f 75 72 6e 61 6c insert.o journal
1910: 2e 6f 20 6c 65 67 61 63 79 2e 6f 20 6c 6f 61 64 .o legacy.o load
1920: 65 78 74 2e 6f 20 5c 0a 20 20 20 20 20 20 20 20 ext.o \.
1930: 20 6d 61 69 6e 2e 6f 20 6d 61 6c 6c 6f 63 2e 6f main.o malloc.o
1940: 20 6d 65 6d 30 2e 6f 20 6d 65 6d 31 2e 6f 20 6d mem0.o mem1.o m
1950: 65 6d 32 2e 6f 20 6d 65 6d 33 2e 6f 20 6d 65 6d em2.o mem3.o mem
1960: 35 2e 6f 20 6d 65 6d 6a 6f 75 72 6e 61 6c 2e 6f 5.o memjournal.o
1970: 20 5c 0a 20 20 20 20 20 20 20 20 20 6d 75 74 65 \. mute
1980: 78 2e 6f 20 6d 75 74 65 78 5f 6f 73 32 2e 6f 20 x.o mutex_os2.o
1990: 6d 75 74 65 78 5f 75 6e 69 78 2e 6f 20 6d 75 74 mutex_unix.o mut
19a0: 65 78 5f 77 33 32 2e 6f 20 6d 75 74 65 78 5f 6e ex_w32.o mutex_n
19b0: 6f 6f 70 2e 6f 20 5c 0a 20 20 20 20 20 20 20 20 oop.o \.
19c0: 20 6f 70 63 6f 64 65 73 2e 6f 20 6f 73 2e 6f 20 opcodes.o os.o
19d0: 6f 73 5f 6f 73 32 2e 6f 20 6f 73 5f 75 6e 69 78 os_os2.o os_unix
19e0: 2e 6f 20 6f 73 5f 77 69 6e 2e 6f 20 5c 0a 20 20 .o os_win.o \.
19f0: 20 20 20 20 20 20 20 70 61 67 65 72 2e 6f 20 70 pager.o p
1a00: 61 72 73 65 2e 6f 20 70 63 61 63 68 65 2e 6f 20 arse.o pcache.o
1a10: 70 63 61 63 68 65 31 2e 6f 20 70 72 61 67 6d 61 pcache1.o pragma
1a20: 2e 6f 20 70 72 65 70 61 72 65 2e 6f 20 70 72 69 .o prepare.o pri
1a30: 6e 74 66 2e 6f 20 5c 0a 20 20 20 20 20 20 20 20 ntf.o \.
1a40: 20 72 61 6e 64 6f 6d 2e 6f 20 72 65 73 6f 6c 76 random.o resolv
1a50: 65 2e 6f 20 72 6f 77 73 65 74 2e 6f 20 72 74 72 e.o rowset.o rtr
1a60: 65 65 2e 6f 20 73 65 6c 65 63 74 2e 6f 20 73 74 ee.o select.o st
1a70: 61 74 75 73 2e 6f 20 5c 0a 20 20 20 20 20 20 20 atus.o \.
1a80: 20 20 74 61 62 6c 65 2e 6f 20 74 6f 6b 65 6e 69 table.o tokeni
1a90: 7a 65 2e 6f 20 74 72 69 67 67 65 72 2e 6f 20 5c ze.o trigger.o \
1aa0: 0a 20 20 20 20 20 20 20 20 20 75 70 64 61 74 65 . update
1ab0: 2e 6f 20 75 74 69 6c 2e 6f 20 76 61 63 75 75 6d .o util.o vacuum
1ac0: 2e 6f 20 5c 0a 20 20 20 20 20 20 20 20 20 76 64 .o \. vd
1ad0: 62 65 2e 6f 20 76 64 62 65 61 70 69 2e 6f 20 76 be.o vdbeapi.o v
1ae0: 64 62 65 61 75 78 2e 6f 20 76 64 62 65 62 6c 6f dbeaux.o vdbeblo
1af0: 62 2e 6f 20 76 64 62 65 6d 65 6d 2e 6f 20 5c 0a b.o vdbemem.o \.
1b00: 20 20 20 20 20 20 20 20 20 77 61 6c 6b 65 72 2e walker.
1b10: 6f 20 77 68 65 72 65 2e 6f 20 75 74 66 2e 6f 20 o where.o utf.o
1b20: 76 74 61 62 2e 6f 0a 0a 0a 23 20 41 6c 6c 20 6f vtab.o...# All o
1b30: 66 20 74 68 65 20 73 6f 75 72 63 65 20 63 6f 64 f the source cod
1b40: 65 20 66 69 6c 65 73 2e 0a 23 0a 53 52 43 20 3d e files..#.SRC =
1b50: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
1b60: 61 6c 74 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f alter.c \. $(TO
1b70: 50 29 2f 73 72 63 2f 61 6e 61 6c 79 7a 65 2e 63 P)/src/analyze.c
1b80: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
1b90: 61 74 74 61 63 68 2e 63 20 5c 0a 20 20 24 28 54 attach.c \. $(T
1ba0: 4f 50 29 2f 73 72 63 2f 61 75 74 68 2e 63 20 5c OP)/src/auth.c \
1bb0: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 62 61 . $(TOP)/src/ba
1bc0: 63 6b 75 70 2e 63 20 5c 0a 20 20 24 28 54 4f 50 ckup.c \. $(TOP
1bd0: 29 2f 73 72 63 2f 62 69 74 76 65 63 2e 63 20 5c )/src/bitvec.c \
1be0: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 62 74 . $(TOP)/src/bt
1bf0: 6d 75 74 65 78 2e 63 20 5c 0a 20 20 24 28 54 4f mutex.c \. $(TO
1c00: 50 29 2f 73 72 63 2f 62 74 72 65 65 2e 63 20 5c P)/src/btree.c \
1c10: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 62 74 . $(TOP)/src/bt
1c20: 72 65 65 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 ree.h \. $(TOP)
1c30: 2f 73 72 63 2f 62 74 72 65 65 49 6e 74 2e 68 20 /src/btreeInt.h
1c40: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 62 \. $(TOP)/src/b
1c50: 75 69 6c 64 2e 63 20 5c 0a 20 20 24 28 54 4f 50 uild.c \. $(TOP
1c60: 29 2f 73 72 63 2f 63 61 6c 6c 62 61 63 6b 2e 63 )/src/callback.c
1c70: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
1c80: 63 6f 6d 70 6c 65 74 65 2e 63 20 5c 0a 20 20 24 complete.c \. $
1c90: 28 54 4f 50 29 2f 73 72 63 2f 64 61 74 65 2e 63 (TOP)/src/date.c
1ca0: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
1cb0: 64 65 6c 65 74 65 2e 63 20 5c 0a 20 20 24 28 54 delete.c \. $(T
1cc0: 4f 50 29 2f 73 72 63 2f 65 78 70 72 2e 63 20 5c OP)/src/expr.c \
1cd0: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 66 61 . $(TOP)/src/fa
1ce0: 75 6c 74 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 ult.c \. $(TOP)
1cf0: 2f 73 72 63 2f 66 75 6e 63 2e 63 20 5c 0a 20 20 /src/func.c \.
1d00: 24 28 54 4f 50 29 2f 73 72 63 2f 67 6c 6f 62 61 $(TOP)/src/globa
1d10: 6c 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 l.c \. $(TOP)/s
1d20: 72 63 2f 68 61 73 68 2e 63 20 5c 0a 20 20 24 28 rc/hash.c \. $(
1d30: 54 4f 50 29 2f 73 72 63 2f 68 61 73 68 2e 68 20 TOP)/src/hash.h
1d40: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 68 \. $(TOP)/src/h
1d50: 77 74 69 6d 65 2e 68 20 5c 0a 20 20 24 28 54 4f wtime.h \. $(TO
1d60: 50 29 2f 73 72 63 2f 69 6e 73 65 72 74 2e 63 20 P)/src/insert.c
1d70: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6a \. $(TOP)/src/j
1d80: 6f 75 72 6e 61 6c 2e 63 20 5c 0a 20 20 24 28 54 ournal.c \. $(T
1d90: 4f 50 29 2f 73 72 63 2f 6c 65 67 61 63 79 2e 63 OP)/src/legacy.c
1da0: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
1db0: 6c 6f 61 64 65 78 74 2e 63 20 5c 0a 20 20 24 28 loadext.c \. $(
1dc0: 54 4f 50 29 2f 73 72 63 2f 6d 61 69 6e 2e 63 20 TOP)/src/main.c
1dd0: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6d \. $(TOP)/src/m
1de0: 61 6c 6c 6f 63 2e 63 20 5c 0a 20 20 24 28 54 4f alloc.c \. $(TO
1df0: 50 29 2f 73 72 63 2f 6d 65 6d 30 2e 63 20 5c 0a P)/src/mem0.c \.
1e00: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6d 65 6d $(TOP)/src/mem
1e10: 31 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 1.c \. $(TOP)/s
1e20: 72 63 2f 6d 65 6d 32 2e 63 20 5c 0a 20 20 24 28 rc/mem2.c \. $(
1e30: 54 4f 50 29 2f 73 72 63 2f 6d 65 6d 33 2e 63 20 TOP)/src/mem3.c
1e40: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6d \. $(TOP)/src/m
1e50: 65 6d 35 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 em5.c \. $(TOP)
1e60: 2f 73 72 63 2f 6d 65 6d 6a 6f 75 72 6e 61 6c 2e /src/memjournal.
1e70: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
1e80: 2f 6d 75 74 65 78 2e 63 20 5c 0a 20 20 24 28 54 /mutex.c \. $(T
1e90: 4f 50 29 2f 73 72 63 2f 6d 75 74 65 78 2e 68 20 OP)/src/mutex.h
1ea0: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6d \. $(TOP)/src/m
1eb0: 75 74 65 78 5f 6f 73 32 2e 63 20 5c 0a 20 20 24 utex_os2.c \. $
1ec0: 28 54 4f 50 29 2f 73 72 63 2f 6d 75 74 65 78 5f (TOP)/src/mutex_
1ed0: 75 6e 69 78 2e 63 20 5c 0a 20 20 24 28 54 4f 50 unix.c \. $(TOP
1ee0: 29 2f 73 72 63 2f 6d 75 74 65 78 5f 77 33 32 2e )/src/mutex_w32.
1ef0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
1f00: 2f 6d 75 74 65 78 5f 6e 6f 6f 70 2e 63 20 5c 0a /mutex_noop.c \.
1f10: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6f 73 2e $(TOP)/src/os.
1f20: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
1f30: 2f 6f 73 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 /os.h \. $(TOP)
1f40: 2f 73 72 63 2f 6f 73 5f 63 6f 6d 6d 6f 6e 2e 68 /src/os_common.h
1f50: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
1f60: 6f 73 5f 6f 73 32 2e 63 20 5c 0a 20 20 24 28 54 os_os2.c \. $(T
1f70: 4f 50 29 2f 73 72 63 2f 6f 73 5f 75 6e 69 78 2e OP)/src/os_unix.
1f80: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
1f90: 2f 6f 73 5f 77 69 6e 2e 63 20 5c 0a 20 20 24 28 /os_win.c \. $(
1fa0: 54 4f 50 29 2f 73 72 63 2f 70 61 67 65 72 2e 63 TOP)/src/pager.c
1fb0: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
1fc0: 70 61 67 65 72 2e 68 20 5c 0a 20 20 24 28 54 4f pager.h \. $(TO
1fd0: 50 29 2f 73 72 63 2f 70 61 72 73 65 2e 79 20 5c P)/src/parse.y \
1fe0: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 63 . $(TOP)/src/pc
1ff0: 61 63 68 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 ache.c \. $(TOP
2000: 29 2f 73 72 63 2f 70 63 61 63 68 65 31 2e 63 20 )/src/pcache1.c
2010: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 \. $(TOP)/src/p
2020: 63 61 63 68 65 2e 68 20 5c 0a 20 20 24 28 54 4f cache.h \. $(TO
2030: 50 29 2f 73 72 63 2f 70 72 61 67 6d 61 2e 63 20 P)/src/pragma.c
2040: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 \. $(TOP)/src/p
2050: 72 65 70 61 72 65 2e 63 20 5c 0a 20 20 24 28 54 repare.c \. $(T
2060: 4f 50 29 2f 73 72 63 2f 70 72 69 6e 74 66 2e 63 OP)/src/printf.c
2070: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
2080: 72 61 6e 64 6f 6d 2e 63 20 5c 0a 20 20 24 28 54 random.c \. $(T
2090: 4f 50 29 2f 73 72 63 2f 72 65 73 6f 6c 76 65 2e OP)/src/resolve.
20a0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
20b0: 2f 72 6f 77 73 65 74 2e 63 20 5c 0a 20 20 24 28 /rowset.c \. $(
20c0: 54 4f 50 29 2f 73 72 63 2f 73 65 6c 65 63 74 2e TOP)/src/select.
20d0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
20e0: 2f 73 74 61 74 75 73 2e 63 20 5c 0a 20 20 24 28 /status.c \. $(
20f0: 54 4f 50 29 2f 73 72 63 2f 73 68 65 6c 6c 2e 63 TOP)/src/shell.c
2100: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
2110: 73 71 6c 69 74 65 2e 68 2e 69 6e 20 5c 0a 20 20 sqlite.h.in \.
2120: 24 28 54 4f 50 29 2f 73 72 63 2f 73 71 6c 69 74 $(TOP)/src/sqlit
2130: 65 33 65 78 74 2e 68 20 5c 0a 20 20 24 28 54 4f e3ext.h \. $(TO
2140: 50 29 2f 73 72 63 2f 73 71 6c 69 74 65 49 6e 74 P)/src/sqliteInt
2150: 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .h \. $(TOP)/sr
2160: 63 2f 73 71 6c 69 74 65 4c 69 6d 69 74 2e 68 20 c/sqliteLimit.h
2170: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 \. $(TOP)/src/t
2180: 61 62 6c 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 able.c \. $(TOP
2190: 29 2f 73 72 63 2f 74 63 6c 73 71 6c 69 74 65 2e )/src/tclsqlite.
21a0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
21b0: 2f 74 6f 6b 65 6e 69 7a 65 2e 63 20 5c 0a 20 20 /tokenize.c \.
21c0: 24 28 54 4f 50 29 2f 73 72 63 2f 74 72 69 67 67 $(TOP)/src/trigg
21d0: 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f er.c \. $(TOP)/
21e0: 73 72 63 2f 75 74 66 2e 63 20 5c 0a 20 20 24 28 src/utf.c \. $(
21f0: 54 4f 50 29 2f 73 72 63 2f 75 70 64 61 74 65 2e TOP)/src/update.
2200: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
2210: 2f 75 74 69 6c 2e 63 20 5c 0a 20 20 24 28 54 4f /util.c \. $(TO
2220: 50 29 2f 73 72 63 2f 76 61 63 75 75 6d 2e 63 20 P)/src/vacuum.c
2230: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 76 \. $(TOP)/src/v
2240: 64 62 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 dbe.c \. $(TOP)
2250: 2f 73 72 63 2f 76 64 62 65 2e 68 20 5c 0a 20 20 /src/vdbe.h \.
2260: 24 28 54 4f 50 29 2f 73 72 63 2f 76 64 62 65 61 $(TOP)/src/vdbea
2270: 70 69 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f pi.c \. $(TOP)/
2280: 73 72 63 2f 76 64 62 65 61 75 78 2e 63 20 5c 0a src/vdbeaux.c \.
2290: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 76 64 62 $(TOP)/src/vdb
22a0: 65 62 6c 6f 62 2e 63 20 5c 0a 20 20 24 28 54 4f eblob.c \. $(TO
22b0: 50 29 2f 73 72 63 2f 76 64 62 65 6d 65 6d 2e 63 P)/src/vdbemem.c
22c0: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
22d0: 76 64 62 65 49 6e 74 2e 68 20 5c 0a 20 20 24 28 vdbeInt.h \. $(
22e0: 54 4f 50 29 2f 73 72 63 2f 76 74 61 62 2e 63 20 TOP)/src/vtab.c
22f0: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 77 \. $(TOP)/src/w
2300: 61 6c 6b 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f alker.c \. $(TO
2310: 50 29 2f 73 72 63 2f 77 68 65 72 65 2e 63 0a 0a P)/src/where.c..
2320: 23 20 53 6f 75 72 63 65 20 63 6f 64 65 20 66 6f # Source code fo
2330: 72 20 65 78 74 65 6e 73 69 6f 6e 73 0a 23 0a 53 r extensions.#.S
2340: 52 43 20 2b 3d 20 5c 0a 20 20 24 28 54 4f 50 29 RC += \. $(TOP)
2350: 2f 65 78 74 2f 66 74 73 31 2f 66 74 73 31 2e 63 /ext/fts1/fts1.c
2360: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f \. $(TOP)/ext/
2370: 66 74 73 31 2f 66 74 73 31 2e 68 20 5c 0a 20 20 fts1/fts1.h \.
2380: 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 31 2f $(TOP)/ext/fts1/
2390: 66 74 73 31 5f 68 61 73 68 2e 63 20 5c 0a 20 20 fts1_hash.c \.
23a0: 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 31 2f $(TOP)/ext/fts1/
23b0: 66 74 73 31 5f 68 61 73 68 2e 68 20 5c 0a 20 20 fts1_hash.h \.
23c0: 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 31 2f $(TOP)/ext/fts1/
23d0: 66 74 73 31 5f 70 6f 72 74 65 72 2e 63 20 5c 0a fts1_porter.c \.
23e0: 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 $(TOP)/ext/fts
23f0: 31 2f 66 74 73 31 5f 74 6f 6b 65 6e 69 7a 65 72 1/fts1_tokenizer
2400: 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 .h \. $(TOP)/ex
2410: 74 2f 66 74 73 31 2f 66 74 73 31 5f 74 6f 6b 65 t/fts1/fts1_toke
2420: 6e 69 7a 65 72 31 2e 63 0a 53 52 43 20 2b 3d 20 nizer1.c.SRC +=
2430: 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 \. $(TOP)/ext/f
2440: 74 73 32 2f 66 74 73 32 2e 63 20 5c 0a 20 20 24 ts2/fts2.c \. $
2450: 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 32 2f 66 (TOP)/ext/fts2/f
2460: 74 73 32 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 ts2.h \. $(TOP)
2470: 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 32 5f 68 /ext/fts2/fts2_h
2480: 61 73 68 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 ash.c \. $(TOP)
2490: 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 32 5f 68 /ext/fts2/fts2_h
24a0: 61 73 68 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 ash.h \. $(TOP)
24b0: 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 32 5f 69 /ext/fts2/fts2_i
24c0: 63 75 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f cu.c \. $(TOP)/
24d0: 65 78 74 2f 66 74 73 32 2f 66 74 73 32 5f 70 6f ext/fts2/fts2_po
24e0: 72 74 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 rter.c \. $(TOP
24f0: 29 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 32 5f )/ext/fts2/fts2_
2500: 74 6f 6b 65 6e 69 7a 65 72 2e 68 20 5c 0a 20 20 tokenizer.h \.
2510: 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 32 2f $(TOP)/ext/fts2/
2520: 66 74 73 32 5f 74 6f 6b 65 6e 69 7a 65 72 2e 63 fts2_tokenizer.c
2530: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f \. $(TOP)/ext/
2540: 66 74 73 32 2f 66 74 73 32 5f 74 6f 6b 65 6e 69 fts2/fts2_tokeni
2550: 7a 65 72 31 2e 63 0a 53 52 43 20 2b 3d 20 5c 0a zer1.c.SRC += \.
2560: 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 $(TOP)/ext/fts
2570: 33 2f 66 74 73 33 2e 63 20 5c 0a 20 20 24 28 54 3/fts3.c \. $(T
2580: 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 OP)/ext/fts3/fts
2590: 33 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 3.h \. $(TOP)/e
25a0: 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 65 78 70 xt/fts3/fts3_exp
25b0: 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 r.c \. $(TOP)/e
25c0: 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 65 78 70 xt/fts3/fts3_exp
25d0: 72 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 r.h \. $(TOP)/e
25e0: 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 68 61 73 xt/fts3/fts3_has
25f0: 68 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 h.c \. $(TOP)/e
2600: 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 68 61 73 xt/fts3/fts3_has
2610: 68 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 h.h \. $(TOP)/e
2620: 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 69 63 75 xt/fts3/fts3_icu
2630: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 .c \. $(TOP)/ex
2640: 74 2f 66 74 73 33 2f 66 74 73 33 5f 70 6f 72 74 t/fts3/fts3_port
2650: 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f er.c \. $(TOP)/
2660: 65 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 74 6f ext/fts3/fts3_to
2670: 6b 65 6e 69 7a 65 72 2e 68 20 5c 0a 20 20 24 28 kenizer.h \. $(
2680: 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 TOP)/ext/fts3/ft
2690: 73 33 5f 74 6f 6b 65 6e 69 7a 65 72 2e 63 20 5c s3_tokenizer.c \
26a0: 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 . $(TOP)/ext/ft
26b0: 73 33 2f 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 s3/fts3_tokenize
26c0: 72 31 2e 63 0a 53 52 43 20 2b 3d 20 5c 0a 20 20 r1.c.SRC += \.
26d0: 24 28 54 4f 50 29 2f 65 78 74 2f 69 63 75 2f 69 $(TOP)/ext/icu/i
26e0: 63 75 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f cu.c \. $(TOP)/
26f0: 65 78 74 2f 69 63 75 2f 73 71 6c 69 74 65 69 63 ext/icu/sqliteic
2700: 75 2e 68 0a 53 52 43 20 2b 3d 20 5c 0a 20 20 24 u.h.SRC += \. $
2710: 28 54 4f 50 29 2f 65 78 74 2f 72 74 72 65 65 2f (TOP)/ext/rtree/
2720: 72 74 72 65 65 2e 68 20 5c 0a 20 20 24 28 54 4f rtree.h \. $(TO
2730: 50 29 2f 65 78 74 2f 72 74 72 65 65 2f 72 74 72 P)/ext/rtree/rtr
2740: 65 65 2e 63 0a 0a 0a 23 20 47 65 6e 65 72 61 74 ee.c...# Generat
2750: 65 64 20 73 6f 75 72 63 65 20 63 6f 64 65 20 66 ed source code f
2760: 69 6c 65 73 0a 23 0a 53 52 43 20 2b 3d 20 5c 0a iles.#.SRC += \.
2770: 20 20 6b 65 79 77 6f 72 64 68 61 73 68 2e 68 20 keywordhash.h
2780: 5c 0a 20 20 6f 70 63 6f 64 65 73 2e 63 20 5c 0a \. opcodes.c \.
2790: 20 20 6f 70 63 6f 64 65 73 2e 68 20 5c 0a 20 20 opcodes.h \.
27a0: 70 61 72 73 65 2e 63 20 5c 0a 20 20 70 61 72 73 parse.c \. pars
27b0: 65 2e 68 20 5c 0a 20 20 73 71 6c 69 74 65 33 2e e.h \. sqlite3.
27c0: 68 0a 0a 0a 23 20 53 6f 75 72 63 65 20 63 6f 64 h...# Source cod
27d0: 65 20 74 6f 20 74 68 65 20 74 65 73 74 20 66 69 e to the test fi
27e0: 6c 65 73 2e 0a 23 0a 54 45 53 54 53 52 43 20 3d les..#.TESTSRC =
27f0: 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
2800: 74 65 73 74 31 2e 63 20 5c 0a 20 20 24 28 54 4f test1.c \. $(TO
2810: 50 29 2f 73 72 63 2f 74 65 73 74 32 2e 63 20 5c P)/src/test2.c \
2820: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 . $(TOP)/src/te
2830: 73 74 33 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 st3.c \. $(TOP)
2840: 2f 73 72 63 2f 74 65 73 74 34 2e 63 20 5c 0a 20 /src/test4.c \.
2850: 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 $(TOP)/src/test
2860: 35 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 5.c \. $(TOP)/s
2870: 72 63 2f 74 65 73 74 36 2e 63 20 5c 0a 20 20 24 rc/test6.c \. $
2880: 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 37 2e (TOP)/src/test7.
2890: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
28a0: 2f 74 65 73 74 38 2e 63 20 5c 0a 20 20 24 28 54 /test8.c \. $(T
28b0: 4f 50 29 2f 73 72 63 2f 74 65 73 74 39 2e 63 20 OP)/src/test9.c
28c0: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 \. $(TOP)/src/t
28d0: 65 73 74 5f 61 75 74 6f 65 78 74 2e 63 20 5c 0a est_autoext.c \.
28e0: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 $(TOP)/src/tes
28f0: 74 5f 61 73 79 6e 63 2e 63 20 5c 0a 20 20 24 28 t_async.c \. $(
2900: 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f 62 74 TOP)/src/test_bt
2910: 72 65 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 ree.c \. $(TOP)
2920: 2f 73 72 63 2f 74 65 73 74 5f 63 6f 6e 66 69 67 /src/test_config
2930: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 .c \. $(TOP)/sr
2940: 63 2f 74 65 73 74 5f 64 65 76 73 79 6d 2e 63 20 c/test_devsym.c
2950: 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 \. $(TOP)/src/t
2960: 65 73 74 5f 66 75 6e 63 2e 63 20 5c 0a 20 20 24 est_func.c \. $
2970: 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f 68 (TOP)/src/test_h
2980: 65 78 69 6f 2e 63 20 5c 0a 20 20 24 28 54 4f 50 exio.c \. $(TOP
2990: 29 2f 73 72 63 2f 74 65 73 74 5f 6d 61 6c 6c 6f )/src/test_mallo
29a0: 63 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 c.c \. $(TOP)/s
29b0: 72 63 2f 74 65 73 74 5f 6d 64 35 2e 63 20 5c 0a rc/test_md5.c \.
29c0: 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 $(TOP)/src/tes
29d0: 74 5f 6d 75 74 65 78 2e 63 20 5c 0a 20 20 24 28 t_mutex.c \. $(
29e0: 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f 6f 6e TOP)/src/test_on
29f0: 65 66 69 6c 65 2e 63 20 5c 0a 20 20 24 28 54 4f efile.c \. $(TO
2a00: 50 29 2f 73 72 63 2f 74 65 73 74 5f 6f 73 69 6e P)/src/test_osin
2a10: 73 74 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f st.c \. $(TOP)/
2a20: 73 72 63 2f 74 65 73 74 5f 73 63 68 65 6d 61 2e src/test_schema.
2a30: 63 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 c \. $(TOP)/src
2a40: 2f 74 65 73 74 5f 73 65 72 76 65 72 2e 63 20 5c /test_server.c \
2a50: 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 . $(TOP)/src/te
2a60: 73 74 5f 74 63 6c 76 61 72 2e 63 20 5c 0a 20 20 st_tclvar.c \.
2a70: 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 74 5f $(TOP)/src/test_
2a80: 74 68 72 65 61 64 2e 63 20 5c 0a 0a 23 54 45 53 thread.c \..#TES
2a90: 54 53 52 43 20 2b 3d 20 24 28 54 4f 50 29 2f 65 TSRC += $(TOP)/e
2aa0: 78 74 2f 66 74 73 32 2f 66 74 73 32 5f 74 6f 6b xt/fts2/fts2_tok
2ab0: 65 6e 69 7a 65 72 2e 63 0a 23 54 45 53 54 53 52 enizer.c.#TESTSR
2ac0: 43 20 2b 3d 20 24 28 54 4f 50 29 2f 65 78 74 2f C += $(TOP)/ext/
2ad0: 66 74 73 33 2f 66 74 73 33 5f 74 6f 6b 65 6e 69 fts3/fts3_tokeni
2ae0: 7a 65 72 2e 63 0a 0a 54 45 53 54 53 52 43 32 20 zer.c..TESTSRC2
2af0: 3d 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 63 = \. $(TOP)/src
2b00: 2f 61 74 74 61 63 68 2e 63 20 24 28 54 4f 50 29 /attach.c $(TOP)
2b10: 2f 73 72 63 2f 62 74 72 65 65 2e 63 20 24 28 54 /src/btree.c $(T
2b20: 4f 50 29 2f 73 72 63 2f 62 75 69 6c 64 2e 63 20 OP)/src/build.c
2b30: 24 28 54 4f 50 29 2f 73 72 63 2f 64 61 74 65 2e $(TOP)/src/date.
2b40: 63 20 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 72 c \. $(TOP)/sr
2b50: 63 2f 65 78 70 72 2e 63 20 24 28 54 4f 50 29 2f c/expr.c $(TOP)/
2b60: 73 72 63 2f 66 75 6e 63 2e 63 20 24 28 54 4f 50 src/func.c $(TOP
2b70: 29 2f 73 72 63 2f 69 6e 73 65 72 74 2e 63 20 24 )/src/insert.c $
2b80: 28 54 4f 50 29 2f 73 72 63 2f 6f 73 2e 63 20 20 (TOP)/src/os.c
2b90: 20 20 20 20 5c 0a 20 20 24 28 54 4f 50 29 2f 73 \. $(TOP)/s
2ba0: 72 63 2f 6f 73 5f 6f 73 32 2e 63 20 24 28 54 4f rc/os_os2.c $(TO
2bb0: 50 29 2f 73 72 63 2f 6f 73 5f 75 6e 69 78 2e 63 P)/src/os_unix.c
2bc0: 20 24 28 54 4f 50 29 2f 73 72 63 2f 6f 73 5f 77 $(TOP)/src/os_w
2bd0: 69 6e 2e 63 20 20 20 20 20 20 20 20 20 20 20 20 in.c
2be0: 20 20 20 20 20 5c 0a 20 20 24 28 54 4f 50 29 2f \. $(TOP)/
2bf0: 73 72 63 2f 70 61 67 65 72 2e 63 20 24 28 54 4f src/pager.c $(TO
2c00: 50 29 2f 73 72 63 2f 70 72 61 67 6d 61 2e 63 20 P)/src/pragma.c
2c10: 24 28 54 4f 50 29 2f 73 72 63 2f 70 72 65 70 61 $(TOP)/src/prepa
2c20: 72 65 2e 63 20 20 20 20 20 20 20 20 20 20 20 20 re.c
2c30: 20 20 20 20 20 20 5c 0a 20 20 24 28 54 4f 50 29 \. $(TOP)
2c40: 2f 73 72 63 2f 70 72 69 6e 74 66 2e 63 20 24 28 /src/printf.c $(
2c50: 54 4f 50 29 2f 73 72 63 2f 72 61 6e 64 6f 6d 2e TOP)/src/random.
2c60: 63 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 63 61 c $(TOP)/src/pca
2c70: 63 68 65 2e 63 20 20 20 20 20 20 20 20 20 20 20 che.c
2c80: 20 20 20 20 20 20 20 5c 0a 20 20 24 28 54 4f 50 \. $(TOP
2c90: 29 2f 73 72 63 2f 73 65 6c 65 63 74 2e 63 20 24 )/src/select.c $
2ca0: 28 54 4f 50 29 2f 73 72 63 2f 74 6f 6b 65 6e 69 (TOP)/src/tokeni
2cb0: 7a 65 2e 63 20 20 20 20 20 20 20 20 20 20 20 20 ze.c
2cc0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2cd0: 20 20 20 20 20 20 20 20 5c 0a 20 20 24 28 54 4f \. $(TO
2ce0: 50 29 2f 73 72 63 2f 75 74 66 2e 63 20 24 28 54 P)/src/utf.c $(T
2cf0: 4f 50 29 2f 73 72 63 2f 75 74 69 6c 2e 63 20 24 OP)/src/util.c $
2d00: 28 54 4f 50 29 2f 73 72 63 2f 76 64 62 65 61 70 (TOP)/src/vdbeap
2d10: 69 2e 63 20 24 28 54 4f 50 29 2f 73 72 63 2f 76 i.c $(TOP)/src/v
2d20: 64 62 65 61 75 78 2e 63 20 5c 0a 20 20 24 28 54 dbeaux.c \. $(T
2d30: 4f 50 29 2f 73 72 63 2f 76 64 62 65 2e 63 20 24 OP)/src/vdbe.c $
2d40: 28 54 4f 50 29 2f 73 72 63 2f 76 64 62 65 6d 65 (TOP)/src/vdbeme
2d50: 6d 2e 63 20 24 28 54 4f 50 29 2f 73 72 63 2f 77 m.c $(TOP)/src/w
2d60: 68 65 72 65 2e 63 20 70 61 72 73 65 2e 63 0a 0a here.c parse.c..
2d70: 23 20 48 65 61 64 65 72 20 66 69 6c 65 73 20 75 # Header files u
2d80: 73 65 64 20 62 79 20 61 6c 6c 20 6c 69 62 72 61 sed by all libra
2d90: 72 79 20 73 6f 75 72 63 65 20 66 69 6c 65 73 2e ry source files.
2da0: 0a 23 0a 48 44 52 20 3d 20 5c 0a 20 20 20 24 28 .#.HDR = \. $(
2db0: 54 4f 50 29 2f 73 72 63 2f 62 74 72 65 65 2e 68 TOP)/src/btree.h
2dc0: 20 5c 0a 20 20 20 24 28 54 4f 50 29 2f 73 72 63 \. $(TOP)/src
2dd0: 2f 62 74 72 65 65 49 6e 74 2e 68 20 5c 0a 20 20 /btreeInt.h \.
2de0: 20 24 28 54 4f 50 29 2f 73 72 63 2f 68 61 73 68 $(TOP)/src/hash
2df0: 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 29 2f 73 .h \. $(TOP)/s
2e00: 72 63 2f 68 77 74 69 6d 65 2e 68 20 5c 0a 20 20 rc/hwtime.h \.
2e10: 20 6b 65 79 77 6f 72 64 68 61 73 68 2e 68 20 5c keywordhash.h \
2e20: 0a 20 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 6d . $(TOP)/src/m
2e30: 75 74 65 78 2e 68 20 5c 0a 20 20 20 6f 70 63 6f utex.h \. opco
2e40: 64 65 73 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 des.h \. $(TOP
2e50: 29 2f 73 72 63 2f 6f 73 2e 68 20 5c 0a 20 20 20 )/src/os.h \.
2e60: 24 28 54 4f 50 29 2f 73 72 63 2f 6f 73 5f 63 6f $(TOP)/src/os_co
2e70: 6d 6d 6f 6e 2e 68 20 5c 0a 20 20 20 24 28 54 4f mmon.h \. $(TO
2e80: 50 29 2f 73 72 63 2f 70 61 67 65 72 2e 68 20 5c P)/src/pager.h \
2e90: 0a 20 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 70 . $(TOP)/src/p
2ea0: 63 61 63 68 65 2e 68 20 5c 0a 20 20 20 70 61 72 cache.h \. par
2eb0: 73 65 2e 68 20 20 5c 0a 20 20 20 73 71 6c 69 74 se.h \. sqlit
2ec0: 65 33 2e 68 20 20 5c 0a 20 20 20 24 28 54 4f 50 e3.h \. $(TOP
2ed0: 29 2f 73 72 63 2f 73 71 6c 69 74 65 33 65 78 74 )/src/sqlite3ext
2ee0: 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 29 2f 73 .h \. $(TOP)/s
2ef0: 72 63 2f 73 71 6c 69 74 65 49 6e 74 2e 68 20 20 rc/sqliteInt.h
2f00: 5c 0a 20 20 20 24 28 54 4f 50 29 2f 73 72 63 2f \. $(TOP)/src/
2f10: 73 71 6c 69 74 65 4c 69 6d 69 74 2e 68 20 5c 0a sqliteLimit.h \.
2f20: 20 20 20 24 28 54 4f 50 29 2f 73 72 63 2f 76 64 $(TOP)/src/vd
2f30: 62 65 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 29 be.h \. $(TOP)
2f40: 2f 73 72 63 2f 76 64 62 65 49 6e 74 2e 68 0a 0a /src/vdbeInt.h..
2f50: 23 20 48 65 61 64 65 72 20 66 69 6c 65 73 20 75 # Header files u
2f60: 73 65 64 20 62 79 20 65 78 74 65 6e 73 69 6f 6e sed by extension
2f70: 73 0a 23 0a 45 58 54 48 44 52 20 2b 3d 20 5c 0a s.#.EXTHDR += \.
2f80: 20 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 $(TOP)/ext/fts
2f90: 31 2f 66 74 73 31 2e 68 20 5c 0a 20 20 24 28 54 1/fts1.h \. $(T
2fa0: 4f 50 29 2f 65 78 74 2f 66 74 73 31 2f 66 74 73 OP)/ext/fts1/fts
2fb0: 31 5f 68 61 73 68 2e 68 20 5c 0a 20 20 24 28 54 1_hash.h \. $(T
2fc0: 4f 50 29 2f 65 78 74 2f 66 74 73 31 2f 66 74 73 OP)/ext/fts1/fts
2fd0: 31 5f 74 6f 6b 65 6e 69 7a 65 72 2e 68 0a 45 58 1_tokenizer.h.EX
2fe0: 54 48 44 52 20 2b 3d 20 5c 0a 20 20 24 28 54 4f THDR += \. $(TO
2ff0: 50 29 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 32 P)/ext/fts2/fts2
3000: 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 .h \. $(TOP)/ex
3010: 74 2f 66 74 73 32 2f 66 74 73 32 5f 68 61 73 68 t/fts2/fts2_hash
3020: 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 .h \. $(TOP)/ex
3030: 74 2f 66 74 73 32 2f 66 74 73 32 5f 74 6f 6b 65 t/fts2/fts2_toke
3040: 6e 69 7a 65 72 2e 68 0a 45 58 54 48 44 52 20 2b nizer.h.EXTHDR +
3050: 3d 20 5c 0a 20 20 24 28 54 4f 50 29 2f 65 78 74 = \. $(TOP)/ext
3060: 2f 66 74 73 33 2f 66 74 73 33 2e 68 20 5c 0a 20 /fts3/fts3.h \.
3070: 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 $(TOP)/ext/fts3
3080: 2f 66 74 73 33 5f 68 61 73 68 2e 68 20 5c 0a 20 /fts3_hash.h \.
3090: 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 $(TOP)/ext/fts3
30a0: 2f 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 72 2e /fts3_tokenizer.
30b0: 68 0a 45 58 54 48 44 52 20 2b 3d 20 5c 0a 20 20 h.EXTHDR += \.
30c0: 24 28 54 4f 50 29 2f 65 78 74 2f 72 74 72 65 65 $(TOP)/ext/rtree
30d0: 2f 72 74 72 65 65 2e 68 0a 0a 23 20 54 68 69 73 /rtree.h..# This
30e0: 20 69 73 20 74 68 65 20 64 65 66 61 75 6c 74 20 is the default
30f0: 4d 61 6b 65 66 69 6c 65 20 74 61 72 67 65 74 2e Makefile target.
3100: 20 20 54 68 65 20 6f 62 6a 65 63 74 73 20 6c 69 The objects li
3110: 73 74 65 64 20 68 65 72 65 0a 23 20 61 72 65 20 sted here.# are
3120: 77 68 61 74 20 67 65 74 20 62 75 69 6c 64 20 77 what get build w
3130: 68 65 6e 20 79 6f 75 20 74 79 70 65 20 6a 75 73 hen you type jus
3140: 74 20 22 6d 61 6b 65 22 20 77 69 74 68 20 6e 6f t "make" with no
3150: 20 61 72 67 75 6d 65 6e 74 73 2e 0a 23 0a 61 6c arguments..#.al
3160: 6c 3a 09 73 71 6c 69 74 65 33 2e 68 20 6c 69 62 l:.sqlite3.h lib
3170: 73 71 6c 69 74 65 33 2e 61 20 73 71 6c 69 74 65 sqlite3.a sqlite
3180: 33 24 28 45 58 45 29 0a 0a 6c 69 62 73 71 6c 69 3$(EXE)..libsqli
3190: 74 65 33 2e 61 3a 09 24 28 4c 49 42 4f 42 4a 29 te3.a:.$(LIBOBJ)
31a0: 0a 09 24 28 41 52 29 20 6c 69 62 73 71 6c 69 74 ..$(AR) libsqlit
31b0: 65 33 2e 61 20 24 28 4c 49 42 4f 42 4a 29 0a 09 e3.a $(LIBOBJ)..
31c0: 24 28 52 41 4e 4c 49 42 29 20 6c 69 62 73 71 6c $(RANLIB) libsql
31d0: 69 74 65 33 2e 61 0a 0a 24 28 53 48 50 52 45 46 ite3.a..$(SHPREF
31e0: 49 58 29 73 71 6c 69 74 65 33 2e 24 28 53 4f 29 IX)sqlite3.$(SO)
31f0: 3a 09 24 28 4c 49 42 4f 42 4a 29 0a 09 24 28 4d :.$(LIBOBJ)..$(M
3200: 4b 53 48 4c 49 42 29 20 2d 6f 20 24 28 53 48 50 KSHLIB) -o $(SHP
3210: 52 45 46 49 58 29 73 71 6c 69 74 65 33 2e 24 28 REFIX)sqlite3.$(
3220: 53 4f 29 20 24 28 4c 49 42 4f 42 4a 29 20 24 28 SO) $(LIBOBJ) $(
3230: 54 4c 49 42 53 5f 53 48 41 52 45 44 29 0a 0a 73 TLIBS_SHARED)..s
3240: 71 6c 69 74 65 33 24 28 45 58 45 29 3a 09 24 28 qlite3$(EXE):.$(
3250: 54 4f 50 29 2f 73 72 63 2f 73 68 65 6c 6c 2e 63 TOP)/src/shell.c
3260: 20 6c 69 62 73 71 6c 69 74 65 33 2e 61 20 73 71 libsqlite3.a sq
3270: 6c 69 74 65 33 2e 68 0a 09 24 28 54 43 43 58 29 lite3.h..$(TCCX)
3280: 20 24 28 52 45 41 44 4c 49 4e 45 5f 46 4c 41 47 $(READLINE_FLAG
3290: 53 29 20 2d 6f 20 73 71 6c 69 74 65 33 24 28 45 S) -o sqlite3$(E
32a0: 58 45 29 20 20 20 20 20 20 5c 0a 09 09 24 28 54 XE) \...$(T
32b0: 4f 50 29 2f 73 72 63 2f 73 68 65 6c 6c 2e 63 20 OP)/src/shell.c
32c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
32d0: 20 20 20 20 20 5c 0a 09 09 24 28 4c 49 42 52 45 \...$(LIBRE
32e0: 41 44 4c 49 4e 45 29 20 24 28 54 4c 49 42 53 29 ADLINE) $(TLIBS)
32f0: 20 24 28 54 48 52 45 41 44 4c 49 42 29 20 2d 4c $(THREADLIB) -L
3300: 2e 20 2d 6c 73 71 6c 69 74 65 33 0a 0a 23 20 54 . -lsqlite3..# T
3310: 68 69 73 20 74 61 72 67 65 74 20 63 72 65 61 74 his target creat
3320: 65 73 20 61 20 64 69 72 65 63 74 6f 72 79 20 6e es a directory n
3330: 61 6d 65 64 20 22 74 73 72 63 22 20 61 6e 64 20 amed "tsrc" and
3340: 66 69 6c 6c 73 20 69 74 20 77 69 74 68 0a 23 20 fills it with.#
3350: 63 6f 70 69 65 73 20 6f 66 20 61 6c 6c 20 6f 66 copies of all of
3360: 20 74 68 65 20 43 20 73 6f 75 72 63 65 20 63 6f the C source co
3370: 64 65 20 61 6e 64 20 68 65 61 64 65 72 20 66 69 de and header fi
3380: 6c 65 73 20 6e 65 65 64 65 64 20 74 6f 0a 23 20 les needed to.#
3390: 62 75 69 6c 64 20 6f 6e 20 74 68 65 20 74 61 72 build on the tar
33a0: 67 65 74 20 73 79 73 74 65 6d 2e 20 20 53 6f 6d get system. Som
33b0: 65 20 6f 66 20 74 68 65 20 43 20 73 6f 75 72 63 e of the C sourc
33c0: 65 20 63 6f 64 65 20 61 6e 64 20 68 65 61 64 65 e code and heade
33d0: 72 0a 23 20 66 69 6c 65 73 20 61 72 65 20 61 75 r.# files are au
33e0: 74 6f 6d 61 74 69 63 61 6c 6c 79 20 67 65 6e 65 tomatically gene
33f0: 72 61 74 65 64 2e 20 20 54 68 69 73 20 74 61 72 rated. This tar
3400: 67 65 74 20 74 61 6b 65 73 20 63 61 72 65 20 6f get takes care o
3410: 66 0a 23 20 61 6c 6c 20 74 68 61 74 20 61 75 74 f.# all that aut
3420: 6f 6d 61 74 69 63 20 67 65 6e 65 72 61 74 69 6f omatic generatio
3430: 6e 2e 0a 23 0a 74 61 72 67 65 74 5f 73 6f 75 72 n..#.target_sour
3440: 63 65 3a 09 24 28 53 52 43 29 0a 09 72 6d 20 2d ce:.$(SRC)..rm -
3450: 72 66 20 74 73 72 63 0a 09 6d 6b 64 69 72 20 74 rf tsrc..mkdir t
3460: 73 72 63 0a 09 63 70 20 2d 66 20 24 28 53 52 43 src..cp -f $(SRC
3470: 29 20 74 73 72 63 0a 09 72 6d 20 74 73 72 63 2f ) tsrc..rm tsrc/
3480: 73 71 6c 69 74 65 2e 68 2e 69 6e 20 74 73 72 63 sqlite.h.in tsrc
3490: 2f 70 61 72 73 65 2e 79 0a 09 74 6f 75 63 68 20 /parse.y..touch
34a0: 74 61 72 67 65 74 5f 73 6f 75 72 63 65 0a 0a 73 target_source..s
34b0: 71 6c 69 74 65 33 2e 63 3a 09 74 61 72 67 65 74 qlite3.c:.target
34c0: 5f 73 6f 75 72 63 65 20 24 28 54 4f 50 29 2f 74 _source $(TOP)/t
34d0: 6f 6f 6c 2f 6d 6b 73 71 6c 69 74 65 33 63 2e 74 ool/mksqlite3c.t
34e0: 63 6c 0a 09 74 63 6c 73 68 20 24 28 54 4f 50 29 cl..tclsh $(TOP)
34f0: 2f 74 6f 6f 6c 2f 6d 6b 73 71 6c 69 74 65 33 63 /tool/mksqlite3c
3500: 2e 74 63 6c 0a 09 63 70 20 73 71 6c 69 74 65 33 .tcl..cp sqlite3
3510: 2e 63 20 74 63 6c 73 71 6c 69 74 65 33 2e 63 0a .c tclsqlite3.c.
3520: 09 63 61 74 20 24 28 54 4f 50 29 2f 73 72 63 2f .cat $(TOP)/src/
3530: 74 63 6c 73 71 6c 69 74 65 2e 63 20 3e 3e 74 63 tclsqlite.c >>tc
3540: 6c 73 71 6c 69 74 65 33 2e 63 0a 0a 66 74 73 32 lsqlite3.c..fts2
3550: 61 6d 61 6c 2e 63 3a 09 74 61 72 67 65 74 5f 73 amal.c:.target_s
3560: 6f 75 72 63 65 20 24 28 54 4f 50 29 2f 65 78 74 ource $(TOP)/ext
3570: 2f 66 74 73 32 2f 6d 6b 66 74 73 32 61 6d 61 6c /fts2/mkfts2amal
3580: 2e 74 63 6c 0a 09 74 63 6c 73 68 20 24 28 54 4f .tcl..tclsh $(TO
3590: 50 29 2f 65 78 74 2f 66 74 73 32 2f 6d 6b 66 74 P)/ext/fts2/mkft
35a0: 73 32 61 6d 61 6c 2e 74 63 6c 0a 0a 66 74 73 33 s2amal.tcl..fts3
35b0: 61 6d 61 6c 2e 63 3a 09 74 61 72 67 65 74 5f 73 amal.c:.target_s
35c0: 6f 75 72 63 65 20 24 28 54 4f 50 29 2f 65 78 74 ource $(TOP)/ext
35d0: 2f 66 74 73 33 2f 6d 6b 66 74 73 33 61 6d 61 6c /fts3/mkfts3amal
35e0: 2e 74 63 6c 0a 09 74 63 6c 73 68 20 24 28 54 4f .tcl..tclsh $(TO
35f0: 50 29 2f 65 78 74 2f 66 74 73 33 2f 6d 6b 66 74 P)/ext/fts3/mkft
3600: 73 33 61 6d 61 6c 2e 74 63 6c 0a 0a 23 20 52 75 s3amal.tcl..# Ru
3610: 6c 65 73 20 74 6f 20 62 75 69 6c 64 20 74 68 65 les to build the
3620: 20 4c 45 4d 4f 4e 20 63 6f 6d 70 69 6c 65 72 20 LEMON compiler
3630: 67 65 6e 65 72 61 74 6f 72 0a 23 0a 6c 65 6d 6f generator.#.lemo
3640: 6e 3a 09 24 28 54 4f 50 29 2f 74 6f 6f 6c 2f 6c n:.$(TOP)/tool/l
3650: 65 6d 6f 6e 2e 63 20 24 28 54 4f 50 29 2f 74 6f emon.c $(TOP)/to
3660: 6f 6c 2f 6c 65 6d 70 61 72 2e 63 0a 09 24 28 42 ol/lempar.c..$(B
3670: 43 43 29 20 2d 6f 20 6c 65 6d 6f 6e 20 24 28 54 CC) -o lemon $(T
3680: 4f 50 29 2f 74 6f 6f 6c 2f 6c 65 6d 6f 6e 2e 63 OP)/tool/lemon.c
3690: 0a 09 63 70 20 24 28 54 4f 50 29 2f 74 6f 6f 6c ..cp $(TOP)/tool
36a0: 2f 6c 65 6d 70 61 72 2e 63 20 2e 0a 0a 23 20 52 /lempar.c ...# R
36b0: 75 6c 65 73 20 74 6f 20 62 75 69 6c 64 20 69 6e ules to build in
36c0: 64 69 76 69 64 75 61 6c 20 2a 2e 6f 20 66 69 6c dividual *.o fil
36d0: 65 73 20 66 72 6f 6d 20 67 65 6e 65 72 61 74 65 es from generate
36e0: 64 20 2a 2e 63 20 66 69 6c 65 73 2e 20 54 68 69 d *.c files. Thi
36f0: 73 0a 23 20 61 70 70 6c 69 65 73 20 74 6f 3a 0a s.# applies to:.
3700: 23 0a 23 20 20 20 20 20 70 61 72 73 65 2e 6f 0a #.# parse.o.
3710: 23 20 20 20 20 20 6f 70 63 6f 64 65 73 2e 6f 0a # opcodes.o.
3720: 23 0a 25 2e 6f 3a 20 25 2e 63 20 24 28 48 44 52 #.%.o: %.c $(HDR
3730: 29 0a 09 24 28 54 43 43 58 5f 53 48 41 52 45 44 )..$(TCCX_SHARED
3740: 29 20 2d 63 20 24 3c 0a 0a 23 20 52 75 6c 65 73 ) -c $<..# Rules
3750: 20 74 6f 20 62 75 69 6c 64 20 69 6e 64 69 76 69 to build indivi
3760: 64 75 61 6c 20 2a 2e 6f 20 66 69 6c 65 73 20 66 dual *.o files f
3770: 72 6f 6d 20 66 69 6c 65 73 20 69 6e 20 74 68 65 rom files in the
3780: 20 73 72 63 20 64 69 72 65 63 74 6f 72 79 2e 0a src directory..
3790: 23 0a 25 2e 6f 3a 20 24 28 54 4f 50 29 2f 73 72 #.%.o: $(TOP)/sr
37a0: 63 2f 25 2e 63 20 24 28 48 44 52 29 0a 09 24 28 c/%.c $(HDR)..$(
37b0: 54 43 43 58 5f 53 48 41 52 45 44 29 20 2d 63 20 TCCX_SHARED) -c
37c0: 24 3c 0a 0a 74 63 6c 73 71 6c 69 74 65 2e 6f 3a $<..tclsqlite.o:
37d0: 09 24 28 54 4f 50 29 2f 73 72 63 2f 74 63 6c 73 .$(TOP)/src/tcls
37e0: 71 6c 69 74 65 2e 63 20 24 28 48 44 52 29 0a 09 qlite.c $(HDR)..
37f0: 24 28 54 43 43 58 5f 53 48 41 52 45 44 29 20 24 $(TCCX_SHARED) $
3800: 28 54 43 4c 5f 46 4c 41 47 53 29 20 2d 63 20 24 (TCL_FLAGS) -c $
3810: 28 54 4f 50 29 2f 73 72 63 2f 74 63 6c 73 71 6c (TOP)/src/tclsql
3820: 69 74 65 2e 63 0a 0a 0a 0a 23 20 52 75 6c 65 73 ite.c....# Rules
3830: 20 74 6f 20 62 75 69 6c 64 20 6f 70 63 6f 64 65 to build opcode
3840: 73 2e 63 20 61 6e 64 20 6f 70 63 6f 64 65 73 2e s.c and opcodes.
3850: 68 0a 23 0a 6f 70 63 6f 64 65 73 2e 63 3a 09 6f h.#.opcodes.c:.o
3860: 70 63 6f 64 65 73 2e 68 20 24 28 54 4f 50 29 2f pcodes.h $(TOP)/
3870: 6d 6b 6f 70 63 6f 64 65 63 2e 61 77 6b 0a 09 73 mkopcodec.awk..s
3880: 6f 72 74 20 2d 6e 20 2d 62 20 2d 6b 20 33 20 6f ort -n -b -k 3 o
3890: 70 63 6f 64 65 73 2e 68 20 7c 20 24 28 4e 41 57 pcodes.h | $(NAW
38a0: 4b 29 20 2d 66 20 24 28 54 4f 50 29 2f 6d 6b 6f K) -f $(TOP)/mko
38b0: 70 63 6f 64 65 63 2e 61 77 6b 20 3e 6f 70 63 6f pcodec.awk >opco
38c0: 64 65 73 2e 63 0a 0a 6f 70 63 6f 64 65 73 2e 68 des.c..opcodes.h
38d0: 3a 09 70 61 72 73 65 2e 68 20 24 28 54 4f 50 29 :.parse.h $(TOP)
38e0: 2f 73 72 63 2f 76 64 62 65 2e 63 20 24 28 54 4f /src/vdbe.c $(TO
38f0: 50 29 2f 6d 6b 6f 70 63 6f 64 65 68 2e 61 77 6b P)/mkopcodeh.awk
3900: 0a 09 63 61 74 20 70 61 72 73 65 2e 68 20 24 28 ..cat parse.h $(
3910: 54 4f 50 29 2f 73 72 63 2f 76 64 62 65 2e 63 20 TOP)/src/vdbe.c
3920: 7c 20 5c 0a 09 09 24 28 4e 41 57 4b 29 20 2d 66 | \...$(NAWK) -f
3930: 20 24 28 54 4f 50 29 2f 6d 6b 6f 70 63 6f 64 65 $(TOP)/mkopcode
3940: 68 2e 61 77 6b 20 3e 6f 70 63 6f 64 65 73 2e 68 h.awk >opcodes.h
3950: 0a 0a 23 20 52 75 6c 65 73 20 74 6f 20 62 75 69 ..# Rules to bui
3960: 6c 64 20 70 61 72 73 65 2e 63 20 61 6e 64 20 70 ld parse.c and p
3970: 61 72 73 65 2e 68 20 2d 20 74 68 65 20 6f 75 74 arse.h - the out
3980: 70 75 74 73 20 6f 66 20 6c 65 6d 6f 6e 2e 0a 23 puts of lemon..#
3990: 0a 70 61 72 73 65 2e 68 3a 09 70 61 72 73 65 2e .parse.h:.parse.
39a0: 63 0a 0a 70 61 72 73 65 2e 63 3a 09 24 28 54 4f c..parse.c:.$(TO
39b0: 50 29 2f 73 72 63 2f 70 61 72 73 65 2e 79 20 6c P)/src/parse.y l
39c0: 65 6d 6f 6e 20 24 28 54 4f 50 29 2f 61 64 64 6f emon $(TOP)/addo
39d0: 70 63 6f 64 65 73 2e 61 77 6b 0a 09 63 70 20 24 pcodes.awk..cp $
39e0: 28 54 4f 50 29 2f 73 72 63 2f 70 61 72 73 65 2e (TOP)/src/parse.
39f0: 79 20 2e 0a 09 72 6d 20 2d 66 20 70 61 72 73 65 y ...rm -f parse
3a00: 2e 68 0a 09 2e 2f 6c 65 6d 6f 6e 20 24 28 4f 50 .h.../lemon $(OP
3a10: 54 53 29 20 70 61 72 73 65 2e 79 0a 09 6d 76 20 TS) parse.y..mv
3a20: 70 61 72 73 65 2e 68 20 70 61 72 73 65 2e 68 2e parse.h parse.h.
3a30: 74 65 6d 70 0a 09 61 77 6b 20 2d 66 20 24 28 54 temp..awk -f $(T
3a40: 4f 50 29 2f 61 64 64 6f 70 63 6f 64 65 73 2e 61 OP)/addopcodes.a
3a50: 77 6b 20 70 61 72 73 65 2e 68 2e 74 65 6d 70 20 wk parse.h.temp
3a60: 3e 70 61 72 73 65 2e 68 0a 0a 73 71 6c 69 74 65 >parse.h..sqlite
3a70: 33 2e 68 3a 09 24 28 54 4f 50 29 2f 73 72 63 2f 3.h:.$(TOP)/src/
3a80: 73 71 6c 69 74 65 2e 68 2e 69 6e 20 0a 09 73 65 sqlite.h.in ..se
3a90: 64 20 2d 65 20 73 2f 2d 2d 56 45 52 53 2d 2d 2f d -e s/--VERS--/
3aa0: 60 63 61 74 20 24 7b 54 4f 50 7d 2f 56 45 52 53 `cat ${TOP}/VERS
3ab0: 49 4f 4e 60 2f 20 5c 0a 09 20 20 20 20 2d 65 20 ION`/ \.. -e
3ac0: 73 2f 2d 2d 56 45 52 53 49 4f 4e 2d 4e 55 4d 42 s/--VERSION-NUMB
3ad0: 45 52 2d 2d 2f 60 63 61 74 20 24 7b 54 4f 50 7d ER--/`cat ${TOP}
3ae0: 2f 56 45 52 53 49 4f 4e 20 7c 20 73 65 64 20 27 /VERSION | sed '
3af0: 73 2f 5b 5e 30 2d 39 5d 2f 20 2f 67 27 20 7c 20 s/[^0-9]/ /g' |
3b00: 24 28 4e 41 57 4b 29 20 27 7b 70 72 69 6e 74 66 $(NAWK) '{printf
3b10: 20 22 25 64 25 30 33 64 25 30 33 64 22 2c 24 24 "%d%03d%03d",$$
3b20: 31 2c 24 24 32 2c 24 24 33 7d 27 60 2f 20 5c 0a 1,$$2,$$3}'`/ \.
3b30: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
3b40: 20 24 28 54 4f 50 29 2f 73 72 63 2f 73 71 6c 69 $(TOP)/src/sqli
3b50: 74 65 2e 68 2e 69 6e 20 3e 73 71 6c 69 74 65 33 te.h.in >sqlite3
3b60: 2e 68 0a 0a 6b 65 79 77 6f 72 64 68 61 73 68 2e .h..keywordhash.
3b70: 68 3a 09 24 28 54 4f 50 29 2f 74 6f 6f 6c 2f 6d h:.$(TOP)/tool/m
3b80: 6b 6b 65 79 77 6f 72 64 68 61 73 68 2e 63 0a 09 kkeywordhash.c..
3b90: 24 28 42 43 43 29 20 2d 6f 20 6d 6b 6b 65 79 77 $(BCC) -o mkkeyw
3ba0: 6f 72 64 68 61 73 68 20 24 28 4f 50 54 53 29 20 ordhash $(OPTS)
3bb0: 24 28 54 4f 50 29 2f 74 6f 6f 6c 2f 6d 6b 6b 65 $(TOP)/tool/mkke
3bc0: 79 77 6f 72 64 68 61 73 68 2e 63 0a 09 2e 2f 6d ywordhash.c.../m
3bd0: 6b 6b 65 79 77 6f 72 64 68 61 73 68 20 3e 6b 65 kkeywordhash >ke
3be0: 79 77 6f 72 64 68 61 73 68 2e 68 0a 0a 0a 0a 23 ywordhash.h....#
3bf0: 20 52 75 6c 65 73 20 74 6f 20 62 75 69 6c 64 20 Rules to build
3c00: 74 68 65 20 65 78 74 65 6e 73 69 6f 6e 20 6f 62 the extension ob
3c10: 6a 65 63 74 73 2e 0a 23 0a 69 63 75 2e 6f 3a 09 jects..#.icu.o:.
3c20: 24 28 54 4f 50 29 2f 65 78 74 2f 69 63 75 2f 69 $(TOP)/ext/icu/i
3c30: 63 75 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 cu.c $(HDR) $(EX
3c40: 54 48 44 52 29 0a 09 24 28 54 43 43 58 5f 53 48 THDR)..$(TCCX_SH
3c50: 41 52 45 44 29 20 2d 44 53 51 4c 49 54 45 5f 43 ARED) -DSQLITE_C
3c60: 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 ORE -c $(TOP)/ex
3c70: 74 2f 69 63 75 2f 69 63 75 2e 63 0a 0a 66 74 73 t/icu/icu.c..fts
3c80: 32 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 78 74 2f 2.o:.$(TOP)/ext/
3c90: 66 74 73 32 2f 66 74 73 32 2e 63 20 24 28 48 44 fts2/fts2.c $(HD
3ca0: 52 29 20 24 28 45 58 54 48 44 52 29 0a 09 24 28 R) $(EXTHDR)..$(
3cb0: 54 43 43 58 5f 53 48 41 52 45 44 29 20 2d 44 53 TCCX_SHARED) -DS
3cc0: 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 QLITE_CORE -c $(
3cd0: 54 4f 50 29 2f 65 78 74 2f 66 74 73 32 2f 66 74 TOP)/ext/fts2/ft
3ce0: 73 32 2e 63 0a 0a 66 74 73 32 5f 68 61 73 68 2e s2.c..fts2_hash.
3cf0: 6f 3a 09 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 o:.$(TOP)/ext/ft
3d00: 73 32 2f 66 74 73 32 5f 68 61 73 68 2e 63 20 24 s2/fts2_hash.c $
3d10: 28 48 44 52 29 20 24 28 45 58 54 48 44 52 29 0a (HDR) $(EXTHDR).
3d20: 09 24 28 54 43 43 58 5f 53 48 41 52 45 44 29 20 .$(TCCX_SHARED)
3d30: 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 -DSQLITE_CORE -c
3d40: 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 32 $(TOP)/ext/fts2
3d50: 2f 66 74 73 32 5f 68 61 73 68 2e 63 0a 0a 66 74 /fts2_hash.c..ft
3d60: 73 32 5f 69 63 75 2e 6f 3a 09 24 28 54 4f 50 29 s2_icu.o:.$(TOP)
3d70: 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 32 5f 69 /ext/fts2/fts2_i
3d80: 63 75 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 cu.c $(HDR) $(EX
3d90: 54 48 44 52 29 0a 09 24 28 54 43 43 58 5f 53 48 THDR)..$(TCCX_SH
3da0: 41 52 45 44 29 20 2d 44 53 51 4c 49 54 45 5f 43 ARED) -DSQLITE_C
3db0: 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 ORE -c $(TOP)/ex
3dc0: 74 2f 66 74 73 32 2f 66 74 73 32 5f 69 63 75 2e t/fts2/fts2_icu.
3dd0: 63 0a 0a 66 74 73 32 5f 70 6f 72 74 65 72 2e 6f c..fts2_porter.o
3de0: 3a 09 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 :.$(TOP)/ext/fts
3df0: 32 2f 66 74 73 32 5f 70 6f 72 74 65 72 2e 63 20 2/fts2_porter.c
3e00: 24 28 48 44 52 29 20 24 28 45 58 54 48 44 52 29 $(HDR) $(EXTHDR)
3e10: 0a 09 24 28 54 43 43 58 5f 53 48 41 52 45 44 29 ..$(TCCX_SHARED)
3e20: 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d -DSQLITE_CORE -
3e30: 63 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 c $(TOP)/ext/fts
3e40: 32 2f 66 74 73 32 5f 70 6f 72 74 65 72 2e 63 0a 2/fts2_porter.c.
3e50: 0a 66 74 73 32 5f 74 6f 6b 65 6e 69 7a 65 72 2e .fts2_tokenizer.
3e60: 6f 3a 09 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 o:.$(TOP)/ext/ft
3e70: 73 32 2f 66 74 73 32 5f 74 6f 6b 65 6e 69 7a 65 s2/fts2_tokenize
3e80: 72 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 54 r.c $(HDR) $(EXT
3e90: 48 44 52 29 0a 09 24 28 54 43 43 58 5f 53 48 41 HDR)..$(TCCX_SHA
3ea0: 52 45 44 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f RED) -DSQLITE_CO
3eb0: 52 45 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 74 RE -c $(TOP)/ext
3ec0: 2f 66 74 73 32 2f 66 74 73 32 5f 74 6f 6b 65 6e /fts2/fts2_token
3ed0: 69 7a 65 72 2e 63 0a 0a 66 74 73 32 5f 74 6f 6b izer.c..fts2_tok
3ee0: 65 6e 69 7a 65 72 31 2e 6f 3a 09 24 28 54 4f 50 enizer1.o:.$(TOP
3ef0: 29 2f 65 78 74 2f 66 74 73 32 2f 66 74 73 32 5f )/ext/fts2/fts2_
3f00: 74 6f 6b 65 6e 69 7a 65 72 31 2e 63 20 24 28 48 tokenizer1.c $(H
3f10: 44 52 29 20 24 28 45 58 54 48 44 52 29 0a 09 24 DR) $(EXTHDR)..$
3f20: 28 54 43 43 58 5f 53 48 41 52 45 44 29 20 2d 44 (TCCX_SHARED) -D
3f30: 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 SQLITE_CORE -c $
3f40: 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 32 2f 66 (TOP)/ext/fts2/f
3f50: 74 73 32 5f 74 6f 6b 65 6e 69 7a 65 72 31 2e 63 ts2_tokenizer1.c
3f60: 0a 0a 66 74 73 33 2e 6f 3a 09 24 28 54 4f 50 29 ..fts3.o:.$(TOP)
3f70: 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 2e 63 /ext/fts3/fts3.c
3f80: 20 24 28 48 44 52 29 20 24 28 45 58 54 48 44 52 $(HDR) $(EXTHDR
3f90: 29 0a 09 24 28 54 43 43 58 5f 53 48 41 52 45 44 )..$(TCCX_SHARED
3fa0: 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 ) -DSQLITE_CORE
3fb0: 2d 63 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 -c $(TOP)/ext/ft
3fc0: 73 33 2f 66 74 73 33 2e 63 0a 0a 66 74 73 33 5f s3/fts3.c..fts3_
3fd0: 68 61 73 68 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 hash.o:.$(TOP)/e
3fe0: 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 68 61 73 xt/fts3/fts3_has
3ff0: 68 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 54 h.c $(HDR) $(EXT
4000: 48 44 52 29 0a 09 24 28 54 43 43 58 5f 53 48 41 HDR)..$(TCCX_SHA
4010: 52 45 44 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f RED) -DSQLITE_CO
4020: 52 45 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 74 RE -c $(TOP)/ext
4030: 2f 66 74 73 33 2f 66 74 73 33 5f 68 61 73 68 2e /fts3/fts3_hash.
4040: 63 0a 0a 66 74 73 33 5f 69 63 75 2e 6f 3a 09 24 c..fts3_icu.o:.$
4050: 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 (TOP)/ext/fts3/f
4060: 74 73 33 5f 69 63 75 2e 63 20 24 28 48 44 52 29 ts3_icu.c $(HDR)
4070: 20 24 28 45 58 54 48 44 52 29 0a 09 24 28 54 43 $(EXTHDR)..$(TC
4080: 43 58 5f 53 48 41 52 45 44 29 20 2d 44 53 51 4c CX_SHARED) -DSQL
4090: 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f ITE_CORE -c $(TO
40a0: 50 29 2f 65 78 74 2f 66 74 73 33 2f 66 74 73 33 P)/ext/fts3/fts3
40b0: 5f 69 63 75 2e 63 0a 0a 66 74 73 33 5f 70 6f 72 _icu.c..fts3_por
40c0: 74 65 72 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 78 ter.o:.$(TOP)/ex
40d0: 74 2f 66 74 73 33 2f 66 74 73 33 5f 70 6f 72 74 t/fts3/fts3_port
40e0: 65 72 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 er.c $(HDR) $(EX
40f0: 54 48 44 52 29 0a 09 24 28 54 43 43 58 5f 53 48 THDR)..$(TCCX_SH
4100: 41 52 45 44 29 20 2d 44 53 51 4c 49 54 45 5f 43 ARED) -DSQLITE_C
4110: 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 ORE -c $(TOP)/ex
4120: 74 2f 66 74 73 33 2f 66 74 73 33 5f 70 6f 72 74 t/fts3/fts3_port
4130: 65 72 2e 63 0a 0a 66 74 73 33 5f 74 6f 6b 65 6e er.c..fts3_token
4140: 69 7a 65 72 2e 6f 3a 09 24 28 54 4f 50 29 2f 65 izer.o:.$(TOP)/e
4150: 78 74 2f 66 74 73 33 2f 66 74 73 33 5f 74 6f 6b xt/fts3/fts3_tok
4160: 65 6e 69 7a 65 72 2e 63 20 24 28 48 44 52 29 20 enizer.c $(HDR)
4170: 24 28 45 58 54 48 44 52 29 0a 09 24 28 54 43 43 $(EXTHDR)..$(TCC
4180: 58 5f 53 48 41 52 45 44 29 20 2d 44 53 51 4c 49 X_SHARED) -DSQLI
4190: 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f 50 TE_CORE -c $(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 0a 0a 66 74 73 tokenizer.c..fts
41c0: 33 5f 74 6f 6b 65 6e 69 7a 65 72 31 2e 6f 3a 09 3_tokenizer1.o:.
41d0: 24 28 54 4f 50 29 2f 65 78 74 2f 66 74 73 33 2f $(TOP)/ext/fts3/
41e0: 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 72 31 2e fts3_tokenizer1.
41f0: 63 20 24 28 48 44 52 29 20 24 28 45 58 54 48 44 c $(HDR) $(EXTHD
4200: 52 29 0a 09 24 28 54 43 43 58 5f 53 48 41 52 45 R)..$(TCCX_SHARE
4210: 44 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 D) -DSQLITE_CORE
4220: 20 2d 63 20 24 28 54 4f 50 29 2f 65 78 74 2f 66 -c $(TOP)/ext/f
4230: 74 73 33 2f 66 74 73 33 5f 74 6f 6b 65 6e 69 7a ts3/fts3_tokeniz
4240: 65 72 31 2e 63 0a 0a 72 74 72 65 65 2e 6f 3a 09 er1.c..rtree.o:.
4250: 24 28 54 4f 50 29 2f 65 78 74 2f 72 74 72 65 65 $(TOP)/ext/rtree
4260: 2f 72 74 72 65 65 2e 63 20 24 28 48 44 52 29 20 /rtree.c $(HDR)
4270: 24 28 45 58 54 48 44 52 29 0a 09 24 28 54 43 43 $(EXTHDR)..$(TCC
4280: 58 5f 53 48 41 52 45 44 29 20 2d 44 53 51 4c 49 X_SHARED) -DSQLI
4290: 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f 50 TE_CORE -c $(TOP
42a0: 29 2f 65 78 74 2f 72 74 72 65 65 2f 72 74 72 65 )/ext/rtree/rtre
42b0: 65 2e 63 0a 0a 0a 23 20 52 75 6c 65 73 20 66 6f e.c...# Rules fo
42c0: 72 20 62 75 69 6c 64 69 6e 67 20 74 65 73 74 20 r building test
42d0: 70 72 6f 67 72 61 6d 73 20 61 6e 64 20 66 6f 72 programs and for
42e0: 20 72 75 6e 6e 69 6e 67 20 74 65 73 74 73 0a 23 running tests.#
42f0: 0a 74 63 6c 73 71 6c 69 74 65 33 3a 09 24 28 54 .tclsqlite3:.$(T
4300: 4f 50 29 2f 73 72 63 2f 74 63 6c 73 71 6c 69 74 OP)/src/tclsqlit
4310: 65 2e 63 20 6c 69 62 73 71 6c 69 74 65 33 2e 61 e.c libsqlite3.a
4320: 0a 09 24 28 54 43 43 58 5f 53 48 41 52 45 44 29 ..$(TCCX_SHARED)
4330: 20 24 28 54 43 4c 5f 46 4c 41 47 53 29 20 2d 44 $(TCL_FLAGS) -D
4340: 54 43 4c 53 48 3d 31 20 2d 6f 20 74 63 6c 73 71 TCLSH=1 -o tclsq
4350: 6c 69 74 65 33 20 5c 0a 09 09 24 28 54 4f 50 29 lite3 \...$(TOP)
4360: 2f 73 72 63 2f 74 63 6c 73 71 6c 69 74 65 2e 63 /src/tclsqlite.c
4370: 20 6c 69 62 73 71 6c 69 74 65 33 2e 61 20 24 28 libsqlite3.a $(
4380: 4c 49 42 54 43 4c 29 20 24 28 54 48 52 45 41 44 LIBTCL) $(THREAD
4390: 4c 49 42 29 0a 0a 0a 23 20 52 75 6c 65 73 20 74 LIB)...# Rules t
43a0: 6f 20 62 75 69 6c 64 20 74 68 65 20 27 74 65 73 o build the 'tes
43b0: 74 66 69 78 74 75 72 65 27 20 61 70 70 6c 69 63 tfixture' applic
43c0: 61 74 69 6f 6e 2e 0a 23 0a 54 45 53 54 46 49 58 ation..#.TESTFIX
43d0: 54 55 52 45 5f 46 4c 41 47 53 20 20 3d 20 2d 44 TURE_FLAGS = -D
43e0: 54 43 4c 53 48 3d 31 20 2d 44 53 51 4c 49 54 45 TCLSH=1 -DSQLITE
43f0: 5f 54 45 53 54 3d 31 20 2d 44 53 51 4c 49 54 45 _TEST=1 -DSQLITE
4400: 5f 43 52 41 53 48 5f 54 45 53 54 3d 31 0a 54 45 _CRASH_TEST=1.TE
4410: 53 54 46 49 58 54 55 52 45 5f 46 4c 41 47 53 20 STFIXTURE_FLAGS
4420: 2b 3d 20 2d 44 53 51 4c 49 54 45 5f 53 45 52 56 += -DSQLITE_SERV
4430: 45 52 3d 31 20 2d 44 53 51 4c 49 54 45 5f 50 52 ER=1 -DSQLITE_PR
4440: 49 56 41 54 45 3d 22 22 20 2d 44 53 51 4c 49 54 IVATE="" -DSQLIT
4450: 45 5f 43 4f 52 45 20 0a 0a 74 65 73 74 66 69 78 E_CORE ..testfix
4460: 74 75 72 65 24 28 45 58 45 29 3a 20 24 28 54 45 ture$(EXE): $(TE
4470: 53 54 53 52 43 32 29 20 6c 69 62 73 71 6c 69 74 STSRC2) libsqlit
4480: 65 33 2e 61 20 24 28 54 45 53 54 53 52 43 29 20 e3.a $(TESTSRC)
4490: 24 28 54 4f 50 29 2f 73 72 63 2f 74 63 6c 73 71 $(TOP)/src/tclsq
44a0: 6c 69 74 65 2e 63 0a 09 24 28 54 43 43 58 29 20 lite.c..$(TCCX)
44b0: 24 28 54 43 4c 5f 46 4c 41 47 53 29 20 24 28 54 $(TCL_FLAGS) $(T
44c0: 45 53 54 46 49 58 54 55 52 45 5f 46 4c 41 47 53 ESTFIXTURE_FLAGS
44d0: 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 )
44e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 0a 09 \..
44f0: 09 24 28 54 45 53 54 53 52 43 29 20 24 28 54 45 .$(TESTSRC) $(TE
4500: 53 54 53 52 43 32 29 20 24 28 54 4f 50 29 2f 73 STSRC2) $(TOP)/s
4510: 72 63 2f 74 63 6c 73 71 6c 69 74 65 2e 63 20 20 rc/tclsqlite.c
4520: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 0a \.
4530: 09 09 2d 6f 20 74 65 73 74 66 69 78 74 75 72 65 ..-o testfixture
4540: 24 28 45 58 45 29 20 24 28 4c 49 42 54 43 4c 29 $(EXE) $(LIBTCL)
4550: 20 24 28 54 48 52 45 41 44 4c 49 42 29 20 6c 69 $(THREADLIB) li
4560: 62 73 71 6c 69 74 65 33 2e 61 0a 0a 61 6d 61 6c bsqlite3.a..amal
4570: 67 61 6d 61 74 69 6f 6e 2d 74 65 73 74 66 69 78 gamation-testfix
4580: 74 75 72 65 24 28 45 58 45 29 3a 20 73 71 6c 69 ture$(EXE): sqli
4590: 74 65 33 2e 63 20 24 28 54 45 53 54 53 52 43 29 te3.c $(TESTSRC)
45a0: 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 63 6c 73 $(TOP)/src/tcls
45b0: 71 6c 69 74 65 2e 63 0a 09 24 28 54 43 43 58 29 qlite.c..$(TCCX)
45c0: 20 24 28 54 43 4c 5f 46 4c 41 47 53 29 20 24 28 $(TCL_FLAGS) $(
45d0: 54 45 53 54 46 49 58 54 55 52 45 5f 46 4c 41 47 TESTFIXTURE_FLAG
45e0: 53 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 S)
45f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 0a \.
4600: 09 09 24 28 54 45 53 54 53 52 43 29 20 24 28 54 ..$(TESTSRC) $(T
4610: 4f 50 29 2f 73 72 63 2f 74 63 6c 73 71 6c 69 74 OP)/src/tclsqlit
4620: 65 2e 63 20 73 71 6c 69 74 65 33 2e 63 20 20 20 e.c sqlite3.c
4630: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5c \
4640: 0a 09 09 2d 6f 20 74 65 73 74 66 69 78 74 75 72 ...-o testfixtur
4650: 65 24 28 45 58 45 29 20 24 28 4c 49 42 54 43 4c e$(EXE) $(LIBTCL
4660: 29 20 24 28 54 48 52 45 41 44 4c 49 42 29 0a 0a ) $(THREADLIB)..
4670: 66 74 73 33 2d 74 65 73 74 66 69 78 74 75 72 65 fts3-testfixture
4680: 24 28 45 58 45 29 3a 20 73 71 6c 69 74 65 33 2e $(EXE): sqlite3.
4690: 63 20 66 74 73 33 61 6d 61 6c 2e 63 20 24 28 54 c fts3amal.c $(T
46a0: 45 53 54 53 52 43 29 20 24 28 54 4f 50 29 2f 73 ESTSRC) $(TOP)/s
46b0: 72 63 2f 74 63 6c 73 71 6c 69 74 65 2e 63 0a 09 rc/tclsqlite.c..
46c0: 24 28 54 43 43 58 29 20 24 28 54 43 4c 5f 46 4c $(TCCX) $(TCL_FL
46d0: 41 47 53 29 20 24 28 54 45 53 54 46 49 58 54 55 AGS) $(TESTFIXTU
46e0: 52 45 5f 46 4c 41 47 53 29 20 20 20 20 20 20 20 RE_FLAGS)
46f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4700: 20 20 20 20 20 5c 0a 09 2d 44 53 51 4c 49 54 45 \..-DSQLITE
4710: 5f 45 4e 41 42 4c 45 5f 46 54 53 33 3d 31 20 20 _ENABLE_FTS3=1
4720: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4730: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4740: 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 0a 09 \..
4750: 09 24 28 54 45 53 54 53 52 43 29 20 24 28 54 4f .$(TESTSRC) $(TO
4760: 50 29 2f 73 72 63 2f 74 63 6c 73 71 6c 69 74 65 P)/src/tclsqlite
4770: 2e 63 20 73 71 6c 69 74 65 33 2e 63 20 66 74 73 .c sqlite3.c fts
4780: 33 61 6d 61 6c 2e 63 20 20 20 20 20 20 20 5c 0a 3amal.c \.
4790: 09 09 2d 6f 20 74 65 73 74 66 69 78 74 75 72 65 ..-o testfixture
47a0: 24 28 45 58 45 29 20 24 28 4c 49 42 54 43 4c 29 $(EXE) $(LIBTCL)
47b0: 20 24 28 54 48 52 45 41 44 4c 49 42 29 0a 0a 66 $(THREADLIB)..f
47c0: 75 6c 6c 74 65 73 74 3a 09 74 65 73 74 66 69 78 ulltest:.testfix
47d0: 74 75 72 65 24 28 45 58 45 29 20 73 71 6c 69 74 ture$(EXE) sqlit
47e0: 65 33 24 28 45 58 45 29 0a 09 2e 2f 74 65 73 74 e3$(EXE).../test
47f0: 66 69 78 74 75 72 65 24 28 45 58 45 29 20 24 28 fixture$(EXE) $(
4800: 54 4f 50 29 2f 74 65 73 74 2f 61 6c 6c 2e 74 65 TOP)/test/all.te
4810: 73 74 0a 0a 73 6f 61 6b 74 65 73 74 3a 09 74 65 st..soaktest:.te
4820: 73 74 66 69 78 74 75 72 65 24 28 45 58 45 29 20 stfixture$(EXE)
4830: 73 71 6c 69 74 65 33 24 28 45 58 45 29 0a 09 2e sqlite3$(EXE)...
4840: 2f 74 65 73 74 66 69 78 74 75 72 65 24 28 45 58 /testfixture$(EX
4850: 45 29 20 24 28 54 4f 50 29 2f 74 65 73 74 2f 61 E) $(TOP)/test/a
4860: 6c 6c 2e 74 65 73 74 20 2d 73 6f 61 6b 20 31 0a ll.test -soak 1.
4870: 0a 74 65 73 74 3a 09 74 65 73 74 66 69 78 74 75 .test:.testfixtu
4880: 72 65 24 28 45 58 45 29 20 73 71 6c 69 74 65 33 re$(EXE) sqlite3
4890: 24 28 45 58 45 29 0a 09 2e 2f 74 65 73 74 66 69 $(EXE).../testfi
48a0: 78 74 75 72 65 24 28 45 58 45 29 20 24 28 54 4f xture$(EXE) $(TO
48b0: 50 29 2f 74 65 73 74 2f 76 65 72 79 71 75 69 63 P)/test/veryquic
48c0: 6b 2e 74 65 73 74 0a 0a 73 71 6c 69 74 65 33 5f k.test..sqlite3_
48d0: 61 6e 61 6c 79 7a 65 72 24 28 45 58 45 29 3a 09 analyzer$(EXE):.
48e0: 24 28 54 4f 50 29 2f 73 72 63 2f 74 63 6c 73 71 $(TOP)/src/tclsq
48f0: 6c 69 74 65 2e 63 20 73 71 6c 69 74 65 33 2e 63 lite.c sqlite3.c
4900: 20 24 28 54 45 53 54 53 52 43 29 20 5c 0a 09 09 $(TESTSRC) \...
4910: 09 24 28 54 4f 50 29 2f 74 6f 6f 6c 2f 73 70 61 .$(TOP)/tool/spa
4920: 63 65 61 6e 61 6c 2e 74 63 6c 0a 09 73 65 64 20 ceanal.tcl..sed
4930: 5c 0a 09 20 20 2d 65 20 27 2f 5e 23 2f 64 27 20 \.. -e '/^#/d'
4940: 5c 0a 09 20 20 2d 65 20 27 73 2c 5c 5c 2c 5c 5c \.. -e 's,\\,\\
4950: 5c 5c 2c 67 27 20 5c 0a 09 20 20 2d 65 20 27 73 \\,g' \.. -e 's
4960: 2c 22 2c 5c 5c 22 2c 67 27 20 5c 0a 09 20 20 2d ,",\\",g' \.. -
4970: 65 20 27 73 2c 5e 2c 22 2c 27 20 5c 0a 09 20 20 e 's,^,",' \..
4980: 2d 65 20 27 73 2c 24 24 2c 5c 5c 6e 22 2c 27 20 -e 's,$$,\\n",'
4990: 5c 0a 09 20 20 24 28 54 4f 50 29 2f 74 6f 6f 6c \.. $(TOP)/tool
49a0: 2f 73 70 61 63 65 61 6e 61 6c 2e 74 63 6c 20 3e /spaceanal.tcl >
49b0: 73 70 61 63 65 61 6e 61 6c 5f 74 63 6c 2e 68 0a spaceanal_tcl.h.
49c0: 09 24 28 54 43 43 58 29 20 24 28 54 43 4c 5f 46 .$(TCCX) $(TCL_F
49d0: 4c 41 47 53 29 20 20 20 20 20 20 20 20 20 20 20 LAGS)
49e0: 20 20 20 20 20 20 20 24 28 54 45 53 54 46 49 58 $(TESTFIX
49f0: 54 55 52 45 5f 46 4c 41 47 53 29 20 20 20 20 20 TURE_FLAGS)
4a00: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4a10: 20 20 20 20 20 20 20 20 20 20 20 20 5c 0a 09 09 \...
4a20: 2d 44 54 43 4c 53 48 3d 32 20 2d 44 53 51 4c 49 -DTCLSH=2 -DSQLI
4a30: 54 45 5f 54 45 53 54 3d 31 20 2d 44 53 51 4c 49 TE_TEST=1 -DSQLI
4a40: 54 45 5f 44 45 42 55 47 3d 31 20 2d 44 53 51 4c TE_DEBUG=1 -DSQL
4a50: 49 54 45 5f 50 52 49 56 41 54 45 3d 22 22 20 5c ITE_PRIVATE="" \
4a60: 0a 09 09 24 28 54 45 53 54 53 52 43 29 20 24 28 ...$(TESTSRC) $(
4a70: 54 4f 50 29 2f 73 72 63 2f 74 63 6c 73 71 6c 69 TOP)/src/tclsqli
4a80: 74 65 2e 63 20 73 71 6c 69 74 65 33 2e 63 20 20 te.c sqlite3.c
4a90: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4aa0: 20 20 5c 0a 09 09 2d 6f 20 73 71 6c 69 74 65 33 \...-o sqlite3
4ab0: 5f 61 6e 61 6c 79 7a 65 72 24 28 45 58 45 29 20 _analyzer$(EXE)
4ac0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4ad0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
4ae0: 20 20 20 20 20 5c 0a 09 09 24 28 4c 49 42 54 43 \...$(LIBTC
4af0: 4c 29 20 24 28 54 48 52 45 41 44 4c 49 42 29 0a L) $(THREADLIB).
4b00: 0a 54 45 53 54 5f 45 58 54 45 4e 53 49 4f 4e 20 .TEST_EXTENSION
4b10: 3d 20 24 28 53 48 50 52 45 46 49 58 29 74 65 73 = $(SHPREFIX)tes
4b20: 74 6c 6f 61 64 65 78 74 2e 24 28 53 4f 29 0a 24 tloadext.$(SO).$
4b30: 28 54 45 53 54 5f 45 58 54 45 4e 53 49 4f 4e 29 (TEST_EXTENSION)
4b40: 3a 20 24 28 54 4f 50 29 2f 73 72 63 2f 74 65 73 : $(TOP)/src/tes
4b50: 74 5f 6c 6f 61 64 65 78 74 2e 63 0a 09 24 28 4d t_loadext.c..$(M
4b60: 4b 53 48 4c 49 42 29 20 24 28 54 4f 50 29 2f 73 KSHLIB) $(TOP)/s
4b70: 72 63 2f 74 65 73 74 5f 6c 6f 61 64 65 78 74 2e rc/test_loadext.
4b80: 63 20 2d 6f 20 24 28 54 45 53 54 5f 45 58 54 45 c -o $(TEST_EXTE
4b90: 4e 53 49 4f 4e 29 0a 0a 65 78 74 65 6e 73 69 6f NSION)..extensio
4ba0: 6e 74 65 73 74 3a 20 74 65 73 74 66 69 78 74 75 ntest: testfixtu
4bb0: 72 65 24 28 45 58 45 29 20 24 28 54 45 53 54 5f re$(EXE) $(TEST_
4bc0: 45 58 54 45 4e 53 49 4f 4e 29 0a 09 2e 2f 74 65 EXTENSION).../te
4bd0: 73 74 66 69 78 74 75 72 65 24 28 45 58 45 29 20 stfixture$(EXE)
4be0: 24 28 54 4f 50 29 2f 74 65 73 74 2f 6c 6f 61 64 $(TOP)/test/load
4bf0: 65 78 74 2e 74 65 73 74 0a 0a 63 6c 65 61 6e 3a ext.test..clean:
4c00: 09 0a 09 72 6d 20 2d 66 20 2a 2e 6f 20 73 71 6c ...rm -f *.o sql
4c10: 69 74 65 33 24 28 45 58 45 29 20 6c 69 62 73 71 ite3$(EXE) libsq
4c20: 6c 69 74 65 33 2e 61 20 73 71 6c 69 74 65 33 2e lite3.a sqlite3.
4c30: 68 20 6f 70 63 6f 64 65 73 2e 2a 0a 09 72 6d 20 h opcodes.*..rm
4c40: 2d 66 20 6c 65 6d 6f 6e 20 6c 65 6d 70 61 72 2e -f lemon lempar.
4c50: 63 20 70 61 72 73 65 2e 2a 20 73 71 6c 69 74 65 c parse.* sqlite
4c60: 2a 2e 74 61 72 2e 67 7a 20 6d 6b 6b 65 79 77 6f *.tar.gz mkkeywo
4c70: 72 64 68 61 73 68 20 6b 65 79 77 6f 72 64 68 61 rdhash keywordha
4c80: 73 68 2e 68 0a 09 72 6d 20 2d 66 20 24 28 50 55 sh.h..rm -f $(PU
4c90: 42 4c 49 53 48 29 0a 09 72 6d 20 2d 66 20 2a 2e BLISH)..rm -f *.
4ca0: 64 61 20 2a 2e 62 62 20 2a 2e 62 62 67 20 67 6d da *.bb *.bbg gm
4cb0: 6f 6e 2e 6f 75 74 0a 09 72 6d 20 2d 72 66 20 74 on.out..rm -rf t
4cc0: 73 72 63 20 74 61 72 67 65 74 5f 73 6f 75 72 63 src target_sourc
4cd0: 65 0a 09 72 6d 20 2d 66 20 74 65 73 74 6c 6f 61 e..rm -f testloa
4ce0: 64 65 78 74 2e 64 6c 6c 20 6c 69 62 74 65 73 74 dext.dll libtest
4cf0: 6c 6f 61 64 65 78 74 2e 73 6f 0a 09 72 6d 20 2d loadext.so..rm -
4d00: 66 20 73 71 6c 69 74 65 33 2e 63 20 66 74 73 3f f sqlite3.c fts?
4d10: 61 6d 61 6c 2e 63 20 74 63 6c 73 71 6c 69 74 65 amal.c tclsqlite
4d20: 33 2e 63 0a 09 72 6d 20 2d 66 20 24 28 53 48 50 3.c..rm -f $(SHP
4d30: 52 45 46 49 58 29 73 71 6c 69 74 65 33 2e 24 28 REFIX)sqlite3.$(
4d40: 53 4f 29 0a SO).