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