From 87f151c47b7db814016ab3ae910a93264fb0f37b Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Wed, 21 Apr 2010 16:23:16 +0200 Subject: [PATCH] ENH: add wmake rules for gcc-4.5 ATTENTION: cpp now needs '-traditional-cpp' for single-line output --- wmake/rules/linux64Gcc45/X | 1 + wmake/rules/linux64Gcc45/c | 16 ++++++++++++++++ wmake/rules/linux64Gcc45/c++ | 21 +++++++++++++++++++++ wmake/rules/linux64Gcc45/c++Debug | 2 ++ wmake/rules/linux64Gcc45/c++Opt | 4 ++++ wmake/rules/linux64Gcc45/c++Prof | 2 ++ wmake/rules/linux64Gcc45/cDebug | 2 ++ wmake/rules/linux64Gcc45/cOpt | 2 ++ wmake/rules/linux64Gcc45/cProf | 2 ++ wmake/rules/linux64Gcc45/general | 10 ++++++++++ wmake/rules/linux64Gcc45/mplib | 1 + wmake/rules/linux64Gcc45/mplibGAMMA | 1 + wmake/rules/linux64Gcc45/mplibHPMPI | 3 +++ wmake/rules/linux64Gcc45/mplibMPICH | 1 + wmake/rules/linux64Gcc45/mplibMPICH-GM | 1 + wmake/rules/linux64Gcc45/mplibOPENMPI | 1 + wmake/rules/linux64Gcc45/mplibQSMPI | 1 + wmake/rules/linux64Gcc45/mplibSYSTEMOPENMPI | 1 + wmake/rules/linuxGcc45/X | 1 + wmake/rules/linuxGcc45/c | 16 ++++++++++++++++ wmake/rules/linuxGcc45/c++ | 21 +++++++++++++++++++++ wmake/rules/linuxGcc45/c++Debug | 2 ++ wmake/rules/linuxGcc45/c++Opt | 2 ++ wmake/rules/linuxGcc45/c++Prof | 2 ++ wmake/rules/linuxGcc45/cDebug | 2 ++ wmake/rules/linuxGcc45/cOpt | 2 ++ wmake/rules/linuxGcc45/cProf | 2 ++ wmake/rules/linuxGcc45/general | 11 +++++++++++ wmake/rules/linuxGcc45/mplib | 1 + wmake/rules/linuxGcc45/mplibGAMMA | 1 + wmake/rules/linuxGcc45/mplibHPMPI | 3 +++ wmake/rules/linuxGcc45/mplibMPICH | 1 + wmake/rules/linuxGcc45/mplibMPICH-GM | 1 + wmake/rules/linuxGcc45/mplibOPENMPI | 1 + wmake/rules/linuxGcc45/mplibSYSTEMOPENMPI | 1 + 35 files changed, 142 insertions(+) create mode 120000 wmake/rules/linux64Gcc45/X create mode 100644 wmake/rules/linux64Gcc45/c create mode 100644 wmake/rules/linux64Gcc45/c++ create mode 100644 wmake/rules/linux64Gcc45/c++Debug create mode 100644 wmake/rules/linux64Gcc45/c++Opt create mode 100644 wmake/rules/linux64Gcc45/c++Prof create mode 100644 wmake/rules/linux64Gcc45/cDebug create mode 100644 wmake/rules/linux64Gcc45/cOpt create mode 100644 wmake/rules/linux64Gcc45/cProf create mode 100644 wmake/rules/linux64Gcc45/general create mode 120000 wmake/rules/linux64Gcc45/mplib create mode 120000 wmake/rules/linux64Gcc45/mplibGAMMA create mode 100644 wmake/rules/linux64Gcc45/mplibHPMPI create mode 120000 wmake/rules/linux64Gcc45/mplibMPICH create mode 120000 wmake/rules/linux64Gcc45/mplibMPICH-GM create mode 120000 wmake/rules/linux64Gcc45/mplibOPENMPI create mode 120000 wmake/rules/linux64Gcc45/mplibQSMPI create mode 120000 wmake/rules/linux64Gcc45/mplibSYSTEMOPENMPI create mode 120000 wmake/rules/linuxGcc45/X create mode 100644 wmake/rules/linuxGcc45/c create mode 100644 wmake/rules/linuxGcc45/c++ create mode 100644 wmake/rules/linuxGcc45/c++Debug create mode 100644 wmake/rules/linuxGcc45/c++Opt create mode 100644 wmake/rules/linuxGcc45/c++Prof create mode 100644 wmake/rules/linuxGcc45/cDebug create mode 100644 wmake/rules/linuxGcc45/cOpt create mode 100644 wmake/rules/linuxGcc45/cProf create mode 100644 wmake/rules/linuxGcc45/general create mode 120000 wmake/rules/linuxGcc45/mplib create mode 120000 wmake/rules/linuxGcc45/mplibGAMMA create mode 100644 wmake/rules/linuxGcc45/mplibHPMPI create mode 120000 wmake/rules/linuxGcc45/mplibMPICH create mode 120000 wmake/rules/linuxGcc45/mplibMPICH-GM create mode 120000 wmake/rules/linuxGcc45/mplibOPENMPI create mode 120000 wmake/rules/linuxGcc45/mplibSYSTEMOPENMPI diff --git a/wmake/rules/linux64Gcc45/X b/wmake/rules/linux64Gcc45/X new file mode 120000 index 0000000000..73572d6c04 --- /dev/null +++ b/wmake/rules/linux64Gcc45/X @@ -0,0 +1 @@ +../General/X \ No newline at end of file diff --git a/wmake/rules/linux64Gcc45/c b/wmake/rules/linux64Gcc45/c new file mode 100644 index 0000000000..80bb80f32f --- /dev/null +++ b/wmake/rules/linux64Gcc45/c @@ -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 -z -Xlinker nodefs diff --git a/wmake/rules/linux64Gcc45/c++ b/wmake/rules/linux64Gcc45/c++ new file mode 100644 index 0000000000..677b1e5bb4 --- /dev/null +++ b/wmake/rules/linux64Gcc45/c++ @@ -0,0 +1,21 @@ +.SUFFIXES: .C .cxx .cc .cpp + +c++WARN = -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast + +CC = g++ -m64 + +include $(RULES)/c++$(WM_COMPILE_OPTION) + +ptFLAGS = -DNoRepository -ftemplate-depth-60 + +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) diff --git a/wmake/rules/linux64Gcc45/c++Debug b/wmake/rules/linux64Gcc45/c++Debug new file mode 100644 index 0000000000..19bdb9c334 --- /dev/null +++ b/wmake/rules/linux64Gcc45/c++Debug @@ -0,0 +1,2 @@ +c++DBUG = -ggdb3 -DFULLDEBUG +c++OPT = -O0 -fdefault-inline diff --git a/wmake/rules/linux64Gcc45/c++Opt b/wmake/rules/linux64Gcc45/c++Opt new file mode 100644 index 0000000000..3446f7f58c --- /dev/null +++ b/wmake/rules/linux64Gcc45/c++Opt @@ -0,0 +1,4 @@ +c++DBUG = +c++OPT = -O3 +#c++OPT = -march=nocona -O3 +# -ftree-vectorize -ftree-vectorizer-verbose=3 diff --git a/wmake/rules/linux64Gcc45/c++Prof b/wmake/rules/linux64Gcc45/c++Prof new file mode 100644 index 0000000000..3bda4dad55 --- /dev/null +++ b/wmake/rules/linux64Gcc45/c++Prof @@ -0,0 +1,2 @@ +c++DBUG = -pg +c++OPT = -O2 diff --git a/wmake/rules/linux64Gcc45/cDebug b/wmake/rules/linux64Gcc45/cDebug new file mode 100644 index 0000000000..72b638f458 --- /dev/null +++ b/wmake/rules/linux64Gcc45/cDebug @@ -0,0 +1,2 @@ +cDBUG = -ggdb -DFULLDEBUG +cOPT = -O1 -fdefault-inline -finline-functions diff --git a/wmake/rules/linux64Gcc45/cOpt b/wmake/rules/linux64Gcc45/cOpt new file mode 100644 index 0000000000..17318709f1 --- /dev/null +++ b/wmake/rules/linux64Gcc45/cOpt @@ -0,0 +1,2 @@ +cDBUG = +cOPT = -O3 diff --git a/wmake/rules/linux64Gcc45/cProf b/wmake/rules/linux64Gcc45/cProf new file mode 100644 index 0000000000..ca3ac9bf5f --- /dev/null +++ b/wmake/rules/linux64Gcc45/cProf @@ -0,0 +1,2 @@ +cDBUG = -pg +cOPT = -O2 diff --git a/wmake/rules/linux64Gcc45/general b/wmake/rules/linux64Gcc45/general new file mode 100644 index 0000000000..bfe6574e81 --- /dev/null +++ b/wmake/rules/linux64Gcc45/general @@ -0,0 +1,10 @@ +# need single-line output from cpp +CPP = cpp -traditional-cpp + +PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl + +include $(GENERAL_RULES)/standard + +include $(RULES)/X +include $(RULES)/c +include $(RULES)/c++ diff --git a/wmake/rules/linux64Gcc45/mplib b/wmake/rules/linux64Gcc45/mplib new file mode 120000 index 0000000000..1fa0d64ec8 --- /dev/null +++ b/wmake/rules/linux64Gcc45/mplib @@ -0,0 +1 @@ +../General/mplib \ No newline at end of file diff --git a/wmake/rules/linux64Gcc45/mplibGAMMA b/wmake/rules/linux64Gcc45/mplibGAMMA new file mode 120000 index 0000000000..4b41692bf6 --- /dev/null +++ b/wmake/rules/linux64Gcc45/mplibGAMMA @@ -0,0 +1 @@ +../General/mplibGAMMA \ No newline at end of file diff --git a/wmake/rules/linux64Gcc45/mplibHPMPI b/wmake/rules/linux64Gcc45/mplibHPMPI new file mode 100644 index 0000000000..574492a236 --- /dev/null +++ b/wmake/rules/linux64Gcc45/mplibHPMPI @@ -0,0 +1,3 @@ +PFLAGS = +PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H +PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_amd64 -lmpi diff --git a/wmake/rules/linux64Gcc45/mplibMPICH b/wmake/rules/linux64Gcc45/mplibMPICH new file mode 120000 index 0000000000..c83eb564e1 --- /dev/null +++ b/wmake/rules/linux64Gcc45/mplibMPICH @@ -0,0 +1 @@ +../General/mplibMPICH \ No newline at end of file diff --git a/wmake/rules/linux64Gcc45/mplibMPICH-GM b/wmake/rules/linux64Gcc45/mplibMPICH-GM new file mode 120000 index 0000000000..621d0857d3 --- /dev/null +++ b/wmake/rules/linux64Gcc45/mplibMPICH-GM @@ -0,0 +1 @@ +../General/mplibMPICH-GM \ No newline at end of file diff --git a/wmake/rules/linux64Gcc45/mplibOPENMPI b/wmake/rules/linux64Gcc45/mplibOPENMPI new file mode 120000 index 0000000000..2d938a16a6 --- /dev/null +++ b/wmake/rules/linux64Gcc45/mplibOPENMPI @@ -0,0 +1 @@ +../General/mplibOPENMPI \ No newline at end of file diff --git a/wmake/rules/linux64Gcc45/mplibQSMPI b/wmake/rules/linux64Gcc45/mplibQSMPI new file mode 120000 index 0000000000..d3446c68f1 --- /dev/null +++ b/wmake/rules/linux64Gcc45/mplibQSMPI @@ -0,0 +1 @@ +../General/mplibQSMPI \ No newline at end of file diff --git a/wmake/rules/linux64Gcc45/mplibSYSTEMOPENMPI b/wmake/rules/linux64Gcc45/mplibSYSTEMOPENMPI new file mode 120000 index 0000000000..cc63a574c3 --- /dev/null +++ b/wmake/rules/linux64Gcc45/mplibSYSTEMOPENMPI @@ -0,0 +1 @@ +../General/mplibSYSTEMOPENMPI \ No newline at end of file diff --git a/wmake/rules/linuxGcc45/X b/wmake/rules/linuxGcc45/X new file mode 120000 index 0000000000..73572d6c04 --- /dev/null +++ b/wmake/rules/linuxGcc45/X @@ -0,0 +1 @@ +../General/X \ No newline at end of file diff --git a/wmake/rules/linuxGcc45/c b/wmake/rules/linuxGcc45/c new file mode 100644 index 0000000000..8db5da1047 --- /dev/null +++ b/wmake/rules/linuxGcc45/c @@ -0,0 +1,16 @@ +.SUFFIXES: .c .h + +cWARN = -Wall + +cc = gcc -m32 + +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 -z -Xlinker nodefs diff --git a/wmake/rules/linuxGcc45/c++ b/wmake/rules/linuxGcc45/c++ new file mode 100644 index 0000000000..7a7a46d9a0 --- /dev/null +++ b/wmake/rules/linuxGcc45/c++ @@ -0,0 +1,21 @@ +.SUFFIXES: .C .cxx .cc .cpp + +c++WARN = -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast + +CC = g++ -m32 + +include $(RULES)/c++$(WM_COMPILE_OPTION) + +ptFLAGS = -DNoRepository -ftemplate-depth-60 + +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) diff --git a/wmake/rules/linuxGcc45/c++Debug b/wmake/rules/linuxGcc45/c++Debug new file mode 100644 index 0000000000..19bdb9c334 --- /dev/null +++ b/wmake/rules/linuxGcc45/c++Debug @@ -0,0 +1,2 @@ +c++DBUG = -ggdb3 -DFULLDEBUG +c++OPT = -O0 -fdefault-inline diff --git a/wmake/rules/linuxGcc45/c++Opt b/wmake/rules/linuxGcc45/c++Opt new file mode 100644 index 0000000000..2aedabd628 --- /dev/null +++ b/wmake/rules/linuxGcc45/c++Opt @@ -0,0 +1,2 @@ +c++DBUG = +c++OPT = -O3 diff --git a/wmake/rules/linuxGcc45/c++Prof b/wmake/rules/linuxGcc45/c++Prof new file mode 100644 index 0000000000..3bda4dad55 --- /dev/null +++ b/wmake/rules/linuxGcc45/c++Prof @@ -0,0 +1,2 @@ +c++DBUG = -pg +c++OPT = -O2 diff --git a/wmake/rules/linuxGcc45/cDebug b/wmake/rules/linuxGcc45/cDebug new file mode 100644 index 0000000000..72b638f458 --- /dev/null +++ b/wmake/rules/linuxGcc45/cDebug @@ -0,0 +1,2 @@ +cDBUG = -ggdb -DFULLDEBUG +cOPT = -O1 -fdefault-inline -finline-functions diff --git a/wmake/rules/linuxGcc45/cOpt b/wmake/rules/linuxGcc45/cOpt new file mode 100644 index 0000000000..17318709f1 --- /dev/null +++ b/wmake/rules/linuxGcc45/cOpt @@ -0,0 +1,2 @@ +cDBUG = +cOPT = -O3 diff --git a/wmake/rules/linuxGcc45/cProf b/wmake/rules/linuxGcc45/cProf new file mode 100644 index 0000000000..ca3ac9bf5f --- /dev/null +++ b/wmake/rules/linuxGcc45/cProf @@ -0,0 +1,2 @@ +cDBUG = -pg +cOPT = -O2 diff --git a/wmake/rules/linuxGcc45/general b/wmake/rules/linuxGcc45/general new file mode 100644 index 0000000000..7e9226e795 --- /dev/null +++ b/wmake/rules/linuxGcc45/general @@ -0,0 +1,11 @@ +# need single-line output from cpp +CPP = cpp -traditional-cpp +LD = ld -melf_i386 + +PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl + +include $(GENERAL_RULES)/standard + +include $(RULES)/X +include $(RULES)/c +include $(RULES)/c++ diff --git a/wmake/rules/linuxGcc45/mplib b/wmake/rules/linuxGcc45/mplib new file mode 120000 index 0000000000..1fa0d64ec8 --- /dev/null +++ b/wmake/rules/linuxGcc45/mplib @@ -0,0 +1 @@ +../General/mplib \ No newline at end of file diff --git a/wmake/rules/linuxGcc45/mplibGAMMA b/wmake/rules/linuxGcc45/mplibGAMMA new file mode 120000 index 0000000000..4b41692bf6 --- /dev/null +++ b/wmake/rules/linuxGcc45/mplibGAMMA @@ -0,0 +1 @@ +../General/mplibGAMMA \ No newline at end of file diff --git a/wmake/rules/linuxGcc45/mplibHPMPI b/wmake/rules/linuxGcc45/mplibHPMPI new file mode 100644 index 0000000000..8aff40632b --- /dev/null +++ b/wmake/rules/linuxGcc45/mplibHPMPI @@ -0,0 +1,3 @@ +PFLAGS = +PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H +PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_ia32 -lmpi diff --git a/wmake/rules/linuxGcc45/mplibMPICH b/wmake/rules/linuxGcc45/mplibMPICH new file mode 120000 index 0000000000..c83eb564e1 --- /dev/null +++ b/wmake/rules/linuxGcc45/mplibMPICH @@ -0,0 +1 @@ +../General/mplibMPICH \ No newline at end of file diff --git a/wmake/rules/linuxGcc45/mplibMPICH-GM b/wmake/rules/linuxGcc45/mplibMPICH-GM new file mode 120000 index 0000000000..621d0857d3 --- /dev/null +++ b/wmake/rules/linuxGcc45/mplibMPICH-GM @@ -0,0 +1 @@ +../General/mplibMPICH-GM \ No newline at end of file diff --git a/wmake/rules/linuxGcc45/mplibOPENMPI b/wmake/rules/linuxGcc45/mplibOPENMPI new file mode 120000 index 0000000000..2d938a16a6 --- /dev/null +++ b/wmake/rules/linuxGcc45/mplibOPENMPI @@ -0,0 +1 @@ +../General/mplibOPENMPI \ No newline at end of file diff --git a/wmake/rules/linuxGcc45/mplibSYSTEMOPENMPI b/wmake/rules/linuxGcc45/mplibSYSTEMOPENMPI new file mode 120000 index 0000000000..cc63a574c3 --- /dev/null +++ b/wmake/rules/linuxGcc45/mplibSYSTEMOPENMPI @@ -0,0 +1 @@ +../General/mplibSYSTEMOPENMPI \ No newline at end of file