13043ac70Sdrh#!/bin/sh 23043ac70Sdrh# 33043ac70Sdrh# This script demonstrates how to do a full-featured build of the sqlite3 43043ac70Sdrh# command-line shell on Linux. 53043ac70Sdrh# 63043ac70Sdrh# SQLite source code should be in a sibling directory named "sqlite". For 73043ac70Sdrh# example, put SQLite sources in ~/sqlite/sqlite and run this script from 83043ac70Sdrh# ~/sqlite/bld. There should be an appropriate Makefile in the current 93043ac70Sdrh# directory as well. 103043ac70Sdrh# 113043ac70Sdrhmake sqlite3.c 123043ac70Sdrhgcc -o sqlite3 -g -Os -I. \ 133043ac70Sdrh -DSQLITE_THREADSAFE=0 \ 143043ac70Sdrh -DSQLITE_ENABLE_VFSTRACE \ 1585e7243aSdrh -DSQLITE_ENABLE_STAT3 \ 1685e7243aSdrh -DSQLITE_ENABLE_FTS4 \ 173043ac70Sdrh -DSQLITE_ENABLE_RTREE \ 183043ac70Sdrh -DHAVE_READLINE \ 193043ac70Sdrh -DHAVE_USLEEP=1 \ 20*ef4c0352Sdrh ../sqlite/src/shell.c \ 21*ef4c0352Sdrh ../sqlite/src/test_vfstrace.c \ 223043ac70Sdrh sqlite3.c -ldl -lreadline -lncurses 23