Artifact f7573fec3a9eb1697ebf8f3926e15aebdafedcde:
File
src/makemake.tcl
part of check-in
[07eaead5dc]
- Added RSS feed. You can set the RSS title, description in Setup. Added header to style to include title and pointer to the new RSS feed. The new RSS feed is BaseURL/timeline.rss
by
jnc on
2007-09-23 18:24:21.
Also file
src/makemake.tcl
part of check-in
[dad40ffac0]
- Merge the RSS changes.
by
drh on
2007-09-23 20:18:58.
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 75 6e 64 6f 0a timeline. undo.
01e0: 20 20 75 70 64 61 74 65 0a 20 20 75 72 6c 0a 20 update. url.
01f0: 20 75 73 65 72 0a 20 20 76 65 72 69 66 79 0a 20 user. verify.
0200: 20 76 66 69 6c 65 0a 20 20 77 69 6b 69 0a 20 20 vfile. wiki.
0210: 77 69 6b 69 66 6f 72 6d 61 74 0a 20 20 78 66 65 wikiformat. xfe
0220: 72 0a 20 20 7a 69 70 0a 7d 0a 0a 23 20 4e 61 6d r. zip.}..# Nam
0230: 65 20 6f 66 20 74 68 65 20 66 69 6e 61 6c 20 61 e of the final a
0240: 70 70 6c 69 63 61 74 69 6f 6e 0a 23 0a 73 65 74 pplication.#.set
0250: 20 6e 61 6d 65 20 66 6f 73 73 69 6c 0a 0a 70 75 name fossil..pu
0260: 74 73 20 7b 23 20 44 4f 20 4e 4f 54 20 45 44 49 ts {# DO NOT EDI
0270: 54 0a 23 0a 23 20 54 68 69 73 20 66 69 6c 65 20 T.#.# This file
0280: 69 73 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 is automatically
0290: 20 67 65 6e 65 72 61 74 65 64 2e 20 20 49 6e 73 generated. Ins
02a0: 74 65 61 64 20 6f 66 20 65 64 69 74 69 6e 67 20 tead of editing
02b0: 74 68 69 73 0a 23 20 66 69 6c 65 2c 20 65 64 69 this.# file, edi
02c0: 74 20 22 6d 61 6b 65 6d 61 6b 65 2e 74 63 6c 22 t "makemake.tcl"
02d0: 20 74 68 65 6e 20 72 75 6e 20 22 74 63 6c 73 68 then run "tclsh
02e0: 20 6d 61 6b 65 6d 61 6b 65 2e 74 63 6c 20 3e 6d makemake.tcl >m
02f0: 61 69 6e 2e 6d 6b 22 0a 23 20 74 6f 20 72 65 67 ain.mk".# to reg
0300: 65 6e 65 72 61 74 65 20 74 68 69 73 20 66 69 6c enerate this fil
0310: 65 2e 0a 23 0a 23 20 54 68 69 73 20 66 69 6c 65 e..#.# This file
0320: 20 69 73 20 69 6e 63 6c 75 64 65 64 20 62 79 20 is included by
0330: 6c 69 6e 75 78 2d 67 63 63 2e 6d 6b 20 6f 72 20 linux-gcc.mk or
0340: 6c 69 6e 75 78 2d 6d 69 6e 67 77 2e 6d 6b 20 6f linux-mingw.mk o
0350: 72 20 70 6f 73 73 69 62 6c 65 0a 23 20 73 6f 6d r possible.# som
0360: 65 20 6f 74 68 65 72 20 6d 61 6b 65 66 69 6c 65 e other makefile
0370: 73 2e 20 20 54 68 69 73 20 66 69 6c 65 20 63 6f s. This file co
0380: 6e 74 61 69 6e 73 20 74 68 65 20 72 75 6c 65 73 ntains the rules
0390: 20 74 68 61 74 20 61 72 65 20 63 6f 6d 6d 6f 6e that are common
03a0: 0a 23 20 74 6f 20 62 75 69 6c 64 69 6e 67 20 72 .# to building r
03b0: 65 67 61 72 64 6c 65 73 73 20 6f 66 20 74 68 65 egardless of the
03c0: 20 74 61 72 67 65 74 2e 0a 23 0a 0a 58 54 43 43 target..#..XTCC
03d0: 20 3d 20 24 28 54 43 43 29 20 24 28 43 46 4c 41 = $(TCC) $(CFLA
03e0: 47 53 29 20 2d 49 2e 20 2d 49 24 28 53 52 43 44 GS) -I. -I$(SRCD
03f0: 49 52 29 0a 0a 7d 0a 70 75 74 73 20 2d 6e 6f 6e IR)..}.puts -non
0400: 65 77 6c 69 6e 65 20 22 53 52 43 20 3d 22 0a 66 ewline "SRC =".f
0410: 6f 72 65 61 63 68 20 73 20 5b 6c 73 6f 72 74 20 oreach s [lsort
0420: 24 73 72 63 5d 20 7b 0a 20 20 70 75 74 73 20 2d $src] {. puts -
0430: 6e 6f 6e 65 77 6c 69 6e 65 20 22 20 5c 5c 5c 6e nonewline " \\\n
0440: 20 20 5c 24 28 53 52 43 44 49 52 29 2f 24 73 2e \$(SRCDIR)/$s.
0450: 63 22 0a 7d 0a 70 75 74 73 20 22 5c 6e 22 0a 70 c".}.puts "\n".p
0460: 75 74 73 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20 22 uts -nonewline "
0470: 54 52 41 4e 53 5f 53 52 43 20 3d 22 0a 66 6f 72 TRANS_SRC =".for
0480: 65 61 63 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 each s [lsort $s
0490: 72 63 5d 20 7b 0a 20 20 70 75 74 73 20 2d 6e 6f rc] {. puts -no
04a0: 6e 65 77 6c 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 newline " \\\n
04b0: 24 7b 73 7d 5f 2e 63 22 0a 7d 0a 70 75 74 73 20 ${s}_.c".}.puts
04c0: 22 5c 6e 22 0a 70 75 74 73 20 2d 6e 6f 6e 65 77 "\n".puts -nonew
04d0: 6c 69 6e 65 20 22 4f 42 4a 20 3d 22 0a 66 6f 72 line "OBJ =".for
04e0: 65 61 63 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 each s [lsort $s
04f0: 72 63 5d 20 7b 0a 20 20 70 75 74 73 20 2d 6e 6f rc] {. puts -no
0500: 6e 65 77 6c 69 6e 65 20 22 20 5c 5c 5c 6e 20 20 newline " \\\n
0510: 24 73 2e 6f 22 0a 7d 0a 70 75 74 73 20 22 5c 6e $s.o".}.puts "\n
0520: 22 0a 70 75 74 73 20 22 41 50 50 4e 41 4d 45 20 ".puts "APPNAME
0530: 3d 20 24 6e 61 6d 65 5c 24 28 45 29 22 0a 70 75 = $name\$(E)".pu
0540: 74 73 20 22 5c 6e 22 0a 0a 70 75 74 73 20 7b 0a ts "\n"..puts {.
0550: 61 6c 6c 3a 09 24 28 41 50 50 4e 41 4d 45 29 0a all:.$(APPNAME).
0560: 0a 69 6e 73 74 61 6c 6c 3a 09 24 28 41 50 50 4e .install:.$(APPN
0570: 41 4d 45 29 0a 09 6d 76 20 24 28 41 50 50 4e 41 AME)..mv $(APPNA
0580: 4d 45 29 20 24 28 49 4e 53 54 41 4c 4c 44 49 52 ME) $(INSTALLDIR
0590: 29 0a 0a 74 72 61 6e 73 6c 61 74 65 3a 09 24 28 )..translate:.$(
05a0: 53 52 43 44 49 52 29 2f 74 72 61 6e 73 6c 61 74 SRCDIR)/translat
05b0: 65 2e 63 0a 09 24 28 42 43 43 29 20 2d 6f 20 74 e.c..$(BCC) -o t
05c0: 72 61 6e 73 6c 61 74 65 20 24 28 53 52 43 44 49 ranslate $(SRCDI
05d0: 52 29 2f 74 72 61 6e 73 6c 61 74 65 2e 63 0a 0a R)/translate.c..
05e0: 6d 61 6b 65 68 65 61 64 65 72 73 3a 09 24 28 53 makeheaders:.$(S
05f0: 52 43 44 49 52 29 2f 6d 61 6b 65 68 65 61 64 65 RCDIR)/makeheade
0600: 72 73 2e 63 0a 09 24 28 42 43 43 29 20 2d 6f 20 rs.c..$(BCC) -o
0610: 6d 61 6b 65 68 65 61 64 65 72 73 20 24 28 53 52 makeheaders $(SR
0620: 43 44 49 52 29 2f 6d 61 6b 65 68 65 61 64 65 72 CDIR)/makeheader
0630: 73 2e 63 0a 0a 6d 6b 69 6e 64 65 78 3a 09 24 28 s.c..mkindex:.$(
0640: 53 52 43 44 49 52 29 2f 6d 6b 69 6e 64 65 78 2e SRCDIR)/mkindex.
0650: 63 0a 09 24 28 42 43 43 29 20 2d 6f 20 6d 6b 69 c..$(BCC) -o mki
0660: 6e 64 65 78 20 24 28 53 52 43 44 49 52 29 2f 6d ndex $(SRCDIR)/m
0670: 6b 69 6e 64 65 78 2e 63 0a 0a 23 20 57 41 52 4e kindex.c..# WARN
0680: 49 4e 47 2e 20 44 41 4e 47 45 52 2e 20 52 75 6e ING. DANGER. Run
0690: 6e 69 6e 67 20 74 68 65 20 74 65 73 74 73 75 69 ning the testsui
06a0: 74 65 20 6d 6f 64 69 66 69 65 73 20 74 68 65 20 te modifies the
06b0: 72 65 70 6f 73 69 74 6f 72 79 20 74 68 65 0a 23 repository the.#
06c0: 20 62 75 69 6c 64 20 69 73 20 64 6f 6e 65 20 66 build is done f
06d0: 72 6f 6d 2c 20 69 2e 65 2e 20 74 68 65 20 63 68 rom, i.e. the ch
06e0: 65 63 6b 6f 75 74 20 62 65 6c 6f 6e 67 73 20 74 eckout belongs t
06f0: 6f 2e 20 44 6f 20 6e 6f 74 20 73 79 6e 63 2f 70 o. Do not sync/p
0700: 75 73 68 0a 23 20 74 68 65 20 72 65 70 6f 73 69 ush.# the reposi
0710: 74 6f 72 79 20 61 66 74 65 72 20 72 75 6e 6e 69 tory after runni
0720: 6e 67 20 74 68 65 20 74 65 73 74 73 2e 0a 74 65 ng the tests..te
0730: 73 74 3a 09 24 28 41 50 50 4e 41 4d 45 29 0a 09 st:.$(APPNAME)..
0740: 24 28 54 43 4c 53 48 29 20 74 65 73 74 2f 74 65 $(TCLSH) test/te
0750: 73 74 65 72 2e 74 63 6c 20 24 28 41 50 50 4e 41 ster.tcl $(APPNA
0760: 4d 45 29 0a 0a 56 45 52 53 49 4f 4e 2e 68 3a 09 ME)..VERSION.h:.
0770: 24 28 53 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e $(SRCDIR)/../man
0780: 69 66 65 73 74 2e 75 75 69 64 20 24 28 53 52 43 ifest.uuid $(SRC
0790: 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 74 DIR)/../manifest
07a0: 0a 09 61 77 6b 20 27 7b 20 70 72 69 6e 74 66 20 ..awk '{ printf
07b0: 22 23 64 65 66 69 6e 65 20 4d 41 4e 49 46 45 53 "#define MANIFES
07c0: 54 5f 55 55 49 44 20 5c 22 25 73 5c 22 5c 6e 22 T_UUID \"%s\"\n"
07d0: 2c 20 24 24 31 7d 27 20 5c 0a 09 09 24 28 53 52 , $$1}' \...$(SR
07e0: 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e 69 66 65 73 CDIR)/../manifes
07f0: 74 2e 75 75 69 64 20 3e 56 45 52 53 49 4f 4e 2e t.uuid >VERSION.
0800: 68 0a 09 61 77 6b 20 27 7b 20 70 72 69 6e 74 66 h..awk '{ printf
0810: 20 22 23 64 65 66 69 6e 65 20 4d 41 4e 49 46 45 "#define MANIFE
0820: 53 54 5f 56 45 52 53 49 4f 4e 20 5c 22 5b 25 2e ST_VERSION \"[%.
0830: 31 30 73 5d 5c 22 5c 6e 22 2c 20 24 24 31 7d 27 10s]\"\n", $$1}'
0840: 20 5c 0a 09 09 24 28 53 52 43 44 49 52 29 2f 2e \...$(SRCDIR)/.
0850: 2e 2f 6d 61 6e 69 66 65 73 74 2e 75 75 69 64 20 ./manifest.uuid
0860: 3e 3e 56 45 52 53 49 4f 4e 2e 68 0a 09 61 77 6b >>VERSION.h..awk
0870: 20 27 24 24 31 3d 3d 22 44 22 7b 70 72 69 6e 74 '$$1=="D"{print
0880: 66 20 22 23 64 65 66 69 6e 65 20 4d 41 4e 49 46 f "#define MANIF
0890: 45 53 54 5f 44 41 54 45 20 5c 22 25 73 20 25 73 EST_DATE \"%s %s
08a0: 5c 22 5c 6e 22 2c 5c 0a 09 09 73 75 62 73 74 72 \"\n",\...substr
08b0: 28 24 24 32 2c 31 2c 31 30 29 2c 73 75 62 73 74 ($$2,1,10),subst
08c0: 72 28 24 24 32 2c 31 32 29 7d 27 20 5c 0a 09 09 r($$2,12)}' \...
08d0: 24 28 53 52 43 44 49 52 29 2f 2e 2e 2f 6d 61 6e $(SRCDIR)/../man
08e0: 69 66 65 73 74 20 3e 3e 56 45 52 53 49 4f 4e 2e ifest >>VERSION.
08f0: 68 0a 0a 24 28 41 50 50 4e 41 4d 45 29 3a 09 68 h..$(APPNAME):.h
0900: 65 61 64 65 72 73 20 24 28 4f 42 4a 29 20 73 71 eaders $(OBJ) sq
0910: 6c 69 74 65 33 2e 6f 0a 09 24 28 54 43 43 29 20 lite3.o..$(TCC)
0920: 2d 6f 20 24 28 41 50 50 4e 41 4d 45 29 20 24 28 -o $(APPNAME) $(
0930: 4f 42 4a 29 20 73 71 6c 69 74 65 33 2e 6f 20 24 OBJ) sqlite3.o $
0940: 28 4c 49 42 29 0a 0a 63 6c 65 61 6e 3a 09 0a 09 (LIB)..clean:...
0950: 72 6d 20 2d 66 20 2a 2e 6f 20 2a 5f 2e 63 20 24 rm -f *.o *_.c $
0960: 28 41 50 50 4e 41 4d 45 29 20 56 45 52 53 49 4f (APPNAME) VERSIO
0970: 4e 2e 68 0a 09 72 6d 20 2d 66 20 74 72 61 6e 73 N.h..rm -f trans
0980: 6c 61 74 65 20 6d 61 6b 65 68 65 61 64 65 72 73 late makeheaders
0990: 20 6d 6b 69 6e 64 65 78 20 70 61 67 65 5f 69 6e mkindex page_in
09a0: 64 65 78 2e 68 20 68 65 61 64 65 72 73 7d 0a 0a dex.h headers}..
09b0: 73 65 74 20 68 66 69 6c 65 73 20 7b 7d 0a 66 6f set hfiles {}.fo
09c0: 72 65 61 63 68 20 73 20 5b 6c 73 6f 72 74 20 24 reach s [lsort $
09d0: 73 72 63 5d 20 7b 6c 61 70 70 65 6e 64 20 68 66 src] {lappend hf
09e0: 69 6c 65 73 20 24 73 2e 68 7d 0a 70 75 74 73 20 iles $s.h}.puts
09f0: 22 5c 74 72 6d 20 2d 66 20 24 68 66 69 6c 65 73 "\trm -f $hfiles
0a00: 5c 6e 22 0a 0a 73 65 74 20 6d 68 61 72 67 73 20 \n"..set mhargs
0a10: 7b 7d 0a 66 6f 72 65 61 63 68 20 73 20 5b 6c 73 {}.foreach s [ls
0a20: 6f 72 74 20 24 73 72 63 5d 20 7b 0a 20 20 61 70 ort $src] {. ap
0a30: 70 65 6e 64 20 6d 68 61 72 67 73 20 22 20 24 7b pend mhargs " ${
0a40: 73 7d 5f 2e 63 3a 24 73 2e 68 22 0a 20 20 73 65 s}_.c:$s.h". se
0a50: 74 20 65 78 74 72 61 5f 68 28 24 73 29 20 7b 7d t extra_h($s) {}
0a60: 0a 7d 0a 61 70 70 65 6e 64 20 6d 68 61 72 67 73 .}.append mhargs
0a70: 20 22 20 5c 24 28 53 52 43 44 49 52 29 2f 73 71 " \$(SRCDIR)/sq
0a80: 6c 69 74 65 33 2e 68 20 2e 2f 56 45 52 53 49 4f lite3.h ./VERSIO
0a90: 4e 2e 68 22 0a 70 75 74 73 20 22 68 65 61 64 65 N.h".puts "heade
0aa0: 72 73 3a 5c 74 6d 61 6b 65 68 65 61 64 65 72 73 rs:\tmakeheaders
0ab0: 20 6d 6b 69 6e 64 65 78 20 5c 24 28 54 52 41 4e mkindex \$(TRAN
0ac0: 53 5f 53 52 43 29 20 2e 2f 56 45 52 53 49 4f 4e S_SRC) ./VERSION
0ad0: 2e 68 22 0a 70 75 74 73 20 22 5c 74 2e 2f 6d 61 .h".puts "\t./ma
0ae0: 6b 65 68 65 61 64 65 72 73 20 24 6d 68 61 72 67 keheaders $mharg
0af0: 73 22 0a 70 75 74 73 20 22 5c 74 2e 2f 6d 6b 69 s".puts "\t./mki
0b00: 6e 64 65 78 20 5c 24 28 54 52 41 4e 53 5f 53 52 ndex \$(TRANS_SR
0b10: 43 29 20 3e 70 61 67 65 5f 69 6e 64 65 78 2e 68 C) >page_index.h
0b20: 22 0a 70 75 74 73 20 22 5c 74 74 6f 75 63 68 20 ".puts "\ttouch
0b30: 68 65 61 64 65 72 73 5c 6e 22 0a 73 65 74 20 65 headers\n".set e
0b40: 78 74 72 61 5f 68 28 6d 61 69 6e 29 20 70 61 67 xtra_h(main) pag
0b50: 65 5f 69 6e 64 65 78 2e 68 0a 0a 66 6f 72 65 61 e_index.h..forea
0b60: 63 68 20 73 20 5b 6c 73 6f 72 74 20 24 73 72 63 ch s [lsort $src
0b70: 5d 20 7b 0a 20 20 70 75 74 73 20 22 24 7b 73 7d ] {. puts "${s}
0b80: 5f 2e 63 3a 5c 74 5c 24 28 53 52 43 44 49 52 29 _.c:\t\$(SRCDIR)
0b90: 2f 24 73 2e 63 20 5c 24 28 53 52 43 44 49 52 29 /$s.c \$(SRCDIR)
0ba0: 2f 56 45 52 53 49 4f 4e 20 74 72 61 6e 73 6c 61 /VERSION transla
0bb0: 74 65 22 0a 20 20 70 75 74 73 20 22 5c 74 2e 2f te". puts "\t./
0bc0: 74 72 61 6e 73 6c 61 74 65 20 5c 24 28 53 52 43 translate \$(SRC
0bd0: 44 49 52 29 2f 24 73 2e 63 20 7c 20 73 65 64 20 DIR)/$s.c | sed
0be0: 2d 66 20 5c 24 28 53 52 43 44 49 52 29 2f 56 45 -f \$(SRCDIR)/VE
0bf0: 52 53 49 4f 4e 20 3e 24 7b 73 7d 5f 2e 63 5c 6e RSION >${s}_.c\n
0c00: 22 0a 20 20 70 75 74 73 20 22 24 73 2e 6f 3a 5c ". puts "$s.o:\
0c10: 74 24 7b 73 7d 5f 2e 63 20 24 73 2e 68 20 24 65 t${s}_.c $s.h $e
0c20: 78 74 72 61 5f 68 28 24 73 29 20 5c 24 28 53 52 xtra_h($s) \$(SR
0c30: 43 44 49 52 29 2f 63 6f 6e 66 69 67 2e 68 22 0a CDIR)/config.h".
0c40: 20 20 70 75 74 73 20 22 5c 74 5c 24 28 58 54 43 puts "\t\$(XTC
0c50: 43 29 20 2d 6f 20 24 73 2e 6f 20 2d 63 20 24 7b C) -o $s.o -c ${
0c60: 73 7d 5f 2e 63 5c 6e 22 0a 20 20 70 75 74 73 20 s}_.c\n". puts
0c70: 22 24 73 2e 68 3a 5c 74 6d 61 6b 65 68 65 61 64 "$s.h:\tmakehead
0c80: 65 72 73 22 0a 20 20 70 75 74 73 20 22 5c 74 2e ers". puts "\t.
0c90: 2f 6d 61 6b 65 68 65 61 64 65 72 73 20 24 6d 68 /makeheaders $mh
0ca0: 61 72 67 73 5c 6e 5c 74 74 6f 75 63 68 20 68 65 args\n\ttouch he
0cb0: 61 64 65 72 73 5c 6e 22 0a 7d 0a 0a 0a 70 75 74 aders\n".}...put
0cc0: 73 20 22 73 71 6c 69 74 65 33 2e 6f 3a 5c 74 5c s "sqlite3.o:\t\
0cd0: 24 28 53 52 43 44 49 52 29 2f 73 71 6c 69 74 65 $(SRCDIR)/sqlite
0ce0: 33 2e 63 22 0a 73 65 74 20 6f 70 74 20 7b 2d 44 3.c".set opt {-D
0cf0: 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 4c 4f 41 44 SQLITE_OMIT_LOAD
0d00: 5f 45 58 54 45 4e 53 49 4f 4e 3d 31 20 2d 44 53 _EXTENSION=1 -DS
0d10: 51 4c 49 54 45 5f 50 52 49 56 41 54 45 3d 7d 0a QLITE_PRIVATE=}.
0d20: 61 70 70 65 6e 64 20 6f 70 74 20 22 20 2d 44 54 append opt " -DT
0d30: 48 52 45 41 44 53 41 46 45 3d 30 20 2d 44 53 51 HREADSAFE=0 -DSQ
0d40: 4c 49 54 45 5f 44 45 46 41 55 4c 54 5f 46 49 4c LITE_DEFAULT_FIL
0d50: 45 5f 46 4f 52 4d 41 54 3d 34 22 0a 70 75 74 73 E_FORMAT=4".puts
0d60: 20 22 5c 74 5c 24 28 58 54 43 43 29 20 24 6f 70 "\t\$(XTCC) $op
0d70: 74 20 2d 63 20 5c 24 28 53 52 43 44 49 52 29 2f t -c \$(SRCDIR)/
0d80: 73 71 6c 69 74 65 33 2e 63 20 2d 6f 20 73 71 6c sqlite3.c -o sql
0d90: 69 74 65 33 2e 6f 5c 6e 22 0a ite3.o\n".