CONFIG: update some wmake rules

- initial settings for ADIOS2, linuxARM64Gcc, linuxARM64Clang
This commit is contained in:
Mark Olesen 2017-12-07 15:41:58 +00:00
parent 912b38fd9c
commit 405cf8129a
47 changed files with 175 additions and 26 deletions

View File

@ -0,0 +1,13 @@
#-------------------------------*- makefile -*---------------------------------
# ADIOS2 includes/libraries
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
sinclude $(RULES)/mplib$(WM_MPLIB)
# Obtain prefix and library information via adios2-config
ADIOS_PREFIX := $(shell $(ADIOS2_ARCH_PATH)/bin/adios2-config --prefix)
ADIOS_LIBS := $(shell $(ADIOS2_ARCH_PATH)/bin/adios2-config --libs)
ADIOS_INC = -I${ADIOS_PREFIX}/include
#------------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN = -Wall
cWARN = -Wall
cc = clang -m64

View File

@ -1,2 +1,2 @@
c++DBUG = -g -DFULLDEBUG
c++DBUG = -g -DFULLDEBUG
c++OPT = -O0

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN = -Wall
cWARN = -Wall
cc = cc -m64

View File

@ -1,2 +1,2 @@
c++DBUG = -ggdb3 -DFULLDEBUG
c++DBUG = -ggdb3 -DFULLDEBUG
c++OPT = -O0 -fdefault-inline

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN = -Wall
cWARN = -Wall
cc = gcc -m64

View File

@ -1,2 +1,2 @@
c++DBUG = -ggdb3 -DFULLDEBUG
c++DBUG = -ggdb3 -DFULLDEBUG
c++OPT = -O0 -fdefault-inline

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN = -Wall
cWARN = -Wall
cc = gcc -m64 -march=knl

View File

@ -1,2 +1,2 @@
c++DBUG = -ggdb3 -DFULLDEBUG
c++DBUG = -ggdb3 -DFULLDEBUG
c++OPT = -O0 -fdefault-inline

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN =
cWARN =
cc = icc

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN =
cWARN =
cc = icc

View File

@ -0,0 +1,17 @@
SUFFIXES += .c
cWARN = -Wall
## cc = clang -m64
cc = clang
include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION)
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@
LINK_LIBS = $(cDBUG)
LINKLIBSO = $(cc) -shared
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs

View File

@ -0,0 +1,25 @@
SUFFIXES += .C .cc .cpp .cxx
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-undefined-var-template
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-tautological-undefined-compare -Wno-shift-negative-value
## CC = clang++ -std=c++11 -m64
CC = clang++ -std=c++11
include $(DEFAULT_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 $< -o $@
cxxtoo = $(Ctoo)
cctoo = $(Ctoo)
cpptoo = $(Ctoo)
LINK_LIBS = $(c++DBUG)
LINKLIBSO = $(CC) $(c++FLAGS) -shared
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed

View File

@ -0,0 +1,2 @@
c++DBUG = -g -DFULLDEBUG
c++OPT = -O0

View File

@ -0,0 +1,2 @@
c++DBUG =
c++OPT = -O3

View File

@ -0,0 +1,2 @@
c++DBUG = -pg
c++OPT = -O2

View File

@ -0,0 +1,2 @@
cDBUG = -g -DFULLDEBUG
cOPT = -O0

View File

@ -0,0 +1,2 @@
cDBUG =
cOPT = -O3

View File

@ -0,0 +1,2 @@
cDBUG = -pg
cOPT = -O2

View File

@ -0,0 +1,9 @@
CPP = cpp -traditional-cpp $(GFLAGS)
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
include $(GENERAL_RULES)/standard
include $(DEFAULT_RULES)/openmp
include $(DEFAULT_RULES)/c
include $(DEFAULT_RULES)/c++

View File

@ -0,0 +1,4 @@
# Flags for compiling/linking openmp
COMP_OPENMP = -DUSE_OMP -fopenmp
LINK_OPENMP = -lgomp

View File

@ -0,0 +1,16 @@
SUFFIXES += .c
cWARN = -Wall
cc = gcc
include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION)
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@
LINK_LIBS = $(cDBUG)
LINKLIBSO = $(cc) -shared
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs

