Artifact 798660074398402288339521e96b2e7575cc6225:
File
src/makemake.tcl
part of check-in
[9c01af2d22]
- refactored some /tagview code into more generic bits. Added string_xform.c.
by
stephan on
2008-02-03 21:56:52.
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 72 69 6e p. sha1. strin
01c0: 67 5f 78 66 6f 72 6d 0a 20 20 73 74 79 6c 65 0a g_xform. style.
01d0: 20 20 73 75 62 73 63 72 69 70 74 0a 20 20 73 79 subscript. sy
01e0: 6e 63 0a 20 20 74 61 67 0a 20 20 74 61 67 76 69 nc. tag. tagvi
01f0: 65 77 0a 20 20 74 69 6d 65 6c 69 6e 65 0a 20 20 ew. timeline.
0200: 74 6b 74 0a 20 20 74 6b 74 63 6f 6e 66 69 67 0a tkt. tktconfig.
0210: 20 20 74 6b 74 73 65 74 75 70 0a 20 20 75 6e 64 tktsetup. und
0220: 6f 0a 20 20 75 70 64 61 74 65 0a 20 20 75 72 6c o. update. url
0230: 0a 20 20 75 73 65 72 0a 20 20 76 65 72 69 66 79 . user. verify
0240: 0a 20 20 76 66 69 6c 65 0a 20 20 77 69 6b 69 0a . vfile. wiki.
0250: 20 20 77 69 6b 69 66 6f 72 6d 61 74 0a 20 20 78 wikiformat. x
0260: 66 65 72 0a 20 20 7a 69 70 0a 7d 0a 0a 23 20 4e fer. zip.}..# N
0270: 61 6d 65 20 6f 66 20 74 68 65 20 66 69 6e 61 6c ame of the final
0280: 20 61 70 70 6c 69 63 61 74 69 6f 6e 0a 23 0a 73 application.#.s
0290: 65 74 20 6e 61 6d 65 20 66 6f 73 73 69 6c 0a 0a et name fossil..
02a0: 70 75 74 73 20 7b 23 20 44 4f 20 4e 4f 54 20 45 puts {# DO NOT E
02b0: 44 49 54 0a 23 0a 23 20 54 68 69 73 20 66 69 6c DIT.#.# This fil
02c0: 65 20 69 73 20 61 75 74 6f 6d 61 74 69 63 61 6c e is automatical
02d0: 6c 79 20 67 65 6e 65 72 61 74 65 64 2e 20 20 49 ly generated. I
02e0: 6e 73 74 65 61 64 20 6f 66 20 65 64 69 74 69 6e nstead of editin
02f0: 67 20 74 68 69 73 0a 23 20 66 69 6c 65 2c 20 65 g this.# file, e
0300: 64 69 74 20 22 6d 61 6b 65 6d 61 6b 65 2e 74 63 dit "makemake.tc
0310: 6c 22 20 74 68 65 6e 20 72 75 6e 20 22 74 63 6c l" then run "tcl
0320: 73 68 20 6d 61 6b 65 6d 61 6b 65 2e 74 63 6c 20 sh makemake.tcl
0330: 3e 6d 61 69 6e 2e 6d 6b 22 0a 23 20 74 6f 20 72 >main.mk".# to r
0340: 65 67 65 6e 65 72 61 74 65 20 74 68 69 73 20 66 egenerate this f
0350: 69 6c 65 2e 0a 23 0a 23 20 54 68 69 73 20 66 69 ile..#.# This fi
0360: 6c 65 20 69 73 20 69 6e 63 6c 75 64 65 64 20 62 le is included b
0370: 79 20 6c 69 6e 75 78 2d 67 63 63 2e 6d 6b 20 6f y linux-gcc.mk o
0380: 72 20 6c 69 6e 75 78 2d 6d 69 6e 67 77 2e 6d 6b r linux-mingw.mk
0390: 20 6f 72 20 70 6f 73 73 69 62 6c 65 0a 23 20 73 or possible.# s
03a0: 6f 6d 65 20 6f 74 68 65 72 20 6d 61 6b 65 66 69 ome other makefi
03b0: 6c 65 73 2e 20 20 54 68 69 73 20 66 69 6c 65 20 les. This file
03c0: 63 6f 6e 74 61 69 6e 73 20 74 68 65 20 72 75 6c contains the rul
03d0: 65 73 20 74 68 61 74 20 61 72 65 20 63 6f 6d 6d es that are comm
03e0: 6f 6e 0a 23 20 74 6f 20 62 75 69 6c 64 69 6e 67 on.# to building
03f0: 20 72 65 67 61 72 64 6c 65 73 73 20 6f 66 20 74 regardless of t
0400: 68 65 20 74 61 72 67 65 74 2e 0a 23 0a 0a 58 54 he target..#..XT
0410: 43 43 20 3d 20 24 28 54 43 43 29 20 24 28 43 46 CC = $(TCC) $(CF
0420: 4c 41 47 53 29 20 2d 49 2e 20 2d 49 24 28 53 52 LAGS) -I. -I$(SR
0430: 43 44 49 52 29 0a 0a 7d 0a 70 75 74 73 20 2d 6e CDIR)..}.puts -n
0440: 6f 6e 65 77 6c 69 6e 65 20 22 53 52 43 20 3d 22 onewline "SRC ="
0450: 0a 66 6f 72 65 61 63 68 20 73 20 5b 6c 73 6f 72 .foreach s [lsor
0460: 74 20 24 73 72 63 5d 20 7b 0a 20 20 70 75 74 73 t $src] {. puts
0470: 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20 22 20 5c 5c -nonewline " \\
0480: 5c 6e 20 20 5c 24 28 53 52 43 44 49 52 29 2f 24 \n \$(SRCDIR)/$
0490: 73 2e 63 22 0a 7d 0a 70 75 74 73 20 22 5c 6e 22 s.c".}.puts "\n"
04a0: 0a 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e 65 .puts -nonewline
04b0: 20 22 54 52 41 4e 53 5f 53 52 43 20 3d 22 0a 66 "TRANS_SRC =".f
04c0: 6f 72 65 61 63 68 20 73 20 5b 6c 73 6f 72 74 20 oreach s [lsort
04d0: 24 73 72 63 5d 20 7b 0a 20 20 70 75 74 73 20 2d $src] {. puts -
04e0: 6e 6f 6e 65 77 6c 69 6e 65 20 22 20 5c 5c 5c 6e nonewline " \\\n
04f0: 20 20 24 7b 73 7d 5f 2e 63 22 0a 7d 0a 70 75 74 ${s}_.c".}.put
0500: 73 20 22 5c 6e 22 0a 70 75 74 73 20 2d 6e 6f 6e s "\n".puts -non
0510: 65 77 6c 69 6e 65 20 22 4f 42 4a 20 3d 22 0a 66 ewline "OBJ =".f
0520: 6f 72 65 61 63 68 20 73 20 5b 6c 73 6f 72 74 20 oreach s [lsort
0530: 24 73 72 63 5d 20 7b 0a 20 20 70 75 74 73 20 2d $src] {. puts -
0540: 6e 6f 6e 65 77 6c 69 6e 65 20 22 20 5c 5c 5c 6e nonewline " \\\n
0550: 20 20 24 73 2e 6f 22 0a 7d 0a 70 75 74 73 20 22 $s.o".}.puts "
0560: 5c 6e 22 0a 70 75 74 73 20 22 41 50 50 4e 41 4d \n".puts "APPNAM
0570: 45 20 3d 20 24 6e 61 6d 65 5c 24 28 45 29 22 0a E = $name\$(E)".
0580: 70 75 74 73 20 22 5c 6e 22 0a 0a 70 75 74 73 20 puts "\n"..puts
0590: 7b 0a 61 6c 6c 3a 09 24 28 41 50 50 4e 41 4d 45 {.all:.$(APPNAME
05a0: 29 0a 0a 69 6e 73 74 61 6c 6c 3a 09 24 28 41 50 )..install:.$(AP
05b0: 50 4e 41 4d 45 29 0a 09 6d 76 20 24 28 41 50 50 PNAME)..mv $(APP
05c0: 4e 41 4d 45 29 20 24 28 49 4e 53 54 41 4c 4c 44 NAME) $(INSTALLD
05d0: 49 52 29 0a 0a 74 72 61 6e 73 6c 61 74 65 3a 09 IR)..translate:.
05e0: 24 28 53 52 43 44 49 52 29 2f 74 72 61 6e 73 6c $(SRCDIR)/transl
05f0: 61 74 65 2e 63 0a 09 24 28 42 43 43 29 20 2d 6f ate.c..$(BCC) -o
0600: 20 74 72 61 6e 73 6c 61 74 65 20 24 28 53 52 43 translate $(SRC
0610: 44 49 52 29 2f 74 72 61 6e 73 6c 61 74 65 2e 63 DIR)/translate.c
0620: 0a 0a 6d 61 6b 65 68 65 61 64 65 72 73 3a 09 24 ..makeheaders:.$
0630: 28 53 52 43 44 49 52 29 2f 6d 61 6b 65 68 65 61 (SRCDIR)/makehea
0640: 64 65 72 73 2e 63 0a 09 24 28 42 43 43 29 20 2d ders.c..$(BCC) -
0650: 6f 20 6d 61 6b 65 68 65 61 64 65 72 73 20 24 28 o makeheaders $(
0660: 53 52 43 44 49 52 29 2f 6d 61 6b 65 68 65 61 64 SRCDIR)/makehead
0670: 65 72 73 2e 63 0a 0a 6d 6b 69 6e 64 65 78 3a 09 ers.c..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 09 24 28 42 43 43 29 20 2d 6f 20 6d x.c..$(BCC) -o m
06a0: 6b 69 6e 64 65 78 20 24 28 53 52 43 44 49 52 29 kindex $(SRCDIR)
06b0: 2f 6d 6b 69 6e 64 65 78 2e 63 0a 0a 23 20 57 41 /mkindex.c..# WA
06c0: 52 4e 49 4e 47 2e 20 44 41 4e 47 45 52 2e 20 52 RNING. DANGER. R
06d0: 75 6e 6e 69 6e 67 20 74 68 65 20 74 65 73 74 73 unning the tests
06e0: 75 69 74 65 20 6d 6f 64 69 66 69 65 73 20 74 68 uite modifies th
06f0: 65 20 72 65 70 6f 73 69 74 6f 72 79 20 74 68 65 e repository the
0700: 0a 23 20 62 75 69 6c 64 20 69 73 20 64 6f 6e 65 .# build is done
0710: 20 66 72 6f 6d 2c 20 69 2e 65 2e 20 74 68 65 20 from, i.e. the
0720: 63 68 65 63 6b 6f 75 74 20 62 65 6c 6f 6e 67 73 checkout belongs
0730: 20 74 6f 2e 20 44 6f 20 6e 6f 74 20 73 79 6e 63 to. Do not sync
0740: 2f 70 75 73 68 0a 23 20 74 68 65 20 72 65 70 6f /push.# the repo
0750: 73 69 74 6f 72 79 20 61 66 74 65 72 20 72 75 6e sitory after run
0760: 6e 69 6e 67 20 74 68 65 20 74 65 73 74 73 2e 0a ning the tests..
0770: 74 65 73 74 3a 09 24 28 41 50 50 4e 41 4d 45 29 test:.$(APPNAME)
0780: 0a 09 24 28 54 43 4c 53 48 29 20 74 65 73 74 2f ..$(TCLSH) test/
0790: 74 65 73 74 65 72 2e 74 63 6c 20 24 28 41 50 50 tester.tcl $(APP
07a0: 4e 41 4d 45 29 0a 0a 56 45 52 53 49 4f 4e 2e 68 NAME)..VERSION.h
07b0: 3a 09 24 28 53 52 43 44 49 52 29 2f 2e 2e 2f 6d :.$(SRCDIR)/../m
07c0: 61 6e 69 66 65 73 74 2e 75 75 69 64 20 24 28 53 anifest.uuid $(S
07d0: 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 RCDIR)/../manife
07e0: 73 74 0a 09 61 77 6b 20 27 7b 20 70 72 69 6e 74 st..awk '{ print
07f0: 66 20 22 23 64 65 66 69 6e 65 20 4d 41 4e 49 46 f "#define MANIF
0800: 45 53 54 5f 55 55 49 44 20 5c 22 25 73 5c 22 5c EST_UUID \"%s\"\
0810: 6e 22 2c 20 24 24 31 7d 27 20 5c 0a 09 09 24 28 n", $$1}' \...$(
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 3e 56 45 52 53 49 4f est.uuid >VERSIO
0840: 4e 2e 68 0a 09 61 77 6b 20 27 7b 20 70 72 69 6e N.h..awk '{ prin
0850: 74 66 20 22 23 64 65 66 69 6e 65 20 4d 41 4e 49 tf "#define MANI
0860: 46 45 53 54 5f 56 45 52 53 49 4f 4e 20 5c 22 5b FEST_VERSION \"[
0870: 25 2e 31 30 73 5d 5c 22 5c 6e 22 2c 20 24 24 31 %.10s]\"\n", $$1
0880: 7d 27 20 5c 0a 09 09 24 28 53 52 43 44 49 52 29 }' \...$(SRCDIR)
0890: 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 2e 75 75 69 /../manifest.uui
08a0: 64 20 3e 3e 56 45 52 53 49 4f 4e 2e 68 0a 09 61 d >>VERSION.h..a
08b0: 77 6b 20 27 24 24 31 3d 3d 22 44 22 7b 70 72 69 wk '$$1=="D"{pri
08c0: 6e 74 66 20 22 23 64 65 66 69 6e 65 20 4d 41 4e ntf "#define MAN
08d0: 49 46 45 53 54 5f 44 41 54 45 20 5c 22 25 73 20 IFEST_DATE \"%s
08e0: 25 73 5c 22 5c 6e 22 2c 5c 0a 09 09 73 75 62 73 %s\"\n",\...subs
08f0: 74 72 28 24 24 32 2c 31 2c 31 30 29 2c 73 75 62 tr($$2,1,10),sub
0900: 73 74 72 28 24 24 32 2c 31 32 29 7d 27 20 5c 0a str($$2,12)}' \.
0910: 09 09 24 28 53 52 43 44 49 52 29 2f 2e 2e 2f 6d ..$(SRCDIR)/../m
0920: 61 6e 69 66 65 73 74 20 3e 3e 56 45 52 53 49 4f anifest >>VERSIO
0930: 4e 2e 68 0a 0a 24 28 41 50 50 4e 41 4d 45 29 3a N.h..$(APPNAME):
0940: 09 68 65 61 64 65 72 73 20 24 28 4f 42 4a 29 20 .headers $(OBJ)
0950: 73 71 6c 69 74 65 33 2e 6f 0a 09 24 28 54 43 43 sqlite3.o..$(TCC
0960: 29 20 2d 6f 20 24 28 41 50 50 4e 41 4d 45 29 20 ) -o $(APPNAME)
0970: 24 28 4f 42 4a 29 20 73 71 6c 69 74 65 33 2e 6f $(OBJ) sqlite3.o
0980: 20 24 28 4c 49 42 29 0a 0a 23 20 54 68 69 73 20 $(LIB)..# This
0990: 72 75 6c 65 20 70 72 65 76 65 6e 74 73 20 6d 61 rule prevents ma
09a0: 6b 65 20 66 72 6f 6d 20 75 73 69 6e 67 20 69 74 ke from using it
09b0: 73 20 64 65 66 61 75 6c 74 20 72 75 6c 65 73 20 s default rules
09c0: 74 6f 20 74 72 79 20 62 75 69 6c 64 0a 23 20 61 to try build.# a
09d0: 6e 20 65 78 65 63 75 74 61 62 6c 65 20 6e 61 6d n executable nam
09e0: 65 64 20 22 6d 61 6e 69 66 65 73 74 22 20 6f 75 ed "manifest" ou
09f0: 74 20 6f 66 20 74 68 65 20 66 69 6c 65 20 6e 61 t of the file na
0a00: 6d 65 64 20 22 6d 61 6e 69 66 65 73 74 2e 63 22 med "manifest.c"
0a10: 0a 23 0a 24 28 53 52 43 44 49 52 29 2f 2e 2e 2f .#.$(SRCDIR)/../
0a20: 6d 61 6e 69 66 65 73 74 3a 09 0a 09 23 20 6e 6f manifest:...# no
0a30: 6f 70 0a 0a 63 6c 65 61 6e 3a 09 0a 09 72 6d 20 op..clean:...rm
0a40: 2d 66 20 2a 2e 6f 20 2a 5f 2e 63 20 24 28 41 50 -f *.o *_.c $(AP
0a50: 50 4e 41 4d 45 29 20 56 45 52 53 49 4f 4e 2e 68 PNAME) VERSION.h
0a60: 0a 09 72 6d 20 2d 66 20 74 72 61 6e 73 6c 61 74 ..rm -f translat
0a70: 65 20 6d 61 6b 65 68 65 61 64 65 72 73 20 6d 6b e makeheaders mk
0a80: 69 6e 64 65 78 20 70 61 67 65 5f 69 6e 64 65 78 index page_index
0a90: 2e 68 20 68 65 61 64 65 72 73 7d 0a 0a 73 65 74 .h headers}..set
0aa0: 20 68 66 69 6c 65 73 20 7b 7d 0a 66 6f 72 65 61 hfiles {}.forea
0ab0: 63 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 ch s [lsort $src
0ac0: 5d 20 7b 6c 61 70 70 65 6e 64 20 68 66 69 6c 65 ] {lappend hfile
0ad0: 73 20 24 73 2e 68 7d 0a 70 75 74 73 20 22 5c 74 s $s.h}.puts "\t
0ae0: 72 6d 20 2d 66 20 24 68 66 69 6c 65 73 5c 6e 22 rm -f $hfiles\n"
0af0: 0a 0a 73 65 74 20 6d 68 61 72 67 73 20 7b 7d 0a ..set mhargs {}.
0b00: 66 6f 72 65 61 63 68 20 73 20 5b 6c 73 6f 72 74 foreach s [lsort
0b10: 20 24 73 72 63 5d 20 7b 0a 20 20 61 70 70 65 6e $src] {. appen
0b20: 64 20 6d 68 61 72 67 73 20 22 20 24 7b 73 7d 5f d mhargs " ${s}_
0b30: 2e 63 3a 24 73 2e 68 22 0a 20 20 73 65 74 20 65 .c:$s.h". set e
0b40: 78 74 72 61 5f 68 28 24 73 29 20 7b 7d 0a 7d 0a xtra_h($s) {}.}.
0b50: 61 70 70 65 6e 64 20 6d 68 61 72 67 73 20 22 20 append mhargs "
0b60: 5c 24 28 53 52 43 44 49 52 29 2f 73 71 6c 69 74 \$(SRCDIR)/sqlit
0b70: 65 33 2e 68 20 2e 2f 56 45 52 53 49 4f 4e 2e 68 e3.h ./VERSION.h
0b80: 22 0a 70 75 74 73 20 22 68 65 61 64 65 72 73 3a ".puts "headers:
0b90: 5c 74 6d 61 6b 65 68 65 61 64 65 72 73 20 6d 6b \tmakeheaders mk
0ba0: 69 6e 64 65 78 20 5c 24 28 54 52 41 4e 53 5f 53 index \$(TRANS_S
0bb0: 52 43 29 20 2e 2f 56 45 52 53 49 4f 4e 2e 68 22 RC) ./VERSION.h"
0bc0: 0a 70 75 74 73 20 22 5c 74 2e 2f 6d 61 6b 65 68 .puts "\t./makeh
0bd0: 65 61 64 65 72 73 20 24 6d 68 61 72 67 73 22 0a eaders $mhargs".
0be0: 70 75 74 73 20 22 5c 74 2e 2f 6d 6b 69 6e 64 65 puts "\t./mkinde
0bf0: 78 20 5c 24 28 54 52 41 4e 53 5f 53 52 43 29 20 x \$(TRANS_SRC)
0c00: 3e 70 61 67 65 5f 69 6e 64 65 78 2e 68 22 0a 70 >page_index.h".p
0c10: 75 74 73 20 22 5c 74 74 6f 75 63 68 20 68 65 61 uts "\ttouch hea
0c20: 64 65 72 73 5c 6e 22 0a 73 65 74 20 65 78 74 72 ders\n".set extr
0c30: 61 5f 68 28 6d 61 69 6e 29 20 70 61 67 65 5f 69 a_h(main) page_i
0c40: 6e 64 65 78 2e 68 0a 0a 66 6f 72 65 61 63 68 20 ndex.h..foreach
0c50: 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 7b s [lsort $src] {
0c60: 0a 20 20 70 75 74 73 20 22 24 7b 73 7d 5f 2e 63 . puts "${s}_.c
0c70: 3a 5c 74 5c 24 28 53 52 43 44 49 52 29 2f 24 73 :\t\$(SRCDIR)/$s
0c80: 2e 63 20 5c 24 28 53 52 43 44 49 52 29 2f 56 45 .c \$(SRCDIR)/VE
0c90: 52 53 49 4f 4e 20 74 72 61 6e 73 6c 61 74 65 22 RSION translate"
0ca0: 0a 20 20 70 75 74 73 20 22 5c 74 2e 2f 74 72 61 . puts "\t./tra
0cb0: 6e 73 6c 61 74 65 20 5c 24 28 53 52 43 44 49 52 nslate \$(SRCDIR
0cc0: 29 2f 24 73 2e 63 20 7c 20 73 65 64 20 2d 66 20 )/$s.c | sed -f
0cd0: 5c 24 28 53 52 43 44 49 52 29 2f 56 45 52 53 49 \$(SRCDIR)/VERSI
0ce0: 4f 4e 20 3e 24 7b 73 7d 5f 2e 63 5c 6e 22 0a 20 ON >${s}_.c\n".
0cf0: 20 70 75 74 73 20 22 24 73 2e 6f 3a 5c 74 24 7b puts "$s.o:\t${
0d00: 73 7d 5f 2e 63 20 24 73 2e 68 20 24 65 78 74 72 s}_.c $s.h $extr
0d10: 61 5f 68 28 24 73 29 20 5c 24 28 53 52 43 44 49 a_h($s) \$(SRCDI
0d20: 52 29 2f 63 6f 6e 66 69 67 2e 68 22 0a 20 20 70 R)/config.h". p
0d30: 75 74 73 20 22 5c 74 5c 24 28 58 54 43 43 29 20 uts "\t\$(XTCC)
0d40: 2d 6f 20 24 73 2e 6f 20 2d 63 20 24 7b 73 7d 5f -o $s.o -c ${s}_
0d50: 2e 63 5c 6e 22 0a 20 20 70 75 74 73 20 22 24 73 .c\n". puts "$s
0d60: 2e 68 3a 5c 74 6d 61 6b 65 68 65 61 64 65 72 73 .h:\tmakeheaders
0d70: 22 0a 20 20 70 75 74 73 20 22 5c 74 2e 2f 6d 61 ". puts "\t./ma
0d80: 6b 65 68 65 61 64 65 72 73 20 24 6d 68 61 72 67 keheaders $mharg
0d90: 73 5c 6e 5c 74 74 6f 75 63 68 20 68 65 61 64 65 s\n\ttouch heade
0da0: 72 73 5c 6e 22 0a 7d 0a 0a 0a 70 75 74 73 20 22 rs\n".}...puts "
0db0: 73 71 6c 69 74 65 33 2e 6f 3a 5c 74 5c 24 28 53 sqlite3.o:\t\$(S
0dc0: 52 43 44 49 52 29 2f 73 71 6c 69 74 65 33 2e 63 RCDIR)/sqlite3.c
0dd0: 22 0a 73 65 74 20 6f 70 74 20 7b 2d 44 53 51 4c ".set opt {-DSQL
0de0: 49 54 45 5f 4f 4d 49 54 5f 4c 4f 41 44 5f 45 58 ITE_OMIT_LOAD_EX
0df0: 54 45 4e 53 49 4f 4e 3d 31 20 2d 44 53 51 4c 49 TENSION=1 -DSQLI
0e00: 54 45 5f 50 52 49 56 41 54 45 3d 7d 0a 61 70 70 TE_PRIVATE=}.app
0e10: 65 6e 64 20 6f 70 74 20 22 20 2d 44 53 51 4c 49 end opt " -DSQLI
0e20: 54 45 5f 54 48 52 45 41 44 53 41 46 45 3d 30 20 TE_THREADSAFE=0
0e30: 2d 44 53 51 4c 49 54 45 5f 44 45 46 41 55 4c 54 -DSQLITE_DEFAULT
0e40: 5f 46 49 4c 45 5f 46 4f 52 4d 41 54 3d 34 22 0a _FILE_FORMAT=4".
0e50: 61 70 70 65 6e 64 20 6f 70 74 20 22 20 2d 44 53 append opt " -DS
0e60: 51 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 46 54 53 QLITE_ENABLE_FTS
0e70: 33 3d 31 22 0a 70 75 74 73 20 22 5c 74 5c 24 28 3=1".puts "\t\$(
0e80: 58 54 43 43 29 20 24 6f 70 74 20 2d 63 20 5c 24 XTCC) $opt -c \$
0e90: 28 53 52 43 44 49 52 29 2f 73 71 6c 69 74 65 33 (SRCDIR)/sqlite3
0ea0: 2e 63 20 2d 6f 20 73 71 6c 69 74 65 33 2e 6f 5c .c -o sqlite3.o\
0eb0: 6e 22 0a n".