Hex Artifact Content
Not logged in

Artifact 49df4f8e4481cb1090d87ead5d10445c98f66dfc:

File src/makemake.tcl part of check-in [6458f020fc] - Change the spelling of "descendant" to use the -ant suffix everywhere, including in the filename "descendant.c". The adjective form can be spelled either -ant or -ent, but the noun form requires -ant, or so says American Heritage. by drh on 2008-05-14 02:03:45.

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