Subversion Repositories gelsvn

Rev

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

Rev 138 Rev 178
1
######################################################################
1
######################################################################
2
### This is the configuration file where we tell make which compiler
2
### This is the configuration file where we tell make which compiler
3
### to use and whether we want to go for a debug or release version
3
### to use and whether we want to go for a debug or release version
4
######################################################################
4
######################################################################
5
 
5
 
6
### C++ compiler (may be left blank - in this case, I guess which compiler
6
### C++ compiler (may be left blank - in this case, I guess which compiler
7
### to use from a list of options.
7
### to use from a list of options.
8
### If you must manually specify compiler, do so by naming it below.
8
### If you must manually specify compiler, do so by naming it below.
9
CXX =
9
CXX =
10
 
10
 
11
### Use a shell script to guess the compiler if not defined
11
### Use a shell script to guess the compiler if not defined
12
ifeq ($(strip ${CXX}),)
12
ifeq ($(strip ${CXX}),)
13
CXX = $(shell ${SOURCEROOT}/makefiles/findcompiler.sh)
13
CXX = $(shell ${SOURCEROOT}/makefiles/findcompiler.sh)
14
endif
14
endif
15
 
15
 
16
### Target (debug or release)
16
### Target (debug or release)
17
### default is debug. The preferred way of specifying a target is to
17
### default is debug. The preferred way of specifying a target is to
18
### type "make TARGET=release" on the command line.
18
### type "make TARGET=release" on the command line.
19
ifndef TARGET
19
ifndef TARGET
20
TARGET = debug
20
TARGET = debug
21
endif
21
endif
22
 
22
 
23
### Define the empty string
23
### Define the empty string
24
empty =
24
empty =
25
 
25
 
26
### Define operating system and CPU
26
### Define operating system and CPU
27
OS =$(subst ${empty} ${empty},_,$(shell uname -s))
27
OS =$(subst ${empty} ${empty},_,$(shell uname -s))
28
CPU =$(subst ${empty} ${empty},_,$(shell uname -m))
28
CPU =$(subst ${empty} ${empty},_,$(shell uname -m))
29
 
29
 
30
### The platform is determined by OS CPU and compiler 
30
### The platform is determined by OS CPU and compiler 
31
PLATFORM = ${OS}_${CPU}_${CXX}
31
PLATFORM = ${OS}_${CPU}_${CXX}
32
 
32
 
33
### Concatenation of platform and target yields a string used as 
33
### Concatenation of platform and target yields a string used as 
34
### suffix of makefiles and in the name of the builddir.
34
### suffix of makefiles and in the name of the builddir.
35
PLATFORM_TARG = ${PLATFORM}_$(TARGET)
35
PLATFORM_TARG = ${PLATFORM}_$(TARGET)
-
 
36
 
-
 
37
### LIBDIR is the directory where we stick .a files pertaining to 
-
 
38
### the specific combination of platform and target.
-
 
39
LIBDIR							= ${SOURCEROOT}/lib/${PLATFORM_TARG}
-
 
40
 
-
 
41
### BINDIR is the directory where binary files are put.
-
 
42
BINDIR							= ${SOURCEROOT}/bin
36
 
43