diff --git a/etc/bashrc b/etc/bashrc index 228d709edc..ad6df21fd0 100644 --- a/etc/bashrc +++ b/etc/bashrc @@ -66,8 +66,8 @@ export WM_PROJECT_VERSION=com export WM_COMPILER_TYPE=system # [WM_COMPILER] - Compiler: -# = Gcc | Gcc4[8-9] | Gcc5[1-5] | Gcc6[1-5] | Gcc7[1-4] | Gcc8[12] | -# Clang | Clang3[7-9] | Clang[4-6]0 | Icc | Cray | Arm | Pgi +# = Gcc | Clang | Icc | Cray | Arm | Pgi | Fujitsu | +# Gcc | Clang export WM_COMPILER=Gcc # [WM_PRECISION_OPTION] - Floating-point precision: diff --git a/etc/cshrc b/etc/cshrc index d9150ae15c..43d78805a5 100644 --- a/etc/cshrc +++ b/etc/cshrc @@ -66,8 +66,8 @@ setenv WM_PROJECT_VERSION com setenv WM_COMPILER_TYPE system # [WM_COMPILER] - Compiler: -# = Gcc | Gcc4[8-9] | Gcc5[1-5] | Gcc6[1-5] | Gcc7[1-4] | Gcc8[12] | -# Clang | Clang3[7-9] | Clang[4-6]0 | Icc | Cray | Arm | Pgi +# = Gcc | Clang | Icc | Cray | Arm | Pgi | Fujitsu | +# Gcc | Clang setenv WM_COMPILER Gcc # [WM_PRECISION_OPTION] - Floating-point precision: diff --git a/wmake/rules/linuxARM64Fujitsu/c b/wmake/rules/linuxARM64Fujitsu/c new file mode 100644 index 0000000000..573b2234ee --- /dev/null +++ b/wmake/rules/linuxARM64Fujitsu/c @@ -0,0 +1,18 @@ +# Fujitsu compiler - a clang variant +include $(GENERAL_RULES)/Clang/c + +cc = fcc + +cARCH = + +# Compile option is non-mandatory, but must be non-empty +sinclude $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) + +cFLAGS = $(cARCH) $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC + +ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@ + +LINK_LIBS = $(cDBUG) + +LINKLIBSO = $(cc) $(cARCH) -shared +LINKEXE = $(cc) $(cARCH) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs diff --git a/wmake/rules/linuxARM64Fujitsu/c++ b/wmake/rules/linuxARM64Fujitsu/c++ new file mode 100644 index 0000000000..7e7ae26f15 --- /dev/null +++ b/wmake/rules/linuxARM64Fujitsu/c++ @@ -0,0 +1,20 @@ +# Fujitsu compiler - a clang variant +include $(GENERAL_RULES)/Clang/c++ + +CC = FCC -std=c++11 + +c++ARCH = -pthread + +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) + +c++FLAGS = $(c++ARCH) $(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 diff --git a/wmake/rules/linuxARM64Fujitsu/c++Debug b/wmake/rules/linuxARM64Fujitsu/c++Debug new file mode 100644 index 0000000000..48f0b6643e --- /dev/null +++ b/wmake/rules/linuxARM64Fujitsu/c++Debug @@ -0,0 +1,2 @@ +c++DBUG = -g -DFULLDEBUG +c++OPT = -O0 diff --git a/wmake/rules/linuxARM64Fujitsu/c++Opt b/wmake/rules/linuxARM64Fujitsu/c++Opt new file mode 100644 index 0000000000..2aedabd628 --- /dev/null +++ b/wmake/rules/linuxARM64Fujitsu/c++Opt @@ -0,0 +1,2 @@ +c++DBUG = +c++OPT = -O3 diff --git a/wmake/rules/linuxARM64Fujitsu/c++Prof b/wmake/rules/linuxARM64Fujitsu/c++Prof new file mode 100644 index 0000000000..3bda4dad55 --- /dev/null +++ b/wmake/rules/linuxARM64Fujitsu/c++Prof @@ -0,0 +1,2 @@ +c++DBUG = -pg +c++OPT = -O2 diff --git a/wmake/rules/linuxARM64Fujitsu/cDebug b/wmake/rules/linuxARM64Fujitsu/cDebug new file mode 100644 index 0000000000..7b7adf10de --- /dev/null +++ b/wmake/rules/linuxARM64Fujitsu/cDebug @@ -0,0 +1,2 @@ +cDBUG = -g -DFULLDEBUG +cOPT = -O0 diff --git a/wmake/rules/linuxARM64Fujitsu/cOpt b/wmake/rules/linuxARM64Fujitsu/cOpt new file mode 100644 index 0000000000..17318709f1 --- /dev/null +++ b/wmake/rules/linuxARM64Fujitsu/cOpt @@ -0,0 +1,2 @@ +cDBUG = +cOPT = -O3 diff --git a/wmake/rules/linuxARM64Fujitsu/cProf b/wmake/rules/linuxARM64Fujitsu/cProf new file mode 100644 index 0000000000..ca3ac9bf5f --- /dev/null +++ b/wmake/rules/linuxARM64Fujitsu/cProf @@ -0,0 +1,2 @@ +cDBUG = -pg +cOPT = -O2 diff --git a/wmake/rules/linuxARM64Fujitsu/general b/wmake/rules/linuxARM64Fujitsu/general new file mode 100644 index 0000000000..9ada28972d --- /dev/null +++ b/wmake/rules/linuxARM64Fujitsu/general @@ -0,0 +1,9 @@ +CPP = cpp -traditional-cpp $(GFLAGS) + +PROJECT_LIBS = -l$(WM_PROJECT) -ldl + +include $(GENERAL_RULES)/standard +include $(GENERAL_RULES)/Clang/openmp + +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++