# Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net) # # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # vim: ft=make ifndef MAKE_CFG_IN MAKE_CFG_IN=yes SAGA_LOCATION = @SAGA_LOCATION@ HAVE_HADOOP = @HAVE_HADOOP@ HADOOP_HOME = @HADOOP_HOME@ HADOOP_VERSION = @HADOOP_VERSION@ include $(SAGA_LOCATION)/share/saga/make/saga.util.mk ifeq "$(HAVE_HADOOP)" "yes" FLAGS += -DHAVE_HDFS SAGA_CPPINCS += -I$(HADOOP_HOME)/src/c++/libhdfs/ SAGA_LDFLAGS += -L$(HADOOP_HOME)/src/c++/libhdfs -lhdfs else ifndef SAGA_IS_CLEANING $(error "no hadoop/libhdfs found by configure") endif endif ifdef JAVA_HOME SAGA_CPPINCS += -I$(JAVA_HOME)/include SAGA_CPPINCS += -I$(JAVA_HOME)/include/linux else $(error "JAVA_HOME must be set for this Makefile to work") endif endif # guard