xref: /freebsd/contrib/sqlite3/Makefile.fallback (revision 076b94438c7d42c1b4661ed1e12e3b12ca69361a)
1*076b9443SCy Schubert#!/usr/bin/make
2*076b9443SCy Schubert#
3*076b9443SCy Schubert# If the configure script does not work, then this Makefile is available
4*076b9443SCy Schubert# as a backup.  Manually configure the variables below.
5*076b9443SCy Schubert#
6*076b9443SCy Schubert# Note:  This makefile works out-of-the-box on MacOS 10.2 (Jaguar)
7*076b9443SCy Schubert#
8*076b9443SCy SchubertCC = gcc
9*076b9443SCy SchubertCFLAGS = -O0 -I.
10*076b9443SCy SchubertLIBS = -lz
11*076b9443SCy SchubertCOPTS += -D_BSD_SOURCE
12*076b9443SCy SchubertCOPTS += -DSQLITE_ENABLE_LOCKING_STYLE=0
13*076b9443SCy SchubertCOPTS += -DSQLITE_THREADSAFE=0
14*076b9443SCy SchubertCOPTS += -DSQLITE_OMIT_LOAD_EXTENSION
15*076b9443SCy SchubertCOPTS += -DSQLITE_WITHOUT_ZONEMALLOC
16*076b9443SCy SchubertCOPTS += -DSQLITE_ENABLE_RTREE
17*076b9443SCy Schubert
18*076b9443SCy Schubertsqlite3:	shell.c sqlite3.c
19*076b9443SCy Schubert	$(CC) $(CFLAGS) $(COPTS) -o sqlite3 shell.c sqlite3.c $(LIBS)
20