Add the OpenFOAM source tree
This commit is contained in:
219
wmake/Makefile
Normal file
219
wmake/Makefile
Normal file
@ -0,0 +1,219 @@
|
||||
#-------------------------------*- makefile -*---------------------------------
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
# This file is part of OpenFOAM.
|
||||
#
|
||||
# OpenFOAM is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# File
|
||||
# Makefile
|
||||
#
|
||||
# Description
|
||||
# A generic Makefile, used by wmake
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The Makefile uses a POSIX shell
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Initialise suffices list
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .o
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Set the directory containing the wmake scripts
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
WM_SCRIPTS = $(WM_DIR)/scripts
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# declare default paths
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
LIB_SRC = $(WM_PROJECT_DIR)/src
|
||||
LIB_PLATFORMS = $(WM_PROJECT_DIR)/platforms/$(WM_OPTIONS)/lib
|
||||
OBJECTS_DIR = $(MAKE_DIR)/$(WM_OPTIONS)
|
||||
CLASSES_DIR = $(MAKE_DIR)/classes
|
||||
|
||||
SYS_INC =
|
||||
SYS_LIBS =
|
||||
|
||||
PROJECT_INC = -I$(LIB_SRC)/$(WM_PROJECT)/lnInclude -I$(LIB_SRC)/OSspecific/$(WM_OSTYPE)/lnInclude
|
||||
PROJECT_LIBS = -l$(WM_PROJECT)
|
||||
##
|
||||
## unused:
|
||||
## PROJECT_VERSION = $(shell printf -- "-DPROJECT_VERSION=%d%03d%03d" $$(echo $(WM_PROJECT_VERSION) | sed -e 's/\./ /g'))
|
||||
##
|
||||
|
||||
EXE_INC =
|
||||
EXE_LIBS =
|
||||
|
||||
LIB_LIBS =
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# declare all .o files depend on $(OBJECTS_DIR)/options
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
EXE_DEP = $(OBJECTS_DIR)/options
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# declare default name of libraries and executables
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Library
|
||||
LIB = libNULL
|
||||
|
||||
# Shared library extension
|
||||
SO = so
|
||||
|
||||
# Project executable
|
||||
EXE = $(WM_PROJECT).out
|
||||
|
||||
# Standalone executable
|
||||
SEXE = a.out
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# set compilation and dependency building rules
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
GENERAL_RULES = $(WM_DIR)/rules/General
|
||||
RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER)
|
||||
WMAKE_BIN = $(WM_DIR)/platforms/$(WM_ARCH)$(WM_COMPILER)
|
||||
|
||||
include $(GENERAL_RULES)/general
|
||||
include $(RULES)/general
|
||||
include $(RULES)/$(WM_LINK_LANGUAGE)
|
||||
|
||||
MAKE_DEP = @$(MKDEP) $< | $(WM_SCRIPTS)/addCompile $<
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Include PROJECT directory tree file and
|
||||
# source, object and dependency list files.
|
||||
# These are constructed by scripts/makeDerivedFiles
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
include $(OBJECTS_DIR)/options
|
||||
include $(OBJECTS_DIR)/filesMacros
|
||||
include $(OBJECTS_DIR)/sourceFiles
|
||||
include $(OBJECTS_DIR)/objectFiles
|
||||
include $(OBJECTS_DIR)/localObjectFiles
|
||||
include $(OBJECTS_DIR)/dependencyFiles
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# set header file include paths
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
LIB_HEADER_DIRS = \
|
||||
$(EXE_INC) \
|
||||
-IlnInclude \
|
||||
-I. \
|
||||
$(PROJECT_INC) \
|
||||
$(GINC) \
|
||||
$(SYS_INC)
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# define link statements for executables
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
$(EXE): $(OBJECTS)
|
||||
@$(WM_SCRIPTS)/makeTargetDir $(EXE)
|
||||
$(LINKEXE) $(OBJECTS) -L$(LIB_PLATFORMS) \
|
||||
$(EXE_LIBS) $(PROJECT_LIBS) $(SYS_LIBS) $(LINK_LIBS) $(GLIBS) -o $(EXE)
|
||||
|
||||
exe: $(SEXE)
|
||||
@echo \'$(SEXE)\' is up to date.
|
||||
|
||||
$(SEXE): $(OBJECTS)
|
||||
@$(WM_SCRIPTS)/makeTargetDir $(SEXE)
|
||||
$(LINKEXE) $(OBJECTS) $(EXE_LIBS) \
|
||||
$(SYS_LIBS) $(LINK_LIBS) $(GLIBS) -o $(SEXE)
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# define link statements for libraries
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
objects: $(OBJECTS)
|
||||
|
||||
libso: $(LIB).$(SO)
|
||||
@echo \'$(LIB).$(SO)\' is up to date.
|
||||
|
||||
$(LIB).$(SO): $(OBJECTS)
|
||||
@$(WM_SCRIPTS)/makeTargetDir $(LIB)
|
||||
@rm -f so_locations
|
||||
@cd $(OBJECTS_DIR) ; \
|
||||
$(LINKLIBSO) $(LOCAL_OBJECTS) -L$(LIB_PLATFORMS) $(LIB_LIBS) $(GLIB_LIBS) -o $(LIB).$(SO)
|
||||
|
||||
lib: $(LIB).a
|
||||
@echo \'$(LIB).a\' is up to date.
|
||||
|
||||
$(LIB).a: $(OBJECTS)
|
||||
@$(WM_SCRIPTS)/makeTargetDir $(LIB)
|
||||
@rm -f $(LIB).a
|
||||
$(AR) $(ARFLAGS) $(LIB).a $(OBJECTS)
|
||||
$(RANLIB) $(LIB).a
|
||||
|
||||
libo: $(LIB).o
|
||||
@echo \'$(LIB).o\' is up to date.
|
||||
|
||||
$(LIB).o: $(OBJECTS)
|
||||
@$(WM_SCRIPTS)/makeTargetDir $(LIB)
|
||||
@rm -f $(LIB).o
|
||||
$(LD) -r -o $(LIB).o $(OBJECTS)
|
||||
|
||||
jar: $(LIB).jar
|
||||
@echo \'$(LIB).jar\' is up to date.
|
||||
|
||||
$(LIB).jar: $(OBJECTS)
|
||||
@$(WM_SCRIPTS)/makeTargetDir $(LIB)
|
||||
jar cfm $(LIB).jar $(LIB_LIBS) -C $(CLASSES_DIR) .
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Set rule to create the include directory for libraries
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
lnInclude/uptodate: $(MAKE_DIR)/files $(MAKE_DIR)/options
|
||||
@rm -rf lnInclude ; wmakeLnInclude . ; touch lnInclude/uptodate
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Set depedency rule and include dependency lists
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
$(OBJECTS_DIR)/dependencies: $(DEPENDENCIES)
|
||||
@echo dependencies up to date > $(OBJECTS_DIR)/dependencies
|
||||
|
||||
include $(INCLUDE_DEPS)
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
42
wmake/MakefileApps
Normal file
42
wmake/MakefileApps
Normal file
@ -0,0 +1,42 @@
|
||||
#-------------------------------*- makefile -*---------------------------------
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
# This file is part of OpenFOAM.
|
||||
#
|
||||
# OpenFOAM is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# File
|
||||
# MakefileApps
|
||||
#
|
||||
# Description
|
||||
# Makefile used by
|
||||
# wmake all
|
||||
# to make the applications in the subdirectories of the current directory
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.PHONY: application $(FOAM_APPS)
|
||||
|
||||
application: $(FOAM_APPS)
|
||||
|
||||
$(FOAM_APPS):
|
||||
+@wmake all $@
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
76
wmake/MakefileFiles
Normal file
76
wmake/MakefileFiles
Normal file
@ -0,0 +1,76 @@
|
||||
#-------------------------------*- makefile -*---------------------------------
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
# This file is part of OpenFOAM.
|
||||
#
|
||||
# OpenFOAM is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# File
|
||||
# MakefileFiles
|
||||
#
|
||||
# Description
|
||||
# A Makefile for the 'files', used by wmake
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
GENERAL_RULES = $(WM_DIR)/rules/General
|
||||
RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER)
|
||||
WM_SCRIPTS = $(WM_DIR)/scripts
|
||||
OBJECTS_DIR = $(WM_OPTIONS)
|
||||
FFLAGS =
|
||||
|
||||
include $(GENERAL_RULES)/general
|
||||
include $(RULES)/general
|
||||
include $(OBJECTS_DIR)/options
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# declare names of make system control files derived from file 'files'
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
FILES = $(WM_OPTIONS)/files
|
||||
|
||||
SFILES = $(WM_OPTIONS)/sourceFiles
|
||||
OFILES = $(WM_OPTIONS)/objectFiles
|
||||
DFILES = $(WM_OPTIONS)/dependencyFiles
|
||||
IFILES = $(WM_OPTIONS)/includeDeps
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Declare dependecy of all make system files on FILES
|
||||
# Causes all derived files to be remade if any are changed or missing
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
allFiles : $(FILES) $(SFILES) $(OFILES) $(DFILES) $(IFILES)
|
||||
|
||||
$(FILES) : files
|
||||
@$(CPP) $(GFLAGS) $(FFLAGS) files | sed -e 's@ *@ @g' > $(FILES)
|
||||
|
||||
$(SFILES): files
|
||||
@$(WM_SCRIPTS)/makeDerivedFiles
|
||||
|
||||
$(OFILES): files
|
||||
@$(WM_SCRIPTS)/makeDerivedFiles
|
||||
|
||||
$(DFILES): files
|
||||
@$(WM_SCRIPTS)/makeDerivedFiles
|
||||
|
||||
$(IFILES): files
|
||||
@$(WM_SCRIPTS)/makeDerivedFiles
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
54
wmake/MakefileOptions
Normal file
54
wmake/MakefileOptions
Normal file
@ -0,0 +1,54 @@
|
||||
#-------------------------------*- makefile -*---------------------------------
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
# This file is part of OpenFOAM.
|
||||
#
|
||||
# OpenFOAM is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# File
|
||||
# MakefileOptions
|
||||
#
|
||||
# Description
|
||||
# A Makefile for the 'options', used by wmake
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
GENERAL_RULES = $(WM_DIR)/rules/General
|
||||
RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER)
|
||||
WM_SCRIPTS = $(WM_DIR)/scripts
|
||||
|
||||
include $(GENERAL_RULES)/general
|
||||
include $(RULES)/general
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# declare names of make system control files derived from file 'options'
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
OPTIONS = $(WM_OPTIONS)/options
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Declare dependency of all make system files on OPTIONS
|
||||
# Causes all derived files to be remade if any are changed or missing
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
$(OPTIONS) : options
|
||||
@$(WM_SCRIPTS)/makeDir $(WM_OPTIONS) ; $(CPP) $(GFLAGS) options | sed -e 's@ *@ @g' > $(OPTIONS)
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
65
wmake/makeWmake
Executable file
65
wmake/makeWmake
Executable file
@ -0,0 +1,65 @@
|
||||
#!/bin/sh
|
||||
#------------------------------------------------------------------------------
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
# This file is part of OpenFOAM.
|
||||
#
|
||||
# OpenFOAM is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# Script
|
||||
# makeWmake
|
||||
#
|
||||
# Description
|
||||
# Build platform-specific parts of wmake
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
usage() {
|
||||
exec 1>&2
|
||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||
cat<<USAGE
|
||||
usage: ${0##*/}
|
||||
|
||||
Build platform-specific parts of wmake
|
||||
|
||||
USAGE
|
||||
exit 1
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
-h | -help)
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
echo ========================================
|
||||
echo Build platform-specific parts of wmake
|
||||
echo
|
||||
(
|
||||
set -x
|
||||
cd ${0%/*}/src && make $@
|
||||
# or simply: make -C ${0%/*}/src $@
|
||||
)
|
||||
echo
|
||||
echo ========================================
|
||||
echo Done building wmake
|
||||
echo ========================================
|
||||
echo
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
13
wmake/rules/General/CGAL
Normal file
13
wmake/rules/General/CGAL
Normal file
@ -0,0 +1,13 @@
|
||||
CGAL_INC = \
|
||||
-I$(CGAL_ARCH_PATH)/include \
|
||||
-I$(MPFR_ARCH_PATH)/include \
|
||||
-I$(GMP_ARCH_PATH)/include \
|
||||
-I$(BOOST_ARCH_PATH)/include
|
||||
|
||||
CGAL_LIBS = \
|
||||
-L$(MPFR_ARCH_PATH)/lib \
|
||||
-L$(GMP_ARCH_PATH)/lib \
|
||||
-L$(BOOST_ARCH_PATH)/lib \
|
||||
-L$(CGAL_ARCH_PATH)/lib \
|
||||
-lCGAL \
|
||||
-lmpfr
|
||||
5
wmake/rules/General/X
Normal file
5
wmake/rules/General/X
Normal file
@ -0,0 +1,5 @@
|
||||
# X11 includes and libraries in the standard location
|
||||
#
|
||||
XFLAGS =
|
||||
XINC = $(XFLAGS) -I/usr/include/X11
|
||||
XLIBS = -lXext -lX11
|
||||
11
wmake/rules/General/bison
Normal file
11
wmake/rules/General/bison
Normal file
@ -0,0 +1,11 @@
|
||||
.SUFFIXES: .y .Y
|
||||
|
||||
ytoo = bison -v -d -y $$SOURCE ; mv y.tab.c $*.c ; mv y.tab.h $*.h ; $(cc) $(cFLAGS) -c $*.c -o $@
|
||||
|
||||
Ytoo = bison -v -d -y $$SOURCE ; mv y.tab.c $*.C ; mv y.tab.h $*.H ; $(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
|
||||
.y.dep:
|
||||
$(MAKE_DEP)
|
||||
|
||||
.Y.dep:
|
||||
$(MAKE_DEP)
|
||||
6
wmake/rules/General/btyacc
Normal file
6
wmake/rules/General/btyacc
Normal file
@ -0,0 +1,6 @@
|
||||
.SUFFIXES: .y
|
||||
|
||||
ytoo = btyacc -v -d $(SKELETON) $$SOURCE ; mv y_tab.c $*.C ; mv y_tab.h $*.H ; $(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
|
||||
.y.dep:
|
||||
$(MAKE_DEP)
|
||||
6
wmake/rules/General/btyacc++
Normal file
6
wmake/rules/General/btyacc++
Normal file
@ -0,0 +1,6 @@
|
||||
.SUFFIXES: .Y
|
||||
|
||||
Ytoo = btyacc++ -v -d $(SKELETON) $$SOURCE ; mv y_tab.c $*.C ; mv y_tab.h $*.H ; $(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
|
||||
.Y.dep:
|
||||
$(MAKE_DEP)
|
||||
6
wmake/rules/General/byacc
Normal file
6
wmake/rules/General/byacc
Normal file
@ -0,0 +1,6 @@
|
||||
.SUFFIXES: .y
|
||||
|
||||
ytoo = byacc -v $(YYPREFIX) -d $$SOURCE ; mv y.tab.c $*.C ; mv y.tab.h $*.H ; $(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
|
||||
.y.dep:
|
||||
$(MAKE_DEP)
|
||||
15
wmake/rules/General/coco-cpp
Normal file
15
wmake/rules/General/coco-cpp
Normal file
@ -0,0 +1,15 @@
|
||||
# handle Coco/R attributed grammars written for the C++ version
|
||||
# http://www.ssw.uni-linz.ac.at/Coco/
|
||||
# http://github.com/olesenm/coco-cpp/
|
||||
#
|
||||
|
||||
.SUFFIXES: .atg
|
||||
|
||||
atgtoo = \
|
||||
$(WM_THIRD_PARTY_DIR)/platforms/$(WM_ARCH)$(WM_COMPILER)/coco-cpp/bin/coco-cpp \
|
||||
-single \
|
||||
$$SOURCE -o $(OBJECTS_DIR) && \
|
||||
$(CC) $(c++FLAGS) -c $*.cpp -o $@
|
||||
|
||||
.atg.dep:
|
||||
$(MAKE_DEP)
|
||||
6
wmake/rules/General/flex
Normal file
6
wmake/rules/General/flex
Normal file
@ -0,0 +1,6 @@
|
||||
.SUFFIXES: .l
|
||||
|
||||
ltoo = flex -o$*.c $$SOURCE ; $(cc) $(cFLAGS) -c $*.c -o $@
|
||||
|
||||
.l.dep:
|
||||
$(MAKE_DEP)
|
||||
6
wmake/rules/General/flex++
Normal file
6
wmake/rules/General/flex++
Normal file
@ -0,0 +1,6 @@
|
||||
.SUFFIXES: .L
|
||||
|
||||
Ltoo = flex -+ -o$*.C -f $$SOURCE ; $(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
|
||||
.L.dep:
|
||||
$(MAKE_DEP)
|
||||
10
wmake/rules/General/general
Normal file
10
wmake/rules/General/general
Normal file
@ -0,0 +1,10 @@
|
||||
AR = ar
|
||||
ARFLAGS = cr
|
||||
RANLIB = ranlib
|
||||
CPP = cpp
|
||||
LD = ld
|
||||
|
||||
GFLAGS = -D$(WM_ARCH) -DWM_$(WM_PRECISION_OPTION)
|
||||
GINC =
|
||||
GLIBS = -lm
|
||||
GLIB_LIBS =
|
||||
6
wmake/rules/General/moc
Normal file
6
wmake/rules/General/moc
Normal file
@ -0,0 +1,6 @@
|
||||
.SUFFIXES: .qt
|
||||
|
||||
qttoo = $(QTDIR)/bin/moc -f $$SOURCE -o $*.C ; $(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
|
||||
.qt.dep:
|
||||
$(MAKE_DEP)
|
||||
3
wmake/rules/General/mplib
Normal file
3
wmake/rules/General/mplib
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS =
|
||||
PINC =
|
||||
PLIBS =
|
||||
3
wmake/rules/General/mplibGAMMA
Normal file
3
wmake/rules/General/mplibGAMMA
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lgamma
|
||||
3
wmake/rules/General/mplibMPICH
Normal file
3
wmake/rules/General/mplibMPICH
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
|
||||
3
wmake/rules/General/mplibMPICH-GM
Normal file
3
wmake/rules/General/mplibMPICH-GM
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpich -L$(GM_LIB_PATH) -lgm
|
||||
3
wmake/rules/General/mplibOPENMPI
Normal file
3
wmake/rules/General/mplibOPENMPI
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||
4
wmake/rules/General/mplibQSMPI
Normal file
4
wmake/rules/General/mplibQSMPI
Normal file
@ -0,0 +1,4 @@
|
||||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||
|
||||
3
wmake/rules/General/mplibSGIMPI
Normal file
3
wmake/rules/General/mplibSGIMPI
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS = -DSGIMPI -DMPI_NO_CPPBIND
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||
5
wmake/rules/General/mplibSYSTEMOPENMPI
Normal file
5
wmake/rules/General/mplibSYSTEMOPENMPI
Normal file
@ -0,0 +1,5 @@
|
||||
# use the system installed openmpi - mpicc must be installed
|
||||
|
||||
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||
PINC = $(shell mpicc --showme:compile)
|
||||
PLIBS = $(shell mpicc --showme:link)
|
||||
24
wmake/rules/General/sourceToDep
Normal file
24
wmake/rules/General/sourceToDep
Normal file
@ -0,0 +1,24 @@
|
||||
.SUFFIXES: .c .cc .cxx .cpp .C .F .f .dep
|
||||
|
||||
MKDEP = $(WMAKE_BIN)/wmkdep -I$(*D) $(LIB_HEADER_DIRS)
|
||||
|
||||
.c.dep:
|
||||
$(MAKE_DEP)
|
||||
|
||||
.cc.dep:
|
||||
$(MAKE_DEP)
|
||||
|
||||
.cxx.dep:
|
||||
$(MAKE_DEP)
|
||||
|
||||
.cpp.dep:
|
||||
$(MAKE_DEP)
|
||||
|
||||
.C.dep:
|
||||
$(MAKE_DEP)
|
||||
|
||||
.F.dep:
|
||||
$(MAKE_DEP)
|
||||
|
||||
.f.dep:
|
||||
$(MAKE_DEP)
|
||||
13
wmake/rules/General/standard
Normal file
13
wmake/rules/General/standard
Normal file
@ -0,0 +1,13 @@
|
||||
include $(GENERAL_RULES)/version
|
||||
|
||||
include $(GENERAL_RULES)/sourceToDep
|
||||
|
||||
include $(GENERAL_RULES)/flex
|
||||
include $(GENERAL_RULES)/flex++
|
||||
## include $(GENERAL_RULES)/coco-cpp
|
||||
## include $(GENERAL_RULES)/byacc
|
||||
## include $(GENERAL_RULES)/btyacc++
|
||||
include $(GENERAL_RULES)/bison
|
||||
include $(GENERAL_RULES)/moc
|
||||
|
||||
include $(GENERAL_RULES)/X
|
||||
13
wmake/rules/General/version
Normal file
13
wmake/rules/General/version
Normal file
@ -0,0 +1,13 @@
|
||||
.SUFFIXES: .Cver
|
||||
|
||||
#
|
||||
# update version strings in C++ file and in $WM_PROJECT_DIR/.build file
|
||||
#
|
||||
Cvertoo = \
|
||||
sed -e 's!VERSION_STRING!$(shell wmakePrintBuild -major)!' \
|
||||
-e 's!BUILD_STRING!$(shell wmakePrintBuild -update)!' \
|
||||
$$SOURCE > $*.C; \
|
||||
$(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
|
||||
.Cver.dep:
|
||||
$(MAKE_DEP)
|
||||
11
wmake/rules/General/yacc
Normal file
11
wmake/rules/General/yacc
Normal file
@ -0,0 +1,11 @@
|
||||
.SUFFIXES: .y .Y
|
||||
|
||||
ytoo = yacc -v -d $$SOURCE ; mv y.tab.c $*.c ; mv y.tab.h $(@D)/parser.h ; $(CC) $(c++FLAGS) -c $*.c -o $@
|
||||
|
||||
Ytoo = yacc -v -d $$SOURCE ; mv y.tab.c $*.C ; mv y.tab.h $(@D)/parser.H ; $(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
|
||||
.y.dep:
|
||||
$(MAKE_DEP)
|
||||
|
||||
.Y.dep:
|
||||
$(MAKE_DEP)
|
||||
3
wmake/rules/SunOS64Gcc/X
Normal file
3
wmake/rules/SunOS64Gcc/X
Normal file
@ -0,0 +1,3 @@
|
||||
XFLAGS =
|
||||
XINC = $(XFLAGS) -I/usr/X11R6/include
|
||||
XLIBS = -L/usr/X11R6/lib64 -lXext -lX11
|
||||
16
wmake/rules/SunOS64Gcc/c
Normal file
16
wmake/rules/SunOS64Gcc/c
Normal file
@ -0,0 +1,16 @@
|
||||
.SUFFIXES: .c .h
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m64
|
||||
|
||||
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 --add-needed -Xlinker -z -Xlinker nodefs
|
||||
21
wmake/rules/SunOS64Gcc/c++
Normal file
21
wmake/rules/SunOS64Gcc/c++
Normal file
@ -0,0 +1,21 @@
|
||||
.SUFFIXES: .C .cxx .cc .cpp
|
||||
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||
|
||||
CC = g++ -m64
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-100
|
||||
|
||||
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) -Xlinker --add-needed
|
||||
2
wmake/rules/SunOS64Gcc/c++Debug
Normal file
2
wmake/rules/SunOS64Gcc/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
2
wmake/rules/SunOS64Gcc/c++Opt
Normal file
2
wmake/rules/SunOS64Gcc/c++Opt
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG =
|
||||
c++OPT = -O3
|
||||
2
wmake/rules/SunOS64Gcc/c++Prof
Normal file
2
wmake/rules/SunOS64Gcc/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
||||
2
wmake/rules/SunOS64Gcc/cDebug
Normal file
2
wmake/rules/SunOS64Gcc/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
||||
2
wmake/rules/SunOS64Gcc/cOpt
Normal file
2
wmake/rules/SunOS64Gcc/cOpt
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG =
|
||||
cOPT = -O3
|
||||
2
wmake/rules/SunOS64Gcc/cProf
Normal file
2
wmake/rules/SunOS64Gcc/cProf
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -pg
|
||||
cOPT = -O2
|
||||
10
wmake/rules/SunOS64Gcc/general
Normal file
10
wmake/rules/SunOS64Gcc/general
Normal file
@ -0,0 +1,10 @@
|
||||
CPP = /lib/cpp
|
||||
LD = ld -64
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -lnsl -lsocket -L$(FOAM_LIBBIN)/dummy -lPstream
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(RULES)/X
|
||||
include $(RULES)/c
|
||||
include $(RULES)/c++
|
||||
3
wmake/rules/SunOS64Gcc/mplibFJMPI
Normal file
3
wmake/rules/SunOS64Gcc/mplibFJMPI
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include/sparcv9/mpi -DMPIPP_H
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib/sparcv9 -lmpi_f -L/opt/FSUNf90/lib/sparcv9 -lfjgmp64 -L/opt/FJSVpnidt/lib -lfjidt -ljrm -lfj90i -lfj90f -lfj90fmt -lelf
|
||||
16
wmake/rules/linux64Clang/c
Normal file
16
wmake/rules/linux64Clang/c
Normal file
@ -0,0 +1,16 @@
|
||||
.SUFFIXES: .c .h
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
cc = clang -m64
|
||||
|
||||
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 --add-needed -Xlinker -z -Xlinker nodefs
|
||||
26
wmake/rules/linux64Clang/c++
Normal file
26
wmake/rules/linux64Clang/c++
Normal file
@ -0,0 +1,26 @@
|
||||
.SUFFIXES: .C .cxx .cc .cpp
|
||||
|
||||
# -Woverloaded-virtual may produce spurious warnings, disable for now
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-unused-comparison
|
||||
|
||||
|
||||
# Suppress CGAL warnings
|
||||
c++CGALWARN = -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-mismatched-tags
|
||||
|
||||
CC = clang++ -m64
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-100
|
||||
|
||||
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) -Xlinker --add-needed
|
||||
2
wmake/rules/linux64Clang/c++Debug
Normal file
2
wmake/rules/linux64Clang/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -g -DFULLDEBUG
|
||||
c++OPT = -O0
|
||||
3
wmake/rules/linux64Clang/c++Opt
Normal file
3
wmake/rules/linux64Clang/c++Opt
Normal file
@ -0,0 +1,3 @@
|
||||
#c++DBUG = -O0 -DFULLDEBUG -g
|
||||
c++DBUG =
|
||||
c++OPT = -O3
|
||||
2
wmake/rules/linux64Clang/c++Prof
Normal file
2
wmake/rules/linux64Clang/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
||||
2
wmake/rules/linux64Clang/cDebug
Normal file
2
wmake/rules/linux64Clang/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -g -DFULLDEBUG
|
||||
cOPT = -O0
|
||||
2
wmake/rules/linux64Clang/cOpt
Normal file
2
wmake/rules/linux64Clang/cOpt
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG =
|
||||
cOPT = -O3
|
||||
2
wmake/rules/linux64Clang/cProf
Normal file
2
wmake/rules/linux64Clang/cProf
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -pg
|
||||
cOPT = -O2
|
||||
8
wmake/rules/linux64Clang/general
Normal file
8
wmake/rules/linux64Clang/general
Normal file
@ -0,0 +1,8 @@
|
||||
CPP = cpp -traditional-cpp $(GFLAGS)
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(RULES)/c
|
||||
include $(RULES)/c++
|
||||
3
wmake/rules/linux64Clang/mplibHPMPI
Normal file
3
wmake/rules/linux64Clang/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/linux64Clang/mplibINTELMPI
Normal file
3
wmake/rules/linux64Clang/mplibINTELMPI
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include64
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib64 -lmpi
|
||||
16
wmake/rules/linux64Gcc++0x/c
Normal file
16
wmake/rules/linux64Gcc++0x/c
Normal file
@ -0,0 +1,16 @@
|
||||
.SUFFIXES: .c .h
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m64
|
||||
|
||||
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 --add-needed -Xlinker -z -Xlinker nodefs
|
||||
21
wmake/rules/linux64Gcc++0x/c++
Normal file
21
wmake/rules/linux64Gcc++0x/c++
Normal file
@ -0,0 +1,21 @@
|
||||
.SUFFIXES: .C .cxx .cc .cpp
|
||||
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor
|
||||
|
||||
CC = g++ -m64 -std=c++0x
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-100
|
||||
|
||||
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) -Xlinker --add-needed
|
||||
2
wmake/rules/linux64Gcc++0x/c++Debug
Normal file
2
wmake/rules/linux64Gcc++0x/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
3
wmake/rules/linux64Gcc++0x/c++Opt
Normal file
3
wmake/rules/linux64Gcc++0x/c++Opt
Normal file
@ -0,0 +1,3 @@
|
||||
#c++DBUG = -O0 -DFULLDEBUG -g
|
||||
c++DBUG =
|
||||
c++OPT = -O3
|
||||
2
wmake/rules/linux64Gcc++0x/c++Prof
Normal file
2
wmake/rules/linux64Gcc++0x/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
||||
2
wmake/rules/linux64Gcc++0x/cDebug
Normal file
2
wmake/rules/linux64Gcc++0x/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
||||
2
wmake/rules/linux64Gcc++0x/cOpt
Normal file
2
wmake/rules/linux64Gcc++0x/cOpt
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG =
|
||||
cOPT = -O3
|
||||
2
wmake/rules/linux64Gcc++0x/cProf
Normal file
2
wmake/rules/linux64Gcc++0x/cProf
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -pg
|
||||
cOPT = -O2
|
||||
8
wmake/rules/linux64Gcc++0x/general
Normal file
8
wmake/rules/linux64Gcc++0x/general
Normal file
@ -0,0 +1,8 @@
|
||||
CPP = cpp -traditional-cpp $(GFLAGS)
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(RULES)/c
|
||||
include $(RULES)/c++
|
||||
3
wmake/rules/linux64Gcc++0x/mplibHPMPI
Normal file
3
wmake/rules/linux64Gcc++0x/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/linux64Gcc++0x/mplibINTELMPI
Normal file
3
wmake/rules/linux64Gcc++0x/mplibINTELMPI
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include64
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib64 -lmpi
|
||||
16
wmake/rules/linux64Gcc/c
Normal file
16
wmake/rules/linux64Gcc/c
Normal file
@ -0,0 +1,16 @@
|
||||
.SUFFIXES: .c .h
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m64
|
||||
|
||||
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 --add-needed -Xlinker -z -Xlinker nodefs
|
||||
21
wmake/rules/linux64Gcc/c++
Normal file
21
wmake/rules/linux64Gcc/c++
Normal file
@ -0,0 +1,21 @@
|
||||
.SUFFIXES: .C .cxx .cc .cpp
|
||||
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor
|
||||
|
||||
CC = g++ -m64
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-100
|
||||
|
||||
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 -Xlinker --add-needed -Xlinker --no-as-needed
|
||||
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed
|
||||
2
wmake/rules/linux64Gcc/c++Debug
Normal file
2
wmake/rules/linux64Gcc/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
3
wmake/rules/linux64Gcc/c++Opt
Normal file
3
wmake/rules/linux64Gcc/c++Opt
Normal file
@ -0,0 +1,3 @@
|
||||
c++DBUG =
|
||||
c++OPT = -O3
|
||||
# -fprefetch-loop-arrays
|
||||
2
wmake/rules/linux64Gcc/c++Prof
Normal file
2
wmake/rules/linux64Gcc/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
||||
2
wmake/rules/linux64Gcc/cDebug
Normal file
2
wmake/rules/linux64Gcc/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
||||
3
wmake/rules/linux64Gcc/cOpt
Normal file
3
wmake/rules/linux64Gcc/cOpt
Normal file
@ -0,0 +1,3 @@
|
||||
cDBUG =
|
||||
cOPT = -O3
|
||||
# -fprefetch-loop-arrays
|
||||
2
wmake/rules/linux64Gcc/cProf
Normal file
2
wmake/rules/linux64Gcc/cProf
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -pg
|
||||
cOPT = -O2
|
||||
8
wmake/rules/linux64Gcc/general
Normal file
8
wmake/rules/linux64Gcc/general
Normal file
@ -0,0 +1,8 @@
|
||||
CPP = cpp -traditional-cpp $(GFLAGS)
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(RULES)/c
|
||||
include $(RULES)/c++
|
||||
3
wmake/rules/linux64Gcc/mplibHPMPI
Normal file
3
wmake/rules/linux64Gcc/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/linux64Gcc/mplibINTELMPI
Normal file
3
wmake/rules/linux64Gcc/mplibINTELMPI
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include64
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib64 -lmpi
|
||||
16
wmake/rules/linux64Gcc43/c
Normal file
16
wmake/rules/linux64Gcc43/c
Normal file
@ -0,0 +1,16 @@
|
||||
.SUFFIXES: .c .h
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m64
|
||||
|
||||
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 --add-needed -Xlinker -z -Xlinker nodefs
|
||||
21
wmake/rules/linux64Gcc43/c++
Normal file
21
wmake/rules/linux64Gcc43/c++
Normal file
@ -0,0 +1,21 @@
|
||||
.SUFFIXES: .C .cxx .cc .cpp
|
||||
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||
|
||||
CC = g++ -m64
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-100
|
||||
|
||||
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) -Xlinker --add-needed
|
||||
2
wmake/rules/linux64Gcc43/c++Debug
Normal file
2
wmake/rules/linux64Gcc43/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
4
wmake/rules/linux64Gcc43/c++Opt
Normal file
4
wmake/rules/linux64Gcc43/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/linux64Gcc43/c++Prof
Normal file
2
wmake/rules/linux64Gcc43/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
||||
2
wmake/rules/linux64Gcc43/cDebug
Normal file
2
wmake/rules/linux64Gcc43/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
||||
2
wmake/rules/linux64Gcc43/cOpt
Normal file
2
wmake/rules/linux64Gcc43/cOpt
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG =
|
||||
cOPT = -O3
|
||||
2
wmake/rules/linux64Gcc43/cProf
Normal file
2
wmake/rules/linux64Gcc43/cProf
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -pg
|
||||
cOPT = -O2
|
||||
8
wmake/rules/linux64Gcc43/general
Normal file
8
wmake/rules/linux64Gcc43/general
Normal file
@ -0,0 +1,8 @@
|
||||
CPP = cpp -traditional-cpp $(GFLAGS)
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(RULES)/c
|
||||
include $(RULES)/c++
|
||||
3
wmake/rules/linux64Gcc43/mplibHPMPI
Normal file
3
wmake/rules/linux64Gcc43/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/linux64Gcc43/mplibINTELMPI
Normal file
3
wmake/rules/linux64Gcc43/mplibINTELMPI
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include64
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib64 -lmpi
|
||||
16
wmake/rules/linux64Gcc44/c
Normal file
16
wmake/rules/linux64Gcc44/c
Normal file
@ -0,0 +1,16 @@
|
||||
.SUFFIXES: .c .h
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m64
|
||||
|
||||
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 --add-needed -Xlinker -z -Xlinker nodefs
|
||||
21
wmake/rules/linux64Gcc44/c++
Normal file
21
wmake/rules/linux64Gcc44/c++
Normal file
@ -0,0 +1,21 @@
|
||||
.SUFFIXES: .C .cxx .cc .cpp
|
||||
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||
|
||||
CC = g++ -m64
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-100
|
||||
|
||||
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) -Xlinker --add-needed
|
||||
2
wmake/rules/linux64Gcc44/c++Debug
Normal file
2
wmake/rules/linux64Gcc44/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
4
wmake/rules/linux64Gcc44/c++Opt
Normal file
4
wmake/rules/linux64Gcc44/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/linux64Gcc44/c++Prof
Normal file
2
wmake/rules/linux64Gcc44/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
||||
2
wmake/rules/linux64Gcc44/cDebug
Normal file
2
wmake/rules/linux64Gcc44/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
||||
2
wmake/rules/linux64Gcc44/cOpt
Normal file
2
wmake/rules/linux64Gcc44/cOpt
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG =
|
||||
cOPT = -O3
|
||||
2
wmake/rules/linux64Gcc44/cProf
Normal file
2
wmake/rules/linux64Gcc44/cProf
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -pg
|
||||
cOPT = -O2
|
||||
8
wmake/rules/linux64Gcc44/general
Normal file
8
wmake/rules/linux64Gcc44/general
Normal file
@ -0,0 +1,8 @@
|
||||
CPP = cpp -traditional-cpp $(GFLAGS)
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(RULES)/c
|
||||
include $(RULES)/c++
|
||||
3
wmake/rules/linux64Gcc44/mplibHPMPI
Normal file
3
wmake/rules/linux64Gcc44/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/linux64Gcc44/mplibINTELMPI
Normal file
3
wmake/rules/linux64Gcc44/mplibINTELMPI
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include64
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib64 -lmpi
|
||||
16
wmake/rules/linux64Gcc45/c
Normal file
16
wmake/rules/linux64Gcc45/c
Normal file
@ -0,0 +1,16 @@
|
||||
.SUFFIXES: .c .h
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m64
|
||||
|
||||
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 --add-needed -Xlinker -z -Xlinker nodefs
|
||||
21
wmake/rules/linux64Gcc45/c++
Normal file
21
wmake/rules/linux64Gcc45/c++
Normal file
@ -0,0 +1,21 @@
|
||||
.SUFFIXES: .C .cxx .cc .cpp
|
||||
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||
|
||||
CC = g++ -m64
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-100
|
||||
|
||||
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 -Xlinker --add-needed -Xlinker --no-as-needed
|
||||
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed
|
||||
2
wmake/rules/linux64Gcc45/c++Debug
Normal file
2
wmake/rules/linux64Gcc45/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
4
wmake/rules/linux64Gcc45/c++Opt
Normal file
4
wmake/rules/linux64Gcc45/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/linux64Gcc45/c++Prof
Normal file
2
wmake/rules/linux64Gcc45/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
||||
2
wmake/rules/linux64Gcc45/cDebug
Normal file
2
wmake/rules/linux64Gcc45/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user