1
# --------------------------------------------------------------
2
# (C)Copyright 2001,2008,
3
# International Business Machines Corporation,
4
# Sony Computer Entertainment, Incorporated,
8
# --------------------------------------------------------------
11
#-----------------------------
13
#-----------------------------
16
# Compiler for programs that will run on the current (native) processor
20
# local = gcc toolchain installed in /usr/bin
21
# opt = gcc toolchain installed in /opt
23
HOST_COMPILER := local
24
# HOST_COMPILER := opt
28
#----------------------------------
30
#----------------------------------
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)
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)
47
#-----------------------------
49
#-----------------------------
52
# C compiler for programs that will run on the Cell SPU processor
56
# IBM xl compiler: xlc
63
ifndef FTN_SPU_COMPILER
64
# Fortran compiler for programs that will run on the Cell SPU processor
68
# IBM xl compiler: xlf
69
# GNU compiler: gfortran
71
# FTN_SPU_COMPILER := xlf
72
FTN_SPU_COMPILER := gfortran
76
# To get a corresponding "<file>.timing" file when building a
77
# "<file>.s" assembly file, set this value to 1.
84
#-----------------------------
86
#-----------------------------
89
# Both ppu compilers can be set with this variable
91
PPU32_COMPILER := $(PPU_COMPILER)
92
PPU64_COMPILER := $(PPU_COMPILER)
96
# C compiler for 32-bit programs that will run on the Cell PPU processor
100
# IBM xl compiler: xlc
102
# gcc installed in /usr/bin (native only): local
104
# PPU32_COMPILER := xlc
105
PPU32_COMPILER := gcc
106
# PPU32_COMPILER := local
109
ifndef PPU64_COMPILER
110
# C compiler for 64-bit programs that will run on the Cell PPU processor
114
# IBM xl compiler: xlc
116
# gcc installed in /usr/bin (native only): local
118
# PPU64_COMPILER := xlc
119
PPU64_COMPILER := gcc
120
# PPU64_COMPILER := local
123
ifdef FTN_PPU_COMPILER
124
# Both ppu compilers can be set with this variable
126
FTN_PPU32_COMPILER := $(FTN_PPU_COMPILER)
127
FTN_PPU64_COMPILER := $(FTN_PPU_COMPILER)
130
ifndef FTN_PPU32_COMPILER
131
# Fortran compiler for 32-bit programs that will run on the Cell PPU processor
135
# IBM xl compiler: xlf
136
# GNU compiler: gfortran
137
# gcc installed in /usr/bin (native only): local
139
# FTN_PPU32_COMPILER := xlf
140
FTN_PPU32_COMPILER := gfortran
141
# FTN_PPU32_COMPILER := local
144
ifndef FTN_PPU64_COMPILER
145
# Fortran compiler for 64-bit programs that will run on the Cell PPU processor
149
# IBM xl compiler: xlf
150
# GNU compiler: gfortran
151
# gcc installed in /usr/bin (native only): local
153
# FTN_PPU64_COMPILER := xlf
154
FTN_PPU64_COMPILER := gfortran
155
# FTN_PPU64_COMPILER := local