Subversion Repositories gelsvn

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 bj 1
SHELL=/bin/sh
2
 
3
### Include the user configuration makefile
4
include ${SOURCEROOT}/makefiles/config.mk
5
 
6
ifeq ($(strip ${CXX}),)
7
CXX = $(shell ${SOURCEROOT}/makefiles/findcompiler.sh)
8
endif
9
 
10
OS =$(subst ${empty} ${empty},_,$(shell uname -s))
11
CPU =$(subst ${empty} ${empty},_,$(shell uname -m))
12
 
13
empty =
14
### The platform is determined by OS CPU and compiler 
15
PLATFORM = ${OS}_${CPU}_${CXX}
16
 
17
 
18
### Default target is release, unless debug is given as goal
19
ifndef TARGET
20
TARGET = release
21
endif
22
 
23
### Concatenation of platform and target yields a string used as 
24
### suffix of makefiles and in the name of the builddir.
25
PLATFORM_TARG = ${PLATFORM}_$(TARGET)