aboutsummaryrefslogtreecommitdiff
path: root/Makefile.fallback
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2018-12-17 20:19:35 +0000
committerCy Schubert <cy@FreeBSD.org>2018-12-17 20:19:35 +0000
commitaaa2feb76da294285a5fae4fc94f155a14894e3d (patch)
treef6726e006ca3bdf81c6858d76f18bceecf5007e4 /Makefile.fallback
parent68309dce47073a7f3f739b107c53c195b43bd812 (diff)
Import sqlite3-3.26.0 (3260000)vendor/sqlite3/sqlite-3260000
Diffstat (limited to 'Makefile.fallback')
-rw-r--r--Makefile.fallback19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile.fallback b/Makefile.fallback
new file mode 100644
index 000000000000..9355b147a8fd
--- /dev/null
+++ b/Makefile.fallback
@@ -0,0 +1,19 @@
+#!/usr/bin/make
+#
+# If the configure script does not work, then this Makefile is available
+# as a backup. Manually configure the variables below.
+#
+# Note: This makefile works out-of-the-box on MacOS 10.2 (Jaguar)
+#
+CC = gcc
+CFLAGS = -O0 -I.
+LIBS = -lz
+COPTS += -D_BSD_SOURCE
+COPTS += -DSQLITE_ENABLE_LOCKING_STYLE=0
+COPTS += -DSQLITE_THREADSAFE=0
+COPTS += -DSQLITE_OMIT_LOAD_EXTENSION
+COPTS += -DSQLITE_WITHOUT_ZONEMALLOC
+COPTS += -DSQLITE_ENABLE_RTREE
+
+sqlite3: shell.c sqlite3.c
+ $(CC) $(CFLAGS) $(COPTS) -o sqlite3 shell.c sqlite3.c $(LIBS)