Artifact 725becf5eb72fce6b10c6a0387918fa47f06937f:
File
src/makemake.tcl
part of check-in
[b4a29fac93]
- Add an ascii-art captcha for anonymous login.
by
drh on
2009-08-10 02:29:14.
0000: 23 21 2f 75 73 72 2f 62 69 6e 2f 74 63 6c 73 68 #!/usr/bin/tclsh
0010: 0a 23 0a 23 20 52 75 6e 20 74 68 69 73 20 54 43 .#.# Run this TC
0020: 4c 20 73 63 72 69 70 74 20 74 6f 20 67 65 6e 65 L script to gene
0030: 72 61 74 65 20 74 68 65 20 22 6d 61 69 6e 2e 6d rate the "main.m
0040: 6b 22 20 6d 61 6b 65 66 69 6c 65 2e 0a 23 0a 0a k" makefile..#..
0050: 23 20 42 61 73 65 6e 61 6d 65 73 20 6f 66 20 61 # Basenames of a
0060: 6c 6c 20 73 6f 75 72 63 65 20 66 69 6c 65 73 20 ll source files
0070: 74 68 61 74 20 67 65 74 20 70 72 65 70 72 6f 63 that get preproc
0080: 65 73 73 65 64 20 75 73 69 6e 67 0a 23 20 22 74 essed using.# "t
0090: 72 61 6e 73 6c 61 74 65 22 20 61 6e 64 20 22 6d ranslate" and "m
00a0: 61 6b 65 68 65 61 64 65 72 73 22 0a 23 0a 73 65 akeheaders".#.se
00b0: 74 20 73 72 63 20 7b 0a 20 20 61 64 64 0a 20 20 t src {. add.
00c0: 61 64 6d 69 6e 0a 20 20 61 6c 6c 72 65 70 6f 0a admin. allrepo.
00d0: 20 20 62 61 67 0a 20 20 62 6c 6f 62 0a 20 20 62 bag. blob. b
00e0: 72 61 6e 63 68 0a 20 20 62 72 6f 77 73 65 0a 20 ranch. browse.
00f0: 20 63 61 70 74 63 68 61 0a 20 20 63 67 69 0a 20 captcha. cgi.
0100: 20 63 68 65 63 6b 69 6e 0a 20 20 63 68 65 63 6b checkin. check
0110: 6f 75 74 0a 20 20 63 6c 65 61 72 73 69 67 6e 0a out. clearsign.
0120: 20 20 63 6c 6f 6e 65 0a 20 20 63 6f 6d 66 6f 72 clone. comfor
0130: 6d 61 74 0a 20 20 63 6f 6e 66 69 67 75 72 65 0a mat. configure.
0140: 20 20 63 6f 6e 73 74 72 75 63 74 0a 20 20 63 6f construct. co
0150: 6e 74 65 6e 74 0a 20 20 64 62 0a 20 20 64 65 6c ntent. db. del
0160: 74 61 0a 20 20 64 65 6c 74 61 63 6d 64 0a 20 20 ta. deltacmd.
0170: 64 65 73 63 65 6e 64 61 6e 74 73 0a 20 20 64 69 descendants. di
0180: 66 66 0a 20 20 64 69 66 66 63 6d 64 0a 20 20 64 ff. diffcmd. d
0190: 6f 63 0a 20 20 65 6e 63 6f 64 65 0a 20 20 66 69 oc. encode. fi
01a0: 6c 65 0a 20 20 68 74 74 70 0a 20 20 68 74 74 70 le. http. http
01b0: 5f 73 6f 63 6b 65 74 0a 20 20 68 74 74 70 5f 74 _socket. http_t
01c0: 72 61 6e 73 70 6f 72 74 0a 20 20 69 6e 66 6f 0a ransport. info.
01d0: 20 20 6c 6f 67 69 6e 0a 20 20 6d 61 69 6e 0a 20 login. main.
01e0: 20 6d 61 6e 69 66 65 73 74 0a 20 20 6d 64 35 0a manifest. md5.
01f0: 20 20 6d 65 72 67 65 0a 20 20 6d 65 72 67 65 33 merge. merge3
0200: 0a 20 20 6d 79 5f 70 61 67 65 0a 20 20 6e 61 6d . my_page. nam
0210: 65 0a 20 20 70 69 76 6f 74 0a 20 20 70 71 75 65 e. pivot. pque
0220: 75 65 0a 20 20 70 72 69 6e 74 66 0a 20 20 72 65 ue. printf. re
0230: 62 75 69 6c 64 0a 20 20 72 65 70 6f 72 74 0a 20 build. report.
0240: 20 72 73 73 0a 20 20 72 73 74 61 74 73 0a 20 20 rss. rstats.
0250: 73 63 68 65 6d 61 0a 20 20 73 65 74 75 70 0a 20 schema. setup.
0260: 20 73 68 61 31 0a 20 20 73 68 75 6e 0a 20 20 73 sha1. shun. s
0270: 74 61 74 0a 20 20 73 74 79 6c 65 0a 20 20 73 79 tat. style. sy
0280: 6e 63 0a 20 20 74 61 67 0a 20 20 74 61 67 76 69 nc. tag. tagvi
0290: 65 77 0a 20 20 74 68 5f 6d 61 69 6e 0a 20 20 74 ew. th_main. t
02a0: 69 6d 65 6c 69 6e 65 0a 20 20 74 6b 74 0a 20 20 imeline. tkt.
02b0: 74 6b 74 73 65 74 75 70 0a 20 20 75 6e 64 6f 0a tktsetup. undo.
02c0: 20 20 75 70 64 61 74 65 0a 20 20 75 72 6c 0a 20 update. url.
02d0: 20 75 73 65 72 0a 20 20 76 65 72 69 66 79 0a 20 user. verify.
02e0: 20 76 66 69 6c 65 0a 20 20 77 69 6b 69 0a 20 20 vfile. wiki.
02f0: 77 69 6b 69 66 6f 72 6d 61 74 0a 20 20 77 69 6e wikiformat. win
0300: 68 74 74 70 0a 20 20 78 66 65 72 0a 20 20 7a 69 http. xfer. zi
0310: 70 0a 7d 0a 0a 23 20 4e 61 6d 65 20 6f 66 20 74 p.}..# Name of t
0320: 68 65 20 66 69 6e 61 6c 20 61 70 70 6c 69 63 61 he final applica
0330: 74 69 6f 6e 0a 23 0a 73 65 74 20 6e 61 6d 65 20 tion.#.set name
0340: 66 6f 73 73 69 6c 0a 0a 70 75 74 73 20 7b 23 20 fossil..puts {#
0350: 44 4f 20 4e 4f 54 20 45 44 49 54 0a 23 0a 23 20 DO NOT EDIT.#.#
0360: 54 68 69 73 20 66 69 6c 65 20 69 73 20 61 75 74 This file is aut
0370: 6f 6d 61 74 69 63 61 6c 6c 79 20 67 65 6e 65 72 omatically gener
0380: 61 74 65 64 2e 20 20 49 6e 73 74 65 61 64 20 6f ated. Instead o
0390: 66 20 65 64 69 74 69 6e 67 20 74 68 69 73 0a 23 f editing this.#
03a0: 20 66 69 6c 65 2c 20 65 64 69 74 20 22 6d 61 6b file, edit "mak
03b0: 65 6d 61 6b 65 2e 74 63 6c 22 20 74 68 65 6e 20 emake.tcl" then
03c0: 72 75 6e 20 22 74 63 6c 73 68 20 6d 61 6b 65 6d run "tclsh makem
03d0: 61 6b 65 2e 74 63 6c 20 3e 6d 61 69 6e 2e 6d 6b ake.tcl >main.mk
03e0: 22 0a 23 20 74 6f 20 72 65 67 65 6e 65 72 61 74 ".# to regenerat
03f0: 65 20 74 68 69 73 20 66 69 6c 65 2e 0a 23 0a 23 e this file..#.#
0400: 20 54 68 69 73 20 66 69 6c 65 20 69 73 20 69 6e This file is in
0410: 63 6c 75 64 65 64 20 62 79 20 6c 69 6e 75 78 2d cluded by linux-
0420: 67 63 63 2e 6d 6b 20 6f 72 20 6c 69 6e 75 78 2d gcc.mk or linux-
0430: 6d 69 6e 67 77 2e 6d 6b 20 6f 72 20 70 6f 73 73 mingw.mk or poss
0440: 69 62 6c 65 0a 23 20 73 6f 6d 65 20 6f 74 68 65 ible.# some othe
0450: 72 20 6d 61 6b 65 66 69 6c 65 73 2e 20 20 54 68 r makefiles. Th
0460: 69 73 20 66 69 6c 65 20 63 6f 6e 74 61 69 6e 73 is file contains
0470: 20 74 68 65 20 72 75 6c 65 73 20 74 68 61 74 20 the rules that
0480: 61 72 65 20 63 6f 6d 6d 6f 6e 0a 23 20 74 6f 20 are common.# to
0490: 62 75 69 6c 64 69 6e 67 20 72 65 67 61 72 64 6c building regardl
04a0: 65 73 73 20 6f 66 20 74 68 65 20 74 61 72 67 65 ess of the targe
04b0: 74 2e 0a 23 0a 0a 58 54 43 43 20 3d 20 24 28 54 t..#..XTCC = $(T
04c0: 43 43 29 20 24 28 43 46 4c 41 47 53 29 20 2d 49 CC) $(CFLAGS) -I
04d0: 2e 20 2d 49 24 28 53 52 43 44 49 52 29 0a 0a 7d . -I$(SRCDIR)..}
04e0: 0a 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e 65 .puts -nonewline
04f0: 20 22 53 52 43 20 3d 22 0a 66 6f 72 65 61 63 68 "SRC =".foreach
0500: 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 s [lsort $src]
0510: 7b 0a 20 20 70 75 74 73 20 2d 6e 6f 6e 65 77 6c {. puts -nonewl
0520: 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 5c 24 28 53 ine " \\\n \$(S
0530: 52 43 44 49 52 29 2f 24 73 2e 63 22 0a 7d 0a 70 RCDIR)/$s.c".}.p
0540: 75 74 73 20 22 5c 6e 22 0a 70 75 74 73 20 2d 6e uts "\n".puts -n
0550: 6f 6e 65 77 6c 69 6e 65 20 22 54 52 41 4e 53 5f onewline "TRANS_
0560: 53 52 43 20 3d 22 0a 66 6f 72 65 61 63 68 20 73 SRC =".foreach s
0570: 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 7b 0a [lsort $src] {.
0580: 20 20 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e puts -nonewlin
0590: 65 20 22 20 5c 5c 5c 6e 20 20 24 7b 73 7d 5f 2e e " \\\n ${s}_.
05a0: 63 22 0a 7d 0a 70 75 74 73 20 22 5c 6e 22 0a 70 c".}.puts "\n".p
05b0: 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20 22 uts -nonewline "
05c0: 4f 42 4a 20 3d 22 0a 66 6f 72 65 61 63 68 20 73 OBJ =".foreach s
05d0: 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 7b 0a [lsort $src] {.
05e0: 20 20 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e puts -nonewlin
05f0: 65 20 22 20 5c 5c 5c 6e 20 20 24 73 2e 6f 22 0a e " \\\n $s.o".
0600: 7d 0a 70 75 74 73 20 22 5c 6e 22 0a 70 75 74 73 }.puts "\n".puts
0610: 20 22 41 50 50 4e 41 4d 45 20 3d 20 24 6e 61 6d "APPNAME = $nam
0620: 65 5c 24 28 45 29 22 0a 70 75 74 73 20 22 5c 6e e\$(E)".puts "\n
0630: 22 0a 0a 70 75 74 73 20 7b 0a 61 6c 6c 3a 09 24 "..puts {.all:.$
0640: 28 41 50 50 4e 41 4d 45 29 0a 0a 69 6e 73 74 61 (APPNAME)..insta
0650: 6c 6c 3a 09 24 28 41 50 50 4e 41 4d 45 29 0a 09 ll:.$(APPNAME)..
0660: 6d 76 20 24 28 41 50 50 4e 41 4d 45 29 20 24 28 mv $(APPNAME) $(
0670: 49 4e 53 54 41 4c 4c 44 49 52 29 0a 0a 74 72 61 INSTALLDIR)..tra
0680: 6e 73 6c 61 74 65 3a 09 24 28 53 52 43 44 49 52 nslate:.$(SRCDIR
0690: 29 2f 74 72 61 6e 73 6c 61 74 65 2e 63 0a 09 24 )/translate.c..$
06a0: 28 42 43 43 29 20 2d 6f 20 74 72 61 6e 73 6c 61 (BCC) -o transla
06b0: 74 65 20 24 28 53 52 43 44 49 52 29 2f 74 72 61 te $(SRCDIR)/tra
06c0: 6e 73 6c 61 74 65 2e 63 0a 0a 6d 61 6b 65 68 65 nslate.c..makehe
06d0: 61 64 65 72 73 3a 09 24 28 53 52 43 44 49 52 29 aders:.$(SRCDIR)
06e0: 2f 6d 61 6b 65 68 65 61 64 65 72 73 2e 63 0a 09 /makeheaders.c..
06f0: 24 28 42 43 43 29 20 2d 6f 20 6d 61 6b 65 68 65 $(BCC) -o makehe
0700: 61 64 65 72 73 20 24 28 53 52 43 44 49 52 29 2f aders $(SRCDIR)/
0710: 6d 61 6b 65 68 65 61 64 65 72 73 2e 63 0a 0a 6d makeheaders.c..m
0720: 6b 69 6e 64 65 78 3a 09 24 28 53 52 43 44 49 52 kindex:.$(SRCDIR
0730: 29 2f 6d 6b 69 6e 64 65 78 2e 63 0a 09 24 28 42 )/mkindex.c..$(B
0740: 43 43 29 20 2d 6f 20 6d 6b 69 6e 64 65 78 20 24 CC) -o mkindex $
0750: 28 53 52 43 44 49 52 29 2f 6d 6b 69 6e 64 65 78 (SRCDIR)/mkindex
0760: 2e 63 0a 0a 23 20 57 41 52 4e 49 4e 47 2e 20 44 .c..# WARNING. D
0770: 41 4e 47 45 52 2e 20 52 75 6e 6e 69 6e 67 20 74 ANGER. Running t
0780: 68 65 20 74 65 73 74 73 75 69 74 65 20 6d 6f 64 he testsuite mod
0790: 69 66 69 65 73 20 74 68 65 20 72 65 70 6f 73 69 ifies the reposi
07a0: 74 6f 72 79 20 74 68 65 0a 23 20 62 75 69 6c 64 tory the.# build
07b0: 20 69 73 20 64 6f 6e 65 20 66 72 6f 6d 2c 20 69 is done from, i
07c0: 2e 65 2e 20 74 68 65 20 63 68 65 63 6b 6f 75 74 .e. the checkout
07d0: 20 62 65 6c 6f 6e 67 73 20 74 6f 2e 20 44 6f 20 belongs to. Do
07e0: 6e 6f 74 20 73 79 6e 63 2f 70 75 73 68 0a 23 20 not sync/push.#
07f0: 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79 20 61 the repository a
0800: 66 74 65 72 20 72 75 6e 6e 69 6e 67 20 74 68 65 fter running the
0810: 20 74 65 73 74 73 2e 0a 74 65 73 74 3a 09 24 28 tests..test:.$(
0820: 41 50 50 4e 41 4d 45 29 0a 09 24 28 54 43 4c 53 APPNAME)..$(TCLS
0830: 48 29 20 74 65 73 74 2f 74 65 73 74 65 72 2e 74 H) test/tester.t
0840: 63 6c 20 24 28 41 50 50 4e 41 4d 45 29 0a 0a 56 cl $(APPNAME)..V
0850: 45 52 53 49 4f 4e 2e 68 3a 09 24 28 53 52 43 44 ERSION.h:.$(SRCD
0860: 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 2e IR)/../manifest.
0870: 75 75 69 64 20 24 28 53 52 43 44 49 52 29 2f 2e uuid $(SRCDIR)/.
0880: 2e 2f 6d 61 6e 69 66 65 73 74 0a 09 61 77 6b 20 ./manifest..awk
0890: 27 7b 20 70 72 69 6e 74 66 20 22 23 64 65 66 69 '{ printf "#defi
08a0: 6e 65 20 4d 41 4e 49 46 45 53 54 5f 55 55 49 44 ne MANIFEST_UUID
08b0: 20 5c 22 25 73 5c 22 5c 6e 22 2c 20 24 24 31 7d \"%s\"\n", $$1}
08c0: 27 20 5c 0a 09 09 24 28 53 52 43 44 49 52 29 2f ' \...$(SRCDIR)/
08d0: 2e 2e 2f 6d 61 6e 69 66 65 73 74 2e 75 75 69 64 ../manifest.uuid
08e0: 20 3e 56 45 52 53 49 4f 4e 2e 68 0a 09 61 77 6b >VERSION.h..awk
08f0: 20 27 7b 20 70 72 69 6e 74 66 20 22 23 64 65 66 '{ printf "#def
0900: 69 6e 65 20 4d 41 4e 49 46 45 53 54 5f 56 45 52 ine MANIFEST_VER
0910: 53 49 4f 4e 20 5c 22 5b 25 2e 31 30 73 5d 5c 22 SION \"[%.10s]\"
0920: 5c 6e 22 2c 20 24 24 31 7d 27 20 5c 0a 09 09 24 \n", $$1}' \...$
0930: 28 53 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 (SRCDIR)/../mani
0940: 66 65 73 74 2e 75 75 69 64 20 3e 3e 56 45 52 53 fest.uuid >>VERS
0950: 49 4f 4e 2e 68 0a 09 61 77 6b 20 27 24 24 31 3d ION.h..awk '$$1=
0960: 3d 22 44 22 7b 70 72 69 6e 74 66 20 22 23 64 65 ="D"{printf "#de
0970: 66 69 6e 65 20 4d 41 4e 49 46 45 53 54 5f 44 41 fine MANIFEST_DA
0980: 54 45 20 5c 22 25 73 20 25 73 5c 22 5c 6e 22 2c TE \"%s %s\"\n",
0990: 5c 0a 09 09 73 75 62 73 74 72 28 24 24 32 2c 31 \...substr($$2,1
09a0: 2c 31 30 29 2c 73 75 62 73 74 72 28 24 24 32 2c ,10),substr($$2,
09b0: 31 32 29 7d 27 20 5c 0a 09 09 24 28 53 52 43 44 12)}' \...$(SRCD
09c0: 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 20 IR)/../manifest
09d0: 3e 3e 56 45 52 53 49 4f 4e 2e 68 0a 0a 24 28 41 >>VERSION.h..$(A
09e0: 50 50 4e 41 4d 45 29 3a 09 68 65 61 64 65 72 73 PPNAME):.headers
09f0: 20 24 28 4f 42 4a 29 20 73 71 6c 69 74 65 33 2e $(OBJ) sqlite3.
0a00: 6f 20 74 68 2e 6f 20 74 68 5f 6c 61 6e 67 2e 6f o th.o th_lang.o
0a10: 0a 09 24 28 54 43 43 29 20 2d 6f 20 24 28 41 50 ..$(TCC) -o $(AP
0a20: 50 4e 41 4d 45 29 20 24 28 4f 42 4a 29 20 73 71 PNAME) $(OBJ) sq
0a30: 6c 69 74 65 33 2e 6f 20 74 68 2e 6f 20 74 68 5f lite3.o th.o th_
0a40: 6c 61 6e 67 2e 6f 20 24 28 4c 49 42 29 0a 0a 23 lang.o $(LIB)..#
0a50: 20 54 68 69 73 20 72 75 6c 65 20 70 72 65 76 65 This rule preve
0a60: 6e 74 73 20 6d 61 6b 65 20 66 72 6f 6d 20 75 73 nts make from us
0a70: 69 6e 67 20 69 74 73 20 64 65 66 61 75 6c 74 20 ing its default
0a80: 72 75 6c 65 73 20 74 6f 20 74 72 79 20 62 75 69 rules to try bui
0a90: 6c 64 0a 23 20 61 6e 20 65 78 65 63 75 74 61 62 ld.# an executab
0aa0: 6c 65 20 6e 61 6d 65 64 20 22 6d 61 6e 69 66 65 le named "manife
0ab0: 73 74 22 20 6f 75 74 20 6f 66 20 74 68 65 20 66 st" out of the f
0ac0: 69 6c 65 20 6e 61 6d 65 64 20 22 6d 61 6e 69 66 ile named "manif
0ad0: 65 73 74 2e 63 22 0a 23 0a 24 28 53 52 43 44 49 est.c".#.$(SRCDI
0ae0: 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 3a 09 R)/../manifest:.
0af0: 0a 09 23 20 6e 6f 6f 70 0a 0a 63 6c 65 61 6e 3a ..# noop..clean:
0b00: 09 0a 09 72 6d 20 2d 66 20 2a 2e 6f 20 2a 5f 2e ...rm -f *.o *_.
0b10: 63 20 24 28 41 50 50 4e 41 4d 45 29 20 56 45 52 c $(APPNAME) VER
0b20: 53 49 4f 4e 2e 68 0a 09 72 6d 20 2d 66 20 74 72 SION.h..rm -f tr
0b30: 61 6e 73 6c 61 74 65 20 6d 61 6b 65 68 65 61 64 anslate makehead
0b40: 65 72 73 20 6d 6b 69 6e 64 65 78 20 70 61 67 65 ers mkindex page
0b50: 5f 69 6e 64 65 78 2e 68 20 68 65 61 64 65 72 73 _index.h headers
0b60: 7d 0a 0a 73 65 74 20 68 66 69 6c 65 73 20 7b 7d }..set hfiles {}
0b70: 0a 66 6f 72 65 61 63 68 20 73 20 5b 6c 73 6f 72 .foreach s [lsor
0b80: 74 20 24 73 72 63 5d 20 7b 6c 61 70 70 65 6e 64 t $src] {lappend
0b90: 20 68 66 69 6c 65 73 20 24 73 2e 68 7d 0a 70 75 hfiles $s.h}.pu
0ba0: 74 73 20 22 5c 74 72 6d 20 2d 66 20 24 68 66 69 ts "\trm -f $hfi
0bb0: 6c 65 73 5c 6e 22 0a 0a 73 65 74 20 6d 68 61 72 les\n"..set mhar
0bc0: 67 73 20 7b 7d 0a 66 6f 72 65 61 63 68 20 73 20 gs {}.foreach s
0bd0: 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 7b 0a 20 [lsort $src] {.
0be0: 20 61 70 70 65 6e 64 20 6d 68 61 72 67 73 20 22 append mhargs "
0bf0: 20 24 7b 73 7d 5f 2e 63 3a 24 73 2e 68 22 0a 20 ${s}_.c:$s.h".
0c00: 20 73 65 74 20 65 78 74 72 61 5f 68 28 24 73 29 set extra_h($s)
0c10: 20 7b 7d 0a 7d 0a 61 70 70 65 6e 64 20 6d 68 61 {}.}.append mha
0c20: 72 67 73 20 22 20 5c 24 28 53 52 43 44 49 52 29 rgs " \$(SRCDIR)
0c30: 2f 73 71 6c 69 74 65 33 2e 68 22 0a 61 70 70 65 /sqlite3.h".appe
0c40: 6e 64 20 6d 68 61 72 67 73 20 22 20 5c 24 28 53 nd mhargs " \$(S
0c50: 52 43 44 49 52 29 2f 74 68 2e 68 22 0a 61 70 70 RCDIR)/th.h".app
0c60: 65 6e 64 20 6d 68 61 72 67 73 20 22 20 56 45 52 end mhargs " VER
0c70: 53 49 4f 4e 2e 68 22 0a 70 75 74 73 20 22 70 61 SION.h".puts "pa
0c80: 67 65 5f 69 6e 64 65 78 2e 68 3a 20 5c 24 28 54 ge_index.h: \$(T
0c90: 52 41 4e 53 5f 53 52 43 29 20 6d 6b 69 6e 64 65 RANS_SRC) mkinde
0ca0: 78 22 0a 70 75 74 73 20 22 5c 74 2e 2f 6d 6b 69 x".puts "\t./mki
0cb0: 6e 64 65 78 20 5c 24 28 54 52 41 4e 53 5f 53 52 ndex \$(TRANS_SR
0cc0: 43 29 20 3e 24 40 22 0a 70 75 74 73 20 22 68 65 C) >$@".puts "he
0cd0: 61 64 65 72 73 3a 5c 74 70 61 67 65 5f 69 6e 64 aders:\tpage_ind
0ce0: 65 78 2e 68 20 6d 61 6b 65 68 65 61 64 65 72 73 ex.h makeheaders
0cf0: 20 56 45 52 53 49 4f 4e 2e 68 22 0a 70 75 74 73 VERSION.h".puts
0d00: 20 22 5c 74 2e 2f 6d 61 6b 65 68 65 61 64 65 72 "\t./makeheader
0d10: 73 20 24 6d 68 61 72 67 73 22 0a 70 75 74 73 20 s $mhargs".puts
0d20: 22 5c 74 74 6f 75 63 68 20 68 65 61 64 65 72 73 "\ttouch headers
0d30: 22 0a 70 75 74 73 20 22 68 65 61 64 65 72 73 3a ".puts "headers:
0d40: 20 4d 61 6b 65 66 69 6c 65 22 0a 70 75 74 73 20 Makefile".puts
0d50: 22 4d 61 6b 65 66 69 6c 65 3a 22 0a 73 65 74 20 "Makefile:".set
0d60: 65 78 74 72 61 5f 68 28 6d 61 69 6e 29 20 70 61 extra_h(main) pa
0d70: 67 65 5f 69 6e 64 65 78 2e 68 0a 0a 66 6f 72 65 ge_index.h..fore
0d80: 61 63 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 ach s [lsort $sr
0d90: 63 5d 20 7b 0a 20 20 70 75 74 73 20 22 24 7b 73 c] {. puts "${s
0da0: 7d 5f 2e 63 3a 5c 74 5c 24 28 53 52 43 44 49 52 }_.c:\t\$(SRCDIR
0db0: 29 2f 24 73 2e 63 20 5c 24 28 53 52 43 44 49 52 )/$s.c \$(SRCDIR
0dc0: 29 2f 56 45 52 53 49 4f 4e 20 74 72 61 6e 73 6c )/VERSION transl
0dd0: 61 74 65 22 0a 20 20 70 75 74 73 20 22 5c 74 2e ate". puts "\t.
0de0: 2f 74 72 61 6e 73 6c 61 74 65 20 5c 24 28 53 52 /translate \$(SR
0df0: 43 44 49 52 29 2f 24 73 2e 63 20 7c 20 73 65 64 CDIR)/$s.c | sed
0e00: 20 2d 66 20 5c 24 28 53 52 43 44 49 52 29 2f 56 -f \$(SRCDIR)/V
0e10: 45 52 53 49 4f 4e 20 3e 24 7b 73 7d 5f 2e 63 5c ERSION >${s}_.c\
0e20: 6e 22 0a 20 20 70 75 74 73 20 22 24 73 2e 6f 3a n". puts "$s.o:
0e30: 5c 74 24 7b 73 7d 5f 2e 63 20 24 73 2e 68 20 24 \t${s}_.c $s.h $
0e40: 65 78 74 72 61 5f 68 28 24 73 29 20 5c 24 28 53 extra_h($s) \$(S
0e50: 52 43 44 49 52 29 2f 63 6f 6e 66 69 67 2e 68 22 RCDIR)/config.h"
0e60: 0a 20 20 70 75 74 73 20 22 5c 74 5c 24 28 58 54 . puts "\t\$(XT
0e70: 43 43 29 20 2d 6f 20 24 73 2e 6f 20 2d 63 20 24 CC) -o $s.o -c $
0e80: 7b 73 7d 5f 2e 63 5c 6e 22 0a 20 20 70 75 74 73 {s}_.c\n". puts
0e90: 20 22 24 73 2e 68 3a 5c 74 68 65 61 64 65 72 73 "$s.h:\theaders
0ea0: 22 0a 23 20 20 70 75 74 73 20 22 5c 74 2e 2f 6d ".# puts "\t./m
0eb0: 61 6b 65 68 65 61 64 65 72 73 20 24 6d 68 61 72 akeheaders $mhar
0ec0: 67 73 5c 6e 5c 74 74 6f 75 63 68 20 68 65 61 64 gs\n\ttouch head
0ed0: 65 72 73 5c 6e 22 0a 23 20 20 70 75 74 73 20 22 ers\n".# puts "
0ee0: 5c 74 2e 2f 6d 61 6b 65 68 65 61 64 65 72 73 20 \t./makeheaders
0ef0: 24 7b 73 7d 5f 2e 63 3a 24 7b 73 7d 2e 68 5c 6e ${s}_.c:${s}.h\n
0f00: 22 0a 7d 0a 0a 0a 70 75 74 73 20 22 73 71 6c 69 ".}...puts "sqli
0f10: 74 65 33 2e 6f 3a 5c 74 5c 24 28 53 52 43 44 49 te3.o:\t\$(SRCDI
0f20: 52 29 2f 73 71 6c 69 74 65 33 2e 63 22 0a 73 65 R)/sqlite3.c".se
0f30: 74 20 6f 70 74 20 7b 2d 44 53 51 4c 49 54 45 5f t opt {-DSQLITE_
0f40: 4f 4d 49 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 OMIT_LOAD_EXTENS
0f50: 49 4f 4e 3d 31 20 2d 44 53 51 4c 49 54 45 5f 50 ION=1 -DSQLITE_P
0f60: 52 49 56 41 54 45 3d 7d 0a 61 70 70 65 6e 64 20 RIVATE=}.append
0f70: 6f 70 74 20 22 20 2d 44 53 51 4c 49 54 45 5f 54 opt " -DSQLITE_T
0f80: 48 52 45 41 44 53 41 46 45 3d 30 20 2d 44 53 51 HREADSAFE=0 -DSQ
0f90: 4c 49 54 45 5f 44 45 46 41 55 4c 54 5f 46 49 4c LITE_DEFAULT_FIL
0fa0: 45 5f 46 4f 52 4d 41 54 3d 34 22 0a 61 70 70 65 E_FORMAT=4".appe
0fb0: 6e 64 20 6f 70 74 20 22 20 2d 44 53 51 4c 49 54 nd opt " -DSQLIT
0fc0: 45 5f 45 4e 41 42 4c 45 5f 46 54 53 33 3d 31 20 E_ENABLE_FTS3=1
0fd0: 2d 44 6c 6f 63 61 6c 74 69 6d 65 3d 66 6f 73 73 -Dlocaltime=foss
0fe0: 69 6c 5f 6c 6f 63 61 6c 74 69 6d 65 22 0a 70 75 il_localtime".pu
0ff0: 74 73 20 22 5c 74 5c 24 28 58 54 43 43 29 20 24 ts "\t\$(XTCC) $
1000: 6f 70 74 20 2d 63 20 5c 24 28 53 52 43 44 49 52 opt -c \$(SRCDIR
1010: 29 2f 73 71 6c 69 74 65 33 2e 63 20 2d 6f 20 73 )/sqlite3.c -o s
1020: 71 6c 69 74 65 33 2e 6f 5c 6e 22 0a 0a 70 75 74 qlite3.o\n"..put
1030: 73 20 22 74 68 2e 6f 3a 5c 74 5c 24 28 53 52 43 s "th.o:\t\$(SRC
1040: 44 49 52 29 2f 74 68 2e 63 22 0a 70 75 74 73 20 DIR)/th.c".puts
1050: 22 5c 74 5c 24 28 58 54 43 43 29 20 2d 49 5c 24 "\t\$(XTCC) -I\$
1060: 28 53 52 43 44 49 52 29 20 2d 63 20 5c 24 28 53 (SRCDIR) -c \$(S
1070: 52 43 44 49 52 29 2f 74 68 2e 63 20 2d 6f 20 74 RCDIR)/th.c -o t
1080: 68 2e 6f 5c 6e 22 0a 0a 70 75 74 73 20 22 74 68 h.o\n"..puts "th
1090: 5f 6c 61 6e 67 2e 6f 3a 5c 74 5c 24 28 53 52 43 _lang.o:\t\$(SRC
10a0: 44 49 52 29 2f 74 68 5f 6c 61 6e 67 2e 63 22 0a DIR)/th_lang.c".
10b0: 70 75 74 73 20 22 5c 74 5c 24 28 58 54 43 43 29 puts "\t\$(XTCC)
10c0: 20 2d 49 5c 24 28 53 52 43 44 49 52 29 20 2d 63 -I\$(SRCDIR) -c
10d0: 20 5c 24 28 53 52 43 44 49 52 29 2f 74 68 5f 6c \$(SRCDIR)/th_l
10e0: 61 6e 67 2e 63 20 2d 6f 20 74 68 5f 6c 61 6e 67 ang.c -o th_lang
10f0: 2e 6f 5c 6e 22 0a .o\n".