CONFIG: update some wmake rules
- initial settings for ADIOS2, linuxARM64Gcc, linuxARM64Clang
This commit is contained in:
parent
912b38fd9c
commit
405cf8129a
13
wmake/rules/General/ADIOS2
Normal file
13
wmake/rules/General/ADIOS2
Normal 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
|
||||
|
||||
#------------------------------------------------------------------------------
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
cWARN = -Wall
|
||||
|
||||
cc = clang -m64
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
c++DBUG = -g -DFULLDEBUG
|
||||
c++DBUG = -g -DFULLDEBUG
|
||||
c++OPT = -O0
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
cWARN = -Wall
|
||||
|
||||
cc = cc -m64
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m64
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m64 -march=knl
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN =
|
||||
cWARN =
|
||||
|
||||
cc = icc
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN =
|
||||
cWARN =
|
||||
|
||||
cc = icc
|
||||
|
||||
|
17
wmake/rules/linuxARM64Clang/c
Normal file
17
wmake/rules/linuxARM64Clang/c
Normal 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
|
25
wmake/rules/linuxARM64Clang/c++
Normal file
25
wmake/rules/linuxARM64Clang/c++
Normal 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
|
2
wmake/rules/linuxARM64Clang/c++Debug
Normal file
2
wmake/rules/linuxARM64Clang/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -g -DFULLDEBUG
|
||||
c++OPT = -O0
|
2
wmake/rules/linuxARM64Clang/c++Opt
Normal file
2
wmake/rules/linuxARM64Clang/c++Opt
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG =
|
||||
c++OPT = -O3
|
2
wmake/rules/linuxARM64Clang/c++Prof
Normal file
2
wmake/rules/linuxARM64Clang/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
2
wmake/rules/linuxARM64Clang/cDebug
Normal file
2
wmake/rules/linuxARM64Clang/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -g -DFULLDEBUG
|
||||
cOPT = -O0
|
2
wmake/rules/linuxARM64Clang/cOpt
Normal file
2
wmake/rules/linuxARM64Clang/cOpt
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG =
|
||||
cOPT = -O3
|
2
wmake/rules/linuxARM64Clang/cProf
Normal file
2
wmake/rules/linuxARM64Clang/cProf
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -pg
|
||||
cOPT = -O2
|
9
wmake/rules/linuxARM64Clang/general
Normal file
9
wmake/rules/linuxARM64Clang/general
Normal 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++
|
4
wmake/rules/linuxARM64Clang/openmp
Normal file
4
wmake/rules/linuxARM64Clang/openmp
Normal file
@ -0,0 +1,4 @@
|
||||
# Flags for compiling/linking openmp
|
||||
|
||||
COMP_OPENMP = -DUSE_OMP -fopenmp
|
||||
LINK_OPENMP = -lgomp
|
16
wmake/rules/linuxARM64Gcc/c
Normal file
16
wmake/rules/linuxARM64Gcc/c
Normal 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
|
25
wmake/rules/linuxARM64Gcc/c++
Normal file
25
wmake/rules/linuxARM64Gcc/c++
Normal 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
|
2
wmake/rules/linuxARM64Gcc/c++Debug
Normal file
2
wmake/rules/linuxARM64Gcc/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
4
wmake/rules/linuxARM64Gcc/c++Opt
Normal file
4
wmake/rules/linuxARM64Gcc/c++Opt
Normal file
@ -0,0 +1,4 @@
|
||||
c++DBUG =
|
||||
c++OPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps
|
||||
|
||||
ROUNDING_MATH = -frounding-math
|
2
wmake/rules/linuxARM64Gcc/c++Prof
Normal file
2
wmake/rules/linuxARM64Gcc/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
2
wmake/rules/linuxARM64Gcc/cDebug
Normal file
2
wmake/rules/linuxARM64Gcc/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
2
wmake/rules/linuxARM64Gcc/cOpt
Normal file
2
wmake/rules/linuxARM64Gcc/cOpt
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG =
|
||||
cOPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps
|
2
wmake/rules/linuxARM64Gcc/cProf
Normal file
2
wmake/rules/linuxARM64Gcc/cProf
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -pg
|
||||
cOPT = -O2
|
10
wmake/rules/linuxARM64Gcc/general
Normal file
10
wmake/rules/linuxARM64Gcc/general
Normal 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++
|
4
wmake/rules/linuxARM64Gcc/openmp
Normal file
4
wmake/rules/linuxARM64Gcc/openmp
Normal file
@ -0,0 +1,4 @@
|
||||
# Flags for compiling/linking openmp
|
||||
|
||||
COMP_OPENMP = -DUSE_OMP -fopenmp
|
||||
LINK_OPENMP = -lgomp
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
cWARN = -Wall
|
||||
|
||||
cc = clang -m32
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
c++DBUG = -g -DFULLDEBUG
|
||||
c++DBUG = -g -DFULLDEBUG
|
||||
c++OPT = -O0
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m32
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN =
|
||||
cWARN =
|
||||
|
||||
cc = icc
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN =
|
||||
cWARN =
|
||||
|
||||
cc = icc -gcc-version=400
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m64 -mcpu=power5+
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
|
@ -1,6 +1,6 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m64 -mcpu=power8
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
||||
|
Loading…
Reference in New Issue
Block a user