Artifact 58cb9ba8de83ee54c3a6e9e360f9734ea368128f:
File
src/makemake.tcl
part of check-in
[8ef26c5e72]
- Subscript interpreter is now running.
by
drh on
2007-11-03 04:01: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 75 62 73 63 72 69 70 74 0a 20 20 73 . subscript. s
01d0: 79 6e 63 0a 20 20 74 61 67 0a 20 20 74 69 6d 65 ync. tag. time
01e0: 6c 69 6e 65 0a 20 20 74 6b 74 0a 20 20 74 6b 74 line. tkt. tkt
01f0: 63 6f 6e 66 0a 20 20 74 6b 74 73 65 74 75 70 0a conf. tktsetup.
0200: 20 20 75 6e 64 6f 0a 20 20 75 70 64 61 74 65 0a undo. update.
0210: 20 20 75 72 6c 0a 20 20 75 73 65 72 0a 20 20 76 url. user. v
0220: 65 72 69 66 79 0a 20 20 76 66 69 6c 65 0a 20 20 erify. vfile.
0230: 77 69 6b 69 0a 20 20 77 69 6b 69 66 6f 72 6d 61 wiki. wikiforma
0240: 74 0a 20 20 78 66 65 72 0a 20 20 7a 69 70 0a 7d t. xfer. zip.}
0250: 0a 0a 23 20 4e 61 6d 65 20 6f 66 20 74 68 65 20 ..# Name of the
0260: 66 69 6e 61 6c 20 61 70 70 6c 69 63 61 74 69 6f final applicatio
0270: 6e 0a 23 0a 73 65 74 20 6e 61 6d 65 20 66 6f 73 n.#.set name fos
0280: 73 69 6c 0a 0a 70 75 74 73 20 7b 23 20 44 4f 20 sil..puts {# DO
0290: 4e 4f 54 20 45 44 49 54 0a 23 0a 23 20 54 68 69 NOT EDIT.#.# Thi
02a0: 73 20 66 69 6c 65 20 69 73 20 61 75 74 6f 6d 61 s file is automa
02b0: 74 69 63 61 6c 6c 79 20 67 65 6e 65 72 61 74 65 tically generate
02c0: 64 2e 20 20 49 6e 73 74 65 61 64 20 6f 66 20 65 d. Instead of e
02d0: 64 69 74 69 6e 67 20 74 68 69 73 0a 23 20 66 69 diting this.# fi
02e0: 6c 65 2c 20 65 64 69 74 20 22 6d 61 6b 65 6d 61 le, edit "makema
02f0: 6b 65 2e 74 63 6c 22 20 74 68 65 6e 20 72 75 6e ke.tcl" then run
0300: 20 22 74 63 6c 73 68 20 6d 61 6b 65 6d 61 6b 65 "tclsh makemake
0310: 2e 74 63 6c 20 3e 6d 61 69 6e 2e 6d 6b 22 0a 23 .tcl >main.mk".#
0320: 20 74 6f 20 72 65 67 65 6e 65 72 61 74 65 20 74 to regenerate t
0330: 68 69 73 20 66 69 6c 65 2e 0a 23 0a 23 20 54 68 his file..#.# Th
0340: 69 73 20 66 69 6c 65 20 69 73 20 69 6e 63 6c 75 is file is inclu
0350: 64 65 64 20 62 79 20 6c 69 6e 75 78 2d 67 63 63 ded by linux-gcc
0360: 2e 6d 6b 20 6f 72 20 6c 69 6e 75 78 2d 6d 69 6e .mk or linux-min
0370: 67 77 2e 6d 6b 20 6f 72 20 70 6f 73 73 69 62 6c gw.mk or possibl
0380: 65 0a 23 20 73 6f 6d 65 20 6f 74 68 65 72 20 6d e.# some other m
0390: 61 6b 65 66 69 6c 65 73 2e 20 20 54 68 69 73 20 akefiles. This
03a0: 66 69 6c 65 20 63 6f 6e 74 61 69 6e 73 20 74 68 file contains th
03b0: 65 20 72 75 6c 65 73 20 74 68 61 74 20 61 72 65 e rules that are
03c0: 20 63 6f 6d 6d 6f 6e 0a 23 20 74 6f 20 62 75 69 common.# to bui
03d0: 6c 64 69 6e 67 20 72 65 67 61 72 64 6c 65 73 73 lding regardless
03e0: 20 6f 66 20 74 68 65 20 74 61 72 67 65 74 2e 0a of the target..
03f0: 23 0a 0a 58 54 43 43 20 3d 20 24 28 54 43 43 29 #..XTCC = $(TCC)
0400: 20 24 28 43 46 4c 41 47 53 29 20 2d 49 2e 20 2d $(CFLAGS) -I. -
0410: 49 24 28 53 52 43 44 49 52 29 0a 0a 7d 0a 70 75 I$(SRCDIR)..}.pu
0420: 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20 22 53 ts -nonewline "S
0430: 52 43 20 3d 22 0a 66 6f 72 65 61 63 68 20 73 20 RC =".foreach s
0440: 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 7b 0a 20 [lsort $src] {.
0450: 20 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e 65 puts -nonewline
0460: 20 22 20 5c 5c 5c 6e 20 20 5c 24 28 53 52 43 44 " \\\n \$(SRCD
0470: 49 52 29 2f 24 73 2e 63 22 0a 7d 0a 70 75 74 73 IR)/$s.c".}.puts
0480: 20 22 5c 6e 22 0a 70 75 74 73 20 2d 6e 6f 6e 65 "\n".puts -none
0490: 77 6c 69 6e 65 20 22 54 52 41 4e 53 5f 53 52 43 wline "TRANS_SRC
04a0: 20 3d 22 0a 66 6f 72 65 61 63 68 20 73 20 5b 6c =".foreach s [l
04b0: 73 6f 72 74 20 24 73 72 63 5d 20 7b 0a 20 20 70 sort $src] {. p
04c0: 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20 22 uts -nonewline "
04d0: 20 5c 5c 5c 6e 20 20 24 7b 73 7d 5f 2e 63 22 0a \\\n ${s}_.c".
04e0: 7d 0a 70 75 74 73 20 22 5c 6e 22 0a 70 75 74 73 }.puts "\n".puts
04f0: 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20 22 4f 42 4a -nonewline "OBJ
0500: 20 3d 22 0a 66 6f 72 65 61 63 68 20 73 20 5b 6c =".foreach s [l
0510: 73 6f 72 74 20 24 73 72 63 5d 20 7b 0a 20 20 70 sort $src] {. p
0520: 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20 22 uts -nonewline "
0530: 20 5c 5c 5c 6e 20 20 24 73 2e 6f 22 0a 7d 0a 70 \\\n $s.o".}.p
0540: 75 74 73 20 22 5c 6e 22 0a 70 75 74 73 20 22 41 uts "\n".puts "A
0550: 50 50 4e 41 4d 45 20 3d 20 24 6e 61 6d 65 5c 24 PPNAME = $name\$
0560: 28 45 29 22 0a 70 75 74 73 20 22 5c 6e 22 0a 0a (E)".puts "\n"..
0570: 70 75 74 73 20 7b 0a 61 6c 6c 3a 09 24 28 41 50 puts {.all:.$(AP
0580: 50 4e 41 4d 45 29 0a 0a 69 6e 73 74 61 6c 6c 3a PNAME)..install:
0590: 09 24 28 41 50 50 4e 41 4d 45 29 0a 09 6d 76 20 .$(APPNAME)..mv
05a0: 24 28 41 50 50 4e 41 4d 45 29 20 24 28 49 4e 53 $(APPNAME) $(INS
05b0: 54 41 4c 4c 44 49 52 29 0a 0a 74 72 61 6e 73 6c TALLDIR)..transl
05c0: 61 74 65 3a 09 24 28 53 52 43 44 49 52 29 2f 74 ate:.$(SRCDIR)/t
05d0: 72 61 6e 73 6c 61 74 65 2e 63 0a 09 24 28 42 43 ranslate.c..$(BC
05e0: 43 29 20 2d 6f 20 74 72 61 6e 73 6c 61 74 65 20 C) -o translate
05f0: 24 28 53 52 43 44 49 52 29 2f 74 72 61 6e 73 6c $(SRCDIR)/transl
0600: 61 74 65 2e 63 0a 0a 6d 61 6b 65 68 65 61 64 65 ate.c..makeheade
0610: 72 73 3a 09 24 28 53 52 43 44 49 52 29 2f 6d 61 rs:.$(SRCDIR)/ma
0620: 6b 65 68 65 61 64 65 72 73 2e 63 0a 09 24 28 42 keheaders.c..$(B
0630: 43 43 29 20 2d 6f 20 6d 61 6b 65 68 65 61 64 65 CC) -o makeheade
0640: 72 73 20 24 28 53 52 43 44 49 52 29 2f 6d 61 6b rs $(SRCDIR)/mak
0650: 65 68 65 61 64 65 72 73 2e 63 0a 0a 6d 6b 69 6e eheaders.c..mkin
0660: 64 65 78 3a 09 24 28 53 52 43 44 49 52 29 2f 6d dex:.$(SRCDIR)/m
0670: 6b 69 6e 64 65 78 2e 63 0a 09 24 28 42 43 43 29 kindex.c..$(BCC)
0680: 20 2d 6f 20 6d 6b 69 6e 64 65 78 20 24 28 53 52 -o mkindex $(SR
0690: 43 44 49 52 29 2f 6d 6b 69 6e 64 65 78 2e 63 0a CDIR)/mkindex.c.
06a0: 0a 23 20 57 41 52 4e 49 4e 47 2e 20 44 41 4e 47 .# WARNING. DANG
06b0: 45 52 2e 20 52 75 6e 6e 69 6e 67 20 74 68 65 20 ER. Running the
06c0: 74 65 73 74 73 75 69 74 65 20 6d 6f 64 69 66 69 testsuite modifi
06d0: 65 73 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 es the repositor
06e0: 79 20 74 68 65 0a 23 20 62 75 69 6c 64 20 69 73 y the.# build is
06f0: 20 64 6f 6e 65 20 66 72 6f 6d 2c 20 69 2e 65 2e done from, i.e.
0700: 20 74 68 65 20 63 68 65 63 6b 6f 75 74 20 62 65 the checkout be
0710: 6c 6f 6e 67 73 20 74 6f 2e 20 44 6f 20 6e 6f 74 longs to. Do not
0720: 20 73 79 6e 63 2f 70 75 73 68 0a 23 20 74 68 65 sync/push.# the
0730: 20 72 65 70 6f 73 69 74 6f 72 79 20 61 66 74 65 repository afte
0740: 72 20 72 75 6e 6e 69 6e 67 20 74 68 65 20 74 65 r running the te
0750: 73 74 73 2e 0a 74 65 73 74 3a 09 24 28 41 50 50 sts..test:.$(APP
0760: 4e 41 4d 45 29 0a 09 24 28 54 43 4c 53 48 29 20 NAME)..$(TCLSH)
0770: 74 65 73 74 2f 74 65 73 74 65 72 2e 74 63 6c 20 test/tester.tcl
0780: 24 28 41 50 50 4e 41 4d 45 29 0a 0a 56 45 52 53 $(APPNAME)..VERS
0790: 49 4f 4e 2e 68 3a 09 24 28 53 52 43 44 49 52 29 ION.h:.$(SRCDIR)
07a0: 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 2e 75 75 69 /../manifest.uui
07b0: 64 20 24 28 53 52 43 44 49 52 29 2f 2e 2e 2f 6d d $(SRCDIR)/../m
07c0: 61 6e 69 66 65 73 74 0a 09 61 77 6b 20 27 7b 20 anifest..awk '{
07d0: 70 72 69 6e 74 66 20 22 23 64 65 66 69 6e 65 20 printf "#define
07e0: 4d 41 4e 49 46 45 53 54 5f 55 55 49 44 20 5c 22 MANIFEST_UUID \"
07f0: 25 73 5c 22 5c 6e 22 2c 20 24 24 31 7d 27 20 5c %s\"\n", $$1}' \
0800: 0a 09 09 24 28 53 52 43 44 49 52 29 2f 2e 2e 2f ...$(SRCDIR)/../
0810: 6d 61 6e 69 66 65 73 74 2e 75 75 69 64 20 3e 56 manifest.uuid >V
0820: 45 52 53 49 4f 4e 2e 68 0a 09 61 77 6b 20 27 7b ERSION.h..awk '{
0830: 20 70 72 69 6e 74 66 20 22 23 64 65 66 69 6e 65 printf "#define
0840: 20 4d 41 4e 49 46 45 53 54 5f 56 45 52 53 49 4f MANIFEST_VERSIO
0850: 4e 20 5c 22 5b 25 2e 31 30 73 5d 5c 22 5c 6e 22 N \"[%.10s]\"\n"
0860: 2c 20 24 24 31 7d 27 20 5c 0a 09 09 24 28 53 52 , $$1}' \...$(SR
0870: 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 CDIR)/../manifes
0880: 74 2e 75 75 69 64 20 3e 3e 56 45 52 53 49 4f 4e t.uuid >>VERSION
0890: 2e 68 0a 09 61 77 6b 20 27 24 24 31 3d 3d 22 44 .h..awk '$$1=="D
08a0: 22 7b 70 72 69 6e 74 66 20 22 23 64 65 66 69 6e "{printf "#defin
08b0: 65 20 4d 41 4e 49 46 45 53 54 5f 44 41 54 45 20 e MANIFEST_DATE
08c0: 5c 22 25 73 20 25 73 5c 22 5c 6e 22 2c 5c 0a 09 \"%s %s\"\n",\..
08d0: 09 73 75 62 73 74 72 28 24 24 32 2c 31 2c 31 30 .substr($$2,1,10
08e0: 29 2c 73 75 62 73 74 72 28 24 24 32 2c 31 32 29 ),substr($$2,12)
08f0: 7d 27 20 5c 0a 09 09 24 28 53 52 43 44 49 52 29 }' \...$(SRCDIR)
0900: 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 20 3e 3e 56 /../manifest >>V
0910: 45 52 53 49 4f 4e 2e 68 0a 0a 24 28 41 50 50 4e ERSION.h..$(APPN
0920: 41 4d 45 29 3a 09 68 65 61 64 65 72 73 20 24 28 AME):.headers $(
0930: 4f 42 4a 29 20 73 71 6c 69 74 65 33 2e 6f 0a 09 OBJ) sqlite3.o..
0940: 24 28 54 43 43 29 20 2d 6f 20 24 28 41 50 50 4e $(TCC) -o $(APPN
0950: 41 4d 45 29 20 24 28 4f 42 4a 29 20 73 71 6c 69 AME) $(OBJ) sqli
0960: 74 65 33 2e 6f 20 24 28 4c 49 42 29 0a 0a 63 6c te3.o $(LIB)..cl
0970: 65 61 6e 3a 09 0a 09 72 6d 20 2d 66 20 2a 2e 6f ean:...rm -f *.o
0980: 20 2a 5f 2e 63 20 24 28 41 50 50 4e 41 4d 45 29 *_.c $(APPNAME)
0990: 20 56 45 52 53 49 4f 4e 2e 68 0a 09 72 6d 20 2d VERSION.h..rm -
09a0: 66 20 74 72 61 6e 73 6c 61 74 65 20 6d 61 6b 65 f translate make
09b0: 68 65 61 64 65 72 73 20 6d 6b 69 6e 64 65 78 20 headers mkindex
09c0: 70 61 67 65 5f 69 6e 64 65 78 2e 68 20 68 65 61 page_index.h hea
09d0: 64 65 72 73 7d 0a 0a 73 65 74 20 68 66 69 6c 65 ders}..set hfile
09e0: 73 20 7b 7d 0a 66 6f 72 65 61 63 68 20 73 20 5b s {}.foreach s [
09f0: 6c 73 6f 72 74 20 24 73 72 63 5d 20 7b 6c 61 70 lsort $src] {lap
0a00: 70 65 6e 64 20 68 66 69 6c 65 73 20 24 73 2e 68 pend hfiles $s.h
0a10: 7d 0a 70 75 74 73 20 22 5c 74 72 6d 20 2d 66 20 }.puts "\trm -f
0a20: 24 68 66 69 6c 65 73 5c 6e 22 0a 0a 73 65 74 20 $hfiles\n"..set
0a30: 6d 68 61 72 67 73 20 7b 7d 0a 66 6f 72 65 61 63 mhargs {}.foreac
0a40: 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d h s [lsort $src]
0a50: 20 7b 0a 20 20 61 70 70 65 6e 64 20 6d 68 61 72 {. append mhar
0a60: 67 73 20 22 20 24 7b 73 7d 5f 2e 63 3a 24 73 2e gs " ${s}_.c:$s.
0a70: 68 22 0a 20 20 73 65 74 20 65 78 74 72 61 5f 68 h". set extra_h
0a80: 28 24 73 29 20 7b 7d 0a 7d 0a 61 70 70 65 6e 64 ($s) {}.}.append
0a90: 20 6d 68 61 72 67 73 20 22 20 5c 24 28 53 52 43 mhargs " \$(SRC
0aa0: 44 49 52 29 2f 73 71 6c 69 74 65 33 2e 68 20 2e DIR)/sqlite3.h .
0ab0: 2f 56 45 52 53 49 4f 4e 2e 68 22 0a 70 75 74 73 /VERSION.h".puts
0ac0: 20 22 68 65 61 64 65 72 73 3a 5c 74 6d 61 6b 65 "headers:\tmake
0ad0: 68 65 61 64 65 72 73 20 6d 6b 69 6e 64 65 78 20 headers mkindex
0ae0: 5c 24 28 54 52 41 4e 53 5f 53 52 43 29 20 2e 2f \$(TRANS_SRC) ./
0af0: 56 45 52 53 49 4f 4e 2e 68 22 0a 70 75 74 73 20 VERSION.h".puts
0b00: 22 5c 74 2e 2f 6d 61 6b 65 68 65 61 64 65 72 73 "\t./makeheaders
0b10: 20 24 6d 68 61 72 67 73 22 0a 70 75 74 73 20 22 $mhargs".puts "
0b20: 5c 74 2e 2f 6d 6b 69 6e 64 65 78 20 5c 24 28 54 \t./mkindex \$(T
0b30: 52 41 4e 53 5f 53 52 43 29 20 3e 70 61 67 65 5f RANS_SRC) >page_
0b40: 69 6e 64 65 78 2e 68 22 0a 70 75 74 73 20 22 5c index.h".puts "\
0b50: 74 74 6f 75 63 68 20 68 65 61 64 65 72 73 5c 6e ttouch headers\n
0b60: 22 0a 73 65 74 20 65 78 74 72 61 5f 68 28 6d 61 ".set extra_h(ma
0b70: 69 6e 29 20 70 61 67 65 5f 69 6e 64 65 78 2e 68 in) page_index.h
0b80: 0a 0a 66 6f 72 65 61 63 68 20 73 20 5b 6c 73 6f ..foreach s [lso
0b90: 72 74 20 24 73 72 63 5d 20 7b 0a 20 20 70 75 74 rt $src] {. put
0ba0: 73 20 22 24 7b 73 7d 5f 2e 63 3a 5c 74 5c 24 28 s "${s}_.c:\t\$(
0bb0: 53 52 43 44 49 52 29 2f 24 73 2e 63 20 5c 24 28 SRCDIR)/$s.c \$(
0bc0: 53 52 43 44 49 52 29 2f 56 45 52 53 49 4f 4e 20 SRCDIR)/VERSION
0bd0: 74 72 61 6e 73 6c 61 74 65 22 0a 20 20 70 75 74 translate". put
0be0: 73 20 22 5c 74 2e 2f 74 72 61 6e 73 6c 61 74 65 s "\t./translate
0bf0: 20 5c 24 28 53 52 43 44 49 52 29 2f 24 73 2e 63 \$(SRCDIR)/$s.c
0c00: 20 7c 20 73 65 64 20 2d 66 20 5c 24 28 53 52 43 | sed -f \$(SRC
0c10: 44 49 52 29 2f 56 45 52 53 49 4f 4e 20 3e 24 7b DIR)/VERSION >${
0c20: 73 7d 5f 2e 63 5c 6e 22 0a 20 20 70 75 74 73 20 s}_.c\n". puts
0c30: 22 24 73 2e 6f 3a 5c 74 24 7b 73 7d 5f 2e 63 20 "$s.o:\t${s}_.c
0c40: 24 73 2e 68 20 24 65 78 74 72 61 5f 68 28 24 73 $s.h $extra_h($s
0c50: 29 20 5c 24 28 53 52 43 44 49 52 29 2f 63 6f 6e ) \$(SRCDIR)/con
0c60: 66 69 67 2e 68 22 0a 20 20 70 75 74 73 20 22 5c fig.h". puts "\
0c70: 74 5c 24 28 58 54 43 43 29 20 2d 6f 20 24 73 2e t\$(XTCC) -o $s.
0c80: 6f 20 2d 63 20 24 7b 73 7d 5f 2e 63 5c 6e 22 0a o -c ${s}_.c\n".
0c90: 20 20 70 75 74 73 20 22 24 73 2e 68 3a 5c 74 6d puts "$s.h:\tm
0ca0: 61 6b 65 68 65 61 64 65 72 73 22 0a 20 20 70 75 akeheaders". pu
0cb0: 74 73 20 22 5c 74 2e 2f 6d 61 6b 65 68 65 61 64 ts "\t./makehead
0cc0: 65 72 73 20 24 6d 68 61 72 67 73 5c 6e 5c 74 74 ers $mhargs\n\tt
0cd0: 6f 75 63 68 20 68 65 61 64 65 72 73 5c 6e 22 0a ouch headers\n".
0ce0: 7d 0a 0a 0a 70 75 74 73 20 22 73 71 6c 69 74 65 }...puts "sqlite
0cf0: 33 2e 6f 3a 5c 74 5c 24 28 53 52 43 44 49 52 29 3.o:\t\$(SRCDIR)
0d00: 2f 73 71 6c 69 74 65 33 2e 63 22 0a 73 65 74 20 /sqlite3.c".set
0d10: 6f 70 74 20 7b 2d 44 53 51 4c 49 54 45 5f 4f 4d opt {-DSQLITE_OM
0d20: 49 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f IT_LOAD_EXTENSIO
0d30: 4e 3d 31 20 2d 44 53 51 4c 49 54 45 5f 50 52 49 N=1 -DSQLITE_PRI
0d40: 56 41 54 45 3d 7d 0a 61 70 70 65 6e 64 20 6f 70 VATE=}.append op
0d50: 74 20 22 20 2d 44 54 48 52 45 41 44 53 41 46 45 t " -DTHREADSAFE
0d60: 3d 30 20 2d 44 53 51 4c 49 54 45 5f 44 45 46 41 =0 -DSQLITE_DEFA
0d70: 55 4c 54 5f 46 49 4c 45 5f 46 4f 52 4d 41 54 3d ULT_FILE_FORMAT=
0d80: 34 22 0a 70 75 74 73 20 22 5c 74 5c 24 28 58 54 4".puts "\t\$(XT
0d90: 43 43 29 20 24 6f 70 74 20 2d 63 20 5c 24 28 53 CC) $opt -c \$(S
0da0: 52 43 44 49 52 29 2f 73 71 6c 69 74 65 33 2e 63 RCDIR)/sqlite3.c
0db0: 20 2d 6f 20 73 71 6c 69 74 65 33 2e 6f 5c 6e 22 -o sqlite3.o\n"
0dc0: 0a .