From b3cbaf4f29b65129cf12186351fd48deaf3dea2a Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sun, 23 Jun 2013 07:10:32 +0200 Subject: Making OCCI optional. --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3