My current setup
--HG-- branch : bgschaidMac
This commit is contained in:
parent
5f910c4d02
commit
5949d89e1a
13 changed files with 75 additions and 1 deletions
|
@ -34,7 +34,8 @@ syntax: glob
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# Ignore the build-dirctories
|
# Ignore the build-dirctories
|
||||||
darwinIntel*
|
darwinIntel*Opt*/
|
||||||
|
darwinIntel*Debug*/
|
||||||
linux*Gcc*/
|
linux*Gcc*/
|
||||||
linux*Icc*/
|
linux*Icc*/
|
||||||
linuxming*/
|
linuxming*/
|
||||||
|
|
3
wmake/rules/darwinIntel64/X
Normal file
3
wmake/rules/darwinIntel64/X
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
XFLAGS =
|
||||||
|
XINC = $(XFLAGS) -I/usr/X11R6/include
|
||||||
|
XLIBS = -L/usr/X11R6/lib -lXext -lX11
|
17
wmake/rules/darwinIntel64/c
Normal file
17
wmake/rules/darwinIntel64/c
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
.SUFFIXES: .c .h
|
||||||
|
|
||||||
|
cWARN = -Wall
|
||||||
|
|
||||||
|
# cc = gcc-mp-4.3 -m64
|
||||||
|
cc = g++ $(WM_CXXFLAGS)
|
||||||
|
|
||||||
|
include $(RULES)/c$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC -Ddarwin
|
||||||
|
|
||||||
|
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
|
||||||
|
|
||||||
|
LINK_LIBS = $(cDBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(cc) -dynamiclib -flat_namespace -undefined suppress
|
||||||
|
LINKEXE = $(cc) -Xlinker -z -Xlinker nodefs
|
23
wmake/rules/darwinIntel64/c++
Normal file
23
wmake/rules/darwinIntel64/c++
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
.SUFFIXES: .C .cxx .cc .cpp
|
||||||
|
|
||||||
|
c++WARN = -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||||
|
|
||||||
|
# CC = g++-mp-4.3 -m64
|
||||||
|
CC = g++ $(WM_CXXFLAGS)
|
||||||
|
|
||||||
|
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 -Ddarwin
|
||||||
|
|
||||||
|
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@
|
||||||
|
cxxtoo = $(Ctoo)
|
||||||
|
cctoo = $(Ctoo)
|
||||||
|
cpptoo = $(Ctoo)
|
||||||
|
|
||||||
|
LINK_LIBS = $(c++DBUG) -lpthread
|
||||||
|
|
||||||
|
LINKLIBSO = $(CC) $(c++FLAGS) -lpthread -dynamiclib -undefined dynamic_lookup
|
||||||
|
# LINKEXE = $(CC) $(c++FLAGS) -lpthread -L$(FOAM_LIBBIN) -lOpenFOAM -L$(FOAM_MPI_LIBBIN) -lPstream
|
||||||
|
LINKEXE = $(CC) $(c++FLAGS) -lpthread -L$(FOAM_MPI_LIBBIN) -lPstream
|
2
wmake/rules/darwinIntel64/c++Debug
Normal file
2
wmake/rules/darwinIntel64/c++Debug
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
c++DBUG = -ggdb2 -DFULLDEBUG
|
||||||
|
c++OPT = -O0 -fdefault-inline
|
4
wmake/rules/darwinIntel64/c++Opt
Normal file
4
wmake/rules/darwinIntel64/c++Opt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
c++DBUG =
|
||||||
|
c++OPT = -O3
|
||||||
|
#c++OPT = -march=nocona -O3
|
||||||
|
# -ftree-vectorize -ftree-vectorizer-verbose=3
|
2
wmake/rules/darwinIntel64/c++Prof
Normal file
2
wmake/rules/darwinIntel64/c++Prof
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
c++DBUG = -pg
|
||||||
|
c++OPT = -O2
|
2
wmake/rules/darwinIntel64/cDebug
Normal file
2
wmake/rules/darwinIntel64/cDebug
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
cDBUG = -ggdb -DFULLDEBUG
|
||||||
|
cOPT = -O1 -fdefault-inline -finline-functions
|
2
wmake/rules/darwinIntel64/cOpt
Normal file
2
wmake/rules/darwinIntel64/cOpt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
cDBUG =
|
||||||
|
cOPT = -O3
|
2
wmake/rules/darwinIntel64/cProf
Normal file
2
wmake/rules/darwinIntel64/cProf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
cDBUG = -pg
|
||||||
|
cOPT = -O2
|
10
wmake/rules/darwinIntel64/general
Normal file
10
wmake/rules/darwinIntel64/general
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
CPP = cpp-mp-4.3 $(GFLAGS)
|
||||||
|
LD = ld
|
||||||
|
|
||||||
|
PROJECT_LIBS = -l$(WM_PROJECT)
|
||||||
|
|
||||||
|
include $(GENERAL_RULES)/standard
|
||||||
|
|
||||||
|
include $(RULES)/X
|
||||||
|
include $(RULES)/c
|
||||||
|
include $(RULES)/c++
|
3
wmake/rules/darwinIntel64/mplib
Normal file
3
wmake/rules/darwinIntel64/mplib
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS =
|
||||||
|
PINC =
|
||||||
|
PLIBS =
|
3
wmake/rules/darwinIntel64/mplibOPENMPI
Normal file
3
wmake/rules/darwinIntel64/mplibOPENMPI
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
Reference in a new issue