View File

@ -0,0 +1,25 @@
SUFFIXES += .C .cc .cpp .cxx
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter \
-Wno-invalid-offsetof -Wno-attributes
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds
CC = g++ -std=c++11
include $(DEFAULT_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 $< -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

View File

@ -0,0 +1,2 @@
c++DBUG = -ggdb3 -DFULLDEBUG
c++OPT = -O0 -fdefault-inline

View File

@ -0,0 +1,4 @@
c++DBUG =
c++OPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps
ROUNDING_MATH = -frounding-math

View File

@ -0,0 +1,2 @@
c++DBUG = -pg
c++OPT = -O2

View File

@ -0,0 +1,2 @@
cDBUG = -ggdb -DFULLDEBUG
cOPT = -O1 -fdefault-inline -finline-functions

View File

@ -0,0 +1,2 @@
cDBUG =
cOPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps

View File

@ -0,0 +1,2 @@
cDBUG = -pg
cOPT = -O2

View File

@ -0,0 +1,10 @@
CPP = cpp -traditional-cpp $(GFLAGS)
LD = ld
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
include $(GENERAL_RULES)/standard
include $(DEFAULT_RULES)/openmp
include $(DEFAULT_RULES)/c
include $(DEFAULT_RULES)/c++

View File

@ -0,0 +1,4 @@
# Flags for compiling/linking openmp
COMP_OPENMP = -DUSE_OMP -fopenmp
LINK_OPENMP = -lgomp

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN = -Wall
cWARN = -Wall
cc = gcc

View File

@ -1,2 +1,2 @@
c++DBUG = -ggdb3 -DFULLDEBUG
c++DBUG = -ggdb3 -DFULLDEBUG
c++OPT = -O0 -fdefault-inline

View File

@ -1,5 +1,5 @@
c++DBUG =
#c++OPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -fprefetch-loop-arrays -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard
#c++OPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -fprefetch-loop-arrays -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard
c++OPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -fprefetch-loop-arrays -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=softfp
ROUNDING_MATH = -frounding-math

View File

@ -1,3 +1,3 @@
cDBUG =
#cOPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -fprefetch-loop-arrays -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard
#cOPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -fprefetch-loop-arrays -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard
cOPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -fprefetch-loop-arrays -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=softfp

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN = -Wall
cWARN = -Wall
cc = clang -m32

View File

@ -1,2 +1,2 @@
c++DBUG = -g -DFULLDEBUG
c++DBUG = -g -DFULLDEBUG
c++OPT = -O0

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN = -Wall
cWARN = -Wall
cc = gcc -m32

View File

@ -1,2 +1,2 @@
c++DBUG = -ggdb3 -DFULLDEBUG
c++DBUG = -ggdb3 -DFULLDEBUG
c++OPT = -O0 -fdefault-inline

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN = -Wall
cWARN = -Wall
cc = gcc

View File

@ -1,2 +1,2 @@
c++DBUG = -ggdb3 -DFULLDEBUG
c++DBUG = -ggdb3 -DFULLDEBUG
c++OPT = -O0 -fdefault-inline

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN =
cWARN =
cc = icc

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN =
cWARN =
cc = icc -gcc-version=400

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN = -Wall
cWARN = -Wall
cc = gcc -m64 -mcpu=power5+

View File

@ -1,2 +1,2 @@
c++DBUG = -ggdb3 -DFULLDEBUG
c++DBUG = -ggdb3 -DFULLDEBUG
c++OPT = -O0 -fdefault-inline

View File

@ -1,6 +1,6 @@
SUFFIXES += .c
cWARN = -Wall
cWARN = -Wall
cc = gcc -m64 -mcpu=power8

View File

@ -1,2 +1,2 @@
c++DBUG = -ggdb3 -DFULLDEBUG
c++DBUG = -ggdb3 -DFULLDEBUG
c++OPT = -O0 -fdefault-inline