# 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_C SAGA_MK_INC_CONF_C = yes ########################################################### # # paths # SAGA_LOCATION = @prefix@ SAGA_BIN_ROOT = $(SAGA_LOCATION)/bin SAGA_LIB_ROOT = $(SAGA_LOCATION)/lib SAGA_INI_ROOT = $(SAGA_LOCATION)/share/saga SAGA_HDR_ROOT = $(SAGA_LOCATION)/include SAGA_MAK_ROOT = $(SAGA_LOCATION)/share/saga/make SAGA_EXT_ROOT = $(SAGA_ROOT)/external # ########################################################### ########################################################### # # Tools # CP = @SAGA_CP@ -f LN = @SAGA_LN@ -s LS = @SAGA_LS@ MV = @SAGA_MV@ -f RM = @SAGA_RM@ -f AWK = @SAGA_AWK@ CAT = @SAGA_CAT@ CUT = @SAGA_CUT@ ENV = @SAGA_ENV@ RPM = @SAGA_RPM@ PWD = @SAGA_PWD@ SED = @SAGA_SED@ TAR = @SAGA_TAR@ DATE = @SAGA_DATE@ GREP = @SAGA_GREP@ ECHO = @SAGA_ECHO@ FIND = @SAGA_FIND@ GZIP = @SAGA_GZIP@ TEST = @SAGA_TEST@ TRUE = @SAGA_TRUE@ MKDIR = @SAGA_MKDIR@ -p TOUCH = @SAGA_TOUCH@ FALSE = @SAGA_FALSE@ MAKE += --no-print-directory # ############################################################ ########################################################### # # Compiler # SAGA_CPP = @SAGA_CPP@ SAGA_CC = @SAGA_CC@ SAGA_CXX = @SAGA_CXX@ SAGA_LD = @SAGA_CXX@ SAGA_LD_BIN = @SAGA_CXX@ SAGA_LD_LIB = @SAGA_CXX@ SAGA_CPPFLAGS = @SAGA_CPPFLAGS@ SAGA_CCFLAGS = @SAGA_CCFLAGS@ SAGA_CXXFLAGS = @SAGA_CXXFLAGS@ SAGA_LDFLAGS_EXT = @SAGA_LDFLAGS_EXT@ SAGE_LEXT = so SAGA_CCFLAGS += $(SAGA_INC_FLAGS) SAGA_CXXFLAGS += $(SAGA_INC_FLAGS) SAGA_LDFLAGS_EXT += $(SAGA_LIB_FLAGS) # ########################################################### SAGA_OSTYPE = $(shell uname) ########################################################### # # MacOS X specific compiler settings # ifeq "$(SAGA_OSTYPE)" "Darwin" SAGA_CXXFLAGS += -x c++ -pipe -Os -mtune=G5 SAGA_CXXFLAGS += -Wno-trigraphs -fvisibility-inlines-hidden SAGA_LD_LIB += -dynamiclib SAGA_LEXT = dylib endif # ########################################################### ########################################################### # # IBM AIX 5 specific compiler settings # ifeq "$(SAGA_OSTYPE)" "AIX" SAGA_LEXT = so SAGA_LD_LIB += -shared -pthread -shared -Wl,-G -Wl,-brtl ifeq "$(SAGA_CC)" "gcc" SAGA_CCFLAGS += -D__AIX__ SAGA_CXXFLAGS += -D__AIX__ endif endif # ########################################################### ########################################################### # # Linux specific compiler settings # ifeq "$(SAGA_OSTYPE)" "Linux" SAGA_LEXT = so SAGA_LD_LIB += -shared ifeq "$(SAGA_CC)" "gcc" SAGA_CCFLAGS += -pipe -pthread -fPIC -fvisibility=default endif ifeq "$(SAGA_CC)" "icc" SAGA_CCFLAGS += -cxxlib-icc -openmp endif SAGA_CCFLAGS += -Wall -Wno-unknown-pragmas ifeq "$(SAGA_CXX)" "g++" SAGA_CXXFLAGS += $(SAGA_CCFLAGS) endif ifeq "$(SAGA_CXX)" "icc" SAGA_CXXFLAGS += $(SAGA_CCFLAGS) endif endif # ########################################################### ########################################################### # # well, we always need boost... # ifeq "$(filter clean distclean confclean,$(MAKECMDGOALS))" "" ifdef SAGA_ROOT include $(SAGA_ROOT)/make/saga.config.boost.c.mk else include $(SAGA_LOCATION)/share/saga/make/saga.config.boost.c.mk endif endif # ########################################################### ########################################################### # # we also load any configuration checks we may know about # ifeq "$(filter clean distclean confclean,$(MAKECMDGOALS))" "" ifdef SAGA_ROOT include $(SAGA_ROOT)/make/saga.config.check.c.mk else include $(SAGA_LOCATION)/share/saga/make/saga.config.check.c.mk endif endif # ########################################################### endif # guard