summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2014-08-15 03:26:32 +0000
committer R. Belmont <rb6502@users.noreply.github.com>2014-08-15 03:26:32 +0000
commit306a90c1f4dcc2b8943f777aa2438dc4ac7612ce (patch)
tree9f9f676d7f27d160a261584392acc16b730ff01d /makefile
parent822166b6ece4fb40321d4acf82ebeb0147fd3a1e (diff)
Allow use of external SQLite3 [Cesare Falco]
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/makefile b/makefile
index a81f44ba4b7..02d824808fd 100644
--- a/makefile
+++ b/makefile
@@ -228,6 +228,9 @@ BUILD_FLAC = 1
# uncomment next line to build jpeglib as part of MAME build
BUILD_JPEGLIB = 1
+# uncomment next line to build libsqlite3 as part of MAME/MESS build
+BUILD_SQLITE3 = 1
+
# uncomment next line to build PortMidi as part of MAME/MESS build
BUILD_MIDILIB = 1
@@ -254,7 +257,7 @@ BUILD_MIDILIB = 1
# DEPRECATED = 1
# specify the sanitizer to use or leave empty to use none
-# SANITIZE =
+# SANITIZE =
# uncomment next line to enable LTO (link-time optimizations)
# LTO = 1
@@ -760,7 +763,12 @@ LUA_LIB = $(OBJ)/liblua.a
WEB_LIB = $(OBJ)/libweb.a
# add SQLite3 library
+ifeq ($(BUILD_SQLITE3),1)
SQLITE3_LIB = $(OBJ)/libsqlite3.a
+else
+LIBS += -lsqlite3
+SQLITE3_LIB =
+endif
# add PortMidi MIDI library
ifeq ($(BUILD_MIDILIB),1)