mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Added initial support for LinuxPPC.
This commit is contained in:
13
etc/bashrc
13
etc/bashrc
@ -152,10 +152,12 @@ Linux)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ia64)
|
ia64)
|
||||||
WM_ARCH=linuxIA64
|
WM_ARCH=linuxIA64
|
||||||
export WM_COMPILER=I64
|
export WM_COMPILER=I64
|
||||||
;;
|
;;
|
||||||
|
|
||||||
mips64)
|
mips64)
|
||||||
WM_ARCH=SiCortex64
|
WM_ARCH=SiCortex64
|
||||||
export WM_COMPILER_LIB_ARCH=64
|
export WM_COMPILER_LIB_ARCH=64
|
||||||
@ -166,6 +168,17 @@ Linux)
|
|||||||
export WM_LDFLAGS='-mabi=64 -G0'
|
export WM_LDFLAGS='-mabi=64 -G0'
|
||||||
export WM_MPLIB=MPI
|
export WM_MPLIB=MPI
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
ppc64)
|
||||||
|
WM_ARCH=linuxPPC64
|
||||||
|
export WM_COMPILER_LIB_ARCH=64
|
||||||
|
export WM_CC='gcc'
|
||||||
|
export WM_CXX='g++'
|
||||||
|
export WM_CFLAGS='-m64 -fPIC'
|
||||||
|
export WM_CXXFLAGS='-m64 -fPIC'
|
||||||
|
export WM_LDFLAGS='-m64'
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo Unknown processor type `uname -m` for Linux
|
echo Unknown processor type `uname -m` for Linux
|
||||||
;;
|
;;
|
||||||
|
|||||||
18
etc/cshrc
18
etc/cshrc
@ -120,6 +120,7 @@ case Linux:
|
|||||||
switch (`uname -m`)
|
switch (`uname -m`)
|
||||||
case i686:
|
case i686:
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case x86_64:
|
case x86_64:
|
||||||
switch ($WM_ARCH_OPTION)
|
switch ($WM_ARCH_OPTION)
|
||||||
case 32:
|
case 32:
|
||||||
@ -131,6 +132,7 @@ case Linux:
|
|||||||
setenv WM_CXXFLAGS '-m32 -fPIC'
|
setenv WM_CXXFLAGS '-m32 -fPIC'
|
||||||
setenv WM_LDFLAGS '-m32'
|
setenv WM_LDFLAGS '-m32'
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case 64:
|
case 64:
|
||||||
setenv WM_ARCH linux64
|
setenv WM_ARCH linux64
|
||||||
setenv WM_COMPILER_LIB_ARCH 64
|
setenv WM_COMPILER_LIB_ARCH 64
|
||||||
@ -140,15 +142,19 @@ case Linux:
|
|||||||
setenv WM_CXXFLAGS '-m64 -fPIC'
|
setenv WM_CXXFLAGS '-m64 -fPIC'
|
||||||
setenv WM_LDFLAGS '-m64'
|
setenv WM_LDFLAGS '-m64'
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
default:
|
default:
|
||||||
echo Unknown WM_ARCH_OPTION $WM_ARCH_OPTION, should be 32 or 64
|
echo Unknown WM_ARCH_OPTION $WM_ARCH_OPTION, should be 32 or 64
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
endsw
|
endsw
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case ia64:
|
case ia64:
|
||||||
setenv WM_ARCH linuxIA64
|
setenv WM_ARCH linuxIA64
|
||||||
setenv WM_COMPILER I64
|
setenv WM_COMPILER I64
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case mips64:
|
case mips64:
|
||||||
setenv WM_ARCH SiCortex64
|
setenv WM_ARCH SiCortex64
|
||||||
setenv WM_COMPILER_LIB_ARCH 64
|
setenv WM_COMPILER_LIB_ARCH 64
|
||||||
@ -159,9 +165,21 @@ case Linux:
|
|||||||
setenv WM_LDFLAGS '-mabi=64 -G0'
|
setenv WM_LDFLAGS '-mabi=64 -G0'
|
||||||
setenv WM_MPLIB MPI
|
setenv WM_MPLIB MPI
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
|
case ppc64:
|
||||||
|
setenv WM_ARCH linuxPPC64
|
||||||
|
setenv WM_COMPILER_LIB_ARCH 64
|
||||||
|
setenv WM_CC 'gcc'
|
||||||
|
setenv WM_CXX 'g++'
|
||||||
|
setenv WM_CFLAGS '-m64 -fPIC'
|
||||||
|
setenv WM_CXXFLAGS '-m64 -fPIC'
|
||||||
|
setenv WM_LDFLAGS '-m64'
|
||||||
|
breaksw
|
||||||
|
|
||||||
default:
|
default:
|
||||||
echo Unknown processor type `uname -m` for Linux
|
echo Unknown processor type `uname -m` for Linux
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
endsw
|
endsw
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
|
|||||||
3
wmake/rules/linuxPPC64Gcc/X
Normal file
3
wmake/rules/linuxPPC64Gcc/X
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
XFLAGS =
|
||||||
|
XINC = $(XFLAGS) -I/usr/X11R6/include
|
||||||
|
XLIBS = -L/usr/X11R6/lib64 -lXext -lX11
|
||||||
16
wmake/rules/linuxPPC64Gcc/c
Normal file
16
wmake/rules/linuxPPC64Gcc/c
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
.SUFFIXES: .c .h
|
||||||
|
|
||||||
|
cWARN = -Wall
|
||||||
|
|
||||||
|
cc = gcc -m64 -mcpu=power5+
|
||||||
|
|
||||||
|
include $(RULES)/c$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
|
||||||
|
|
||||||
|
LINK_LIBS = $(cDBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(cc) -shared
|
||||||
|
LINKEXE = $(cc) -Xlinker -z -Xlinker nodefs
|
||||||
21
wmake/rules/linuxPPC64Gcc/c++
Normal file
21
wmake/rules/linuxPPC64Gcc/c++
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
.SUFFIXES: .C .cxx .cc .cpp
|
||||||
|
|
||||||
|
c++WARN = -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||||
|
|
||||||
|
CC = g++ -m64 -mcpu=power5+
|
||||||
|
|
||||||
|
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
ptFLAGS = -DNoRepository -ftemplate-depth-40
|
||||||
|
|
||||||
|
c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@
|
||||||
|
cxxtoo = $(Ctoo)
|
||||||
|
cctoo = $(Ctoo)
|
||||||
|
cpptoo = $(Ctoo)
|
||||||
|
|
||||||
|
LINK_LIBS = $(c++DBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(CC) $(c++FLAGS) -shared
|
||||||
|
LINKEXE = $(CC) $(c++FLAGS)
|
||||||
2
wmake/rules/linuxPPC64Gcc/c++Debug
Normal file
2
wmake/rules/linuxPPC64Gcc/c++Debug
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||||
|
c++OPT = -O0 -fdefault-inline
|
||||||
2
wmake/rules/linuxPPC64Gcc/c++Opt
Normal file
2
wmake/rules/linuxPPC64Gcc/c++Opt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG =
|
||||||
|
c++OPT = -O3
|
||||||
2
wmake/rules/linuxPPC64Gcc/c++Prof
Normal file
2
wmake/rules/linuxPPC64Gcc/c++Prof
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG = -pg
|
||||||
|
c++OPT = -O2
|
||||||
2
wmake/rules/linuxPPC64Gcc/cDebug
Normal file
2
wmake/rules/linuxPPC64Gcc/cDebug
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG = -ggdb -DFULLDEBUG
|
||||||
|
cOPT = -O1 -fdefault-inline -finline-functions
|
||||||
2
wmake/rules/linuxPPC64Gcc/cOpt
Normal file
2
wmake/rules/linuxPPC64Gcc/cOpt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG =
|
||||||
|
cOPT = -O3 -fno-gcse
|
||||||
2
wmake/rules/linuxPPC64Gcc/cProf
Normal file
2
wmake/rules/linuxPPC64Gcc/cProf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG = -pg
|
||||||
|
cOPT = -O2
|
||||||
11
wmake/rules/linuxPPC64Gcc/general
Normal file
11
wmake/rules/linuxPPC64Gcc/general
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
CPP = /lib/cpp $(GFLAGS)
|
||||||
|
LD = ld -m elf64ppc
|
||||||
|
|
||||||
|
PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
|
||||||
|
|
||||||
|
include $(GENERAL_RULES)/standard
|
||||||
|
|
||||||
|
include $(RULES)/X
|
||||||
|
include $(RULES)/c
|
||||||
|
include $(RULES)/c++
|
||||||
|
include $(GENERAL_RULES)/cint
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplib
Normal file
3
wmake/rules/linuxPPC64Gcc/mplib
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC =
|
||||||
|
PLIBS =
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibGAMMA
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibGAMMA
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lgamma
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibHPMPI
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibHPMPI
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_amd64 -lmpi
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibLAM
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibLAM
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi -llam -lpthread -lutil
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibMPICH
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibMPICH
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibMPICH-GM
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibMPICH-GM
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -L$(GM_LIB_PATH) -lgm
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibOPENMPI
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibOPENMPI
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||||
4
wmake/rules/linuxPPC64Gcc/mplibQSMPI
Normal file
4
wmake/rules/linuxPPC64Gcc/mplibQSMPI
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||||
|
|
||||||
Reference in New Issue
Block a user