Hex Artifact Content
Not logged in

Artifact 4e54933e0f51f3aa8b30ab216c73af3d4665bce7:

File src/makemake.tcl part of check-in [a3e4a5d27d] - Add the tkt.c source file as an empty template. by drh on 2007-10-03 12:28:55.

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 3a  ll source files:
0070: 0a 23 0a 73 65 74 20 73 72 63 20 7b 0a 20 20 61  .#.set src {.  a
0080: 64 64 0a 20 20 62 61 67 0a 20 20 62 6c 6f 62 0a  dd.  bag.  blob.
0090: 20 20 62 72 61 6e 63 68 0a 20 20 63 67 69 0a 20    branch.  cgi. 
00a0: 20 63 68 65 63 6b 69 6e 0a 20 20 63 68 65 63 6b   checkin.  check
00b0: 6f 75 74 0a 20 20 63 6c 65 61 72 73 69 67 6e 0a  out.  clearsign.
00c0: 20 20 63 6c 6f 6e 65 0a 20 20 63 6f 6d 66 6f 72    clone.  comfor
00d0: 6d 61 74 0a 20 20 63 6f 6e 73 74 72 75 63 74 0a  mat.  construct.
00e0: 20 20 63 6f 6e 74 65 6e 74 0a 20 20 64 62 0a 20    content.  db. 
00f0: 20 64 65 6c 74 61 0a 20 20 64 65 6c 74 61 63 6d   delta.  deltacm
0100: 64 0a 20 20 64 65 73 63 65 6e 64 65 6e 74 73 0a  d.  descendents.
0110: 20 20 64 69 66 66 0a 20 20 64 69 66 66 63 6d 64    diff.  diffcmd
0120: 0a 20 20 65 6e 63 6f 64 65 0a 20 20 66 69 6c 65  .  encode.  file
0130: 0a 20 20 68 74 74 70 0a 20 20 69 6e 66 6f 0a 20  .  http.  info. 
0140: 20 6c 6f 67 69 6e 0a 20 20 6d 61 69 6e 0a 20 20   login.  main.  
0150: 6d 61 6e 69 66 65 73 74 0a 20 20 6d 64 35 0a 20  manifest.  md5. 
0160: 20 6d 65 72 67 65 0a 20 20 6d 65 72 67 65 33 0a   merge.  merge3.
0170: 20 20 6e 61 6d 65 0a 20 20 70 69 76 6f 74 0a 20    name.  pivot. 
0180: 20 70 71 75 65 75 65 0a 20 20 70 72 69 6e 74 66   pqueue.  printf
0190: 0a 20 20 72 65 62 75 69 6c 64 0a 20 20 72 73 73  .  rebuild.  rss
01a0: 0a 20 20 73 63 68 65 6d 61 0a 20 20 73 65 74 75  .  schema.  setu
01b0: 70 0a 20 20 73 68 61 31 0a 20 20 73 74 79 6c 65  p.  sha1.  style
01c0: 0a 20 20 73 79 6e 63 0a 20 20 74 61 67 0a 20 20  .  sync.  tag.  
01d0: 74 69 6d 65 6c 69 6e 65 0a 20 20 74 6b 74 0a 20  timeline.  tkt. 
01e0: 20 74 6b 74 63 6f 6e 66 0a 20 20 74 6b 74 73 65   tktconf.  tktse
01f0: 74 75 70 0a 20 20 75 6e 64 6f 0a 20 20 75 70 64  tup.  undo.  upd
0200: 61 74 65 0a 20 20 75 72 6c 0a 20 20 75 73 65 72  ate.  url.  user
0210: 0a 20 20 76 65 72 69 66 79 0a 20 20 76 66 69 6c  .  verify.  vfil
0220: 65 0a 20 20 77 69 6b 69 0a 20 20 77 69 6b 69 66  e.  wiki.  wikif
0230: 6f 72 6d 61 74 0a 20 20 78 66 65 72 0a 20 20 7a  ormat.  xfer.  z
0240: 69 70 0a 7d 0a 0a 23 20 4e 61 6d 65 20 6f 66 20  ip.}..# Name of 
0250: 74 68 65 20 66 69 6e 61 6c 20 61 70 70 6c 69 63  the final applic
0260: 61 74 69 6f 6e 0a 23 0a 73 65 74 20 6e 61 6d 65  ation.#.set name
0270: 20 66 6f 73 73 69 6c 0a 0a 70 75 74 73 20 7b 23   fossil..puts {#
0280: 20 44 4f 20 4e 4f 54 20 45 44 49 54 0a 23 0a 23   DO NOT EDIT.#.#
0290: 20 54 68 69 73 20 66 69 6c 65 20 69 73 20 61 75   This file is au
02a0: 74 6f 6d 61 74 69 63 61 6c 6c 79 20 67 65 6e 65  tomatically gene
02b0: 72 61 74 65 64 2e 20 20 49 6e 73 74 65 61 64 20  rated.  Instead 
02c0: 6f 66 20 65 64 69 74 69 6e 67 20 74 68 69 73 0a  of editing this.
02d0: 23 20 66 69 6c 65 2c 20 65 64 69 74 20 22 6d 61  # file, edit "ma
02e0: 6b 65 6d 61 6b 65 2e 74 63 6c 22 20 74 68 65 6e  kemake.tcl" then
02f0: 20 72 75 6e 20 22 74 63 6c 73 68 20 6d 61 6b 65   run "tclsh make
0300: 6d 61 6b 65 2e 74 63 6c 20 3e 6d 61 69 6e 2e 6d  make.tcl >main.m
0310: 6b 22 0a 23 20 74 6f 20 72 65 67 65 6e 65 72 61  k".# to regenera
0320: 74 65 20 74 68 69 73 20 66 69 6c 65 2e 0a 23 0a  te this file..#.
0330: 23 20 54 68 69 73 20 66 69 6c 65 20 69 73 20 69  # This file is i
0340: 6e 63 6c 75 64 65 64 20 62 79 20 6c 69 6e 75 78  ncluded by linux
0350: 2d 67 63 63 2e 6d 6b 20 6f 72 20 6c 69 6e 75 78  -gcc.mk or linux
0360: 2d 6d 69 6e 67 77 2e 6d 6b 20 6f 72 20 70 6f 73  -mingw.mk or pos
0370: 73 69 62 6c 65 0a 23 20 73 6f 6d 65 20 6f 74 68  sible.# some oth
0380: 65 72 20 6d 61 6b 65 66 69 6c 65 73 2e 20 20 54  er makefiles.  T
0390: 68 69 73 20 66 69 6c 65 20 63 6f 6e 74 61 69 6e  his file contain
03a0: 73 20 74 68 65 20 72 75 6c 65 73 20 74 68 61 74  s the rules that
03b0: 20 61 72 65 20 63 6f 6d 6d 6f 6e 0a 23 20 74 6f   are common.# to
03c0: 20 62 75 69 6c 64 69 6e 67 20 72 65 67 61 72 64   building regard
03d0: 6c 65 73 73 20 6f 66 20 74 68 65 20 74 61 72 67  less of the targ
03e0: 65 74 2e 0a 23 0a 0a 58 54 43 43 20 3d 20 24 28  et..#..XTCC = $(
03f0: 54 43 43 29 20 24 28 43 46 4c 41 47 53 29 20 2d  TCC) $(CFLAGS) -
0400: 49 2e 20 2d 49 24 28 53 52 43 44 49 52 29 0a 0a  I. -I$(SRCDIR)..
0410: 7d 0a 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e  }.puts -nonewlin
0420: 65 20 22 53 52 43 20 3d 22 0a 66 6f 72 65 61 63  e "SRC =".foreac
0430: 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d  h s [lsort $src]
0440: 20 7b 0a 20 20 70 75 74 73 20 2d 6e 6f 6e 65 77   {.  puts -nonew
0450: 6c 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 5c 24 28  line " \\\n  \$(
0460: 53 52 43 44 49 52 29 2f 24 73 2e 63 22 0a 7d 0a  SRCDIR)/$s.c".}.
0470: 70 75 74 73 20 22 5c 6e 22 0a 70 75 74 73 20 2d  puts "\n".puts -
0480: 6e 6f 6e 65 77 6c 69 6e 65 20 22 54 52 41 4e 53  nonewline "TRANS
0490: 5f 53 52 43 20 3d 22 0a 66 6f 72 65 61 63 68 20  _SRC =".foreach 
04a0: 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 7b  s [lsort $src] {
04b0: 0a 20 20 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69  .  puts -nonewli
04c0: 6e 65 20 22 20 5c 5c 5c 6e 20 20 24 7b 73 7d 5f  ne " \\\n  ${s}_
04d0: 2e 63 22 0a 7d 0a 70 75 74 73 20 22 5c 6e 22 0a  .c".}.puts "\n".
04e0: 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20  puts -nonewline 
04f0: 22 4f 42 4a 20 3d 22 0a 66 6f 72 65 61 63 68 20  "OBJ =".foreach 
0500: 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 7b  s [lsort $src] {
0510: 0a 20 20 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69  .  puts -nonewli
0520: 6e 65 20 22 20 5c 5c 5c 6e 20 20 24 73 2e 6f 22  ne " \\\n  $s.o"
0530: 0a 7d 0a 70 75 74 73 20 22 5c 6e 22 0a 70 75 74  .}.puts "\n".put
0540: 73 20 22 41 50 50 4e 41 4d 45 20 3d 20 24 6e 61  s "APPNAME = $na
0550: 6d 65 5c 24 28 45 29 22 0a 70 75 74 73 20 22 5c  me\$(E)".puts "\
0560: 6e 22 0a 0a 70 75 74 73 20 7b 0a 61 6c 6c 3a 09  n"..puts {.all:.
0570: 24 28 41 50 50 4e 41 4d 45 29 0a 0a 69 6e 73 74  $(APPNAME)..inst
0580: 61 6c 6c 3a 09 24 28 41 50 50 4e 41 4d 45 29 0a  all:.$(APPNAME).
0590: 09 6d 76 20 24 28 41 50 50 4e 41 4d 45 29 20 24  .mv $(APPNAME) $
05a0: 28 49 4e 53 54 41 4c 4c 44 49 52 29 0a 0a 74 72  (INSTALLDIR)..tr
05b0: 61 6e 73 6c 61 74 65 3a 09 24 28 53 52 43 44 49  anslate:.$(SRCDI
05c0: 52 29 2f 74 72 61 6e 73 6c 61 74 65 2e 63 0a 09  R)/translate.c..
05d0: 24 28 42 43 43 29 20 2d 6f 20 74 72 61 6e 73 6c  $(BCC) -o transl
05e0: 61 74 65 20 24 28 53 52 43 44 49 52 29 2f 74 72  ate $(SRCDIR)/tr
05f0: 61 6e 73 6c 61 74 65 2e 63 0a 0a 6d 61 6b 65 68  anslate.c..makeh
0600: 65 61 64 65 72 73 3a 09 24 28 53 52 43 44 49 52  eaders:.$(SRCDIR
0610: 29 2f 6d 61 6b 65 68 65 61 64 65 72 73 2e 63 0a  )/makeheaders.c.
0620: 09 24 28 42 43 43 29 20 2d 6f 20 6d 61 6b 65 68  .$(BCC) -o makeh
0630: 65 61 64 65 72 73 20 24 28 53 52 43 44 49 52 29  eaders $(SRCDIR)
0640: 2f 6d 61 6b 65 68 65 61 64 65 72 73 2e 63 0a 0a  /makeheaders.c..
0650: 6d 6b 69 6e 64 65 78 3a 09 24 28 53 52 43 44 49  mkindex:.$(SRCDI
0660: 52 29 2f 6d 6b 69 6e 64 65 78 2e 63 0a 09 24 28  R)/mkindex.c..$(
0670: 42 43 43 29 20 2d 6f 20 6d 6b 69 6e 64 65 78 20  BCC) -o mkindex 
0680: 24 28 53 52 43 44 49 52 29 2f 6d 6b 69 6e 64 65  $(SRCDIR)/mkinde
0690: 78 2e 63 0a 0a 23 20 57 41 52 4e 49 4e 47 2e 20  x.c..# WARNING. 
06a0: 44 41 4e 47 45 52 2e 20 52 75 6e 6e 69 6e 67 20  DANGER. Running 
06b0: 74 68 65 20 74 65 73 74 73 75 69 74 65 20 6d 6f  the testsuite mo
06c0: 64 69 66 69 65 73 20 74 68 65 20 72 65 70 6f 73  difies the repos
06d0: 69 74 6f 72 79 20 74 68 65 0a 23 20 62 75 69 6c  itory the.# buil
06e0: 64 20 69 73 20 64 6f 6e 65 20 66 72 6f 6d 2c 20  d is done from, 
06f0: 69 2e 65 2e 20 74 68 65 20 63 68 65 63 6b 6f 75  i.e. the checkou
0700: 74 20 62 65 6c 6f 6e 67 73 20 74 6f 2e 20 44 6f  t belongs to. Do
0710: 20 6e 6f 74 20 73 79 6e 63 2f 70 75 73 68 0a 23   not sync/push.#
0720: 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79 20   the repository 
0730: 61 66 74 65 72 20 72 75 6e 6e 69 6e 67 20 74 68  after running th
0740: 65 20 74 65 73 74 73 2e 0a 74 65 73 74 3a 09 24  e tests..test:.$
0750: 28 41 50 50 4e 41 4d 45 29 0a 09 24 28 54 43 4c  (APPNAME)..$(TCL
0760: 53 48 29 20 74 65 73 74 2f 74 65 73 74 65 72 2e  SH) test/tester.
0770: 74 63 6c 20 24 28 41 50 50 4e 41 4d 45 29 0a 0a  tcl $(APPNAME)..
0780: 56 45 52 53 49 4f 4e 2e 68 3a 09 24 28 53 52 43  VERSION.h:.$(SRC
0790: 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74  DIR)/../manifest
07a0: 2e 75 75 69 64 20 24 28 53 52 43 44 49 52 29 2f  .uuid $(SRCDIR)/
07b0: 2e 2e 2f 6d 61 6e 69 66 65 73 74 0a 09 61 77 6b  ../manifest..awk
07c0: 20 27 7b 20 70 72 69 6e 74 66 20 22 23 64 65 66   '{ printf "#def
07d0: 69 6e 65 20 4d 41 4e 49 46 45 53 54 5f 55 55 49  ine MANIFEST_UUI
07e0: 44 20 5c 22 25 73 5c 22 5c 6e 22 2c 20 24 24 31  D \"%s\"\n", $$1
07f0: 7d 27 20 5c 0a 09 09 24 28 53 52 43 44 49 52 29  }' \...$(SRCDIR)
0800: 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 2e 75 75 69  /../manifest.uui
0810: 64 20 3e 56 45 52 53 49 4f 4e 2e 68 0a 09 61 77  d >VERSION.h..aw
0820: 6b 20 27 7b 20 70 72 69 6e 74 66 20 22 23 64 65  k '{ printf "#de
0830: 66 69 6e 65 20 4d 41 4e 49 46 45 53 54 5f 56 45  fine MANIFEST_VE
0840: 52 53 49 4f 4e 20 5c 22 5b 25 2e 31 30 73 5d 5c  RSION \"[%.10s]\
0850: 22 5c 6e 22 2c 20 24 24 31 7d 27 20 5c 0a 09 09  "\n", $$1}' \...
0860: 24 28 53 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e  $(SRCDIR)/../man
0870: 69 66 65 73 74 2e 75 75 69 64 20 3e 3e 56 45 52  ifest.uuid >>VER
0880: 53 49 4f 4e 2e 68 0a 09 61 77 6b 20 27 24 24 31  SION.h..awk '$$1
0890: 3d 3d 22 44 22 7b 70 72 69 6e 74 66 20 22 23 64  =="D"{printf "#d
08a0: 65 66 69 6e 65 20 4d 41 4e 49 46 45 53 54 5f 44  efine MANIFEST_D
08b0: 41 54 45 20 5c 22 25 73 20 25 73 5c 22 5c 6e 22  ATE \"%s %s\"\n"
08c0: 2c 5c 0a 09 09 73 75 62 73 74 72 28 24 24 32 2c  ,\...substr($$2,
08d0: 31 2c 31 30 29 2c 73 75 62 73 74 72 28 24 24 32  1,10),substr($$2
08e0: 2c 31 32 29 7d 27 20 5c 0a 09 09 24 28 53 52 43  ,12)}' \...$(SRC
08f0: 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74  DIR)/../manifest
0900: 20 3e 3e 56 45 52 53 49 4f 4e 2e 68 0a 0a 24 28   >>VERSION.h..$(
0910: 41 50 50 4e 41 4d 45 29 3a 09 68 65 61 64 65 72  APPNAME):.header
0920: 73 20 24 28 4f 42 4a 29 20 73 71 6c 69 74 65 33  s $(OBJ) sqlite3
0930: 2e 6f 0a 09 24 28 54 43 43 29 20 2d 6f 20 24 28  .o..$(TCC) -o $(
0940: 41 50 50 4e 41 4d 45 29 20 24 28 4f 42 4a 29 20  APPNAME) $(OBJ) 
0950: 73 71 6c 69 74 65 33 2e 6f 20 24 28 4c 49 42 29  sqlite3.o $(LIB)
0960: 0a 0a 63 6c 65 61 6e 3a 09 0a 09 72 6d 20 2d 66  ..clean:...rm -f
0970: 20 2a 2e 6f 20 2a 5f 2e 63 20 24 28 41 50 50 4e   *.o *_.c $(APPN
0980: 41 4d 45 29 20 56 45 52 53 49 4f 4e 2e 68 0a 09  AME) VERSION.h..
0990: 72 6d 20 2d 66 20 74 72 61 6e 73 6c 61 74 65 20  rm -f translate 
09a0: 6d 61 6b 65 68 65 61 64 65 72 73 20 6d 6b 69 6e  makeheaders mkin
09b0: 64 65 78 20 70 61 67 65 5f 69 6e 64 65 78 2e 68  dex page_index.h
09c0: 20 68 65 61 64 65 72 73 7d 0a 0a 73 65 74 20 68   headers}..set h
09d0: 66 69 6c 65 73 20 7b 7d 0a 66 6f 72 65 61 63 68  files {}.foreach
09e0: 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20   s [lsort $src] 
09f0: 7b 6c 61 70 70 65 6e 64 20 68 66 69 6c 65 73 20  {lappend hfiles 
0a00: 24 73 2e 68 7d 0a 70 75 74 73 20 22 5c 74 72 6d  $s.h}.puts "\trm
0a10: 20 2d 66 20 24 68 66 69 6c 65 73 5c 6e 22 0a 0a   -f $hfiles\n"..
0a20: 73 65 74 20 6d 68 61 72 67 73 20 7b 7d 0a 66 6f  set mhargs {}.fo
0a30: 72 65 61 63 68 20 73 20 5b 6c 73 6f 72 74 20 24  reach s [lsort $
0a40: 73 72 63 5d 20 7b 0a 20 20 61 70 70 65 6e 64 20  src] {.  append 
0a50: 6d 68 61 72 67 73 20 22 20 24 7b 73 7d 5f 2e 63  mhargs " ${s}_.c
0a60: 3a 24 73 2e 68 22 0a 20 20 73 65 74 20 65 78 74  :$s.h".  set ext
0a70: 72 61 5f 68 28 24 73 29 20 7b 7d 0a 7d 0a 61 70  ra_h($s) {}.}.ap
0a80: 70 65 6e 64 20 6d 68 61 72 67 73 20 22 20 5c 24  pend mhargs " \$
0a90: 28 53 52 43 44 49 52 29 2f 73 71 6c 69 74 65 33  (SRCDIR)/sqlite3
0aa0: 2e 68 20 2e 2f 56 45 52 53 49 4f 4e 2e 68 22 0a  .h ./VERSION.h".
0ab0: 70 75 74 73 20 22 68 65 61 64 65 72 73 3a 5c 74  puts "headers:\t
0ac0: 6d 61 6b 65 68 65 61 64 65 72 73 20 6d 6b 69 6e  makeheaders mkin
0ad0: 64 65 78 20 5c 24 28 54 52 41 4e 53 5f 53 52 43  dex \$(TRANS_SRC
0ae0: 29 20 2e 2f 56 45 52 53 49 4f 4e 2e 68 22 0a 70  ) ./VERSION.h".p
0af0: 75 74 73 20 22 5c 74 2e 2f 6d 61 6b 65 68 65 61  uts "\t./makehea
0b00: 64 65 72 73 20 24 6d 68 61 72 67 73 22 0a 70 75  ders $mhargs".pu
0b10: 74 73 20 22 5c 74 2e 2f 6d 6b 69 6e 64 65 78 20  ts "\t./mkindex 
0b20: 5c 24 28 54 52 41 4e 53 5f 53 52 43 29 20 3e 70  \$(TRANS_SRC) >p
0b30: 61 67 65 5f 69 6e 64 65 78 2e 68 22 0a 70 75 74  age_index.h".put
0b40: 73 20 22 5c 74 74 6f 75 63 68 20 68 65 61 64 65  s "\ttouch heade
0b50: 72 73 5c 6e 22 0a 73 65 74 20 65 78 74 72 61 5f  rs\n".set extra_
0b60: 68 28 6d 61 69 6e 29 20 70 61 67 65 5f 69 6e 64  h(main) page_ind
0b70: 65 78 2e 68 0a 0a 66 6f 72 65 61 63 68 20 73 20  ex.h..foreach s 
0b80: 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 7b 0a 20  [lsort $src] {. 
0b90: 20 70 75 74 73 20 22 24 7b 73 7d 5f 2e 63 3a 5c   puts "${s}_.c:\
0ba0: 74 5c 24 28 53 52 43 44 49 52 29 2f 24 73 2e 63  t\$(SRCDIR)/$s.c
0bb0: 20 5c 24 28 53 52 43 44 49 52 29 2f 56 45 52 53   \$(SRCDIR)/VERS
0bc0: 49 4f 4e 20 74 72 61 6e 73 6c 61 74 65 22 0a 20  ION translate". 
0bd0: 20 70 75 74 73 20 22 5c 74 2e 2f 74 72 61 6e 73   puts "\t./trans
0be0: 6c 61 74 65 20 5c 24 28 53 52 43 44 49 52 29 2f  late \$(SRCDIR)/
0bf0: 24 73 2e 63 20 7c 20 73 65 64 20 2d 66 20 5c 24  $s.c | sed -f \$
0c00: 28 53 52 43 44 49 52 29 2f 56 45 52 53 49 4f 4e  (SRCDIR)/VERSION
0c10: 20 3e 24 7b 73 7d 5f 2e 63 5c 6e 22 0a 20 20 70   >${s}_.c\n".  p
0c20: 75 74 73 20 22 24 73 2e 6f 3a 5c 74 24 7b 73 7d  uts "$s.o:\t${s}
0c30: 5f 2e 63 20 24 73 2e 68 20 24 65 78 74 72 61 5f  _.c $s.h $extra_
0c40: 68 28 24 73 29 20 5c 24 28 53 52 43 44 49 52 29  h($s) \$(SRCDIR)
0c50: 2f 63 6f 6e 66 69 67 2e 68 22 0a 20 20 70 75 74  /config.h".  put
0c60: 73 20 22 5c 74 5c 24 28 58 54 43 43 29 20 2d 6f  s "\t\$(XTCC) -o
0c70: 20 24 73 2e 6f 20 2d 63 20 24 7b 73 7d 5f 2e 63   $s.o -c ${s}_.c
0c80: 5c 6e 22 0a 20 20 70 75 74 73 20 22 24 73 2e 68  \n".  puts "$s.h
0c90: 3a 5c 74 6d 61 6b 65 68 65 61 64 65 72 73 22 0a  :\tmakeheaders".
0ca0: 20 20 70 75 74 73 20 22 5c 74 2e 2f 6d 61 6b 65    puts "\t./make
0cb0: 68 65 61 64 65 72 73 20 24 6d 68 61 72 67 73 5c  headers $mhargs\
0cc0: 6e 5c 74 74 6f 75 63 68 20 68 65 61 64 65 72 73  n\ttouch headers
0cd0: 5c 6e 22 0a 7d 0a 0a 0a 70 75 74 73 20 22 73 71  \n".}...puts "sq
0ce0: 6c 69 74 65 33 2e 6f 3a 5c 74 5c 24 28 53 52 43  lite3.o:\t\$(SRC
0cf0: 44 49 52 29 2f 73 71 6c 69 74 65 33 2e 63 22 0a  DIR)/sqlite3.c".
0d00: 73 65 74 20 6f 70 74 20 7b 2d 44 53 51 4c 49 54  set opt {-DSQLIT
0d10: 45 5f 4f 4d 49 54 5f 4c 4f 41 44 5f 45 58 54 45  E_OMIT_LOAD_EXTE
0d20: 4e 53 49 4f 4e 3d 31 20 2d 44 53 51 4c 49 54 45  NSION=1 -DSQLITE
0d30: 5f 50 52 49 56 41 54 45 3d 7d 0a 61 70 70 65 6e  _PRIVATE=}.appen
0d40: 64 20 6f 70 74 20 22 20 2d 44 54 48 52 45 41 44  d opt " -DTHREAD
0d50: 53 41 46 45 3d 30 20 2d 44 53 51 4c 49 54 45 5f  SAFE=0 -DSQLITE_
0d60: 44 45 46 41 55 4c 54 5f 46 49 4c 45 5f 46 4f 52  DEFAULT_FILE_FOR
0d70: 4d 41 54 3d 34 22 0a 70 75 74 73 20 22 5c 74 5c  MAT=4".puts "\t\
0d80: 24 28 58 54 43 43 29 20 24 6f 70 74 20 2d 63 20  $(XTCC) $opt -c 
0d90: 5c 24 28 53 52 43 44 49 52 29 2f 73 71 6c 69 74  \$(SRCDIR)/sqlit
0da0: 65 33 2e 63 20 2d 6f 20 73 71 6c 69 74 65 33 2e  e3.c -o sqlite3.
0db0: 6f 5c 6e 22 0a                                   o\n".