Artifact f6304e19c85ae82f360ecf9a297fd9d5c830b544:
File
src/makemake.tcl
part of check-in
[7a2c37063a]
- merge trunk into creole branch
by
bob on
2009-09-22 07:49:39.
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 6c 6c 72 65 70 6f 0a 20 20 62 61 67 0a 20 20 allrepo. bag.
00d0: 62 6c 6f 62 0a 20 20 62 72 61 6e 63 68 0a 20 20 blob. branch.
00e0: 62 72 6f 77 73 65 0a 20 20 63 61 70 74 63 68 61 browse. captcha
00f0: 0a 20 20 63 67 69 0a 20 20 63 68 65 63 6b 69 6e . cgi. checkin
0100: 0a 20 20 63 68 65 63 6b 6f 75 74 0a 20 20 63 6c . checkout. cl
0110: 65 61 72 73 69 67 6e 0a 20 20 63 6c 6f 6e 65 0a earsign. clone.
0120: 20 20 63 6f 6d 66 6f 72 6d 61 74 0a 20 20 63 6f comformat. co
0130: 6e 66 69 67 75 72 65 0a 20 20 63 6f 6e 73 74 72 nfigure. constr
0140: 75 63 74 0a 20 20 63 6f 6e 74 65 6e 74 0a 20 20 uct. content.
0150: 63 72 65 6f 6c 65 70 61 72 73 65 72 0a 20 20 64 creoleparser. d
0160: 62 0a 20 20 64 65 6c 74 61 0a 20 20 64 65 6c 74 b. delta. delt
0170: 61 63 6d 64 0a 20 20 64 65 73 63 65 6e 64 61 6e acmd. descendan
0180: 74 73 0a 20 20 64 69 66 66 0a 20 20 64 69 66 66 ts. diff. diff
0190: 63 6d 64 0a 20 20 64 6f 63 0a 20 20 65 6e 63 6f cmd. doc. enco
01a0: 64 65 0a 20 20 66 69 6c 65 0a 20 20 68 74 74 70 de. file. http
01b0: 0a 20 20 68 74 74 70 5f 73 6f 63 6b 65 74 0a 20 . http_socket.
01c0: 20 68 74 74 70 5f 74 72 61 6e 73 70 6f 72 74 0a http_transport.
01d0: 20 20 69 6e 66 6f 0a 20 20 6c 6f 67 69 6e 0a 20 info. login.
01e0: 20 6d 61 69 6e 0a 20 20 6d 61 6e 69 66 65 73 74 main. manifest
01f0: 0a 20 20 6d 64 35 0a 20 20 6d 65 72 67 65 0a 20 . md5. merge.
0200: 20 6d 65 72 67 65 33 0a 20 20 6e 61 6d 65 0a 20 merge3. name.
0210: 20 70 69 76 6f 74 0a 20 20 70 71 75 65 75 65 0a pivot. pqueue.
0220: 20 20 70 72 69 6e 74 66 0a 20 20 72 65 62 75 69 printf. rebui
0230: 6c 64 0a 20 20 72 65 70 6f 72 74 0a 20 20 72 73 ld. report. rs
0240: 73 0a 20 20 72 73 74 61 74 73 0a 20 20 73 63 68 s. rstats. sch
0250: 65 6d 61 0a 20 20 73 65 74 75 70 0a 20 20 73 68 ema. setup. sh
0260: 61 31 0a 20 20 73 68 75 6e 0a 20 20 73 74 61 74 a1. shun. stat
0270: 0a 20 20 73 74 79 6c 65 0a 20 20 73 79 6e 63 0a . style. sync.
0280: 20 20 74 61 67 0a 20 20 74 68 5f 6d 61 69 6e 0a tag. th_main.
0290: 20 20 74 69 6d 65 6c 69 6e 65 0a 20 20 74 6b 74 timeline. tkt
02a0: 0a 20 20 74 6b 74 73 65 74 75 70 0a 20 20 75 6e . tktsetup. un
02b0: 64 6f 0a 20 20 75 70 64 61 74 65 0a 20 20 75 72 do. update. ur
02c0: 6c 0a 20 20 75 73 65 72 0a 20 20 76 65 72 69 66 l. user. verif
02d0: 79 0a 20 20 76 66 69 6c 65 0a 20 20 77 69 6b 69 y. vfile. wiki
02e0: 0a 20 20 77 69 6b 69 66 6f 72 6d 61 74 0a 20 20 . wikiformat.
02f0: 77 69 6e 68 74 74 70 0a 20 20 78 66 65 72 0a 20 winhttp. xfer.
0300: 20 7a 69 70 0a 7d 0a 0a 23 20 4e 61 6d 65 20 6f zip.}..# Name o
0310: 66 20 74 68 65 20 66 69 6e 61 6c 20 61 70 70 6c f the final appl
0320: 69 63 61 74 69 6f 6e 0a 23 0a 73 65 74 20 6e 61 ication.#.set na
0330: 6d 65 20 66 6f 73 73 69 6c 0a 0a 70 75 74 73 20 me fossil..puts
0340: 7b 23 20 44 4f 20 4e 4f 54 20 45 44 49 54 0a 23 {# DO NOT EDIT.#
0350: 0a 23 20 54 68 69 73 20 66 69 6c 65 20 69 73 20 .# This file is
0360: 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 67 65 automatically ge
0370: 6e 65 72 61 74 65 64 2e 20 20 49 6e 73 74 65 61 nerated. Instea
0380: 64 20 6f 66 20 65 64 69 74 69 6e 67 20 74 68 69 d of editing thi
0390: 73 0a 23 20 66 69 6c 65 2c 20 65 64 69 74 20 22 s.# file, edit "
03a0: 6d 61 6b 65 6d 61 6b 65 2e 74 63 6c 22 20 74 68 makemake.tcl" th
03b0: 65 6e 20 72 75 6e 20 22 74 63 6c 73 68 20 6d 61 en run "tclsh ma
03c0: 6b 65 6d 61 6b 65 2e 74 63 6c 20 3e 6d 61 69 6e kemake.tcl >main
03d0: 2e 6d 6b 22 0a 23 20 74 6f 20 72 65 67 65 6e 65 .mk".# to regene
03e0: 72 61 74 65 20 74 68 69 73 20 66 69 6c 65 2e 0a rate this file..
03f0: 23 0a 23 20 54 68 69 73 20 66 69 6c 65 20 69 73 #.# This file is
0400: 20 69 6e 63 6c 75 64 65 64 20 62 79 20 6c 69 6e included by lin
0410: 75 78 2d 67 63 63 2e 6d 6b 20 6f 72 20 6c 69 6e ux-gcc.mk or lin
0420: 75 78 2d 6d 69 6e 67 77 2e 6d 6b 20 6f 72 20 70 ux-mingw.mk or p
0430: 6f 73 73 69 62 6c 65 0a 23 20 73 6f 6d 65 20 6f ossible.# some o
0440: 74 68 65 72 20 6d 61 6b 65 66 69 6c 65 73 2e 20 ther makefiles.
0450: 20 54 68 69 73 20 66 69 6c 65 20 63 6f 6e 74 61 This file conta
0460: 69 6e 73 20 74 68 65 20 72 75 6c 65 73 20 74 68 ins the rules th
0470: 61 74 20 61 72 65 20 63 6f 6d 6d 6f 6e 0a 23 20 at are common.#
0480: 74 6f 20 62 75 69 6c 64 69 6e 67 20 72 65 67 61 to building rega
0490: 72 64 6c 65 73 73 20 6f 66 20 74 68 65 20 74 61 rdless of the ta
04a0: 72 67 65 74 2e 0a 23 0a 0a 58 54 43 43 20 3d 20 rget..#..XTCC =
04b0: 24 28 54 43 43 29 20 24 28 43 46 4c 41 47 53 29 $(TCC) $(CFLAGS)
04c0: 20 2d 49 2e 20 2d 49 24 28 53 52 43 44 49 52 29 -I. -I$(SRCDIR)
04d0: 0a 0a 7d 0a 70 75 74 73 20 2d 6e 6f 6e 65 77 6c ..}.puts -nonewl
04e0: 69 6e 65 20 22 53 52 43 20 3d 22 0a 66 6f 72 65 ine "SRC =".fore
04f0: 61 63 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 ach s [lsort $sr
0500: 63 5d 20 7b 0a 20 20 70 75 74 73 20 2d 6e 6f 6e c] {. puts -non
0510: 65 77 6c 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 5c ewline " \\\n \
0520: 24 28 53 52 43 44 49 52 29 2f 24 73 2e 63 22 0a $(SRCDIR)/$s.c".
0530: 7d 0a 70 75 74 73 20 22 5c 6e 22 0a 70 75 74 73 }.puts "\n".puts
0540: 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20 22 54 52 41 -nonewline "TRA
0550: 4e 53 5f 53 52 43 20 3d 22 0a 66 6f 72 65 61 63 NS_SRC =".foreac
0560: 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d h s [lsort $src]
0570: 20 7b 0a 20 20 70 75 74 73 20 2d 6e 6f 6e 65 77 {. puts -nonew
0580: 6c 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 24 7b 73 line " \\\n ${s
0590: 7d 5f 2e 63 22 0a 7d 0a 70 75 74 73 20 22 5c 6e }_.c".}.puts "\n
05a0: 22 0a 70 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e ".puts -nonewlin
05b0: 65 20 22 4f 42 4a 20 3d 22 0a 66 6f 72 65 61 63 e "OBJ =".foreac
05c0: 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d h s [lsort $src]
05d0: 20 7b 0a 20 20 70 75 74 73 20 2d 6e 6f 6e 65 77 {. puts -nonew
05e0: 6c 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 24 73 2e line " \\\n $s.
05f0: 6f 22 0a 7d 0a 70 75 74 73 20 22 5c 6e 22 0a 70 o".}.puts "\n".p
0600: 75 74 73 20 22 41 50 50 4e 41 4d 45 20 3d 20 24 uts "APPNAME = $
0610: 6e 61 6d 65 5c 24 28 45 29 22 0a 70 75 74 73 20 name\$(E)".puts
0620: 22 5c 6e 22 0a 0a 70 75 74 73 20 7b 0a 61 6c 6c "\n"..puts {.all
0630: 3a 09 24 28 41 50 50 4e 41 4d 45 29 0a 0a 69 6e :.$(APPNAME)..in
0640: 73 74 61 6c 6c 3a 09 24 28 41 50 50 4e 41 4d 45 stall:.$(APPNAME
0650: 29 0a 09 6d 76 20 24 28 41 50 50 4e 41 4d 45 29 )..mv $(APPNAME)
0660: 20 24 28 49 4e 53 54 41 4c 4c 44 49 52 29 0a 0a $(INSTALLDIR)..
0670: 74 72 61 6e 73 6c 61 74 65 3a 09 24 28 53 52 43 translate:.$(SRC
0680: 44 49 52 29 2f 74 72 61 6e 73 6c 61 74 65 2e 63 DIR)/translate.c
0690: 0a 09 24 28 42 43 43 29 20 2d 6f 20 74 72 61 6e ..$(BCC) -o tran
06a0: 73 6c 61 74 65 20 24 28 53 52 43 44 49 52 29 2f slate $(SRCDIR)/
06b0: 74 72 61 6e 73 6c 61 74 65 2e 63 0a 0a 6d 61 6b translate.c..mak
06c0: 65 68 65 61 64 65 72 73 3a 09 24 28 53 52 43 44 eheaders:.$(SRCD
06d0: 49 52 29 2f 6d 61 6b 65 68 65 61 64 65 72 73 2e IR)/makeheaders.
06e0: 63 0a 09 24 28 42 43 43 29 20 2d 6f 20 6d 61 6b c..$(BCC) -o mak
06f0: 65 68 65 61 64 65 72 73 20 24 28 53 52 43 44 49 eheaders $(SRCDI
0700: 52 29 2f 6d 61 6b 65 68 65 61 64 65 72 73 2e 63 R)/makeheaders.c
0710: 0a 0a 6d 6b 69 6e 64 65 78 3a 09 24 28 53 52 43 ..mkindex:.$(SRC
0720: 44 49 52 29 2f 6d 6b 69 6e 64 65 78 2e 63 0a 09 DIR)/mkindex.c..
0730: 24 28 42 43 43 29 20 2d 6f 20 6d 6b 69 6e 64 65 $(BCC) -o mkinde
0740: 78 20 24 28 53 52 43 44 49 52 29 2f 6d 6b 69 6e x $(SRCDIR)/mkin
0750: 64 65 78 2e 63 0a 0a 23 20 57 41 52 4e 49 4e 47 dex.c..# WARNING
0760: 2e 20 44 41 4e 47 45 52 2e 20 52 75 6e 6e 69 6e . DANGER. Runnin
0770: 67 20 74 68 65 20 74 65 73 74 73 75 69 74 65 20 g the testsuite
0780: 6d 6f 64 69 66 69 65 73 20 74 68 65 20 72 65 70 modifies the rep
0790: 6f 73 69 74 6f 72 79 20 74 68 65 0a 23 20 62 75 ository the.# bu
07a0: 69 6c 64 20 69 73 20 64 6f 6e 65 20 66 72 6f 6d ild is done from
07b0: 2c 20 69 2e 65 2e 20 74 68 65 20 63 68 65 63 6b , i.e. the check
07c0: 6f 75 74 20 62 65 6c 6f 6e 67 73 20 74 6f 2e 20 out belongs to.
07d0: 44 6f 20 6e 6f 74 20 73 79 6e 63 2f 70 75 73 68 Do not sync/push
07e0: 0a 23 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 .# the repositor
07f0: 79 20 61 66 74 65 72 20 72 75 6e 6e 69 6e 67 20 y after running
0800: 74 68 65 20 74 65 73 74 73 2e 0a 74 65 73 74 3a the tests..test:
0810: 09 24 28 41 50 50 4e 41 4d 45 29 0a 09 24 28 54 .$(APPNAME)..$(T
0820: 43 4c 53 48 29 20 74 65 73 74 2f 74 65 73 74 65 CLSH) test/teste
0830: 72 2e 74 63 6c 20 24 28 41 50 50 4e 41 4d 45 29 r.tcl $(APPNAME)
0840: 0a 0a 56 45 52 53 49 4f 4e 2e 68 3a 09 24 28 53 ..VERSION.h:.$(S
0850: 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 RCDIR)/../manife
0860: 73 74 2e 75 75 69 64 20 24 28 53 52 43 44 49 52 st.uuid $(SRCDIR
0870: 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 0a 09 61 )/../manifest..a
0880: 77 6b 20 27 7b 20 70 72 69 6e 74 66 20 22 23 64 wk '{ printf "#d
0890: 65 66 69 6e 65 20 4d 41 4e 49 46 45 53 54 5f 55 efine MANIFEST_U
08a0: 55 49 44 20 5c 22 25 73 5c 22 5c 6e 22 2c 20 24 UID \"%s\"\n", $
08b0: 24 31 7d 27 20 5c 0a 09 09 24 28 53 52 43 44 49 $1}' \...$(SRCDI
08c0: 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 2e 75 R)/../manifest.u
08d0: 75 69 64 20 3e 56 45 52 53 49 4f 4e 2e 68 0a 09 uid >VERSION.h..
08e0: 61 77 6b 20 27 7b 20 70 72 69 6e 74 66 20 22 23 awk '{ printf "#
08f0: 64 65 66 69 6e 65 20 4d 41 4e 49 46 45 53 54 5f define MANIFEST_
0900: 56 45 52 53 49 4f 4e 20 5c 22 5b 25 2e 31 30 73 VERSION \"[%.10s
0910: 5d 5c 22 5c 6e 22 2c 20 24 24 31 7d 27 20 5c 0a ]\"\n", $$1}' \.
0920: 09 09 24 28 53 52 43 44 49 52 29 2f 2e 2e 2f 6d ..$(SRCDIR)/../m
0930: 61 6e 69 66 65 73 74 2e 75 75 69 64 20 3e 3e 56 anifest.uuid >>V
0940: 45 52 53 49 4f 4e 2e 68 0a 09 61 77 6b 20 27 24 ERSION.h..awk '$
0950: 24 31 3d 3d 22 44 22 7b 70 72 69 6e 74 66 20 22 $1=="D"{printf "
0960: 23 64 65 66 69 6e 65 20 4d 41 4e 49 46 45 53 54 #define MANIFEST
0970: 5f 44 41 54 45 20 5c 22 25 73 20 25 73 5c 22 5c _DATE \"%s %s\"\
0980: 6e 22 2c 5c 0a 09 09 73 75 62 73 74 72 28 24 24 n",\...substr($$
0990: 32 2c 31 2c 31 30 29 2c 73 75 62 73 74 72 28 24 2,1,10),substr($
09a0: 24 32 2c 31 32 29 7d 27 20 5c 0a 09 09 24 28 53 $2,12)}' \...$(S
09b0: 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 RCDIR)/../manife
09c0: 73 74 20 3e 3e 56 45 52 53 49 4f 4e 2e 68 0a 0a st >>VERSION.h..
09d0: 24 28 41 50 50 4e 41 4d 45 29 3a 09 68 65 61 64 $(APPNAME):.head
09e0: 65 72 73 20 24 28 4f 42 4a 29 20 73 71 6c 69 74 ers $(OBJ) sqlit
09f0: 65 33 2e 6f 20 74 68 2e 6f 20 74 68 5f 6c 61 6e e3.o th.o th_lan
0a00: 67 2e 6f 0a 09 24 28 54 43 43 29 20 2d 6f 20 24 g.o..$(TCC) -o $
0a10: 28 41 50 50 4e 41 4d 45 29 20 24 28 4f 42 4a 29 (APPNAME) $(OBJ)
0a20: 20 73 71 6c 69 74 65 33 2e 6f 20 74 68 2e 6f 20 sqlite3.o th.o
0a30: 74 68 5f 6c 61 6e 67 2e 6f 20 24 28 4c 49 42 29 th_lang.o $(LIB)
0a40: 0a 0a 23 20 54 68 69 73 20 72 75 6c 65 20 70 72 ..# This rule pr
0a50: 65 76 65 6e 74 73 20 6d 61 6b 65 20 66 72 6f 6d events make from
0a60: 20 75 73 69 6e 67 20 69 74 73 20 64 65 66 61 75 using its defau
0a70: 6c 74 20 72 75 6c 65 73 20 74 6f 20 74 72 79 20 lt rules to try
0a80: 62 75 69 6c 64 0a 23 20 61 6e 20 65 78 65 63 75 build.# an execu
0a90: 74 61 62 6c 65 20 6e 61 6d 65 64 20 22 6d 61 6e table named "man
0aa0: 69 66 65 73 74 22 20 6f 75 74 20 6f 66 20 74 68 ifest" out of th
0ab0: 65 20 66 69 6c 65 20 6e 61 6d 65 64 20 22 6d 61 e file named "ma
0ac0: 6e 69 66 65 73 74 2e 63 22 0a 23 0a 24 28 53 52 nifest.c".#.$(SR
0ad0: 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 CDIR)/../manifes
0ae0: 74 3a 09 0a 09 23 20 6e 6f 6f 70 0a 0a 63 6c 65 t:...# noop..cle
0af0: 61 6e 3a 09 0a 09 72 6d 20 2d 66 20 2a 2e 6f 20 an:...rm -f *.o
0b00: 2a 5f 2e 63 20 24 28 41 50 50 4e 41 4d 45 29 20 *_.c $(APPNAME)
0b10: 56 45 52 53 49 4f 4e 2e 68 0a 09 72 6d 20 2d 66 VERSION.h..rm -f
0b20: 20 74 72 61 6e 73 6c 61 74 65 20 6d 61 6b 65 68 translate makeh
0b30: 65 61 64 65 72 73 20 6d 6b 69 6e 64 65 78 20 70 eaders mkindex p
0b40: 61 67 65 5f 69 6e 64 65 78 2e 68 20 68 65 61 64 age_index.h head
0b50: 65 72 73 7d 0a 0a 73 65 74 20 68 66 69 6c 65 73 ers}..set hfiles
0b60: 20 7b 7d 0a 66 6f 72 65 61 63 68 20 73 20 5b 6c {}.foreach s [l
0b70: 73 6f 72 74 20 24 73 72 63 5d 20 7b 6c 61 70 70 sort $src] {lapp
0b80: 65 6e 64 20 68 66 69 6c 65 73 20 24 73 2e 68 7d end hfiles $s.h}
0b90: 0a 70 75 74 73 20 22 5c 74 72 6d 20 2d 66 20 24 .puts "\trm -f $
0ba0: 68 66 69 6c 65 73 5c 6e 22 0a 0a 73 65 74 20 6d hfiles\n"..set m
0bb0: 68 61 72 67 73 20 7b 7d 0a 66 6f 72 65 61 63 68 hargs {}.foreach
0bc0: 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 5d 20 s [lsort $src]
0bd0: 7b 0a 20 20 61 70 70 65 6e 64 20 6d 68 61 72 67 {. append mharg
0be0: 73 20 22 20 24 7b 73 7d 5f 2e 63 3a 24 73 2e 68 s " ${s}_.c:$s.h
0bf0: 22 0a 20 20 73 65 74 20 65 78 74 72 61 5f 68 28 ". set extra_h(
0c00: 24 73 29 20 7b 7d 0a 7d 0a 61 70 70 65 6e 64 20 $s) {}.}.append
0c10: 6d 68 61 72 67 73 20 22 20 5c 24 28 53 52 43 44 mhargs " \$(SRCD
0c20: 49 52 29 2f 73 71 6c 69 74 65 33 2e 68 22 0a 61 IR)/sqlite3.h".a
0c30: 70 70 65 6e 64 20 6d 68 61 72 67 73 20 22 20 5c ppend mhargs " \
0c40: 24 28 53 52 43 44 49 52 29 2f 74 68 2e 68 22 0a $(SRCDIR)/th.h".
0c50: 61 70 70 65 6e 64 20 6d 68 61 72 67 73 20 22 20 append mhargs "
0c60: 56 45 52 53 49 4f 4e 2e 68 22 0a 70 75 74 73 20 VERSION.h".puts
0c70: 22 70 61 67 65 5f 69 6e 64 65 78 2e 68 3a 20 5c "page_index.h: \
0c80: 24 28 54 52 41 4e 53 5f 53 52 43 29 20 6d 6b 69 $(TRANS_SRC) mki
0c90: 6e 64 65 78 22 0a 70 75 74 73 20 22 5c 74 2e 2f ndex".puts "\t./
0ca0: 6d 6b 69 6e 64 65 78 20 5c 24 28 54 52 41 4e 53 mkindex \$(TRANS
0cb0: 5f 53 52 43 29 20 3e 24 40 22 0a 70 75 74 73 20 _SRC) >$@".puts
0cc0: 22 68 65 61 64 65 72 73 3a 5c 74 70 61 67 65 5f "headers:\tpage_
0cd0: 69 6e 64 65 78 2e 68 20 6d 61 6b 65 68 65 61 64 index.h makehead
0ce0: 65 72 73 20 56 45 52 53 49 4f 4e 2e 68 22 0a 70 ers VERSION.h".p
0cf0: 75 74 73 20 22 5c 74 2e 2f 6d 61 6b 65 68 65 61 uts "\t./makehea
0d00: 64 65 72 73 20 24 6d 68 61 72 67 73 22 0a 70 75 ders $mhargs".pu
0d10: 74 73 20 22 5c 74 74 6f 75 63 68 20 68 65 61 64 ts "\ttouch head
0d20: 65 72 73 22 0a 70 75 74 73 20 22 68 65 61 64 65 ers".puts "heade
0d30: 72 73 3a 20 4d 61 6b 65 66 69 6c 65 22 0a 70 75 rs: Makefile".pu
0d40: 74 73 20 22 4d 61 6b 65 66 69 6c 65 3a 22 0a 73 ts "Makefile:".s
0d50: 65 74 20 65 78 74 72 61 5f 68 28 6d 61 69 6e 29 et extra_h(main)
0d60: 20 70 61 67 65 5f 69 6e 64 65 78 2e 68 0a 0a 66 page_index.h..f
0d70: 6f 72 65 61 63 68 20 73 20 5b 6c 73 6f 72 74 20 oreach s [lsort
0d80: 24 73 72 63 5d 20 7b 0a 20 20 70 75 74 73 20 22 $src] {. puts "
0d90: 24 7b 73 7d 5f 2e 63 3a 5c 74 5c 24 28 53 52 43 ${s}_.c:\t\$(SRC
0da0: 44 49 52 29 2f 24 73 2e 63 20 74 72 61 6e 73 6c DIR)/$s.c transl
0db0: 61 74 65 22 0a 20 20 70 75 74 73 20 22 5c 74 2e ate". puts "\t.
0dc0: 2f 74 72 61 6e 73 6c 61 74 65 20 5c 24 28 53 52 /translate \$(SR
0dd0: 43 44 49 52 29 2f 24 73 2e 63 20 3e 24 7b 73 7d CDIR)/$s.c >${s}
0de0: 5f 2e 63 5c 6e 22 0a 20 20 70 75 74 73 20 22 24 _.c\n". puts "$
0df0: 73 2e 6f 3a 5c 74 24 7b 73 7d 5f 2e 63 20 24 73 s.o:\t${s}_.c $s
0e00: 2e 68 20 24 65 78 74 72 61 5f 68 28 24 73 29 20 .h $extra_h($s)
0e10: 5c 24 28 53 52 43 44 49 52 29 2f 63 6f 6e 66 69 \$(SRCDIR)/confi
0e20: 67 2e 68 22 0a 20 20 70 75 74 73 20 22 5c 74 5c g.h". puts "\t\
0e30: 24 28 58 54 43 43 29 20 2d 6f 20 24 73 2e 6f 20 $(XTCC) -o $s.o
0e40: 2d 63 20 24 7b 73 7d 5f 2e 63 5c 6e 22 0a 20 20 -c ${s}_.c\n".
0e50: 70 75 74 73 20 22 24 73 2e 68 3a 5c 74 68 65 61 puts "$s.h:\thea
0e60: 64 65 72 73 22 0a 23 20 20 70 75 74 73 20 22 5c ders".# puts "\
0e70: 74 2e 2f 6d 61 6b 65 68 65 61 64 65 72 73 20 24 t./makeheaders $
0e80: 6d 68 61 72 67 73 5c 6e 5c 74 74 6f 75 63 68 20 mhargs\n\ttouch
0e90: 68 65 61 64 65 72 73 5c 6e 22 0a 23 20 20 70 75 headers\n".# pu
0ea0: 74 73 20 22 5c 74 2e 2f 6d 61 6b 65 68 65 61 64 ts "\t./makehead
0eb0: 65 72 73 20 24 7b 73 7d 5f 2e 63 3a 24 7b 73 7d ers ${s}_.c:${s}
0ec0: 2e 68 5c 6e 22 0a 7d 0a 0a 0a 70 75 74 73 20 22 .h\n".}...puts "
0ed0: 73 71 6c 69 74 65 33 2e 6f 3a 5c 74 5c 24 28 53 sqlite3.o:\t\$(S
0ee0: 52 43 44 49 52 29 2f 73 71 6c 69 74 65 33 2e 63 RCDIR)/sqlite3.c
0ef0: 22 0a 73 65 74 20 6f 70 74 20 7b 2d 44 53 51 4c ".set opt {-DSQL
0f00: 49 54 45 5f 4f 4d 49 54 5f 4c 4f 41 44 5f 45 58 ITE_OMIT_LOAD_EX
0f10: 54 45 4e 53 49 4f 4e 3d 31 7d 0a 61 70 70 65 6e TENSION=1}.appen
0f20: 64 20 6f 70 74 20 22 20 2d 44 53 51 4c 49 54 45 d opt " -DSQLITE
0f30: 5f 54 48 52 45 41 44 53 41 46 45 3d 30 20 2d 44 _THREADSAFE=0 -D
0f40: 53 51 4c 49 54 45 5f 44 45 46 41 55 4c 54 5f 46 SQLITE_DEFAULT_F
0f50: 49 4c 45 5f 46 4f 52 4d 41 54 3d 34 22 0a 23 61 ILE_FORMAT=4".#a
0f60: 70 70 65 6e 64 20 6f 70 74 20 22 20 2d 44 53 51 ppend opt " -DSQ
0f70: 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 46 54 53 33 LITE_ENABLE_FTS3
0f80: 3d 31 22 0a 61 70 70 65 6e 64 20 6f 70 74 20 22 =1".append opt "
0f90: 20 2d 44 6c 6f 63 61 6c 74 69 6d 65 3d 66 6f 73 -Dlocaltime=fos
0fa0: 73 69 6c 5f 6c 6f 63 61 6c 74 69 6d 65 22 0a 70 sil_localtime".p
0fb0: 75 74 73 20 22 5c 74 5c 24 28 58 54 43 43 29 20 uts "\t\$(XTCC)
0fc0: 24 6f 70 74 20 2d 63 20 5c 24 28 53 52 43 44 49 $opt -c \$(SRCDI
0fd0: 52 29 2f 73 71 6c 69 74 65 33 2e 63 20 2d 6f 20 R)/sqlite3.c -o
0fe0: 73 71 6c 69 74 65 33 2e 6f 5c 6e 22 0a 0a 70 75 sqlite3.o\n"..pu
0ff0: 74 73 20 22 74 68 2e 6f 3a 5c 74 5c 24 28 53 52 ts "th.o:\t\$(SR
1000: 43 44 49 52 29 2f 74 68 2e 63 22 0a 70 75 74 73 CDIR)/th.c".puts
1010: 20 22 5c 74 5c 24 28 58 54 43 43 29 20 2d 49 5c "\t\$(XTCC) -I\
1020: 24 28 53 52 43 44 49 52 29 20 2d 63 20 5c 24 28 $(SRCDIR) -c \$(
1030: 53 52 43 44 49 52 29 2f 74 68 2e 63 20 2d 6f 20 SRCDIR)/th.c -o
1040: 74 68 2e 6f 5c 6e 22 0a 0a 70 75 74 73 20 22 74 th.o\n"..puts "t
1050: 68 5f 6c 61 6e 67 2e 6f 3a 5c 74 5c 24 28 53 52 h_lang.o:\t\$(SR
1060: 43 44 49 52 29 2f 74 68 5f 6c 61 6e 67 2e 63 22 CDIR)/th_lang.c"
1070: 0a 70 75 74 73 20 22 5c 74 5c 24 28 58 54 43 43 .puts "\t\$(XTCC
1080: 29 20 2d 49 5c 24 28 53 52 43 44 49 52 29 20 2d ) -I\$(SRCDIR) -
1090: 63 20 5c 24 28 53 52 43 44 49 52 29 2f 74 68 5f c \$(SRCDIR)/th_
10a0: 6c 61 6e 67 2e 63 20 2d 6f 20 74 68 5f 6c 61 6e lang.c -o th_lan
10b0: 67 2e 6f 5c 6e 22 0a g.o\n".