Rev 178 | Blame | Compare with Previous | Last modification | View Log | RSS feed
######################################################################
### This is the configuration file where we tell make which compiler
### to use and whether we want to go for a debug or release version
######################################################################
### C++ compiler (may be left blank - in this case, I guess which compiler
### to use from a list of options.
### If you must manually specify compiler, do so by naming it below.
CXX =
### Use a shell script to guess the compiler if not defined
ifeq ($(strip ${CXX}),)
CXX = $(shell ${SOURCEROOT}/makefiles/findcompiler.sh)
endif
### Target (debug or release)
### default is debug. The preferred way of specifying a target is to
### type "make TARGET=release" on the command line.
ifndef TARGET
TARGET = debug
endif
### Define the empty string
empty =
### Define operating system and CPU
OS =$(subst ${empty} ${empty},_,$(shell uname -s))
CPU =$(subst ${empty} ${empty},_,$(shell uname -m))
### The platform is determined by OS CPU and compiler
PLATFORM = ${OS}_${CPU}_${CXX}
### Concatenation of platform and target yields a string used as
### suffix of makefiles and in the name of the builddir.
PLATFORM_TARG = ${PLATFORM}_$(TARGET)
### LIBDIR is the directory where we stick .a files pertaining to
### the specific combination of platform and target.
LIBDIR = ${SOURCEROOT}/lib/${PLATFORM_TARG}
### BINDIR is the directory where binary files are put.
BINDIR = ${SOURCEROOT}/bin