System configuration files for mac solaris and win32
authorjjose <jjose@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Oct 2010 12:52:59 +0000 (12:52 +0000)
committerjjose <jjose@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Oct 2010 12:52:59 +0000 (12:52 +0000)
cmake/CMakelinuxicc.cmake [new file with mode: 0644]
cmake/CMakemacosx64.cmake [new file with mode: 0644]
cmake/CMakemacosxicc.cmake [new file with mode: 0644]
cmake/CMakesolarisCC5.cmake [new file with mode: 0644]
cmake/CMakewin32gcc.cmake [new file with mode: 0644]

diff --git a/cmake/CMakelinuxicc.cmake b/cmake/CMakelinuxicc.cmake
new file mode 100644 (file)
index 0000000..8594277
--- /dev/null
@@ -0,0 +1,72 @@
+#--------------------------------------------------------------------------------#
+# Package File for                                                               #
+# Author : Johny Jose (johny.jose@cern.ch)                                       #
+# Variables Defined :                                                            #
+#                                                                                #
+# SRCS - C++ source files                                                        #
+# HDRS - C++ header files                                                        #
+# DHDR - ROOT Dictionary Linkdef header file                                     #
+# CSRCS - C source files                                                         #
+# CHDRS - C header files                                                         #
+# EINCLUDE - Include directories                                                 #
+# EDEFINE - Compiler definitions                                                 #
+# ELIBS - Extra libraries to link                                                #
+# ELIBSDIR - Extra library directories                                           #
+# PACKFFLAGS - Fortran compiler flags for package                                #
+# PACKCXXFLAGS - C++ compiler flags for package                                  #
+# PACKCFLAGS - C compiler flags for package                                      #
+# PACKSOFLAGS - Shared library linking flags                                     #
+# PACKLDFLAGS - Module linker flags                                              #
+# PACKBLIBS - Libraries to link (Executables only)                               #
+# EXPORT - Header files to be exported                                           #
+# CINTHDRS - Dictionary header files                                             #
+# CINTAUTOLINK - Set automatic dictionary generation                             #
+# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
+# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
+#--------------------------------------------------------------------------------#
+
+
+execute_process (COMMAND ${CMAKE_C_COMPILER} -V 2>&1 | awk '{ if (NR == 1) print $$8}' | cut -d'.' -f1
+                 OUTPUT_VARIABLE ICC_MAJOR
+                 OUTPUT_STRIP_TRAILING_WHITESPACE) 
+execute_process (COMMAND ${CMAKE_C_COMPILER} -V 2>&1 | awk '{ if(NR == 1) print $$8}' | cut -d'.' -f2
+                 OUTPUT_VARIABLE ICC_MINOR
+                 OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+set ( OPT  "-O -ip")
+set ( NOOPT  "-O0")
+
+set ( CXXOPT  "${OPT} -fPIC")
+set ( CXXNOOPT  "${NOOPT} -fPIC")
+set ( COPT  "${OPT} -fPIC")
+set ( FOPT  "${OPT} -fPIC")
+
+set ( CLIBDEFS  "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ")
+set ( CLIBCXXOPTS )
+set ( CLIBCOPT )
+set ( CLIBFOPT  ${CLIBDEFS})
+
+set ( CXXFLAGS  ${CXXOPT})
+set ( CXXFLAGSNO  ${CXXNOOPT})
+set ( CFLAGS  ${COPT})
+set ( FFLAGS  "${CLIBFOPT} ${FOPT}")
+set ( DEPENDFFLAGS  ${FFLAGS})
+
+set ( CINTFLAGS )
+
+set ( LDFLAGS  ${OPT})
+
+set ( SOFLAGS  "-shared")
+
+set ( ALLIB )
+
+execute_process(COMMAND find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'
+                OUTPUT_VARIABLE LIBNOVER
+                OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+execute_process(COMMAND which ifort | sed -e 's|bin|lib|' | sed -e 's|ifor||'
+                OUTPUT_VARIABLE IFORT 
+                OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+set (SYSLIBS "-lcrypt -L/usr/X11R6/lib -lX11 ${LIBNOVER} -L/usr/local/lib -lXt -L${IFORT} -lifcore -lifport")
+                
diff --git a/cmake/CMakemacosx64.cmake b/cmake/CMakemacosx64.cmake
new file mode 100644 (file)
index 0000000..cde0ebb
--- /dev/null
@@ -0,0 +1,114 @@
+#--------------------------------------------------------------------------------#
+# Package File for                                                               #
+# Author : Johny Jose (johny.jose@cern.ch)                                       #
+# Variables Defined :                                                            #
+#                                                                                #
+# SRCS - C++ source files                                                        #
+# HDRS - C++ header files                                                        #
+# DHDR - ROOT Dictionary Linkdef header file                                     #
+# CSRCS - C source files                                                         #
+# CHDRS - C header files                                                         #
+# EINCLUDE - Include directories                                                 #
+# EDEFINE - Compiler definitions                                                 #
+# ELIBS - Extra libraries to link                                                #
+# ELIBSDIR - Extra library directories                                           #
+# PACKFFLAGS - Fortran compiler flags for package                                #
+# PACKCXXFLAGS - C++ compiler flags for package                                  #
+# PACKCFLAGS - C compiler flags for package                                      #
+# PACKSOFLAGS - Shared library linking flags                                     #
+# PACKLDFLAGS - Module linker flags                                              #
+# PACKBLIBS - Libraries to link (Executables only)                               #
+# EXPORT - Header files to be exported                                           #
+# CINTHDRS - Dictionary header files                                             #
+# CINTAUTOLINK - Set automatic dictionary generation                             #
+# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
+# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
+#--------------------------------------------------------------------------------#
+
+execute_process (COMMAND sw_vers | sed -n 's/ProductVersion://p' | cut -d. -f1
+                 OUTPUT_VARIABLE MACOSX_MAJOR
+                 OUTPUT_STRIP_TRAILING_WHITESPACE )
+execute_process (COMMAND sw_vers | sed -n 's/ProductVersion://p' | cut -d. -f2
+                 OUTPUT_VARIABLE MACOSX_MINOR
+                 OUTPUT_STRIP_TRAILING_WHITESPACE )
+
+set(FINK_ROOT $ENV{FINK_ROOT})
+if( NOT FINK_ROOT )
+               
+       set ( FINK_ROOT /usr/local)
+
+endif( NOT FINK_ROOT )
+               
+set ( OPT  "-O -g")
+set ( NOOPT  "-O0 -g")
+
+set ( CXXOPT  ${OPT})
+set ( CXXNOOPT  ${NOOPT})
+set ( COPT  ${OPT})
+
+if( F77 MATCHES "g95")
+       
+       set ( FOPT "${FOPT}  -fbounds-check")
+
+endif( F77 MATCHES "g95")
+
+set ( CLIBDEFS  "-DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC")
+set ( CLIBCXXOPTS )
+set ( CLIBCOPT )
+set ( CLIBFOPT  ${CLIBDEFS})
+
+set ( CXXWARN  "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi")
+
+set ( CXXSTF  "-pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -fno-default-inline -fno-inline -I/usr/X11R6/include -I${FINK_ROOT}/include")
+
+set ( CXXFLAGS  "${CXXOPT} ${CXXSTF}")
+
+set ( CXXFLAGSNO  "${CXXNOOPT} ${CXXSTF}")
+
+set ( CFLAGS  "${COPT} -Wall -W -fno-common -pipe -I${FINK_ROOT}/include")
+
+if(F77 MATCHES "g95")
+       
+       set ( FFLAGS "${FFLAGS}  -ftrace=full")
+       set ( FFLAGS "${FFLAGS} -DFORTRAN_G95")
+
+else()
+
+       set ( FFLAGS "${FFLAGS} -DFORTRAN_GFORTRAN")
+
+endif(F77 MATCHES "g95")
+
+set ( CINTFLAGS )
+
+set ( LDFLAGS  "${OPT} ${DICTLOAD}")
+
+set ( SOFLAGS  "-m64 -dynamiclib -undefined dynamic_lookup -single_module")
+
+set ( ALLIB )
+
+set ( SYSLIBS  "-L/usr/X11R6/lib -lX11")
+
+
+set ( EXEFLAGS  "-bind_at_load")
+
+if( F77 MATCHES "g95")
+       
+  execute_process(COMMAND ${CMAKE_Fortran_COMPILER} --print-search-dirs 
+                  OUTPUT_VARIABLE SYSLIBS
+                  OUTPUT_STRIP_TRAILING_WHITESPACE)
+  string(REGEX MATCH "^.*install:[^\n]*" SYSLIBS ${SYSLIBS})
+  string(REGEX REPLACE "^.*install: " "" SYSLIBS ${SYSLIBS})
+  set(SYSLIBS "-L${SHLIB} -lf95")
+  set(DYLIB ${SYSLIBS})
+
+else()
+  execute_process(COMMAND ${CMAKE_Fortran_COMPILER} -print-file-name=libgfortran.dylib
+                  OUTPUT_VARIABLE _shlib
+                  OUTPUT_STRIP_TRAILING_WHITESPACE)
+  execute_process(COMMAND ${CMAKE_Fortran_COMPILER} -print-file-name=libgfortranbegin.a
+                  OUTPUT_VARIABLE _alib
+                  OUTPUT_STRIP_TRAILING_WHITESPACE)
+  set( SYSLIBS "${SYSLIBS} -ldl ${_shlib} ${_alib}")
+
+endif(F77 MATCHES "g95")
diff --git a/cmake/CMakemacosxicc.cmake b/cmake/CMakemacosxicc.cmake
new file mode 100644 (file)
index 0000000..94a8bda
--- /dev/null
@@ -0,0 +1,76 @@
+#--------------------------------------------------------------------------------#
+# Package File for                                                               #
+# Author : Johny Jose (johny.jose@cern.ch)                                       #
+# Variables Defined :                                                            #
+#                                                                                #
+# SRCS - C++ source files                                                        #
+# HDRS - C++ header files                                                        #
+# DHDR - ROOT Dictionary Linkdef header file                                     #
+# CSRCS - C source files                                                         #
+# CHDRS - C header files                                                         #
+# EINCLUDE - Include directories                                                 #
+# EDEFINE - Compiler definitions                                                 #
+# ELIBS - Extra libraries to link                                                #
+# ELIBSDIR - Extra library directories                                           #
+# PACKFFLAGS - Fortran compiler flags for package                                #
+# PACKCXXFLAGS - C++ compiler flags for package                                  #
+# PACKCFLAGS - C compiler flags for package                                      #
+# PACKSOFLAGS - Shared library linking flags                                     #
+# PACKLDFLAGS - Module linker flags                                              #
+# PACKBLIBS - Libraries to link (Executables only)                               #
+# EXPORT - Header files to be exported                                           #
+# CINTHDRS - Dictionary header files                                             #
+# CINTAUTOLINK - Set automatic dictionary generation                             #
+# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
+# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
+#--------------------------------------------------------------------------------#
+
+set(FINK_ROOT $ENV{FINK_ROOT})
+if( NOT FINK_ROOT )
+               
+       set ( FINK_ROOT /usr/local)
+
+endif( NOT FINK_ROOT )
+
+set ( OPT  "-O -g")
+set ( NOOPT  "-g")
+
+set ( CXXOPT  ${OPT})
+set ( CXXNOOPT  ${NOOPT})
+set ( COPT  ${OPT})
+set ( FOPT  ${OPT})
+
+set ( CLIBDEFS  "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC")
+set ( CLIBCXXOPTS )
+set ( CLIBCOPT )
+set ( CLIBFOPT  ${CLIBDEFS})
+
+set ( CXXFLAGS  "${CXXOPT} -fPIC -wd1476 -I/usr/X11R6/include -I${FINK_ROOT}/include)"
+
+set ( CXXFLAGSNO  ${CXXNOOPT})
+
+set ( CFLAGS  "${COPT} -fPIC -restrict -I${FINK_ROOT}/include")
+
+set ( FFLAGS  "${CLIBFOPT} ${FOPT}")
+
+set ( CINTFLAGS )
+
+set ( LDFLAGS  "${OPT} ${DICTLOAD}")
+
+set ( SOFLAGS  "${OPT} -dynamiclib -undefined dynamic_lookup -single_module")
+
+set ( DYFLAGS  "-dynamiclib -undefined dynamic_lookup -single_module")
+
+set ( ALLIB )
+
+set ( EXEFLAGS  "-bind_at_load")
+
+execute_process(COMMAND find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'
+                OUTPUT_VARIABLE LIBNOVER
+                OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+execute_process(COMMAND which ifort | sed -e 's|bin|lib|'
+                OUTPUT_VARIABLE IFORT 
+                OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+set (SYSLIBS "-lcrypt -L/usr/X11R6/lib -lX11 ${LIBNOVER} -L/usr/local/lib -lXt -L${IFORT} -lifcore -lifport")
diff --git a/cmake/CMakesolarisCC5.cmake b/cmake/CMakesolarisCC5.cmake
new file mode 100644 (file)
index 0000000..7002e24
--- /dev/null
@@ -0,0 +1,55 @@
+#--------------------------------------------------------------------------------#
+# Package File for                                                               #
+# Author : Johny Jose (johny.jose@cern.ch)                                       #
+# Variables Defined :                                                            #
+#                                                                                #
+# SRCS - C++ source files                                                        #
+# HDRS - C++ header files                                                        #
+# DHDR - ROOT Dictionary Linkdef header file                                     #
+# CSRCS - C source files                                                         #
+# CHDRS - C header files                                                         #
+# EINCLUDE - Include directories                                                 #
+# EDEFINE - Compiler definitions                                                 #
+# ELIBS - Extra libraries to link                                                #
+# ELIBSDIR - Extra library directories                                           #
+# PACKFFLAGS - Fortran compiler flags for package                                #
+# PACKCXXFLAGS - C++ compiler flags for package                                  #
+# PACKCFLAGS - C compiler flags for package                                      #
+# PACKSOFLAGS - Shared library linking flags                                     #
+# PACKLDFLAGS - Module linker flags                                              #
+# PACKBLIBS - Libraries to link (Executables only)                               #
+# EXPORT - Header files to be exported                                           #
+# CINTHDRS - Dictionary header files                                             #
+# CINTAUTOLINK - Set automatic dictionary generation                             #
+# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
+# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
+#--------------------------------------------------------------------------------#
+
+set ( OPT  "-g -O")
+set ( NOOPT  "-g")
+
+set ( CXXOPT  ${OPT})
+set ( CXXNOOPT  ${NOOPT})
+set ( COPT  ${OPT})
+set ( FOPT  ${OPT})
+
+set ( CLIBDEFS  "-DCERNLIB_SUN -DCERNLIB_BLDLIB -DCERNLIB_CZ")
+set ( CLIBCXXOPTS )
+set ( CLIBCOPT )
+set ( CLIBFOPT  "${CLIBDEFS} -xpp=cpp")
+
+set ( CXXFLAGS  "${CXXOPT} +w -KPIC -template=no%extdef")
+set ( CXXFLAGSNO  "${CXXNOOPT} +w -KPIC -template=no%extdef")
+set ( CFLAGS  "${COPT} -KPIC -erroff=%none")
+set ( FFLAGS  "${FOPT} ${CLIBFOPT} ${CLIBDEFS}  -KPIC")
+set ( DEPENDFFLAGS  ${FFLAGS})
+
+set ( CINTFLAGS )
+
+set ( LDFLAGS  "${OPT} -Qoption ld -t")
+
+set ( SOFLAGS  "-G ${LDFLAGS} ${SHLIB}")
+
+set ( SYSLIBS  "-L/usr/dt/lib -L/usr/openwin/lib -L/usr/ccs/lib -lXm -lXt -lX11 -lm -lgen -ldl -lsocket -lsunmath -lfsu -lfui -lnsl")
+
+set ( EXEFLAGS  "-O -Qoption ld -t")
diff --git a/cmake/CMakewin32gcc.cmake b/cmake/CMakewin32gcc.cmake
new file mode 100644 (file)
index 0000000..252315c
--- /dev/null
@@ -0,0 +1,56 @@
+#--------------------------------------------------------------------------------#
+# Package File for                                                               #
+# Author : Johny Jose (johny.jose@cern.ch)                                       #
+# Variables Defined :                                                            #
+#                                                                                #
+# SRCS - C++ source files                                                        #
+# HDRS - C++ header files                                                        #
+# DHDR - ROOT Dictionary Linkdef header file                                     #
+# CSRCS - C source files                                                         #
+# CHDRS - C header files                                                         #
+# EINCLUDE - Include directories                                                 #
+# EDEFINE - Compiler definitions                                                 #
+# ELIBS - Extra libraries to link                                                #
+# ELIBSDIR - Extra library directories                                           #
+# PACKFFLAGS - Fortran compiler flags for package                                #
+# PACKCXXFLAGS - C++ compiler flags for package                                  #
+# PACKCFLAGS - C compiler flags for package                                      #
+# PACKSOFLAGS - Shared library linking flags                                     #
+# PACKLDFLAGS - Module linker flags                                              #
+# PACKBLIBS - Libraries to link (Executables only)                               #
+# EXPORT - Header files to be exported                                           #
+# CINTHDRS - Dictionary header files                                             #
+# CINTAUTOLINK - Set automatic dictionary generation                             #
+# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
+# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
+#--------------------------------------------------------------------------------#
+
+set ( OPT  "-O -g")
+set ( NOOPT  "-g")
+
+set ( CXXOPT  ${OPT})
+set ( CXXNOOPT  ${NOOPT})
+set ( COPT  ${OPT})
+set ( FOPT  ${OPT})
+
+set ( CLIBDEFS  "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ")
+set ( CLIBCXXOPTS )
+set ( CLIBCOPT )
+set ( CLIBFOPT  ${CLIBDEFS})
+
+set ( CXXFLAGS  "${OPT} -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL")
+set ( CXXFLAGSNO  "${NOOPT} -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL")
+set ( CFLAGS  "${OPT} -Wall -D_DLL")
+set ( FFLAGS  "${CLIBFOPT} ${FOPT} -fno-second-underscore")
+
+set ( CINTFLAGS )
+
+set ( LDFLAGS  ${OPT})
+
+set ( SOFLAGS  "${OPT} -shared -Wl,--export-all-symbols -Wl,-soname=$$TMPLIB -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc")
+
+set ( SHLIB  ${ROOTLIBS} -lg2c)
+
+set ( ALLIB )
+
+set ( SYSLIBS  "-ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11")