/ani/mrses

To get this branch, use:
bzr branch http://suren.me/webbzr/ani/mrses
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# --------------------------------------------------------------  
# (C)Copyright 2001,2008,                                         
# International Business Machines Corporation,                    
# Sony Computer Entertainment, Incorporated,                      
# Toshiba Corporation,                                            
#                                                                 
# All Rights Reserved.                                            
# --------------------------------------------------------------  
# PROLOG END TAG zYx                                              

#-----------------------------
# 		HOST
#-----------------------------

ifndef HOST_COMPILER
    # Compiler for programs that will run on the current (native) processor
    #
    # Choices:
    # --------
    # local 	= gcc toolchain installed in /usr/bin
    # opt 	= gcc toolchain installed in /opt

    HOST_COMPILER	:= local
#   HOST_COMPILER	:= opt
endif


#----------------------------------
# 		SPU/PPU
#----------------------------------

ifndef XLC_VERSION
    # If SPU_COMPILER, PPU32_COMPILER, or PPU64_COMPILER is set to xlc, this
    # variable defines which version to use.
    XLC_REL             := $(shell /bin/ls /opt/ibmcmp/xlc/cbe 2>/dev/null|sort -rg |head -1)
    XLC_VERSION         := xlc/cbe/$(XLC_REL)
endif

ifndef XLF_VERSION
    # If FTN_SPU_COMPILER, FTN_PPU32_COMPILER, or FTN_PPU64_COMPILER is set to xlf,
    # this variable defines which version to use.
    XLF_REL             := $(shell /bin/ls /opt/ibmcmp/xlf/cbe 2>/dev/null|sort -rg |head -1)
    XLF_VERSION         := xlf/cbe/$(XLF_REL)
endif


#-----------------------------
# 		SPU
#-----------------------------

ifndef SPU_COMPILER
    # C compiler for programs that will run on the Cell SPU processor
    #
    # Choices:
    # --------
    # IBM xl compiler:	xlc
    # GNU compiler:	gcc

#   SPU_COMPILER	:= xlc
    SPU_COMPILER	:= gcc
endif

ifndef FTN_SPU_COMPILER
    # Fortran compiler for programs that will run on the Cell SPU processor
    #
    # Choices:
    # --------
    # IBM xl compiler:	xlf
    # GNU compiler:	gfortran

#   FTN_SPU_COMPILER	:= xlf
    FTN_SPU_COMPILER	:= gfortran
endif

ifndef SPU_TIMING
    # To get a corresponding "<file>.timing" file when building a
    # "<file>.s" assembly file, set this value to 1.

    SPU_TIMING		:= 0
#   SPU_TIMING		:= 1
endif


#-----------------------------
# 		PPU
#-----------------------------

ifdef PPU_COMPILER
    # Both ppu compilers can be set with this variable

    PPU32_COMPILER	:= $(PPU_COMPILER)
    PPU64_COMPILER	:= $(PPU_COMPILER)
endif

ifndef PPU32_COMPILER
    # C compiler for 32-bit programs that will run on the Cell PPU processor
    #
    # Choices:
    # --------
    # IBM xl compiler:	xlc
    # GNU compiler:	gcc
    # gcc installed in /usr/bin (native only):	local

#   PPU32_COMPILER	:= xlc
    PPU32_COMPILER	:= gcc
#   PPU32_COMPILER	:= local
endif

ifndef PPU64_COMPILER
    # C compiler for 64-bit programs that will run on the Cell PPU processor
    #
    # Choices:
    # --------
    # IBM xl compiler:	xlc
    # GNU compiler:	gcc
    # gcc installed in /usr/bin (native only):	local

#   PPU64_COMPILER	:= xlc
    PPU64_COMPILER	:= gcc
#   PPU64_COMPILER	:= local
endif

ifdef FTN_PPU_COMPILER
    # Both ppu compilers can be set with this variable

    FTN_PPU32_COMPILER	:= $(FTN_PPU_COMPILER)
    FTN_PPU64_COMPILER	:= $(FTN_PPU_COMPILER)
endif

ifndef FTN_PPU32_COMPILER
    # Fortran compiler for 32-bit programs that will run on the Cell PPU processor
    #
    # Choices:
    # --------
    # IBM xl compiler:	xlf
    # GNU compiler:	gfortran
    # gcc installed in /usr/bin (native only):	local

#   FTN_PPU32_COMPILER	:= xlf
    FTN_PPU32_COMPILER	:= gfortran
#   FTN_PPU32_COMPILER	:= local
endif

ifndef FTN_PPU64_COMPILER
    # Fortran compiler for 64-bit programs that will run on the Cell PPU processor
    #
    # Choices:
    # --------
    # IBM xl compiler:	xlf
    # GNU compiler:	gfortran
    # gcc installed in /usr/bin (native only):	local

#   FTN_PPU64_COMPILER	:= xlf
    FTN_PPU64_COMPILER	:= gfortran
#   FTN_PPU64_COMPILER	:= local
endif