Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch ron-make Excluding Merge-Ins
This is equivalent to a diff from 7ca773bc31 to 7f2ccea7ff
2010-03-01
| ||
00:54 | Update the how-to-build documentation in the BUILD.txt file at the root of the source tree. check-in: 355d37ca8c user: drh tags: trunk | |
2010-02-28
| ||
08:18 | fix small issue in postbuild Closed-Leaf check-in: 7f2ccea7ff user: ron tags: ron-make | |
07:01 | added make wrapper script check-in: 0ddd305acb user: ron tags: ron-make | |
2010-02-27
| ||
12:26 | A wiki-style hyperlink to a well-formed ISO8601 date-time will link to the timeline at that date and time. check-in: 7ca773bc31 user: drh tags: trunk | |
2010-02-26
| ||
13:09 | Update SQLite to pre-3.6.23. check-in: 1efd09ed4f user: drh tags: trunk | |
Added make.sh.
1 +# This is a wrapper, permitting overriding of the MAKE parameters 2 + 3 +# Are we doing a cross-compile for Windows? Set to '.w32' if we are: 4 +cross= 5 + 6 +# Are we doing a clean? Set to 'clean' if so: 7 +clean= 8 + 9 +# Are we doing all platforms? 10 +doall=0 11 + 12 +postbuild() 13 +{ 14 + echo "Finished build" 15 +} 16 + 17 +die() 18 +{ 19 + echo $1 20 + exit 1 21 +} 22 + 23 +domake() 24 +{ 25 + optsfile="make.opts${cross}" 26 + ( 27 + if [ -f $optsfile ] 28 + then 29 + . $optsfile 30 + fi 31 + 32 + make -f Makefile${cross} ${clean} || die "Could not build!" 33 + 34 + if [ "$clean" != "clean" ] 35 + then 36 + postbuild 37 + fi 38 + ) 39 + 40 +} 41 + 42 +syntax() 43 +{ 44 +cat <<EOF 45 +OPTIONS: 46 + 47 + make.sh [help] [cross] [all] [clean] 48 + 49 +The options are position-insensitive and additive: 50 + 51 + 'help' displays this text 52 + 'cross' does a cross-compile for Windows 53 + 'all' does a regular build as well as a cross-compile 54 + 'clean' cleans rather than builds 55 + 56 +For example: 57 + 58 + make.sh cross clean 59 + 60 +Will clean the Windows cross-compiled build. Giving no options will make the 61 +script do a 'regular' build. 62 + 63 +FILES: 64 + 65 +In order to override the defaults, you may create a file "make.opts" and/or 66 +"make.opts.w32". These are normal "bash" scripts, in which you override whatever 67 +behavior you want. For example, you might override the "postbuild" function so 68 +that you create a ZIP file after compilation. Or you can export a new TCC 69 +variable to override the standard default values. See "Makefile" for values you 70 +might be interested in overriding. 71 +EOF 72 +exit 1 73 +} 74 + 75 + 76 +# process command-line options: 77 + 78 +while [ "$1" != "" ] 79 +do 80 + case $1 in 81 + cross) 82 + cross='.w32' 83 + ;; 84 + 85 + all) 86 + doall=1 87 + ;; 88 + 89 + clean) 90 + clean='clean' 91 + ;; 92 + help|*) 93 + syntax 94 + ;; 95 + esac 96 + shift 97 +done 98 + 99 +# Do what needs to be done! 100 +if [ "$doall" == "1" ] 101 +then 102 + cross= 103 + domake 104 + cross='.w32' 105 + domake 106 +else 107 + domake 108 +fi