README 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. This project is forked from 2.5.0 SQLite, and fixed for modern C compilers like GCC.
  2. Earlier SQLite is perfect source for code reading, and for database design and implementation.
  3. For SQLite 2.5.0, it has a core code base less than 20000 LOC in ANSI C which is easy to understand.
  4. I digged into historical versions of SQLite, and fixed this version against GCC on MacOS 10.13 and Debian 8.
  5. $sloccount SQLite-2.5.0-for-code-reading
  6. SLOC Directory SLOC-by-Language (Sorted)
  7. 20914 src_top_dir ansic=19895,yacc=584,tcl=435
  8. 6831 top_dir sh=6831
  9. 6363 www tcl=6363
  10. 4051 tool ansic=3606,tcl=372,awk=73
  11. 156 test tcl=156
  12. 0 doc (none)
  13. SQLite: An SQL Database Engine in a C Library
  14. To compile the project, first create a directory in which to place
  15. the build products. It is recommended, but not required, that the
  16. build directory be separate from the source directory. Cd into the
  17. build directory and then from the build directory run the configure
  18. script found at the root of the source tree. Then run "make".
  19. For example:
  20. tar xzf sqlite.tar.gz ;# Unpack the source tree into "sqlite"
  21. mkdir bld ;# Build will occur in a sibling directory
  22. cd bld ;# Change to the build directory
  23. ../sqlite/configure ;# Run the configure script
  24. make ;# Run the makefile.
  25. The configure script uses autoconf 2.50 and libtool. If the configure
  26. script does not work out for you, there is a generic makefile named
  27. "Makefile.template" in the top directory of the source tree that you
  28. can copy and edit to suite your needs. Comments on the generic makefile
  29. show what changes are needed.
  30. The windows binaries on the website are created using MinGW32 configured
  31. as a cross-compiler running under Linux. For details, see the ./publish.sh
  32. script at the top-level of the source tree.
  33. Contacts:
  34. http://www.hwaci.com/sw/sqlite/
  35. http://groups.yahoo.com/group/sqlite/
  36. drh@hwaci.com