Suppress debug info (Stefan)
[u/mrichter/AliRoot.git] / cmake / modules / ALICEMacros.cmake
CommitLineData
e969a926 1# -*- mode: cmake -*-
2#_______________________________________________________________________________
3Macro(CHANGE_FILE_EXTENSION OLD_EXT NEW_EXT RESULT LIST)
4
5# This is probably an obsolete Macro
6
7 If (${OLD_EXT} MATCHES "^[*][.]+.*$")
8 String(REGEX REPLACE "^[*]+([.].*)$" "\\1" OLD_EXT1 ${OLD_EXT})
9 Endif (${OLD_EXT} MATCHES "^[*][.]+.*$")
10
11 If (${NEW_EXT} MATCHES "^[*][.]+.*$")
12 String(REGEX REPLACE "^[*]+([.].*)" "\\1" NEW_EXT1 ${NEW_EXT})
13 Endif (${NEW_EXT} MATCHES "^[*][.]+.*$")
14
15 Set(FLIST)
16 Foreach (_current_FILE ${LIST})
17
18 String(REGEX REPLACE "^(.*)${OLD_EXT1}$" "\\1${NEW_EXT1}" res ${_current_FILE})
19 Set (FLIST ${FLIST} ${res})
20
21 Endforeach (_current_FILE ${LIST})
22 Set(${RESULT} ${FLIST})
23
24Endmacro (CHANGE_FILE_EXTENSION)
25
26#_______________________________________________________________________________
27Macro (CHECK_OUT_OF_SOURCE_BUILD)
28
29# Checks that the binary is built outside the source
30
31 String(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" insource)
32 If(insource)
33 File(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/Testing)
34 File(REMOVE ${CMAKE_SOURCE_DIR}/DartConfiguration.tcl)
35 Message(FATAL_ERROR "ALIROOT should be installed as an out of source build, to keep the source directory clean. Please create a extra build directory and run the command 'cmake path_to_source_dir' in this newly created directory. You have also to delete the directory CMakeFiles and the file CMakeCache.txt in the source directory. Otherwise cmake will complain even if you run it from an out-of-source directory.")
36 Endif(insource)
37
38EndMacro (CHECK_OUT_OF_SOURCE_BUILD)
39
40#_______________________________________________________________________________
41Function (AddLibrary LIB SRCS DHDRS)
42
43# Adds an AliRoot library as a target
44
a1ea9532 45 # Message(STATUS Debug ${LIB})
ffeaf110 46 Set(_path)
47 List(LENGTH SRCS _len)
48 If(_len GREATER 0)
49 List(GET SRCS 0 _file)
50 Get_filename_component(_path ${_file} PATH)
51# Message(STATUS Debug ${_file} ${_path})
52 Endif(_len GREATER 0)
53
54 Set(LDEF)
55 If(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIB}LinkDef.h)
56 Set(LDEF "${LIB}LinkDef.h")
57 Endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIB}LinkDef.h)
58
59 If(_path)
60 If(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_path}/${LIB}LinkDef.h)
61 Set(LDEF "${_path}/${LIB}LinkDef.h")
62 Endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_path}/${LIB}LinkDef.h)
63 Endif(_path)
64
a1ea9532 65 # Message(STATUS Debug - ${CMAKE_CURRENT_SOURCE_DIR} - ${LIB} - ${LDEF})
96c0c856 66
e969a926 67 Set(DICT)
a1ea9532 68 # Message(STATUS Debug ${LDEF})
ffeaf110 69 If(LDEF)
e969a926 70# even with no cxx files, one may want to build an empty lib as a placeholder
71# in AliRoot this is signalled by the existence of an (empty) ${LIB}LinkDef.h
72 Set(DICT "G__${LIB}.cxx")
73 Set(ASRCS ${SRCS} ${DICT})
74 Root_Generate_Dictionary("${DHDRS}" "${LDEF}" "${DICT}" "${INCLUDE_DIRECTORIES}")
96c0c856 75 If(ALICE_STATIC_BUILD)
76 Set(STATIC_DICT "G__${LIB}_a.cxx")
77 Set(STATIC_ASRCS ${SRCS} ${STATIC_DICT})
78 Root_Generate_Dictionary("${DHDRS}" "${LDEF}" "${STATIC_DICT}" "${INCLUDE_DIRECTORIES}")
79 EndIf(ALICE_STATIC_BUILD)
ffeaf110 80 Else(LDEF)
46e443ec 81 Message(STATUS "No ${LIB}LinkDef.h found... building lib with no ROOT dict")
e969a926 82 Set(ASRCS ${SRCS})
96c0c856 83 If(ALICE_STATIC_BUILD)
84 Set(STATIC_ASRCS ${SRCS})
85 EndIf(ALICE_STATIC_BUILD)
ffeaf110 86 Endif(LDEF)
e969a926 87
88 Add_Library(${LIB} SHARED ${ASRCS})
89 Target_Link_Libraries(${LIB} ${ALIROOT_LIBRARIES})
90 Set_Target_Properties(${LIB} PROPERTIES ${ALIROOT_LIBRARY_PROPERTIES})
91
92 Install(TARGETS ${LIB} DESTINATION ${ALIROOT_INSTALL_DIR}/lib
93 COMPONENT shared)
94
95 If(ALICE_STATIC_BUILD)
96c0c856 96 Add_Library(${LIB}_a STATIC ${STATIC_ASRCS})
e969a926 97 Install(TARGETS ${LIB}_a DESTINATION ${ALIROOT_INSTALL_DIR}/lib/static)
98 EndIf(ALICE_STATIC_BUILD)
99
100 If(ARGV3)
101 Install(FILES ${ARGV3} DESTINATION ${ALIROOT_INSTALL_DIR}/include)
102 Endif(ARGV3)
103
104 CheckViols(${LIB} "${SRCS}")
105
106EndFunction (AddLibrary)
96c0c856 107#_______________________________________________________________________________
108Function (AddHLTLibrary LIB SRCS DHDRS)
109
110# Adds an AliRoot library as a target
111
112 Set(_path)
113 List(LENGTH SRCS _len)
114 If(_len GREATER 0)
115 List(GET SRCS 0 _file)
116 Get_filename_component(_path ${_file} PATH)
117 #Message(STATUS Debug ${_file} ${_path})
118 Endif(_len GREATER 0)
119
120 Set(LDEF)
121 If(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${LIB}LinkDef.h)
122 Set(LDEF "${CMAKE_CURRENT_BINARY_DIR}/${LIB}LinkDef.h")
123 Endif(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${LIB}LinkDef.h)
124
125 If(NOT LDEF)
126 If(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIB}LinkDef.h)
127 Set(LDEF "${LIB}LinkDef.h")
128 Endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIB}LinkDef.h)
129 EndIf(NOT LDEF)
130
131 If(_path AND NOT LDEF)
132 If(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_path}/${LIB}LinkDef.h)
133 Set(LDEF "${_path}/${LIB}LinkDef.h")
134 Endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_path}/${LIB}LinkDef.h)
135 Endif(_path AND NOT LDEF)
136
137 Set(DICT)
138 If(LDEF)
139# even with no cxx files, one may want to build an empty lib as a placeholder
140# in AliRoot this is signalled by the existence of an (empty) ${LIB}LinkDef.h
141 Set(DICT "G__${LIB}.cxx")
142 Set(ASRCS ${SRCS} ${DICT})
143 Root_Generate_Dictionary("${DHDRS}" "${LDEF}" "${DICT}" "${INCLUDE_DIRECTORIES}")
144 If(ALICE_STATIC_BUILD)
145 Set(STATIC_DICT "G__${LIB}_a.cxx")
146 Set(STATIC_ASRCS ${SRCS} ${STATIC_DICT})
147 Root_Generate_Dictionary("${DHDRS}" "${LDEF}" "${STATIC_DICT}" "${INCLUDE_DIRECTORIES}")
148 EndIf(ALICE_STATIC_BUILD)
149 Else(LDEF)
150 Message(STATUS "No ${LIB}LinkDef.h found... building lib with no ROOT dict")
151 Set(ASRCS ${SRCS})
152 If(ALICE_STATIC_BUILD)
153 Set(STATIC_ASRCS ${SRCS})
154 EndIf(ALICE_STATIC_BUILD)
155 Endif(LDEF)
156
157 Add_Library(${LIB} SHARED ${ASRCS})
158 Target_Link_Libraries(${LIB} ${ALIROOT_LIBRARIES})
159 Set_Target_Properties(${LIB} PROPERTIES ${ALIROOT_LIBRARY_PROPERTIES})
160
161 Install(TARGETS ${LIB} DESTINATION ${ALIROOT_INSTALL_DIR}/lib
162 COMPONENT shared)
163
164 If(ALICE_STATIC_BUILD)
165 Add_Library(${LIB}_a STATIC ${STATIC_ASRCS})
166 Install(TARGETS ${LIB}_a DESTINATION ${ALIROOT_INSTALL_DIR}/lib/static)
167 EndIf(ALICE_STATIC_BUILD)
168
169 If(ARGV3)
170 Install(FILES ${ARGV3} DESTINATION ${ALIROOT_INSTALL_DIR}/include)
171 Endif(ARGV3)
172
173 CheckViols(${LIB} "${SRCS}")
174
175EndFunction (AddHLTLibrary)
e969a926 176
177#_______________________________________________________________________________
178Macro (SetModule)
179
180String(REGEX REPLACE "${ALICE_ROOT}/?([^/]*)/?$" "\\1" ALIROOT_MODULE "${CMAKE_CURRENT_SOURCE_DIR}")
181Add_Definitions(-D_MODULE_=\"${ALIROOT_MODULE}\")
182
183EndMacro(SetModule)
184
185
186#_______________________________________________________________________________
187Function (AddExecutable BIN SRCS LIBS)
188
189# Adds an AliRoot executable as a target
190
96c0c856 191 String(REGEX REPLACE "(.*)exe" "\\1" executable_name "${BIN}")
a1ea9532 192 # MESSAGE("EXECUTABLE: ${executable_name}")
96c0c856 193
e969a926 194 Add_Executable(${BIN} ${SRCS})
195 Target_Link_Libraries(${BIN} ${ROOT_LIBRARIES} ${LIBS})
96c0c856 196 set_target_properties(${BIN} PROPERTIES OUTPUT_NAME ${executable_name})
e969a926 197 Install(TARGETS ${BIN} DESTINATION ${ALIROOT_INSTALL_DIR}/bin)
198
199 If(ALICE_STATIC_BUILD)
200 Add_Executable(${BIN}_a ${SRCS})
201 Set(_ar_libs)
96c0c856 202 # There are no static libs for external libraries, so we have to filter
203 # here. This is an ugly way how to do it, so this has to be improved.
e969a926 204 Foreach(_lib ${LIBS})
96c0c856 205 If(${_lib} STREQUAL GLU OR ${_lib} STREQUAL XMLParser)
206 Set(_ar_libs ${_ar_libs} ${_lib})
207 Else(${_lib} STREQUAL GLU OR ${_lib} STREQUAL XMLParser)
208 Set(_ar_libs ${_ar_libs} ${_lib}_a)
209 EndIf(${_lib} STREQUAL GLU OR ${_lib} STREQUAL XMLParser)
e969a926 210 EndForeach(_lib ${LIBS})
96c0c856 211 Target_Link_Libraries(${BIN}_a ${ALIROOT_LIBRARIES} ${_ar_libs})
e969a926 212 Install(TARGETS ${BIN}_a DESTINATION ${ALIROOT_INSTALL_DIR}/bin)
213 EndIf(ALICE_STATIC_BUILD)
214
215 CheckViols(${BIN} "${SRCS}")
216
217EndFunction (AddExecutable)
218
219#_______________________________________________________________________________
220Macro (SetupSystem)
221
222# Set up all system dependencies of AliRoot
223
224Message(STATUS "Setting up system dependent parameters for ${ALICE_TARGET}" )
225
3c34a311 226# macosx64
e969a926 227If(ALICE_TARGET STREQUAL macosx64)
228
229 Execute_process(
230 COMMAND sw_vers -productVersion
231 OUTPUT_VARIABLE MACOSX
232 OUTPUT_STRIP_TRAILING_WHITESPACE)
233
234 String(REGEX REPLACE "^(.*)[.](.*)[.](.*)$" "\\1" MACOSX_MAJOR "${MACOSX}")
235 String(REGEX REPLACE "^(.*)[.](.*)[.](.*)$" "\\2" MACOSX_MINOR "${MACOSX}")
236
237 Message(STATUS "Mac OS X ${MACOSX_MAJOR}.${MACOSX_MINOR}")
238
239 Find_Package(fink)
240
84641bd5 241# Set(CMAKE_CXX_COMPILER g++)
242# Set(CMAKE_C_COMPILER gcc)
e969a926 243# I found no way to make this work...
244# Set(CMAKE_CXX_LINK_EXECUTABLE
245# "MACOSX_DEPLOYMENT_TARGET=${MACOSX_MAJOR}.${MACOSX_MINOR} ${CMAKE_CXX_LINK_EXECUTABLE}")
246
ce4a61cd 247 Set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -O -g -flat_namespace -single_module -undefined dynamic_lookup -m64")
e969a926 248
ce4a61cd 249 Set(CMAKE_Fortran_FLAGS "-O -g -fno-second-underscore -m64")
e969a926 250
251 Set(CLIBDEFS "-DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC")
252
d3b3a3b2 253 Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O -g -m64 -pipe -Wall -W -pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -Woverloaded-virtual -Weffc++ -Wshadow -fno-default-inline -fno-inline -I/usr/X11R6/include -I${FINK_ROOT}/include")
ce4a61cd 254 Set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O -g -m64 -Wall -W -fno-common -pipe -I${FINK_ROOT}/include")
e969a926 255
256 If(CMAKE_Fortran_COMPILER MATCHES g95)
257 Set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fbounds-check -ftrace=full -DFORTRAN_G95")
e969a926 258 Else(CMAKE_Fortran_COMPILER MATCHES g95)
259 Set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -DFORTRAN_GFORTRAN")
260 Execute_process(
261 COMMAND gfortran -m64 -print-file-name=libgfortran.dylib
262 OUTPUT_VARIABLE FLIB
263 OUTPUT_STRIP_TRAILING_WHITESPACE)
264 Set(ROOT_LIBRARIES "${ROOT_LIBRARIES} ${FLIB}")
265 Execute_process(
266 COMMAND gfortran -m64 -print-file-name=libgfortranbegin.a
267 OUTPUT_VARIABLE FLIB
268 OUTPUT_STRIP_TRAILING_WHITESPACE)
269 Set(ROOT_LIBRARIES "${ROOT_LIBRARIES} ${FLIB}")
270 Endif(CMAKE_Fortran_COMPILER MATCHES g95)
271
e969a926 272# I think this is useless
273# Set(ALIROOT_LIBRARIES "${ROOT_LIBRARIES} -L/usr/X11R6/lib -lX11")
96c0c856 274 Set(ALIROOT_LIBRARIES "${ROOT_LIBRARIES} -L/usr/X11/lib")
e969a926 275
276# Would like to use this, but did not manage on the Mac
277#Include(FindOpenGL)
278#Set(ROOT_LIBRARIES ${ROOT_LIBRARIES} ${OPENGL_LIBRARIES})
279#Set(ROOT_INCLUDE_DIR ${ROOT_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR})
280# Poor man's version of the above
281 Set(ALIROOT_INCLUDE_DIR ${ROOT_INCLUDE_DIR} /usr/X11/include)
282
e969a926 283#
284# LD = export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_MAJOR).$(MACOSX_MINOR) ; \
285# unset LD_PREBIND ; \
286# g++
287# ALLD = ar
288# ALFLAGS = cr
289# ALLIB =
290# AEXT = a
291#
292
293Endif(ALICE_TARGET STREQUAL macosx64)
294
3c34a311 295# linuxx8664gcc
e2d7359f 296If(ALICE_TARGET STREQUAL linuxx8664gcc)
297
298
ce4a61cd 299 Set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -O -g -shared -Wl")
e2d7359f 300
ce4a61cd 301 Set(CMAKE_Fortran_FLAGS "-O -g -fno-second-underscore -m64")
e2d7359f 302
303 Set(CLIBDEFS "-DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ")
304
ce4a61cd 305 Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O -g -m64 -pipe -W -Wall -Weffc++ -Woverloaded-virtual -fmessage-length=0 -Wno-long-long -Dlinux -I/usr/X11R6/include")
306 Set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O -g -m64 -Wall -W -pipe")
e2d7359f 307
308 If(CMAKE_Fortran_COMPILER MATCHES g95)
309 Set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fbounds-check -ftrace=full -DFORTRAN_G95")
e2d7359f 310 Else(CMAKE_Fortran_COMPILER MATCHES g95)
311 Set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -DFORTRAN_GFORTRAN")
312 Execute_process(
313 COMMAND gfortran -m64 -print-file-name=libgfortran.so
314 OUTPUT_VARIABLE FLIB
315 OUTPUT_STRIP_TRAILING_WHITESPACE)
316 Set(ROOT_LIBRARIES "${ROOT_LIBRARIES} ${FLIB}")
317 Execute_process(
318 COMMAND gfortran -m64 -print-file-name=libgfortranbegin.a
319 OUTPUT_VARIABLE FLIB
320 OUTPUT_STRIP_TRAILING_WHITESPACE)
321 Set(ROOT_LIBRARIES "${ROOT_LIBRARIES} ${FLIB}")
322 Endif(CMAKE_Fortran_COMPILER MATCHES g95)
323
e2d7359f 324 Set(ALIROOT_LIBRARIES "${ROOT_LIBRARIES}")
325
326 Set(ALIROOT_INCLUDE_DIR ${ROOT_INCLUDE_DIR} /usr/X11/include)
327
e2d7359f 328Endif(ALICE_TARGET STREQUAL linuxx8664gcc)
329
b8aad0f9 330# linux
331If(ALICE_TARGET STREQUAL linux)
332
333
ce4a61cd 334 Set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -O -g -shared -Wl")
b8aad0f9 335
ce4a61cd 336 Set(CMAKE_Fortran_FLAGS "-O -g -fno-second-underscore -m32")
b8aad0f9 337
338 Set(CLIBDEFS "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ")
339
ce4a61cd 340 Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O -g -m32 -pipe -W -Wall -Weffc++ -Woverloaded-virtual -fmessage-length=0 -Wno-long-long -Dlinux -I/usr/X11R6/include")
341 Set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O -g -m32 -Wall -W -pipe")
b8aad0f9 342
343 If(CMAKE_Fortran_COMPILER MATCHES g95)
344 Set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fbounds-check -ftrace=full -DFORTRAN_G95")
b8aad0f9 345 Else(CMAKE_Fortran_COMPILER MATCHES g95)
346 Set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -DFORTRAN_GFORTRAN")
347 Execute_process(
348 COMMAND gfortran -m32 -print-file-name=libgfortran.so
349 OUTPUT_VARIABLE FLIB
350 OUTPUT_STRIP_TRAILING_WHITESPACE)
351 Set(ROOT_LIBRARIES "${ROOT_LIBRARIES} ${FLIB}")
352 Execute_process(
353 COMMAND gfortran -m32 -print-file-name=libgfortranbegin.a
354 OUTPUT_VARIABLE FLIB
355 OUTPUT_STRIP_TRAILING_WHITESPACE)
356 Set(ROOT_LIBRARIES "${ROOT_LIBRARIES} ${FLIB}")
357 Endif(CMAKE_Fortran_COMPILER MATCHES g95)
358
b8aad0f9 359 Set(ALIROOT_LIBRARIES "${ROOT_LIBRARIES}")
360
361 Set(ALIROOT_INCLUDE_DIR ${ROOT_INCLUDE_DIR} /usr/X11/include)
362
b8aad0f9 363Endif(ALICE_TARGET STREQUAL linux)
364
3c34a311 365# macosx
366If(ALICE_TARGET STREQUAL macosx)
367
368 Execute_process(
369 COMMAND sw_vers -productVersion
370 OUTPUT_VARIABLE MACOSX
371 OUTPUT_STRIP_TRAILING_WHITESPACE)
372
373 String(REGEX REPLACE "^(.*)[.](.*)[.](.*)$" "\\1" MACOSX_MAJOR "${MACOSX}")
374 String(REGEX REPLACE "^(.*)[.](.*)[.](.*)$" "\\2" MACOSX_MINOR "${MACOSX}")
375
376 Message(STATUS "Mac OS X ${MACOSX_MAJOR}.${MACOSX_MINOR}")
377
378 Find_Package(fink)
379
ce4a61cd 380 Set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -O -g -flat_namespace -single_module -undefined dynamic_lookup -m32")
3c34a311 381
ce4a61cd 382 Set(CMAKE_Fortran_FLAGS "-O -g -fno-second-underscore -m32")
3c34a311 383
384 Set(CLIBDEFS "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC")
385
38e6cbb2 386 Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O -g -m32 -pipe -Wall -W -pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -Woverloaded-virtual -Weffc++ -Wconversion -Wshadow -fno-default-inline -fno-inline -I/usr/X11R6/include -I${FINK_ROOT}/include")
ce4a61cd 387 Set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O -g -m32 -Wall -W -fno-common -pipe -I${FINK_ROOT}/include")
3c34a311 388
389 If(CMAKE_Fortran_COMPILER MATCHES g95)
390 Set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fbounds-check -ftrace=full -DFORTRAN_G95 -single_module")
3c34a311 391 Else(CMAKE_Fortran_COMPILER MATCHES g95)
38e6cbb2 392 Set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -single_module -DFORTRAN_GFORTRAN")
3c34a311 393 Execute_process(
394 COMMAND gfortran -m32 -print-file-name=libgfortran.dylib
395 OUTPUT_VARIABLE FLIB
396 OUTPUT_STRIP_TRAILING_WHITESPACE)
397 Set(ROOT_LIBRARIES "${ROOT_LIBRARIES} ${FLIB}")
398 Execute_process(
399 COMMAND gfortran -m32 -print-file-name=libgfortranbegin.a
400 OUTPUT_VARIABLE FLIB
401 OUTPUT_STRIP_TRAILING_WHITESPACE)
402 Set(ROOT_LIBRARIES "${ROOT_LIBRARIES} ${FLIB}")
403 Endif(CMAKE_Fortran_COMPILER MATCHES g95)
404
405 Set(ALIROOT_LIBRARIES "${ROOT_LIBRARIES}")
406
407 Set(ALIROOT_INCLUDE_DIR ${ROOT_INCLUDE_DIR} /usr/X11/include)
408
3c34a311 409Endif(ALICE_TARGET STREQUAL macosx)
410
70e4828f 411# solarisCC5
412If(ALICE_TARGET STREQUAL solarisCC5)
413
ce4a61cd 414 Set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -O -g")
70e4828f 415
416 Set(CLIBDEFS "-DCERNLIB_SUN -DCERNLIB_BLDLIB -DCERNLIB_CZ")
417
ce4a61cd 418 Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O -g +w -KPIC -template=no%extdef")
419 Set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O -g -KPIC -erroff=%none")
70e4828f 420
ce4a61cd 421 Set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O -g -KPIC -erroff=%none")
70e4828f 422
423 Set(ALIROOT_LIBRARIES "${ROOT_LIBRARIES}")
424
425 Set(ALIROOT_INCLUDE_DIR ${ROOT_INCLUDE_DIR} /usr/X11/include)
426
29d55f77 427 Set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -L/usr/dt/lib -L/usr/openwin/lib -L/usr/ccs/lib -lXm -lXt -lX11 -lm -lgen -ldl -lsocket -lsunmath -lfsu -lfui -lnsl")
70e4828f 428
429Endif(ALICE_TARGET STREQUAL solarisCC5)
430
e969a926 431EndMacro (SetupSystem)
432
433# ../build/Makefile.alphacxx6
434# # -*- mode: makefile -*-
435# # Makefile to build AliRoot for Alpha OSF1
436#
437# # System dependent commands
438#
439# XARGS = xargs
440#
441# # The compilers
442# CXX = cxx
443# F77 = f77
444#
445# # Global optimisation
446# OPT = -O
447# NOOPT = -O0
448#
449# CXXOPT = $(OPT)
450# CXXNOOPT = $(NOOPT)
451# COPT = $(OPT)
452# FOPT = $(OPT)
453#
454# # CERNLIB defines
455# CLIBDEFS = -DCERNLIB_DECS -DCERNLIB_BLDLIB -DCERNLIB_CZ
456# CLIBCXXOPTS =
457# CLIBCOPT =
458# CLIBFOPT = -I. $(CLIBDEFS)
459#
460# # Compiler flags
461# CXXFLAGS = $(CXXOPT) -nostdnew -rtti -taso
462# CXXFLAGSNO = $(CXXNOOPT) -nostdnew -rtti -taso
463# CFLAGS = $(COPT) -fPIC -pipe -mcpu=ev5 -D__osf__ -D__alpha
464# FFLAGS = $(FOPT) -nofor_main -warn noinformational -taso $(CLIBFOPT)
465# # rmkdepend flags for building dependencies of FORTRAN files
466# DEPENDFFLAGS = $(filter-out -warn noinformational,$(FFLAGS))
467#
468# # rootcint flags
469# CINTFLAGS = -D__DECCXX
470#
471# LD = cxx
472# LDFLAGS =
473#
474# SHLD = ld
475# SOFLAGS = -L/usr/lib/cmplrs/cxx -rpath /usr/lib/cmplrs/cxx \
476# -expect_unresolved "*" -msym -shared -taso \
477# /usr/lib/cmplrs/cc/crt0.o /usr/lib/cmplrs/cxx/_main.o
478#
479# SHLIB = -lUfor -lfor -lFutil
480# SOEXT = so
481#
482# #System libraries
483#
484# # Flags for static libraries
485# AFLAGS = $(filter-out -rpath /usr/lib/cmplrs/cxx -msym -shared /usr/lib/cmplrs/cc/crt0.o,$(SOFLAGS))
486# AFLAGS += $(SHLIB)
487#
488# # Additional flags and libraries for building aliroot executable
489# SYSLIBS := -lXm -lXt -lX11 -lPW -lUfor -lfor -lFutil -lots -taso -lbsd
490#
491# # Cure funny problem
492# # sometimes in dependencies system include files of the sort
493# # /usr/.../filename AND /usr/.../filename.cc are present
494# # DEC believes that /usr/.../filename is the executable to be
495# # built from /usr/.../filename.cc
496# # Just avoid this to happen
497#
498# % : %.cc
499# @;
500#
501#
502#
503#
504#
505#
506#
507#
508#
509# ../build/Makefile.hpuxacc
510# # -*- mode: makefile -*-
511# # Makefile to build AliRoot on HP-UX
512#
513# # System dependent commands
514#
515# XARGS = xargs
516#
517# # The compilers
518# CXX = aCC
519# F77 = f77
520# CC = cc
521#
522# # Global optimisation
523# OPT = -g -O
524# NOOPT = -g
525#
526# CXXOPT = $(OPT)
527# CXXNOOPT = $(NOOPT)
528# COPT = $(OPT)
529# FOPT = $(OPT)
530#
531# # CERNLIB defines
532# CLIBDEFS = -DCERNLIB_HPUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
533# CLIBCXXOPTS =
534# CLIBCOPT = +z -Ae
535# CLIBFOPT = $(CLIBDEFS) -WF,-P
536#
537# CXXFLAGS = $(CXXOPT) -Wc,-ansi_for_scope,on +Z -z +W70,495,740,749,823,829 -Dextname
538# CXXFLAGSNO = $(CXXNOOPT) -Wc,-ansi_for_scope,on +Z -z +W70,495,740,749,823,829 -Dextname
539# CFLAGS = $(COPT) +Z -Ae
540# FFLAGS = $(CLIBFOPT) $(FOPT) +ppu +Z
541# # rmkdepend flags for building dependencies of FORTRAN files
542# DEPENDFFLAGS = $(FFLAGS)
543#
544# # rootcint flags
545# CINTFLAGS =
546#
547# LD = aCC
548# LDFLAGS = $(OPT) -z -Wl,+s -Wl,-E
549#
550# SHLD = $(LD)
551# SOFLAGS = -b /usr/lib/libm.sl
552#
553# SOEXT = sl
554#
555# # additional ROOT libraries
556# SYSLIBS := -lcrypt -L/usr/lib/X11R6 -lX11
557#
558#
559#
560#
561#
e969a926 562# ../build/Makefile.linuxalphagcc
563# # -*- mode: makefile -*-
564# # Makefile to build AliRoot for Linux on alpha
565#
566# # System dependent commands
567#
568# XARGS = xargs -r
569#
570# # The compilers
571# CXX = g++
572# F77 = g77
573# CC = gcc
574# CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1)
575# CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2)
576#
577# # Global optimisation
578# OPT = -O -g -mieee -mno-soft-float
579# NOOPT = -g -mieee -mno-soft-float
580#
581# CXXOPT = $(OPT)
582# CXXNOOPT = $(NOOPT)
583# COPT = $(OPT)
584# FOPT = $(OPT)
585#
586# # CERNLIB defines
587# CLIBDEFS = -DCERNLIB_UNIX -DCERNLIB_DECS -DCERNLIB_BLDLIB -DCERNLIB_CZ
588# CLIBCXXOPTS =
589# CLIBCOPT =
590# CLIBFOPT = $(CLIBDEFS)
591#
592# # Compiler flags
593#
594# CXXFLAGS = $(OPT) -Wall -fPIC -pipe
595# CXXFLAGSNO = $(NOOPT) -Wall -fPIC -pipe
596# CFLAGS = $(OPT) -Wall -fPIC -pipe -ansi
597# FFLAGS = $(CLIBFOPT) $(FOPT) -Wall -fPIC -pipe -fno-second-underscore
598# # rmkdepend flags for building dependencies of FORTRAN files
599# DEPENDFFLAGS = $(FFLAGS)
600#
601# # rootcint flags
602# CINTFLAGS =
603#
604# LD = g++
605# LDFLAGS = $(OPT)
606#
607# SHLD = $(LD)
608# SOFLAGS = $(OPT) -Wall -fPIC -pipe -shared -Wl
609# SHLIB = -lg2c
610# SOEXT = so
611#
612# ALLD = ar
613# ALFLAGS = cr
614# ALLIB =
615# AEXT = a
616#
617# #System libraries
618# SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11
619#
620#
621#
622#
623#
624# ../build/Makefile.linuxia64ecc
625# # -*- mode: makefile -*-
626# # Makefile for AliRoot for Itanium/Linux with Intel icc compiler
627#
628# # System dependent commands
629#
630# XARGS = xargs -r
631#
632# # The compilers
633# CXX = icc
634# F77 = ifort
635# CC = icc
636#
637# # Global optimisation
638# OPT = -g #-O
639# NOOPT = -g
640#
641# CXXOPT = $(OPT)
642# CXXNOOPT = $(OPT)
643# COPT = $(OPT)
644# FOPT = $(OPT)
645#
646# # CERNLIB defines
647# CLIBDEFS = -DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ
648# CLIBCXXOPTS =
649# CLIBCOPT =
650# CLIBFOPT = $(CLIBDEFS)
651#
652# # Compiler flags
653# CXXFLAGS = $(CXXOPT)
654# CXXFLAGSNO = $(CXXNOOPT)
655# CFLAGS = $(COPT)
656# FFLAGS = $(CLIBFOPT) $(FOPT)
657# # rmkdepend flags for building dependencies of FORTRAN files
658# DEPENDFFLAGS = $(FFLAGS)
659#
660# # rootcint flags
661# CINTFLAGS =
662#
663# LD = icpc
664# LDFLAGS = $(OPT)
665#
666# SHLD = $(LD)
667# SOFLAGS = -Wl,-soname,$$TMPLIB -shared -O
668# SHLIB =
669# SOEXT = so
670#
671# ALLD = ar
672# ALFLAGS = cr
673# ALLIB =
674# AEXT = a
675#
676# # additional ROOT libraries
677#
678# LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
679#
680# SYSLIBS := $(LIBNOVER) -lcrypt -L/usr/local/lib -lXt -lCEPCF90 -lF90 \
681# -lPEPCF90 -lintrins -L/usr/X11R6/lib -lX11
682# ../build/Makefile.linuxia64gcc
683# # -*- mode: makefile -*-
684# # Makefile for AliRoot for Itanium/Linux with gcc
685#
686# # System dependent commands
687#
688# XARGS = xargs -r
689#
690# # The compilers
691# CXX = g++
692# F77 = g77
693# CC = gcc
694#
695# # Global optimisation
696# OPT = -g -O
697# NOOPT = -g
698#
699# CXXOPT = $(OPT)
700# CXXNOOPT = $(NOOPT)
701# COPT = $(OPT)
702# FOPT = $(OPT)
703#
704# # CERNLIB defines
705# CLIBDEFS = -DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ
706# CLIBCXXOPTS =
707# CLIBCOPT =
708# CLIBFOPT = $(CLIBDEFS)
709#
710# # Compiler flags
711# CXXFLAGS = $(CXXOPT) -Wall -Weffc++ -fPIC -pipe
712# CXXFLAGSNO = $(CXXNOOPT) -Wall -Weffc++ -fPIC -pipe
713# CFLAGS = -Wall -fPIC -pipe
714# FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore
715# # rmkdepend flags for building dependencies of FORTRAN files
716# DEPENDFFLAGS = $(FFLAGS)
717#
718# # rootcint flags
719# CINTFLAGS =
720#
721# LD = g++
722# LDFLAGS = $(OPT) -Wl,-Map -Wl,$@.map
723#
724# SHLD = $(LD)
725# SOFLAGS = -shared -Wl -O2
726# SOEXT = so
727#
728# ALLD = ar
729# ALFLAGS = cr
730# ALLIB =
731# AEXT = a
732#
733# # additional ROOT libraries
734#
735# LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
736#
737# #System libraries
738# SYSLIBS := -ldl -lbsd -lg2c -L/usr/X11R6/lib -lX11 $(LIBNOVER)
739#
740#
741#
742#
743#
744# ../build/Makefile.linuxicc
745# # -*- mode: makefile -*-
746# # Makefile for AliRoot for Linux with the Intel icc compiler
747#
748# # System dependent commands
749#
750# XARGS = xargs -r
751#
752# # The compilers
753# CXX = icc
754# CC = icc
755#
756# # Compiler version:
757# ICC_MAJOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
758# cut -d'.' -f1)
759# ICC_MINOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
760# cut -d'.' -f2)
761#
762# F77 = ifort
763#
764# # Global optimisation
765# OPT = -O -ip
766# NOOPT = -O0
767#
768# CXXOPT = $(OPT)
769# CXXNOOPT = $(NOOPT)
770# COPT = $(OPT)
771# FOPT = $(OPT)
772#
773# # CERNLIB defines
774# CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
775# CLIBCXXOPTS =
776# CLIBCOPT =
777# CLIBFOPT = $(CLIBDEFS)
778#
779# # Compiler flags
780# CXXFLAGS = $(CXXOPT)
781# CXXFLAGSNO = $(CXXNOOPT)
782# CFLAGS = $(COPT)
783# FFLAGS = $(CLIBFOPT) $(FOPT)
784# # rmkdepend flags for building dependencies of FORTRAN files
785# DEPENDFFLAGS = $(FFLAGS)
786#
787# # rootcint flags
788# CINTFLAGS =
789#
790# LD = icpc
791# LDFLAGS = $(OPT)
792#
793# SHLD = $(LD)
794# SOFLAGS = -Wl,-soname,$$TMPLIB -shared $(OPT)
795# SHLIB =
796# SOEXT = so
797#
798# ALLD = ar
799# ALFLAGS = cr
800# ALLIB =
801# AEXT = a
802#
803# # additional ROOT libraries
804#
805# LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
806#
807# #System libraries
808# SYSLIBS := -lcrypt -L/usr/X11R6/lib -lX11 $(LIBNOVER) -L/usr/local/lib \
809# -lXt -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \
810# -lifcore -lifport
e969a926 811# ../build/Makefile.macosxicc
812# # -*- mode: makefile -*-
813# # Makefile for AliRoot for MacOS X with gcc
814#
815# XARGS = xargs
816#
817# # fink directories
818# FINK_ROOT := $(shell which fink | sed -e 's?/bin/fink??')
819# ifeq (,$(FINK_ROOT))
820# # No fink, build will probably fail, but we try a guess
821# FINK_ROOT=/usr/local
822# endif
823#
824# # The compilers
825# CXX = icc
826# CC = icc
827#
828# F77 = ifort
829#
830# # Global optimisation
831# OPT = -O -g
832# NOOPT = -g
833#
834# CXXOPT = $(OPT)
835# CXXNOOPT = $(NOOPT)
836# COPT = $(OPT)
837# FOPT = $(OPT)
838#
839# # CERNLIB defines
840# CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC
841# CLIBCXXOPTS =
842# CLIBCOPT =
843# CLIBFOPT = $(CLIBDEFS)
844#
845# # Compiler flags
846# CXXFLAGS = $(CXXOPT) -fPIC -wd1476 -I/usr/X11R6/include -I$(FINK_ROOT)/include
847#
848# CXXFLAGSNO = $(CXXNOOPT)
849#
850# CFLAGS = $(COPT) -fPIC -restrict -I$(FINK_ROOT)/include
851#
852# FFLAGS = $(CLIBFOPT) $(FOPT)
853# # rmkdepend flags for building dependencies of FORTRAN files
854# DEPENDFFLAGS = $(FFLAGS)
855#
856# # rootcint flags
857# CINTFLAGS =
858#
859# LD = icpc
860# LDFLAGS = $(OPT) $(DICTLOAD)
861#
862# SHLD := $(LD)
863# SOFLAGS := $(OPT) -dynamiclib -undefined dynamic_lookup -single_module
864# SHLIB :=
865# SOEXT := so
866#
867# DYLD := $(LD)
868# DYFLAGS = -dynamiclib -undefined dynamic_lookup -single_module
869# DYLIB :=
870# DYEXT := dylib
871#
872# ALLD = ar
873# ALFLAGS = cr
874# ALLIB =
875# AEXT = a
876#
877# DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
878#
879# EXEFLAGS := -bind_at_load
880#
881# #System libraries
882#
883# SYSLIBS := -L/usr/X11R6/lib -lX11 -lGL $(LIBNOVER) -L/usr/local/lib \
884# -lXt -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \
885# -lifcore -lifport
886#
887#
888# ../build/Makefile.macosxxlc
889# # -*- mode: makefile -*-
890# # Makefile for AliRoot for MacOS X using the IBM xlc compiler
891#
892# # The compilers
893# CXX = xlC
894# F77 = xlf
895# CC = xlc
896#
897# # Global optimisation
898# OPT = -qnoopt #-O3 -g
899# NOOPT = -qnoopt
900#
901# CXXOPT = $(OPT)
902# CXXNOOPT = $(NOOPT)
903# COPT = $(OPT)
904# FOPT = $(OPT)
905#
906# # CERNLIB defines
907# CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
908# CLIBCXXOPTS =
909# CLIBCOPT =
910# CLIBFOPT = $(shell echo $(CLIBDEFS) | sed -e's/-D/-WF,-D/g')
911#
912# # Compiler flags
913# CXXFLAGS = $(CXXOPT) -qpic -I/sw/include \
914# -qflttrap=overflow:zerodivide:invalid:inexact:enable
915# CXXFLAGSNO = $(CXXNOOPT) -qpic -I/sw/include \
916# -qflttrap=overflow:zerodivide:invalid:inexact:enable
917# CFLAGS = -qpic -qextname -I/sw/include \
918# -qflttrap=overflow:zerodivide:invalid:inexact:enable
919# FFLAGS = $(CLIBFOPT) $(FOPT) -qpic \
920# -qflttrap=overflow:zerodivide:invalid:inexact:enable
921# # rmkdepend flags for building dependencies
922# DEPENDFFLAGS = $(FFLAGS)
923# DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
924#
925# # rootcint flags
926# CINTFLAGS =
927#
928# LD = xlC
929# LDFLAGS = $(OPT)
930#
931# SHLD := export MACOSX_DEPLOYMENT_TARGET=10.3 ; \
932# unset LD_PREBIND ; \
933# xlC
934# SOFLAGS := -bundle -undefined dynamic_lookup
935# #SHLIB := -lg2c
936# SHLIB :=
937# SOEXT := so
938#
939# DYLD := export MACOSX_DEPLOYMENT_TARGET=10.3 ; \
940# unset LD_PREBIND ; \
941# xlC
942# DYFLAGS = -qmkshrobj -undefined dynamic_lookup -single_module
943# DYLIB :=
944# DYEXT := dylib
945#
946# ALLD = ar
947# ALFLAGS = cr
948# ALLIB =
949# AEXT = a
950#
951#
952# #System libraries
953# SYSLIBS := -ldl -L/usr/X11R6/lib -lX11
954#
955# EXEFLAGS := -Wl,-bind_at_load
956#
957#
958#
959#
960# ../build/Makefile.solarisCC5
961# # -*- mode: makefile -*-
962# # Makefile to build ALIROOT for SunOS
963#
964# # System dependent commands
965#
966# XARGS = xargs
967#
968# # The compilers
969# CXX = /opt/SUNWspro/bin/CC
970# CC = /opt/SUNWspro/bin/cc
971# F77 = /opt/SUNWspro/bin/f77
972#
973# # Global optimisation
974# OPT = -g -O
975# NOOPT = -g
976#
977# CXXOPT = $(OPT)
978# CXXNOOPT = $(NOOPT)
979# COPT = $(OPT)
980# FOPT = $(OPT)
981#
982# # CERNLIB defines
983# CLIBDEFS = -DCERNLIB_SUN -DCERNLIB_BLDLIB -DCERNLIB_CZ
984# CLIBCXXOPTS =
985# CLIBCOPT =
986# CLIBFOPT = $(CLIBDEFS) -xpp=cpp
987#
988# # Compiler flags
989# CXXFLAGS = $(CXXOPT) +w -KPIC -features=rtti -D_XOPEN_SOURCE -D_XOPEN_VERSION=4 -D__EXTENSIONS__
990# CXXFLAGSNO = $(CXXNOOPT) +w -KPIC -features=rtti
991# CFLAGS = $(COPT) -KPIC -erroff=%none
992# FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS) -KPIC
993# # rmkdepend flags for building dependencies of FORTRAN files
994# DEPENDFFLAGS = $(FFLAGS)
995#
996# # rootcint flags
997# CINTFLAGS =
998#
999# SHLIB =
1000# SOEXT = so
1001#
1002# LD = /opt/SUNWspro/bin/CC
1003# LDFLAGS = $(OPT) -Qoption ld -t
1004#
1005# SHLD = $(LD)
1006# SOFLAGS = -G $(LDFLAGS) $(SHLIB)
1007#
1008# SYSLIBS := -L/usr/dt/lib -L/usr/openwin/lib -L/usr/ccs/lib -lXm -lXt \
1009# -lX11 -lm -lgen -ldl -lsocket -lsunmath -lfsu -lfui -lnsl
1010#
1011# # Additional flags and libraries for building aliroot executable
1012#
1013# EXEFLAGS := -O -Qoption ld -t
1014#
1015#
1016#
1017#
1018#
1019# ../build/Makefile.win32gcc
1020# # -*- mode: makefile -*-
1021# # Makefile to build AliRoot for Linux
1022#
1023# # System dependent commands
1024#
1025# XARGS = xargs -r
1026#
1027# # The compilers
1028# CXX = g++
1029# F77 = g77
1030# CC = gcc
1031# CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1)
1032# CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2)
1033#
1034# # Global optimisation
1035# OPT = -O -g
1036# NOOPT = -g
1037#
1038# CXXOPT = $(OPT)
1039# CXXNOOPT = $(NOOPT)
1040# COPT = $(OPT)
1041# FOPT = $(OPT)
1042#
1043# # CERNLIB defines
1044# CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
1045# CLIBCXXOPTS =
1046# CLIBCOPT =
1047# CLIBFOPT = $(CLIBDEFS)
1048#
1049# # Compiler flags
1050# CXXFLAGS = $(OPT) -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL
1051# CXXFLAGSNO = $(NOOPT) -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL
1052# CFLAGS = $(OPT) -Wall -D_DLL
1053# FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore
1054# # rmkdepend flags for building dependencies of FORTRAN files
1055# DEPENDFFLAGS = $(FFLAGS)
1056#
1057# # rootcint flags
1058# CINTFLAGS =
1059#
1060# LD = g++
1061# LDFLAGS = $(OPT)
1062#
1063# SHLD = $(LD)
1064# SOFLAGS = $(OPT) -shared -Wl,--export-all-symbols -Wl,-soname=$$TMPLIB -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc
1065# SHLIB = $(shell root-config --libs) -lg2c
1066# SOEXT = dll
1067#
1068# ALLD = ar
1069# ALFLAGS = cr
1070# ALLIB =
1071# AEXT = a
1072#
1073# # additional ROOT libraries
1074#
1075# #System libraries
1076# SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11
1077#
1078#
1079#
1080#
1081#
1082
1083
1084
1085
1086
1087