Artifact 2d335c8c4adc17183e936bc2a3d590423447ea14:
File
src/makemake.tcl
part of check-in
[a48474bc75]
- Improvements to the shunning algorithm. Add the shun page and an
opportunity to shun or unshun artifacts in the artifact viewer.
by
drh on
2008-05-29 01:58:15.
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 62 61 67 0a 20 20 62 6c admin. bag. bl
00d0: 6f 62 0a 20 20 62 72 61 6e 63 68 0a 20 20 62 72 ob. branch. br
00e0: 6f 77 73 65 0a 20 20 63 67 69 0a 20 20 63 68 65 owse. cgi. che
00f0: 63 6b 69 6e 0a 20 20 63 68 65 63 6b 6f 75 74 0a ckin. checkout.
0100: 20 20 63 6c 65 61 72 73 69 67 6e 0a 20 20 63 6c clearsign. cl
0110: 6f 6e 65 0a 20 20 63 6f 6d 66 6f 72 6d 61 74 0a one. comformat.
0120: 20 20 63 6f 6e 66 69 67 75 72 65 0a 20 20 63 6f configure. co
0130: 6e 73 74 72 75 63 74 0a 20 20 63 6f 6e 74 65 6e nstruct. conten
0140: 74 0a 20 20 64 62 0a 20 20 64 65 6c 74 61 0a 20 t. db. delta.
0150: 20 64 65 6c 74 61 63 6d 64 0a 20 20 64 65 73 63 deltacmd. desc
0160: 65 6e 64 61 6e 74 73 0a 20 20 64 69 66 66 0a 20 endants. diff.
0170: 20 64 69 66 66 63 6d 64 0a 20 20 64 6f 63 0a 20 diffcmd. doc.
0180: 20 65 6e 63 6f 64 65 0a 20 20 66 69 6c 65 0a 20 encode. file.
0190: 20 68 74 74 70 0a 20 20 69 6e 66 6f 0a 20 20 6c http. info. l
01a0: 6f 67 69 6e 0a 20 20 6d 61 69 6e 0a 20 20 6d 61 ogin. main. ma
01b0: 6e 69 66 65 73 74 0a 20 20 6d 64 35 0a 20 20 6d nifest. md5. m
01c0: 65 72 67 65 0a 20 20 6d 65 72 67 65 33 0a 20 20 erge. merge3.
01d0: 6d 79 5f 70 61 67 65 0a 20 20 6e 61 6d 65 0a 20 my_page. name.
01e0: 20 70 69 76 6f 74 0a 20 20 70 71 75 65 75 65 0a pivot. pqueue.
01f0: 20 20 70 72 69 6e 74 66 0a 20 20 72 65 62 75 69 printf. rebui
0200: 6c 64 0a 20 20 72 65 70 6f 72 74 0a 20 20 72 73 ld. report. rs
0210: 73 0a 20 20 73 63 68 65 6d 61 0a 20 20 73 65 74 s. schema. set
0220: 75 70 0a 20 20 73 68 61 31 0a 20 20 73 68 75 6e up. sha1. shun
0230: 0a 20 20 73 74 61 74 0a 20 20 73 74 79 6c 65 0a . stat. style.
0240: 20 20 73 79 6e 63 0a 20 20 74 61 67 0a 20 20 74 sync. tag. t
0250: 61 67 76 69 65 77 0a 20 20 74 68 5f 6d 61 69 6e agview. th_main
0260: 0a 20 20 74 69 6d 65 6c 69 6e 65 0a 20 20 74 6b . timeline. tk
0270: 74 0a 20 20 74 6b 74 73 65 74 75 70 0a 20 20 75 t. tktsetup. u
0280: 6e 64 6f 0a 20 20 75 70 64 61 74 65 0a 20 20 75 ndo. update. u
0290: 72 6c 0a 20 20 75 73 65 72 0a 20 20 76 65 72 69 rl. user. veri
02a0: 66 79 0a 20 20 76 66 69 6c 65 0a 20 20 77 69 6b fy. vfile. wik
02b0: 69 0a 20 20 77 69 6b 69 66 6f 72 6d 61 74 0a 20 i. wikiformat.
02c0: 20 77 69 6e 68 74 74 70 0a 20 20 78 66 65 72 0a winhttp. xfer.
02d0: 20 20 7a 69 70 0a 7d 0a 0a 23 20 4e 61 6d 65 20 zip.}..# Name
02e0: 6f 66 20 74 68 65 20 66 69 6e 61 6c 20 61 70 70 of the final app
02f0: 6c 69 63 61 74 69 6f 6e 0a 23 0a 73 65 74 20 6e lication.#.set n
0300: 61 6d 65 20 66 6f 73 73 69 6c 0a 0a 70 75 74 73 ame fossil..puts
0310: 20 7b 23 20 44 4f 20 4e 4f 54 20 45 44 49 54 0a {# DO NOT EDIT.
0320: 23 0a 23 20 54 68 69 73 20 66 69 6c 65 20 69 73 #.# This file is
0330: 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 67 automatically g
0340: 65 6e 65 72 61 74 65 64 2e 20 20 49 6e 73 74 65 enerated. Inste
0350: 61 64 20 6f 66 20 65 64 69 74 69 6e 67 20 74 68 ad of editing th
0360: 69 73 0a 23 20 66 69 6c 65 2c 20 65 64 69 74 20 is.# file, edit
0370: 22 6d 61 6b 65 6d 61 6b 65 2e 74 63 6c 22 20 74 "makemake.tcl" t
0380: 68 65 6e 20 72 75 6e 20 22 74 63 6c 73 68 20 6d hen run "tclsh m
0390: 61 6b 65 6d 61 6b 65 2e 74 63 6c 20 3e 6d 61 69 akemake.tcl >mai
03a0: 6e 2e 6d 6b 22 0a 23 20 74 6f 20 72 65 67 65 6e n.mk".# to regen
03b0: 65 72 61 74 65 20 74 68 69 73 20 66 69 6c 65 2e erate this file.
03c0: 0a 23 0a 23 20 54 68 69 73 20 66 69 6c 65 20 69 .#.# This file i
03d0: 73 20 69 6e 63 6c 75 64 65 64 20 62 79 20 6c 69 s included by li
03e0: 6e 75 78 2d 67 63 63 2e 6d 6b 20 6f 72 20 6c 69 nux-gcc.mk or li
03f0: 6e 75 78 2d 6d 69 6e 67 77 2e 6d 6b 20 6f 72 20 nux-mingw.mk or
0400: 70 6f 73 73 69 62 6c 65 0a 23 20 73 6f 6d 65 20 possible.# some
0410: 6f 74 68 65 72 20 6d 61 6b 65 66 69 6c 65 73 2e other makefiles.
0420: 20 20 54 68 69 73 20 66 69 6c 65 20 63 6f 6e 74 This file cont
0430: 61 69 6e 73 20 74 68 65 20 72 75 6c 65 73 20 74 ains the rules t
0440: 68 61 74 20 61 72 65 20 63 6f 6d 6d 6f 6e 0a 23 hat are common.#
0450: 20 74 6f 20 62 75 69 6c 64 69 6e 67 20 72 65 67 to building reg
0460: 61 72 64 6c 65 73 73 20 6f 66 20 74 68 65 20 74 ardless of the t
0470: 61 72 67 65 74 2e 0a 23 0a 0a 58 54 43 43 20 3d arget..#..XTCC =
0480: 20 24 28 54 43 43 29 20 24 28 43 46 4c 41 47 53 $(TCC) $(CFLAGS
0490: 29 20 2d 49 2e 20 2d 49 24 28 53 52 43 44 49 52 ) -I. -I$(SRCDIR
04a0: 29 0a 0a 7d 0a 70 75 74 73 20 2d 6e 6f 6e 65 77 )..}.puts -nonew
04b0: 6c 69 6e 65 20 22 53 52 43 20 3d 22 0a 66 6f 72 line "SRC =".for
04c0: 65 61 63 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 each s [lsort $s
04d0: 72 63 5d 20 7b 0a 20 20 70 75 74 73 20 2d 6e 6f rc] {. puts -no
04e0: 6e 65 77 6c 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 newline " \\\n
04f0: 5c 24 28 53 52 43 44 49 52 29 2f 24 73 2e 63 22 \$(SRCDIR)/$s.c"
0500: 0a 7d 0a 70 75 74 73 20 22 5c 6e 22 0a 70 75 74 .}.puts "\n".put
0510: 73 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20 22 54 52 s -nonewline "TR
0520: 41 4e 53 5f 53 52 43 20 3d 22 0a 66 6f 72 65 61 ANS_SRC =".forea
0530: 63 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 ch s [lsort $src
0540: 5d 20 7b 0a 20 20 70 75 74 73 20 2d 6e 6f 6e 65 ] {. puts -none
0550: 77 6c 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 24 7b wline " \\\n ${
0560: 73 7d 5f 2e 63 22 0a 7d 0a 70 75 74 73 20 22 5c s}_.c".}.puts "\
0570: 6e 22 0a 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 n".puts -nonewli
0580: 6e 65 20 22 4f 42 4a 20 3d 22 0a 66 6f 72 65 61 ne "OBJ =".forea
0590: 63 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 ch s [lsort $src
05a0: 5d 20 7b 0a 20 20 70 75 74 73 20 2d 6e 6f 6e 65 ] {. puts -none
05b0: 77 6c 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 24 73 wline " \\\n $s
05c0: 2e 6f 22 0a 7d 0a 70 75 74 73 20 22 5c 6e 22 0a .o".}.puts "\n".
05d0: 70 75 74 73 20 22 41 50 50 4e 41 4d 45 20 3d 20 puts "APPNAME =
05e0: 24 6e 61 6d 65 5c 24 28 45 29 22 0a 70 75 74 73 $name\$(E)".puts
05f0: 20 22 5c 6e 22 0a 0a 70 75 74 73 20 7b 0a 61 6c "\n"..puts {.al
0600: 6c 3a 09 24 28 41 50 50 4e 41 4d 45 29 0a 0a 69 l:.$(APPNAME)..i
0610: 6e 73 74 61 6c 6c 3a 09 24 28 41 50 50 4e 41 4d nstall:.$(APPNAM
0620: 45 29 0a 09 6d 76 20 24 28 41 50 50 4e 41 4d 45 E)..mv $(APPNAME
0630: 29 20 24 28 49 4e 53 54 41 4c 4c 44 49 52 29 0a ) $(INSTALLDIR).
0640: 0a 74 72 61 6e 73 6c 61 74 65 3a 09 24 28 53 52 .translate:.$(SR
0650: 43 44 49 52 29 2f 74 72 61 6e 73 6c 61 74 65 2e CDIR)/translate.
0660: 63 0a 09 24 28 42 43 43 29 20 2d 6f 20 74 72 61 c..$(BCC) -o tra
0670: 6e 73 6c 61 74 65 20 24 28 53 52 43 44 49 52 29 nslate $(SRCDIR)
0680: 2f 74 72 61 6e 73 6c 61 74 65 2e 63 0a 0a 6d 61 /translate.c..ma
0690: 6b 65 68 65 61 64 65 72 73 3a 09 24 28 53 52 43 keheaders:.$(SRC
06a0: 44 49 52 29 2f 6d 61 6b 65 68 65 61 64 65 72 73 DIR)/makeheaders
06b0: 2e 63 0a 09 24 28 42 43 43 29 20 2d 6f 20 6d 61 .c..$(BCC) -o ma
06c0: 6b 65 68 65 61 64 65 72 73 20 24 28 53 52 43 44 keheaders $(SRCD
06d0: 49 52 29 2f 6d 61 6b 65 68 65 61 64 65 72 73 2e IR)/makeheaders.
06e0: 63 0a 0a 6d 6b 69 6e 64 65 78 3a 09 24 28 53 52 c..mkindex:.$(SR
06f0: 43 44 49 52 29 2f 6d 6b 69 6e 64 65 78 2e 63 0a CDIR)/mkindex.c.
0700: 09 24 28 42 43 43 29 20 2d 6f 20 6d 6b 69 6e 64 .$(BCC) -o mkind
0710: 65 78 20 24 28 53 52 43 44 49 52 29 2f 6d 6b 69 ex $(SRCDIR)/mki
0720: 6e 64 65 78 2e 63 0a 0a 23 20 57 41 52 4e 49 4e ndex.c..# WARNIN
0730: 47 2e 20 44 41 4e 47 45 52 2e 20 52 75 6e 6e 69 G. DANGER. Runni
0740: 6e 67 20 74 68 65 20 74 65 73 74 73 75 69 74 65 ng the testsuite
0750: 20 6d 6f 64 69 66 69 65 73 20 74 68 65 20 72 65 modifies the re
0760: 70 6f 73 69 74 6f 72 79 20 74 68 65 0a 23 20 62 pository the.# b
0770: 75 69 6c 64 20 69 73 20 64 6f 6e 65 20 66 72 6f uild is done fro
0780: 6d 2c 20 69 2e 65 2e 20 74 68 65 20 63 68 65 63 m, i.e. the chec
0790: 6b 6f 75 74 20 62 65 6c 6f 6e 67 73 20 74 6f 2e kout belongs to.
07a0: 20 44 6f 20 6e 6f 74 20 73 79 6e 63 2f 70 75 73 Do not sync/pus
07b0: 68 0a 23 20 74 68 65 20 72 65 70 6f 73 69 74 6f h.# the reposito
07c0: 72 79 20 61 66 74 65 72 20 72 75 6e 6e 69 6e 67 ry after running
07d0: 20 74 68 65 20 74 65 73 74 73 2e 0a 74 65 73 74 the tests..test
07e0: 3a 09 24 28 41 50 50 4e 41 4d 45 29 0a 09 24 28 :.$(APPNAME)..$(
07f0: 54 43 4c 53 48 29 20 74 65 73 74 2f 74 65 73 74 TCLSH) test/test
0800: 65 72 2e 74 63 6c 20 24 28 41 50 50 4e 41 4d 45 er.tcl $(APPNAME
0810: 29 0a 0a 56 45 52 53 49 4f 4e 2e 68 3a 09 24 28 )..VERSION.h:.$(
0820: 53 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 SRCDIR)/../manif
0830: 65 73 74 2e 75 75 69 64 20 24 28 53 52 43 44 49 est.uuid $(SRCDI
0840: 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 0a 09 R)/../manifest..
0850: 61 77 6b 20 27 7b 20 70 72 69 6e 74 66 20 22 23 awk '{ printf "#
0860: 64 65 66 69 6e 65 20 4d 41 4e 49 46 45 53 54 5f define MANIFEST_
0870: 55 55 49 44 20 5c 22 25 73 5c 22 5c 6e 22 2c 20 UUID \"%s\"\n",
0880: 24 24 31 7d 27 20 5c 0a 09 09 24 28 53 52 43 44 $$1}' \...$(SRCD
0890: 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 2e IR)/../manifest.
08a0: 75 75 69 64 20 3e 56 45 52 53 49 4f 4e 2e 68 0a uuid >VERSION.h.
08b0: 09 61 77 6b 20 27 7b 20 70 72 69 6e 74 66 20 22 .awk '{ printf "
08c0: 23 64 65 66 69 6e 65 20 4d 41 4e 49 46 45 53 54 #define MANIFEST
08d0: 5f 56 45 52 53 49 4f 4e 20 5c 22 5b 25 2e 31 30 _VERSION \"[%.10
08e0: 73 5d 5c 22 5c 6e 22 2c 20 24 24 31 7d 27 20 5c s]\"\n", $$1}' \
08f0: 0a 09 09 24 28 53 52 43 44 49 52 29 2f 2e 2e 2f ...$(SRCDIR)/../
0900: 6d 61 6e 69 66 65 73 74 2e 75 75 69 64 20 3e 3e manifest.uuid >>
0910: 56 45 52 53 49 4f 4e 2e 68 0a 09 61 77 6b 20 27 VERSION.h..awk '
0920: 24 24 31 3d 3d 22 44 22 7b 70 72 69 6e 74 66 20 $$1=="D"{printf
0930: 22 23 64 65 66 69 6e 65 20 4d 41 4e 49 46 45 53 "#define MANIFES
0940: 54 5f 44 41 54 45 20 5c 22 25 73 20 25 73 5c 22 T_DATE \"%s %s\"
0950: 5c 6e 22 2c 5c 0a 09 09 73 75 62 73 74 72 28 24 \n",\...substr($
0960: 24 32 2c 31 2c 31 30 29 2c 73 75 62 73 74 72 28 $2,1,10),substr(
0970: 24 24 32 2c 31 32 29 7d 27 20 5c 0a 09 09 24 28 $$2,12)}' \...$(
0980: 53 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 SRCDIR)/../manif
0990: 65 73 74 20 3e 3e 56 45 52 53 49 4f 4e 2e 68 0a est >>VERSION.h.
09a0: 0a 24 28 41 50 50 4e 41 4d 45 29 3a 09 68 65 61 .$(APPNAME):.hea
09b0: 64 65 72 73 20 24 28 4f 42 4a 29 20 73 71 6c 69 ders $(OBJ) sqli
09c0: 74 65 33 2e 6f 20 74 68 2e 6f 20 74 68 5f 6c 61 te3.o th.o th_la
09d0: 6e 67 2e 6f 0a 09 24 28 54 43 43 29 20 2d 6f 20 ng.o..$(TCC) -o
09e0: 24 28 41 50 50 4e 41 4d 45 29 20 24 28 4f 42 4a $(APPNAME) $(OBJ
09f0: 29 20 73 71 6c 69 74 65 33 2e 6f 20 74 68 2e 6f ) sqlite3.o th.o
0a00: 20 74 68 5f 6c 61 6e 67 2e 6f 20 24 28 4c 49 42 th_lang.o $(LIB
0a10: 29 0a 0a 23 20 54 68 69 73 20 72 75 6c 65 20 70 )..# This rule p
0a20: 72 65 76 65 6e 74 73 20 6d 61 6b 65 20 66 72 6f revents make fro
0a30: 6d 20 75 73 69 6e 67 20 69 74 73 20 64 65 66 61 m using its defa
0a40: 75 6c 74 20 72 75 6c 65 73 20 74 6f 20 74 72 79 ult rules to try
0a50: 20 62 75 69 6c 64 0a 23 20 61 6e 20 65 78 65 63 build.# an exec
0a60: 75 74 61 62 6c 65 20 6e 61 6d 65 64 20 22 6d 61 utable named "ma
0a70: 6e 69 66 65 73 74 22 20 6f 75 74 20 6f 66 20 74 nifest" out of t
0a80: 68 65 20 66 69 6c 65 20 6e 61 6d 65 64 20 22 6d he file named "m
0a90: 61 6e 69 66 65 73 74 2e 63 22 0a 23 0a 24 28 53 anifest.c".#.$(S
0aa0: 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 RCDIR)/../manife
0ab0: 73 74 3a 09 0a 09 23 20 6e 6f 6f 70 0a 0a 63 6c st:...# noop..cl
0ac0: 65 61 6e 3a 09 0a 09 72 6d 20 2d 66 20 2a 2e 6f ean:...rm -f *.o
0ad0: 20 2a 5f 2e 63 20 24 28 41 50 50 4e 41 4d 45 29 *_.c $(APPNAME)
0ae0: 20 56 45 52 53 49 4f 4e 2e 68 0a 09 72 6d 20 2d VERSION.h..rm -
0af0: 66 20 74 72 61 6e 73 6c 61 74 65 20 6d 61 6b 65 f translate make
0b00: 68 65 61 64 65 72 73 20 6d 6b 69 6e 64 65 78 20 headers mkindex
0b10: 70 61 67 65 5f 69 6e 64 65 78 2e 68 20 68 65 61 page_index.h hea
0b20: 64 65 72 73 7d 0a 0a 73 65 74 20 68 66 69 6c 65 ders}..set hfile
0b30: 73 20 7b 7d 0a 66 6f 72 65 61 63 68 20 73 20 5b s {}.foreach s [
0b40: 6c 73 6f 72 74 20 24 73 72 63 5d 20 7b 6c 61 70 lsort $src] {lap
0b50: 70 65 6e 64 20 68 66 69 6c 65 73 20 24 73 2e 68 pend hfiles $s.h
0b60: 7d 0a 70 75 74 73 20 22 5c 74 72 6d 20 2d 66 20 }.puts "\trm -f
0b70: 24 68 66 69 6c 65 73 5c 6e 22 0a 0a 73 65 74 20 $hfiles\n"..set
0b80: 6d 68 61 72 67 73 20 7b 7d 0a 66 6f 72 65 61 63 mhargs {}.foreac
0b90: 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d h s [lsort $src]
0ba0: 20 7b 0a 20 20 61 70 70 65 6e 64 20 6d 68 61 72 {. append mhar
0bb0: 67 73 20 22 20 24 7b 73 7d 5f 2e 63 3a 24 73 2e gs " ${s}_.c:$s.
0bc0: 68 22 0a 20 20 73 65 74 20 65 78 74 72 61 5f 68 h". set extra_h
0bd0: 28 24 73 29 20 7b 7d 0a 7d 0a 61 70 70 65 6e 64 ($s) {}.}.append
0be0: 20 6d 68 61 72 67 73 20 22 20 5c 24 28 53 52 43 mhargs " \$(SRC
0bf0: 44 49 52 29 2f 73 71 6c 69 74 65 33 2e 68 22 0a DIR)/sqlite3.h".
0c00: 61 70 70 65 6e 64 20 6d 68 61 72 67 73 20 22 20 append mhargs "
0c10: 5c 24 28 53 52 43 44 49 52 29 2f 74 68 2e 68 22 \$(SRCDIR)/th.h"
0c20: 0a 61 70 70 65 6e 64 20 6d 68 61 72 67 73 20 22 .append mhargs "
0c30: 20 2e 2f 56 45 52 53 49 4f 4e 2e 68 22 0a 70 75 ./VERSION.h".pu
0c40: 74 73 20 22 68 65 61 64 65 72 73 3a 5c 74 6d 61 ts "headers:\tma
0c50: 6b 65 68 65 61 64 65 72 73 20 6d 6b 69 6e 64 65 keheaders mkinde
0c60: 78 20 5c 24 28 54 52 41 4e 53 5f 53 52 43 29 20 x \$(TRANS_SRC)
0c70: 2e 2f 56 45 52 53 49 4f 4e 2e 68 22 0a 70 75 74 ./VERSION.h".put
0c80: 73 20 22 5c 74 2e 2f 6d 61 6b 65 68 65 61 64 65 s "\t./makeheade
0c90: 72 73 20 24 6d 68 61 72 67 73 22 0a 70 75 74 73 rs $mhargs".puts
0ca0: 20 22 5c 74 2e 2f 6d 6b 69 6e 64 65 78 20 5c 24 "\t./mkindex \$
0cb0: 28 54 52 41 4e 53 5f 53 52 43 29 20 3e 70 61 67 (TRANS_SRC) >pag
0cc0: 65 5f 69 6e 64 65 78 2e 68 22 0a 70 75 74 73 20 e_index.h".puts
0cd0: 22 5c 74 74 6f 75 63 68 20 68 65 61 64 65 72 73 "\ttouch headers
0ce0: 5c 6e 22 0a 73 65 74 20 65 78 74 72 61 5f 68 28 \n".set extra_h(
0cf0: 6d 61 69 6e 29 20 70 61 67 65 5f 69 6e 64 65 78 main) page_index
0d00: 2e 68 0a 0a 66 6f 72 65 61 63 68 20 73 20 5b 6c .h..foreach s [l
0d10: 73 6f 72 74 20 24 73 72 63 5d 20 7b 0a 20 20 70 sort $src] {. p
0d20: 75 74 73 20 22 24 7b 73 7d 5f 2e 63 3a 5c 74 5c uts "${s}_.c:\t\
0d30: 24 28 53 52 43 44 49 52 29 2f 24 73 2e 63 20 5c $(SRCDIR)/$s.c \
0d40: 24 28 53 52 43 44 49 52 29 2f 56 45 52 53 49 4f $(SRCDIR)/VERSIO
0d50: 4e 20 74 72 61 6e 73 6c 61 74 65 22 0a 20 20 70 N translate". p
0d60: 75 74 73 20 22 5c 74 2e 2f 74 72 61 6e 73 6c 61 uts "\t./transla
0d70: 74 65 20 5c 24 28 53 52 43 44 49 52 29 2f 24 73 te \$(SRCDIR)/$s
0d80: 2e 63 20 7c 20 73 65 64 20 2d 66 20 5c 24 28 53 .c | sed -f \$(S
0d90: 52 43 44 49 52 29 2f 56 45 52 53 49 4f 4e 20 3e RCDIR)/VERSION >
0da0: 24 7b 73 7d 5f 2e 63 5c 6e 22 0a 20 20 70 75 74 ${s}_.c\n". put
0db0: 73 20 22 24 73 2e 6f 3a 5c 74 24 7b 73 7d 5f 2e s "$s.o:\t${s}_.
0dc0: 63 20 24 73 2e 68 20 24 65 78 74 72 61 5f 68 28 c $s.h $extra_h(
0dd0: 24 73 29 20 5c 24 28 53 52 43 44 49 52 29 2f 63 $s) \$(SRCDIR)/c
0de0: 6f 6e 66 69 67 2e 68 22 0a 20 20 70 75 74 73 20 onfig.h". puts
0df0: 22 5c 74 5c 24 28 58 54 43 43 29 20 2d 6f 20 24 "\t\$(XTCC) -o $
0e00: 73 2e 6f 20 2d 63 20 24 7b 73 7d 5f 2e 63 5c 6e s.o -c ${s}_.c\n
0e10: 22 0a 20 20 70 75 74 73 20 22 24 73 2e 68 3a 5c ". puts "$s.h:\
0e20: 74 6d 61 6b 65 68 65 61 64 65 72 73 22 0a 20 20 tmakeheaders".
0e30: 70 75 74 73 20 22 5c 74 2e 2f 6d 61 6b 65 68 65 puts "\t./makehe
0e40: 61 64 65 72 73 20 24 6d 68 61 72 67 73 5c 6e 5c aders $mhargs\n\
0e50: 74 74 6f 75 63 68 20 68 65 61 64 65 72 73 5c 6e ttouch headers\n
0e60: 22 0a 7d 0a 0a 0a 70 75 74 73 20 22 73 71 6c 69 ".}...puts "sqli
0e70: 74 65 33 2e 6f 3a 5c 74 5c 24 28 53 52 43 44 49 te3.o:\t\$(SRCDI
0e80: 52 29 2f 73 71 6c 69 74 65 33 2e 63 22 0a 73 65 R)/sqlite3.c".se
0e90: 74 20 6f 70 74 20 7b 2d 44 53 51 4c 49 54 45 5f t opt {-DSQLITE_
0ea0: 4f 4d 49 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 OMIT_LOAD_EXTENS
0eb0: 49 4f 4e 3d 31 20 2d 44 53 51 4c 49 54 45 5f 50 ION=1 -DSQLITE_P
0ec0: 52 49 56 41 54 45 3d 7d 0a 61 70 70 65 6e 64 20 RIVATE=}.append
0ed0: 6f 70 74 20 22 20 2d 44 53 51 4c 49 54 45 5f 54 opt " -DSQLITE_T
0ee0: 48 52 45 41 44 53 41 46 45 3d 30 20 2d 44 53 51 HREADSAFE=0 -DSQ
0ef0: 4c 49 54 45 5f 44 45 46 41 55 4c 54 5f 46 49 4c LITE_DEFAULT_FIL
0f00: 45 5f 46 4f 52 4d 41 54 3d 34 22 0a 61 70 70 65 E_FORMAT=4".appe
0f10: 6e 64 20 6f 70 74 20 22 20 2d 44 53 51 4c 49 54 nd opt " -DSQLIT
0f20: 45 5f 45 4e 41 42 4c 45 5f 46 54 53 33 3d 31 22 E_ENABLE_FTS3=1"
0f30: 0a 70 75 74 73 20 22 5c 74 5c 24 28 58 54 43 43 .puts "\t\$(XTCC
0f40: 29 20 24 6f 70 74 20 2d 63 20 5c 24 28 53 52 43 ) $opt -c \$(SRC
0f50: 44 49 52 29 2f 73 71 6c 69 74 65 33 2e 63 20 2d DIR)/sqlite3.c -
0f60: 6f 20 73 71 6c 69 74 65 33 2e 6f 5c 6e 22 0a 0a o sqlite3.o\n"..
0f70: 70 75 74 73 20 22 74 68 2e 6f 3a 5c 74 5c 24 28 puts "th.o:\t\$(
0f80: 53 52 43 44 49 52 29 2f 74 68 2e 63 22 0a 70 75 SRCDIR)/th.c".pu
0f90: 74 73 20 22 5c 74 5c 24 28 58 54 43 43 29 20 2d ts "\t\$(XTCC) -
0fa0: 49 5c 24 28 53 52 43 44 49 52 29 20 2d 63 20 5c I\$(SRCDIR) -c \
0fb0: 24 28 53 52 43 44 49 52 29 2f 74 68 2e 63 20 2d $(SRCDIR)/th.c -
0fc0: 6f 20 74 68 2e 6f 5c 6e 22 0a 0a 70 75 74 73 20 o th.o\n"..puts
0fd0: 22 74 68 5f 6c 61 6e 67 2e 6f 3a 5c 74 5c 24 28 "th_lang.o:\t\$(
0fe0: 53 52 43 44 49 52 29 2f 74 68 5f 6c 61 6e 67 2e SRCDIR)/th_lang.
0ff0: 63 22 0a 70 75 74 73 20 22 5c 74 5c 24 28 58 54 c".puts "\t\$(XT
1000: 43 43 29 20 2d 49 5c 24 28 53 52 43 44 49 52 29 CC) -I\$(SRCDIR)
1010: 20 2d 63 20 5c 24 28 53 52 43 44 49 52 29 2f 74 -c \$(SRCDIR)/t
1020: 68 5f 6c 61 6e 67 2e 63 20 2d 6f 20 74 68 5f 6c h_lang.c -o th_l
1030: 61 6e 67 2e 6f 5c 6e 22 0a ang.o\n".