Subversion Repositories gelsvn

Rev

Rev 58 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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