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