diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-06-23 07:10:32 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-06-23 07:10:32 +0200 |
commit | b3cbaf4f29b65129cf12186351fd48deaf3dea2a (patch) | |
tree | ba0b13e7ab328066e31a1e28f1da5acc1b95aa6b | |
parent | eb3017a47cf464b1905afd8a3164baa139927fb5 (diff) |
Making OCCI optional.
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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) |