]>
Commit | Line | Data |
---|---|---|
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 | ||
aecc2ba0 | 28 | # Global Optimization |
29 | set ( OPT ) | |
30 | # ------- Setting optimization flags for default configuration ------- | |
31 | if((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None")) | |
32 | set(DEFAULT_CXX_FLAGS "-O -g") | |
33 | set(OPT "${DEFAULT_CXX_FLAGS}") | |
34 | message("-- Setting compiler flags for default configuration: ${DEFAULT_CXX_FLAGS}") | |
35 | endif((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None")) | |
36 | # -------------------------------------------------------------------- | |
03d1e24f | 37 | set ( NOOPT "-g") |
38 | ||
39 | set ( CXXOPT ${OPT}) | |
40 | set ( CXXNOOPT ${NOOPT}) | |
41 | set ( COPT ${OPT}) | |
42 | set ( FOPT ${OPT}) | |
43 | ||
44 | set ( CLIBDEFS "-DCERNLIB_SUN -DCERNLIB_BLDLIB -DCERNLIB_CZ") | |
45 | set ( CLIBCXXOPTS ) | |
46 | set ( CLIBCOPT ) | |
47 | set ( CLIBFOPT "${CLIBDEFS} -xpp=cpp") | |
48 | ||
49 | set ( CXXFLAGS "${CXXOPT} +w -KPIC -template=no%extdef") | |
50 | set ( CXXFLAGSNO "${CXXNOOPT} +w -KPIC -template=no%extdef") | |
51 | set ( CFLAGS "${COPT} -KPIC -erroff=%none") | |
52 | set ( FFLAGS "${FOPT} ${CLIBFOPT} ${CLIBDEFS} -KPIC") | |
53 | set ( DEPENDFFLAGS ${FFLAGS}) | |
54 | ||
55 | set ( CINTFLAGS ) | |
56 | ||
57 | set ( LDFLAGS "${OPT} -Qoption ld -t") | |
58 | ||
59 | set ( SOFLAGS "-G ${LDFLAGS} ${SHLIB}") | |
60 | ||
61 | 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") | |
62 | ||
63 | set ( EXEFLAGS "-O -Qoption ld -t") |