summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)