Subversion Repositories gelsvn

Rev

Rev 137 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 137 Rev 138
Line 4... Line 4...
4
.SUFFIXES: .cpp .o .c
4
.SUFFIXES: .cpp .o .c
5
 
5
 
6
### the user configuration makefile
6
### the user configuration makefile
7
include ${SOURCEROOT}/makefiles/config.mk
7
include ${SOURCEROOT}/makefiles/config.mk
8
 
8
 
9
### Use a shell script to guess the compiler
-
 
10
ifeq ($(strip ${CXX}),)
-
 
11
CXX = $(shell ${SOURCEROOT}/makefiles/findcompiler.sh)
-
 
12
endif
-
 
13
 
-
 
14
### Define operating system and CPU
-
 
15
OS =$(subst ${empty} ${empty},_,$(shell uname -s))
-
 
16
CPU =$(subst ${empty} ${empty},_,$(shell uname -m))
-
 
17
 
-
 
18
### Define the empty string
-
 
19
empty =
-
 
20
 
-
 
21
### The platform is determined by OS CPU and compiler 
-
 
22
PLATFORM = ${OS}_${CPU}_${CXX}
-
 
23
 
-
 
24
### Default target is release, unless debug is given as goal
-
 
25
ifndef TARGET
-
 
26
TARGET = release
-
 
27
endif
-
 
28
 
-
 
29
### Concatenation of platform and target yields a string used as 
-
 
30
### suffix of makefiles and in the name of the builddir.
-
 
31
PLATFORM_TARG = ${PLATFORM}_$(TARGET)
-
 
32
 
-
 
33
### Include platform specific makefile
9
### Include platform specific makefile
34
include  ${SOURCEROOT}/makefiles/${PLATFORM}.mk
10
include  ${SOURCEROOT}/makefiles/${PLATFORM}.mk
35
 
11
 
36
### BUILD is the subdirectory where all builds reside.
12
### BUILD is the subdirectory where all builds reside.
37
BUILD								= .build
13
BUILD								= .build