/ani/mrses

To get this branch, use:
bzr branch http://darksoft.org/webbzr/ani/mrses

« back to all changes in this revision

Viewing changes to cell/buildutils/make.env

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-28 04:30:08 UTC
  • Revision ID: csa@dside.dyndns.org-20100428043008-vd9z0nso9axezvlp
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# --------------------------------------------------------------  
 
2
# (C)Copyright 2001,2008,                                         
 
3
# International Business Machines Corporation,                    
 
4
# Sony Computer Entertainment, Incorporated,                      
 
5
# Toshiba Corporation,                                            
 
6
#                                                                 
 
7
# All Rights Reserved.                                            
 
8
# --------------------------------------------------------------  
 
9
# PROLOG END TAG zYx                                              
 
10
 
 
11
#-----------------------------
 
12
#               HOST
 
13
#-----------------------------
 
14
 
 
15
ifndef HOST_COMPILER
 
16
    # Compiler for programs that will run on the current (native) processor
 
17
    #
 
18
    # Choices:
 
19
    # --------
 
20
    # local     = gcc toolchain installed in /usr/bin
 
21
    # opt       = gcc toolchain installed in /opt
 
22
 
 
23
    HOST_COMPILER       := local
 
24
#   HOST_COMPILER       := opt
 
25
endif
 
26
 
 
27
 
 
28
#----------------------------------
 
29
#               SPU/PPU
 
30
#----------------------------------
 
31
 
 
32
ifndef XLC_VERSION
 
33
    # If SPU_COMPILER, PPU32_COMPILER, or PPU64_COMPILER is set to xlc, this
 
34
    # variable defines which version to use.
 
35
    XLC_REL             := $(shell /bin/ls /opt/ibmcmp/xlc/cbe 2>/dev/null|sort -rg |head -1)
 
36
    XLC_VERSION         := xlc/cbe/$(XLC_REL)
 
37
endif
 
38
 
 
39
ifndef XLF_VERSION
 
40
    # If FTN_SPU_COMPILER, FTN_PPU32_COMPILER, or FTN_PPU64_COMPILER is set to xlf,
 
41
    # this variable defines which version to use.
 
42
    XLF_REL             := $(shell /bin/ls /opt/ibmcmp/xlf/cbe 2>/dev/null|sort -rg |head -1)
 
43
    XLF_VERSION         := xlf/cbe/$(XLF_REL)
 
44
endif
 
45
 
 
46
 
 
47
#-----------------------------
 
48
#               SPU
 
49
#-----------------------------
 
50
 
 
51
ifndef SPU_COMPILER
 
52
    # C compiler for programs that will run on the Cell SPU processor
 
53
    #
 
54
    # Choices:
 
55
    # --------
 
56
    # IBM xl compiler:  xlc
 
57
    # GNU compiler:     gcc
 
58
 
 
59
#   SPU_COMPILER        := xlc
 
60
    SPU_COMPILER        := gcc
 
61
endif
 
62
 
 
63
ifndef FTN_SPU_COMPILER
 
64
    # Fortran compiler for programs that will run on the Cell SPU processor
 
65
    #
 
66
    # Choices:
 
67
    # --------
 
68
    # IBM xl compiler:  xlf
 
69
    # GNU compiler:     gfortran
 
70
 
 
71
#   FTN_SPU_COMPILER    := xlf
 
72
    FTN_SPU_COMPILER    := gfortran
 
73
endif
 
74
 
 
75
ifndef SPU_TIMING
 
76
    # To get a corresponding "<file>.timing" file when building a
 
77
    # "<file>.s" assembly file, set this value to 1.
 
78
 
 
79
    SPU_TIMING          := 0
 
80
#   SPU_TIMING          := 1
 
81
endif
 
82
 
 
83
 
 
84
#-----------------------------
 
85
#               PPU
 
86
#-----------------------------
 
87
 
 
88
ifdef PPU_COMPILER
 
89
    # Both ppu compilers can be set with this variable
 
90
 
 
91
    PPU32_COMPILER      := $(PPU_COMPILER)
 
92
    PPU64_COMPILER      := $(PPU_COMPILER)
 
93
endif
 
94
 
 
95
ifndef PPU32_COMPILER
 
96
    # C compiler for 32-bit programs that will run on the Cell PPU processor
 
97
    #
 
98
    # Choices:
 
99
    # --------
 
100
    # IBM xl compiler:  xlc
 
101
    # GNU compiler:     gcc
 
102
    # gcc installed in /usr/bin (native only):  local
 
103
 
 
104
#   PPU32_COMPILER      := xlc
 
105
    PPU32_COMPILER      := gcc
 
106
#   PPU32_COMPILER      := local
 
107
endif
 
108
 
 
109
ifndef PPU64_COMPILER
 
110
    # C compiler for 64-bit programs that will run on the Cell PPU processor
 
111
    #
 
112
    # Choices:
 
113
    # --------
 
114
    # IBM xl compiler:  xlc
 
115
    # GNU compiler:     gcc
 
116
    # gcc installed in /usr/bin (native only):  local
 
117
 
 
118
#   PPU64_COMPILER      := xlc
 
119
    PPU64_COMPILER      := gcc
 
120
#   PPU64_COMPILER      := local
 
121
endif
 
122
 
 
123
ifdef FTN_PPU_COMPILER
 
124
    # Both ppu compilers can be set with this variable
 
125
 
 
126
    FTN_PPU32_COMPILER  := $(FTN_PPU_COMPILER)
 
127
    FTN_PPU64_COMPILER  := $(FTN_PPU_COMPILER)
 
128
endif
 
129
 
 
130
ifndef FTN_PPU32_COMPILER
 
131
    # Fortran compiler for 32-bit programs that will run on the Cell PPU processor
 
132
    #
 
133
    # Choices:
 
134
    # --------
 
135
    # IBM xl compiler:  xlf
 
136
    # GNU compiler:     gfortran
 
137
    # gcc installed in /usr/bin (native only):  local
 
138
 
 
139
#   FTN_PPU32_COMPILER  := xlf
 
140
    FTN_PPU32_COMPILER  := gfortran
 
141
#   FTN_PPU32_COMPILER  := local
 
142
endif
 
143
 
 
144
ifndef FTN_PPU64_COMPILER
 
145
    # Fortran compiler for 64-bit programs that will run on the Cell PPU processor
 
146
    #
 
147
    # Choices:
 
148
    # --------
 
149
    # IBM xl compiler:  xlf
 
150
    # GNU compiler:     gfortran
 
151
    # gcc installed in /usr/bin (native only):  local
 
152
 
 
153
#   FTN_PPU64_COMPILER  := xlf
 
154
    FTN_PPU64_COMPILER  := gfortran
 
155
#   FTN_PPU64_COMPILER  := local
 
156
endif