2011-06-03 15:06:50 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# This script demonstrates how to do a full-featured build of the sqlite3
|
|
|
|
# command-line shell on Linux.
|
|
|
|
#
|
|
|
|
# SQLite source code should be in a sibling directory named "sqlite". For
|
|
|
|
# example, put SQLite sources in ~/sqlite/sqlite and run this script from
|
|
|
|
# ~/sqlite/bld. There should be an appropriate Makefile in the current
|
|
|
|
# directory as well.
|
|
|
|
#
|
|
|
|
make sqlite3.c
|
|
|
|
gcc -o sqlite3 -g -Os -I. \
|
|
|
|
-DSQLITE_THREADSAFE=0 \
|
|
|
|
-DSQLITE_ENABLE_VFSTRACE \
|
2012-04-11 13:38:53 +02:00
|
|
|
-DSQLITE_ENABLE_STAT3 \
|
|
|
|
-DSQLITE_ENABLE_FTS4 \
|
2011-06-03 15:06:50 +02:00
|
|
|
-DSQLITE_ENABLE_RTREE \
|
|
|
|
-DHAVE_READLINE \
|
2013-01-25 20:11:31 +01:00
|
|
|
../sqlite/src/shell.c \
|
2024-09-09 16:50:23 +02:00
|
|
|
../sqlite/ext/misc/vfstrace.c \
|
2011-06-03 15:06:50 +02:00
|
|
|
sqlite3.c -ldl -lreadline -lncurses
|