Artifact cde0a2fdac7d4e3fd3ee8bdf0b308dbd41b3188e:
File
src/makemake.tcl
part of check-in
[334f8e6e2f]
- Added rudimentary /my page.
by
stephan on
2008-02-03 22:07:24.
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 6d 79 5f 70 61 67 65 0a 20 20 6e 61 6d 65 my_page. name
0180: 0a 20 20 70 69 76 6f 74 0a 20 20 70 71 75 65 75 . pivot. pqueu
0190: 65 0a 20 20 70 72 69 6e 74 66 0a 20 20 72 65 62 e. printf. reb
01a0: 75 69 6c 64 0a 20 20 72 73 73 0a 20 20 73 63 68 uild. rss. sch
01b0: 65 6d 61 0a 20 20 73 65 74 75 70 0a 20 20 73 68 ema. setup. sh
01c0: 61 31 0a 20 20 73 74 72 69 6e 67 5f 78 66 6f 72 a1. string_xfor
01d0: 6d 0a 20 20 73 74 79 6c 65 0a 20 20 73 75 62 73 m. style. subs
01e0: 63 72 69 70 74 0a 20 20 73 79 6e 63 0a 20 20 74 cript. sync. t
01f0: 61 67 0a 20 20 74 61 67 76 69 65 77 0a 20 20 74 ag. tagview. t
0200: 69 6d 65 6c 69 6e 65 0a 20 20 74 6b 74 0a 20 20 imeline. tkt.
0210: 74 6b 74 63 6f 6e 66 69 67 0a 20 20 74 6b 74 73 tktconfig. tkts
0220: 65 74 75 70 0a 20 20 75 6e 64 6f 0a 20 20 75 70 etup. undo. up
0230: 64 61 74 65 0a 20 20 75 72 6c 0a 20 20 75 73 65 date. url. use
0240: 72 0a 20 20 76 65 72 69 66 79 0a 20 20 76 66 69 r. verify. vfi
0250: 6c 65 0a 20 20 77 69 6b 69 0a 20 20 77 69 6b 69 le. wiki. wiki
0260: 66 6f 72 6d 61 74 0a 20 20 78 66 65 72 0a 20 20 format. xfer.
0270: 7a 69 70 0a 7d 0a 0a 23 20 4e 61 6d 65 20 6f 66 zip.}..# Name of
0280: 20 74 68 65 20 66 69 6e 61 6c 20 61 70 70 6c 69 the final appli
0290: 63 61 74 69 6f 6e 0a 23 0a 73 65 74 20 6e 61 6d cation.#.set nam
02a0: 65 20 66 6f 73 73 69 6c 0a 0a 70 75 74 73 20 7b e fossil..puts {
02b0: 23 20 44 4f 20 4e 4f 54 20 45 44 49 54 0a 23 0a # DO NOT EDIT.#.
02c0: 23 20 54 68 69 73 20 66 69 6c 65 20 69 73 20 61 # This file is a
02d0: 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 67 65 6e utomatically gen
02e0: 65 72 61 74 65 64 2e 20 20 49 6e 73 74 65 61 64 erated. Instead
02f0: 20 6f 66 20 65 64 69 74 69 6e 67 20 74 68 69 73 of editing this
0300: 0a 23 20 66 69 6c 65 2c 20 65 64 69 74 20 22 6d .# file, edit "m
0310: 61 6b 65 6d 61 6b 65 2e 74 63 6c 22 20 74 68 65 akemake.tcl" the
0320: 6e 20 72 75 6e 20 22 74 63 6c 73 68 20 6d 61 6b n run "tclsh mak
0330: 65 6d 61 6b 65 2e 74 63 6c 20 3e 6d 61 69 6e 2e emake.tcl >main.
0340: 6d 6b 22 0a 23 20 74 6f 20 72 65 67 65 6e 65 72 mk".# to regener
0350: 61 74 65 20 74 68 69 73 20 66 69 6c 65 2e 0a 23 ate this file..#
0360: 0a 23 20 54 68 69 73 20 66 69 6c 65 20 69 73 20 .# This file is
0370: 69 6e 63 6c 75 64 65 64 20 62 79 20 6c 69 6e 75 included by linu
0380: 78 2d 67 63 63 2e 6d 6b 20 6f 72 20 6c 69 6e 75 x-gcc.mk or linu
0390: 78 2d 6d 69 6e 67 77 2e 6d 6b 20 6f 72 20 70 6f x-mingw.mk or po
03a0: 73 73 69 62 6c 65 0a 23 20 73 6f 6d 65 20 6f 74 ssible.# some ot
03b0: 68 65 72 20 6d 61 6b 65 66 69 6c 65 73 2e 20 20 her makefiles.
03c0: 54 68 69 73 20 66 69 6c 65 20 63 6f 6e 74 61 69 This file contai
03d0: 6e 73 20 74 68 65 20 72 75 6c 65 73 20 74 68 61 ns the rules tha
03e0: 74 20 61 72 65 20 63 6f 6d 6d 6f 6e 0a 23 20 74 t are common.# t
03f0: 6f 20 62 75 69 6c 64 69 6e 67 20 72 65 67 61 72 o building regar
0400: 64 6c 65 73 73 20 6f 66 20 74 68 65 20 74 61 72 dless of the tar
0410: 67 65 74 2e 0a 23 0a 0a 58 54 43 43 20 3d 20 24 get..#..XTCC = $
0420: 28 54 43 43 29 20 24 28 43 46 4c 41 47 53 29 20 (TCC) $(CFLAGS)
0430: 2d 49 2e 20 2d 49 24 28 53 52 43 44 49 52 29 0a -I. -I$(SRCDIR).
0440: 0a 7d 0a 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 .}.puts -nonewli
0450: 6e 65 20 22 53 52 43 20 3d 22 0a 66 6f 72 65 61 ne "SRC =".forea
0460: 63 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 ch s [lsort $src
0470: 5d 20 7b 0a 20 20 70 75 74 73 20 2d 6e 6f 6e 65 ] {. puts -none
0480: 77 6c 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 5c 24 wline " \\\n \$
0490: 28 53 52 43 44 49 52 29 2f 24 73 2e 63 22 0a 7d (SRCDIR)/$s.c".}
04a0: 0a 70 75 74 73 20 22 5c 6e 22 0a 70 75 74 73 20 .puts "\n".puts
04b0: 2d 6e 6f 6e 65 77 6c 69 6e 65 20 22 54 52 41 4e -nonewline "TRAN
04c0: 53 5f 53 52 43 20 3d 22 0a 66 6f 72 65 61 63 68 S_SRC =".foreach
04d0: 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 s [lsort $src]
04e0: 7b 0a 20 20 70 75 74 73 20 2d 6e 6f 6e 65 77 6c {. puts -nonewl
04f0: 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 24 7b 73 7d ine " \\\n ${s}
0500: 5f 2e 63 22 0a 7d 0a 70 75 74 73 20 22 5c 6e 22 _.c".}.puts "\n"
0510: 0a 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e 65 .puts -nonewline
0520: 20 22 4f 42 4a 20 3d 22 0a 66 6f 72 65 61 63 68 "OBJ =".foreach
0530: 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 s [lsort $src]
0540: 7b 0a 20 20 70 75 74 73 20 2d 6e 6f 6e 65 77 6c {. puts -nonewl
0550: 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 24 73 2e 6f ine " \\\n $s.o
0560: 22 0a 7d 0a 70 75 74 73 20 22 5c 6e 22 0a 70 75 ".}.puts "\n".pu
0570: 74 73 20 22 41 50 50 4e 41 4d 45 20 3d 20 24 6e ts "APPNAME = $n
0580: 61 6d 65 5c 24 28 45 29 22 0a 70 75 74 73 20 22 ame\$(E)".puts "
0590: 5c 6e 22 0a 0a 70 75 74 73 20 7b 0a 61 6c 6c 3a \n"..puts {.all:
05a0: 09 24 28 41 50 50 4e 41 4d 45 29 0a 0a 69 6e 73 .$(APPNAME)..ins
05b0: 74 61 6c 6c 3a 09 24 28 41 50 50 4e 41 4d 45 29 tall:.$(APPNAME)
05c0: 0a 09 6d 76 20 24 28 41 50 50 4e 41 4d 45 29 20 ..mv $(APPNAME)
05d0: 24 28 49 4e 53 54 41 4c 4c 44 49 52 29 0a 0a 74 $(INSTALLDIR)..t
05e0: 72 61 6e 73 6c 61 74 65 3a 09 24 28 53 52 43 44 ranslate:.$(SRCD
05f0: 49 52 29 2f 74 72 61 6e 73 6c 61 74 65 2e 63 0a IR)/translate.c.
0600: 09 24 28 42 43 43 29 20 2d 6f 20 74 72 61 6e 73 .$(BCC) -o trans
0610: 6c 61 74 65 20 24 28 53 52 43 44 49 52 29 2f 74 late $(SRCDIR)/t
0620: 72 61 6e 73 6c 61 74 65 2e 63 0a 0a 6d 61 6b 65 ranslate.c..make
0630: 68 65 61 64 65 72 73 3a 09 24 28 53 52 43 44 49 headers:.$(SRCDI
0640: 52 29 2f 6d 61 6b 65 68 65 61 64 65 72 73 2e 63 R)/makeheaders.c
0650: 0a 09 24 28 42 43 43 29 20 2d 6f 20 6d 61 6b 65 ..$(BCC) -o make
0660: 68 65 61 64 65 72 73 20 24 28 53 52 43 44 49 52 headers $(SRCDIR
0670: 29 2f 6d 61 6b 65 68 65 61 64 65 72 73 2e 63 0a )/makeheaders.c.
0680: 0a 6d 6b 69 6e 64 65 78 3a 09 24 28 53 52 43 44 .mkindex:.$(SRCD
0690: 49 52 29 2f 6d 6b 69 6e 64 65 78 2e 63 0a 09 24 IR)/mkindex.c..$
06a0: 28 42 43 43 29 20 2d 6f 20 6d 6b 69 6e 64 65 78 (BCC) -o mkindex
06b0: 20 24 28 53 52 43 44 49 52 29 2f 6d 6b 69 6e 64 $(SRCDIR)/mkind
06c0: 65 78 2e 63 0a 0a 23 20 57 41 52 4e 49 4e 47 2e ex.c..# WARNING.
06d0: 20 44 41 4e 47 45 52 2e 20 52 75 6e 6e 69 6e 67 DANGER. Running
06e0: 20 74 68 65 20 74 65 73 74 73 75 69 74 65 20 6d the testsuite m
06f0: 6f 64 69 66 69 65 73 20 74 68 65 20 72 65 70 6f odifies the repo
0700: 73 69 74 6f 72 79 20 74 68 65 0a 23 20 62 75 69 sitory the.# bui
0710: 6c 64 20 69 73 20 64 6f 6e 65 20 66 72 6f 6d 2c ld is done from,
0720: 20 69 2e 65 2e 20 74 68 65 20 63 68 65 63 6b 6f i.e. the checko
0730: 75 74 20 62 65 6c 6f 6e 67 73 20 74 6f 2e 20 44 ut belongs to. D
0740: 6f 20 6e 6f 74 20 73 79 6e 63 2f 70 75 73 68 0a o not sync/push.
0750: 23 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79 # the repository
0760: 20 61 66 74 65 72 20 72 75 6e 6e 69 6e 67 20 74 after running t
0770: 68 65 20 74 65 73 74 73 2e 0a 74 65 73 74 3a 09 he tests..test:.
0780: 24 28 41 50 50 4e 41 4d 45 29 0a 09 24 28 54 43 $(APPNAME)..$(TC
0790: 4c 53 48 29 20 74 65 73 74 2f 74 65 73 74 65 72 LSH) test/tester
07a0: 2e 74 63 6c 20 24 28 41 50 50 4e 41 4d 45 29 0a .tcl $(APPNAME).
07b0: 0a 56 45 52 53 49 4f 4e 2e 68 3a 09 24 28 53 52 .VERSION.h:.$(SR
07c0: 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 CDIR)/../manifes
07d0: 74 2e 75 75 69 64 20 24 28 53 52 43 44 49 52 29 t.uuid $(SRCDIR)
07e0: 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 0a 09 61 77 /../manifest..aw
07f0: 6b 20 27 7b 20 70 72 69 6e 74 66 20 22 23 64 65 k '{ printf "#de
0800: 66 69 6e 65 20 4d 41 4e 49 46 45 53 54 5f 55 55 fine MANIFEST_UU
0810: 49 44 20 5c 22 25 73 5c 22 5c 6e 22 2c 20 24 24 ID \"%s\"\n", $$
0820: 31 7d 27 20 5c 0a 09 09 24 28 53 52 43 44 49 52 1}' \...$(SRCDIR
0830: 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 2e 75 75 )/../manifest.uu
0840: 69 64 20 3e 56 45 52 53 49 4f 4e 2e 68 0a 09 61 id >VERSION.h..a
0850: 77 6b 20 27 7b 20 70 72 69 6e 74 66 20 22 23 64 wk '{ printf "#d
0860: 65 66 69 6e 65 20 4d 41 4e 49 46 45 53 54 5f 56 efine MANIFEST_V
0870: 45 52 53 49 4f 4e 20 5c 22 5b 25 2e 31 30 73 5d ERSION \"[%.10s]
0880: 5c 22 5c 6e 22 2c 20 24 24 31 7d 27 20 5c 0a 09 \"\n", $$1}' \..
0890: 09 24 28 53 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 .$(SRCDIR)/../ma
08a0: 6e 69 66 65 73 74 2e 75 75 69 64 20 3e 3e 56 45 nifest.uuid >>VE
08b0: 52 53 49 4f 4e 2e 68 0a 09 61 77 6b 20 27 24 24 RSION.h..awk '$$
08c0: 31 3d 3d 22 44 22 7b 70 72 69 6e 74 66 20 22 23 1=="D"{printf "#
08d0: 64 65 66 69 6e 65 20 4d 41 4e 49 46 45 53 54 5f define MANIFEST_
08e0: 44 41 54 45 20 5c 22 25 73 20 25 73 5c 22 5c 6e DATE \"%s %s\"\n
08f0: 22 2c 5c 0a 09 09 73 75 62 73 74 72 28 24 24 32 ",\...substr($$2
0900: 2c 31 2c 31 30 29 2c 73 75 62 73 74 72 28 24 24 ,1,10),substr($$
0910: 32 2c 31 32 29 7d 27 20 5c 0a 09 09 24 28 53 52 2,12)}' \...$(SR
0920: 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 CDIR)/../manifes
0930: 74 20 3e 3e 56 45 52 53 49 4f 4e 2e 68 0a 0a 24 t >>VERSION.h..$
0940: 28 41 50 50 4e 41 4d 45 29 3a 09 68 65 61 64 65 (APPNAME):.heade
0950: 72 73 20 24 28 4f 42 4a 29 20 73 71 6c 69 74 65 rs $(OBJ) sqlite
0960: 33 2e 6f 0a 09 24 28 54 43 43 29 20 2d 6f 20 24 3.o..$(TCC) -o $
0970: 28 41 50 50 4e 41 4d 45 29 20 24 28 4f 42 4a 29 (APPNAME) $(OBJ)
0980: 20 73 71 6c 69 74 65 33 2e 6f 20 24 28 4c 49 42 sqlite3.o $(LIB
0990: 29 0a 0a 23 20 54 68 69 73 20 72 75 6c 65 20 70 )..# This rule p
09a0: 72 65 76 65 6e 74 73 20 6d 61 6b 65 20 66 72 6f revents make fro
09b0: 6d 20 75 73 69 6e 67 20 69 74 73 20 64 65 66 61 m using its defa
09c0: 75 6c 74 20 72 75 6c 65 73 20 74 6f 20 74 72 79 ult rules to try
09d0: 20 62 75 69 6c 64 0a 23 20 61 6e 20 65 78 65 63 build.# an exec
09e0: 75 74 61 62 6c 65 20 6e 61 6d 65 64 20 22 6d 61 utable named "ma
09f0: 6e 69 66 65 73 74 22 20 6f 75 74 20 6f 66 20 74 nifest" out of t
0a00: 68 65 20 66 69 6c 65 20 6e 61 6d 65 64 20 22 6d he file named "m
0a10: 61 6e 69 66 65 73 74 2e 63 22 0a 23 0a 24 28 53 anifest.c".#.$(S
0a20: 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 RCDIR)/../manife
0a30: 73 74 3a 09 0a 09 23 20 6e 6f 6f 70 0a 0a 63 6c st:...# noop..cl
0a40: 65 61 6e 3a 09 0a 09 72 6d 20 2d 66 20 2a 2e 6f ean:...rm -f *.o
0a50: 20 2a 5f 2e 63 20 24 28 41 50 50 4e 41 4d 45 29 *_.c $(APPNAME)
0a60: 20 56 45 52 53 49 4f 4e 2e 68 0a 09 72 6d 20 2d VERSION.h..rm -
0a70: 66 20 74 72 61 6e 73 6c 61 74 65 20 6d 61 6b 65 f translate make
0a80: 68 65 61 64 65 72 73 20 6d 6b 69 6e 64 65 78 20 headers mkindex
0a90: 70 61 67 65 5f 69 6e 64 65 78 2e 68 20 68 65 61 page_index.h hea
0aa0: 64 65 72 73 7d 0a 0a 73 65 74 20 68 66 69 6c 65 ders}..set hfile
0ab0: 73 20 7b 7d 0a 66 6f 72 65 61 63 68 20 73 20 5b s {}.foreach s [
0ac0: 6c 73 6f 72 74 20 24 73 72 63 5d 20 7b 6c 61 70 lsort $src] {lap
0ad0: 70 65 6e 64 20 68 66 69 6c 65 73 20 24 73 2e 68 pend hfiles $s.h
0ae0: 7d 0a 70 75 74 73 20 22 5c 74 72 6d 20 2d 66 20 }.puts "\trm -f
0af0: 24 68 66 69 6c 65 73 5c 6e 22 0a 0a 73 65 74 20 $hfiles\n"..set
0b00: 6d 68 61 72 67 73 20 7b 7d 0a 66 6f 72 65 61 63 mhargs {}.foreac
0b10: 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d h s [lsort $src]
0b20: 20 7b 0a 20 20 61 70 70 65 6e 64 20 6d 68 61 72 {. append mhar
0b30: 67 73 20 22 20 24 7b 73 7d 5f 2e 63 3a 24 73 2e gs " ${s}_.c:$s.
0b40: 68 22 0a 20 20 73 65 74 20 65 78 74 72 61 5f 68 h". set extra_h
0b50: 28 24 73 29 20 7b 7d 0a 7d 0a 61 70 70 65 6e 64 ($s) {}.}.append
0b60: 20 6d 68 61 72 67 73 20 22 20 5c 24 28 53 52 43 mhargs " \$(SRC
0b70: 44 49 52 29 2f 73 71 6c 69 74 65 33 2e 68 20 2e DIR)/sqlite3.h .
0b80: 2f 56 45 52 53 49 4f 4e 2e 68 22 0a 70 75 74 73 /VERSION.h".puts
0b90: 20 22 68 65 61 64 65 72 73 3a 5c 74 6d 61 6b 65 "headers:\tmake
0ba0: 68 65 61 64 65 72 73 20 6d 6b 69 6e 64 65 78 20 headers mkindex
0bb0: 5c 24 28 54 52 41 4e 53 5f 53 52 43 29 20 2e 2f \$(TRANS_SRC) ./
0bc0: 56 45 52 53 49 4f 4e 2e 68 22 0a 70 75 74 73 20 VERSION.h".puts
0bd0: 22 5c 74 2e 2f 6d 61 6b 65 68 65 61 64 65 72 73 "\t./makeheaders
0be0: 20 24 6d 68 61 72 67 73 22 0a 70 75 74 73 20 22 $mhargs".puts "
0bf0: 5c 74 2e 2f 6d 6b 69 6e 64 65 78 20 5c 24 28 54 \t./mkindex \$(T
0c00: 52 41 4e 53 5f 53 52 43 29 20 3e 70 61 67 65 5f RANS_SRC) >page_
0c10: 69 6e 64 65 78 2e 68 22 0a 70 75 74 73 20 22 5c index.h".puts "\
0c20: 74 74 6f 75 63 68 20 68 65 61 64 65 72 73 5c 6e ttouch headers\n
0c30: 22 0a 73 65 74 20 65 78 74 72 61 5f 68 28 6d 61 ".set extra_h(ma
0c40: 69 6e 29 20 70 61 67 65 5f 69 6e 64 65 78 2e 68 in) page_index.h
0c50: 0a 0a 66 6f 72 65 61 63 68 20 73 20 5b 6c 73 6f ..foreach s [lso
0c60: 72 74 20 24 73 72 63 5d 20 7b 0a 20 20 70 75 74 rt $src] {. put
0c70: 73 20 22 24 7b 73 7d 5f 2e 63 3a 5c 74 5c 24 28 s "${s}_.c:\t\$(
0c80: 53 52 43 44 49 52 29 2f 24 73 2e 63 20 5c 24 28 SRCDIR)/$s.c \$(
0c90: 53 52 43 44 49 52 29 2f 56 45 52 53 49 4f 4e 20 SRCDIR)/VERSION
0ca0: 74 72 61 6e 73 6c 61 74 65 22 0a 20 20 70 75 74 translate". put
0cb0: 73 20 22 5c 74 2e 2f 74 72 61 6e 73 6c 61 74 65 s "\t./translate
0cc0: 20 5c 24 28 53 52 43 44 49 52 29 2f 24 73 2e 63 \$(SRCDIR)/$s.c
0cd0: 20 7c 20 73 65 64 20 2d 66 20 5c 24 28 53 52 43 | sed -f \$(SRC
0ce0: 44 49 52 29 2f 56 45 52 53 49 4f 4e 20 3e 24 7b DIR)/VERSION >${
0cf0: 73 7d 5f 2e 63 5c 6e 22 0a 20 20 70 75 74 73 20 s}_.c\n". puts
0d00: 22 24 73 2e 6f 3a 5c 74 24 7b 73 7d 5f 2e 63 20 "$s.o:\t${s}_.c
0d10: 24 73 2e 68 20 24 65 78 74 72 61 5f 68 28 24 73 $s.h $extra_h($s
0d20: 29 20 5c 24 28 53 52 43 44 49 52 29 2f 63 6f 6e ) \$(SRCDIR)/con
0d30: 66 69 67 2e 68 22 0a 20 20 70 75 74 73 20 22 5c fig.h". puts "\
0d40: 74 5c 24 28 58 54 43 43 29 20 2d 6f 20 24 73 2e t\$(XTCC) -o $s.
0d50: 6f 20 2d 63 20 24 7b 73 7d 5f 2e 63 5c 6e 22 0a o -c ${s}_.c\n".
0d60: 20 20 70 75 74 73 20 22 24 73 2e 68 3a 5c 74 6d puts "$s.h:\tm
0d70: 61 6b 65 68 65 61 64 65 72 73 22 0a 20 20 70 75 akeheaders". pu
0d80: 74 73 20 22 5c 74 2e 2f 6d 61 6b 65 68 65 61 64 ts "\t./makehead
0d90: 65 72 73 20 24 6d 68 61 72 67 73 5c 6e 5c 74 74 ers $mhargs\n\tt
0da0: 6f 75 63 68 20 68 65 61 64 65 72 73 5c 6e 22 0a ouch headers\n".
0db0: 7d 0a 0a 0a 70 75 74 73 20 22 73 71 6c 69 74 65 }...puts "sqlite
0dc0: 33 2e 6f 3a 5c 74 5c 24 28 53 52 43 44 49 52 29 3.o:\t\$(SRCDIR)
0dd0: 2f 73 71 6c 69 74 65 33 2e 63 22 0a 73 65 74 20 /sqlite3.c".set
0de0: 6f 70 74 20 7b 2d 44 53 51 4c 49 54 45 5f 4f 4d opt {-DSQLITE_OM
0df0: 49 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f IT_LOAD_EXTENSIO
0e00: 4e 3d 31 20 2d 44 53 51 4c 49 54 45 5f 50 52 49 N=1 -DSQLITE_PRI
0e10: 56 41 54 45 3d 7d 0a 61 70 70 65 6e 64 20 6f 70 VATE=}.append op
0e20: 74 20 22 20 2d 44 53 51 4c 49 54 45 5f 54 48 52 t " -DSQLITE_THR
0e30: 45 41 44 53 41 46 45 3d 30 20 2d 44 53 51 4c 49 EADSAFE=0 -DSQLI
0e40: 54 45 5f 44 45 46 41 55 4c 54 5f 46 49 4c 45 5f TE_DEFAULT_FILE_
0e50: 46 4f 52 4d 41 54 3d 34 22 0a 61 70 70 65 6e 64 FORMAT=4".append
0e60: 20 6f 70 74 20 22 20 2d 44 53 51 4c 49 54 45 5f opt " -DSQLITE_
0e70: 45 4e 41 42 4c 45 5f 46 54 53 33 3d 31 22 0a 70 ENABLE_FTS3=1".p
0e80: 75 74 73 20 22 5c 74 5c 24 28 58 54 43 43 29 20 uts "\t\$(XTCC)
0e90: 24 6f 70 74 20 2d 63 20 5c 24 28 53 52 43 44 49 $opt -c \$(SRCDI
0ea0: 52 29 2f 73 71 6c 69 74 65 33 2e 63 20 2d 6f 20 R)/sqlite3.c -o
0eb0: 73 71 6c 69 74 65 33 2e 6f 5c 6e 22 0a sqlite3.o\n".