@@ -8,6 +8,48 @@ If you are reading this on a Git mirror someplace, you are doing it wrong.
88The [ official repository] ( https://www.sqlite.org/src/ ) is better. Go there
99now.
1010
11+ ## Obtaining The Code
12+ 13+ SQLite sources are managed using the
14+ [ Fossil] ( https://www.fossil-scm.org/ ) , a distributed version control system
15+ that was specifically designed to support SQLite development.
16+ If you do not want to use Fossil, you can download tarballs or ZIP
17+ archives as follows:
18+ 19+ * Lastest trunk check-in:
20+ < https://www.sqlite.org/src/tarball/sqlite.tar.gz > or
21+ < https://www.sqlite.org/src/zip/sqlite.zip > .
22+ 23+ * Latest release:
24+ < https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=release > or
25+ < https://www.sqlite.org/src/zip/sqlite.zip?r=release > .
26+ 27+ * For other check-ins, substitute an appropriate branch name or
28+ tag or hash prefix for "release" in the URLs of the previous
29+ bullet. Or browse the [ timeline] ( https://www.sqlite.org/src/timeline )
30+ to locate the check-in desired, click on its information page link,
31+ then click on the "Tarball" or "ZIP Archive" links on the information
32+ page.
33+ 34+ If you do want to use Fossil to check out the source tree,
35+ first install Fossil version 2.0 or later.
36+ (Source tarballs and precompiled binaries available
37+ [ here] ( https://www.fossil-scm.org/fossil/uv/download.html ) .)
38+ Then run commands like this:
39+ 40+ mkdir ~/sqlite
41+ cd ~/sqlite
42+ fossil clone https://www.sqlite.org/src sqlite.fossil
43+ fossil open sqlite.fossil
44+ 45+ After setting up a repository using the steps above, you can always
46+ update to the lastest version using:
47+ 48+ fossil update trunk ;# latest trunk check-in
49+ fossil update release ;# latest official release
50+ 51+ Or type "fossil ui" to get a web-based user interface.
52+ 1153## Compiling
1254
1355First create a directory in which to place
@@ -18,13 +60,13 @@ script found at the root of the source tree. Then run "make".
1860
1961For example:
2062
21- tar xzf sqlite.tar.gz ;# Unpack the source tree into "sqlite"
22- mkdir bld ;# Build will occur in a sibling directory
23- cd bld ;# Change to the build directory
24- ../sqlite/configure ;# Run the configure script
25- make ;# Run the makefile.
26- make sqlite3.c ;# Build the "amalgamation" source file
27- make test ;# Run some tests (requires Tcl)
63+ tar xzf sqlite.tar.gz ;# Unpack the source tree into "sqlite"
64+ mkdir bld ;# Build will occur in a sibling directory
65+ cd bld ;# Change to the build directory
66+ ../sqlite/configure ;# Run the configure script
67+ make ;# Run the makefile.
68+ make sqlite3.c ;# Build the "amalgamation" source file
69+ make test ;# Run some tests (requires Tcl)
2870
2971See the makefile for additional targets.
3072
@@ -43,13 +85,13 @@ with the provided "Makefile.msc" to build one of the supported targets.
4385
4486For example:
4587
46- mkdir bld
47- cd bld
48- nmake /f Makefile.msc TOP=..\sqlite
49- nmake /f Makefile.msc sqlite3.c TOP=..\sqlite
50- nmake /f Makefile.msc sqlite3.dll TOP=..\sqlite
51- nmake /f Makefile.msc sqlite3.exe TOP=..\sqlite
52- nmake /f Makefile.msc test TOP=..\sqlite
88+ mkdir bld
89+ cd bld
90+ nmake /f Makefile.msc TOP=..\sqlite
91+ nmake /f Makefile.msc sqlite3.c TOP=..\sqlite
92+ nmake /f Makefile.msc sqlite3.dll TOP=..\sqlite
93+ nmake /f Makefile.msc sqlite3.exe TOP=..\sqlite
94+ nmake /f Makefile.msc test TOP=..\sqlite
5395
5496There are several build options that can be set via the NMAKE command
5597line. For example, to build for WinRT, simply add "FOR_WINRT=1" argument
0 commit comments