# Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net) # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ifndef SAGA_MK_INC_CONF_BOOST SAGA_MK_INC_CONF_BOOST = yes ########################################################### # # Boost # SAGA_HAVE_BOOST = @HAVE_BOOST@ SAGA_BOOST_LOCATION = @BOOST_LOCATION@ SAGA_BOOST_HAVE_ASIO = @BOOST_HAVE_ASIO@ SAGA_BOOST_HAVE_SYSTEM = @BOOST_HAVE_SYSTEM@ # always add our local boost include paths, before teh system boost installation ifdef SAGA_ROOT BOOST_EXT_DIRS = $(abspath $(wildcard $(SAGA_ROOT)/external/boost/*/.)) ifeq "$(BOOST_EXT_DIRS)" "" BOOST_EXT_DIRS = $(wildcard $(SAGA_ROOT)/external/boost/*/.) endif ifeq "$(SAGA_BOOST_HAVE_ASIO)" "yes" BOOST_EXT_ASIO = $(wildcard $(SAGA_ROOT)/external/boost/asio) BOOST_EXT_DIRS := $(filter-out $(BOOST_EXT_ASIO), $(BOOST_EXT_DIRS)) endif ifeq "$(SAGA_BOOST_HAVE_SYSTEM)" "yes" BOOST_EXT_SYSTEM = $(wildcard $(SAGA_ROOT)/external/boost/system) BOOST_EXT_DIRS := $(filter-out $(BOOST_EXT_SYSTEM), $(BOOST_EXT_DIRS)) endif BOOST_EXT_INCLUDES = $(foreach dir,$(BOOST_EXT_DIRS),-I$(dir) ) SAGA_CPPINCS += $(BOOST_EXT_INCLUDES) endif # add boost ifeq "x$(SAGA_HAVE_BOOST)" "xyes" SAGA_BOOST_INC_FLAGS = @BOOST_CPPFLAGS@ SAGA_BOOST_LDFLAGS = @BOOST_LDFLAGS@ @BOOST_LIBS@ SAGA_BOOST_S_LIBS = @BOOST_S_LIBS@ SAGA_CPPINCS += $(SAGA_BOOST_INC_FLAGS) SAGA_LDFLAGS_EXT += $(SAGA_BOOST_LDFLAGS) SAGA_S_LIBS += $(SAGA_BOOST_S_LIBS) endif # add libboost_system ifneq "x$(SAGA_BOOST_HAVE_SYSTEM)" "xyes" ifdef SAGA_ROOT SAGA_LDFLAGS_EXT += -L$(SAGA_ROOT)/external/boost/system/libs/system/src -lboost_system else SAGA_LDFLAGS_EXT += -L$(SAGA_LOCATION)/lib -lboost_system endif endif SAGA_BOOST_TEST_LDFLAGS = @BOOST_UNIT_TEST_FRAMEWORK_LIBS@ SAGA_BOOST_OPTIONS_LDFLAGS = @BOOST_PROGRAM_OPTIONS_LIBS@ # ########################################################### endif # guard