System configuration files for mac solaris and win32
[u/mrichter/AliRoot.git] / cmake / CMakemacosxicc.cmake
CommitLineData
03d1e24f 1#--------------------------------------------------------------------------------#
2# Package File for #
3# Author : Johny Jose (johny.jose@cern.ch) #
4# Variables Defined : #
5# #
6# SRCS - C++ source files #
7# HDRS - C++ header files #
8# DHDR - ROOT Dictionary Linkdef header file #
9# CSRCS - C source files #
10# CHDRS - C header files #
11# EINCLUDE - Include directories #
12# EDEFINE - Compiler definitions #
13# ELIBS - Extra libraries to link #
14# ELIBSDIR - Extra library directories #
15# PACKFFLAGS - Fortran compiler flags for package #
16# PACKCXXFLAGS - C++ compiler flags for package #
17# PACKCFLAGS - C compiler flags for package #
18# PACKSOFLAGS - Shared library linking flags #
19# PACKLDFLAGS - Module linker flags #
20# PACKBLIBS - Libraries to link (Executables only) #
21# EXPORT - Header files to be exported #
22# CINTHDRS - Dictionary header files #
23# CINTAUTOLINK - Set automatic dictionary generation #
24# ARLIBS - Archive Libraries and objects for linking (Executables only) #
25# SHLIBS - Shared Libraries and objects for linking (Executables only) #
26#--------------------------------------------------------------------------------#
27
28set(FINK_ROOT $ENV{FINK_ROOT})
29if( NOT FINK_ROOT )
30
31 set ( FINK_ROOT /usr/local)
32
33endif( NOT FINK_ROOT )
34
35set ( OPT "-O -g")
36set ( NOOPT "-g")
37
38set ( CXXOPT ${OPT})
39set ( CXXNOOPT ${NOOPT})
40set ( COPT ${OPT})
41set ( FOPT ${OPT})
42
43set ( CLIBDEFS "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC")
44set ( CLIBCXXOPTS )
45set ( CLIBCOPT )
46set ( CLIBFOPT ${CLIBDEFS})
47
48set ( CXXFLAGS "${CXXOPT} -fPIC -wd1476 -I/usr/X11R6/include -I${FINK_ROOT}/include)"
49
50set ( CXXFLAGSNO ${CXXNOOPT})
51
52set ( CFLAGS "${COPT} -fPIC -restrict -I${FINK_ROOT}/include")
53
54set ( FFLAGS "${CLIBFOPT} ${FOPT}")
55
56set ( CINTFLAGS )
57
58set ( LDFLAGS "${OPT} ${DICTLOAD}")
59
60set ( SOFLAGS "${OPT} -dynamiclib -undefined dynamic_lookup -single_module")
61
62set ( DYFLAGS "-dynamiclib -undefined dynamic_lookup -single_module")
63
64set ( ALLIB )
65
66set ( EXEFLAGS "-bind_at_load")
67
68execute_process(COMMAND find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'
69 OUTPUT_VARIABLE LIBNOVER
70 OUTPUT_STRIP_TRAILING_WHITESPACE)
71
72execute_process(COMMAND which ifort | sed -e 's|bin|lib|'
73 OUTPUT_VARIABLE IFORT
74 OUTPUT_STRIP_TRAILING_WHITESPACE)
75
76set (SYSLIBS "-lcrypt -L/usr/X11R6/lib -lX11 ${LIBNOVER} -L/usr/local/lib -lXt -L${IFORT} -lifcore -lifport")