15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#!/bin/sh 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# This script is used to compile SQLite into a shared library on Linux. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# Two separate shared libraries are generated. "sqlite3.so" is the core 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# library. "tclsqlite3.so" contains the TCL bindings and is the 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# library that is loaded into TCL in order to run SQLite. 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)CFLAGS=-O2 -Wall 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)make fts2amal.c 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)echo gcc $CFLAGS -shared fts2amal.c -o fts2.so 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)gcc $CFLAGS -shared fts2amal.c -o fts2.so 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)strip fts2.so 14