summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-06-23 07:10:32 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-06-23 07:10:32 +0200
commitb3cbaf4f29b65129cf12186351fd48deaf3dea2a (patch)
treeba0b13e7ab328066e31a1e28f1da5acc1b95aa6b /Makefile
parenteb3017a47cf464b1905afd8a3164baa139927fb5 (diff)
Making OCCI optional.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c4be914..599b399 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,8 @@ LDFLAGS_GL = -lGLU -lGL
STRIP = strip --strip-unneeded
endif
+HAVE_ORACLE=$(shell [ -d /usr/local/instantclient ] || [ -e /usr/include/oracle/11.1/client/occi.h ] || [ -e /usr/bin/sqlplus ] && echo true || echo false)
+
INCLUDES = \
-I../mogltk/include \
-I../Baltisot/include \
@@ -189,9 +191,14 @@ cdutils.cpp \
dvdabstract.cpp \
isobuilder.cpp \
yazedc.cpp \
+plugin-luaiup.cc \
+
+ifeq ($(HAVE_ORACLE),true)
+DEBUG_MODULES += \
LuaOCCI.cpp \
plugin-luaocci.cc \
-plugin-luaiup.cc \
+
+endif
WHOLE_SOURCES = $(BALTISOT_SOURCES) $(LUAINTERFACE_SOURCES) $(GL_GLUE)
DEBUG_SOURCES = $(DEBUG_MODULES)