blob: cd2838ebd66d8de81b805902519f826f0ce87226 [file] [log] [blame]
drh3043ac72011-06-03 13:06:50 +00001#!/bin/sh
2#
3# This script demonstrates how to do a full-featured build of the sqlite3
4# command-line shell on Linux.
5#
6# SQLite source code should be in a sibling directory named "sqlite". For
7# example, put SQLite sources in ~/sqlite/sqlite and run this script from
8# ~/sqlite/bld. There should be an appropriate Makefile in the current
9# directory as well.
10#
11make sqlite3.c
12gcc -o sqlite3 -g -Os -I. \
13 -DSQLITE_THREADSAFE=0 \
14 -DSQLITE_ENABLE_VFSTRACE \
drh85e72432012-04-11 11:38:53 +000015 -DSQLITE_ENABLE_STAT3 \
16 -DSQLITE_ENABLE_FTS4 \
drh3043ac72011-06-03 13:06:50 +000017 -DSQLITE_ENABLE_RTREE \
drh14172742012-12-31 19:18:38 +000018 -DSQLITE_ENABLE_REGEXP \
drhef4c0352013-01-25 19:11:31 +000019 -DSQLITE_ENABLE_SPELLFIX -DSQLITE_CORE=1 \
drh3043ac72011-06-03 13:06:50 +000020 -DHAVE_READLINE \
21 -DHAVE_USLEEP=1 \
drhef4c0352013-01-25 19:11:31 +000022 ../sqlite/src/shell.c \
drh14172742012-12-31 19:18:38 +000023 ../sqlite/src/test_regexp.c \
drhef4c0352013-01-25 19:11:31 +000024 ../sqlite/src/test_spellfix.c \
25 ../sqlite/src/test_vfstrace.c \
drh3043ac72011-06-03 13:06:50 +000026 sqlite3.c -ldl -lreadline -lncurses