]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/ana/deadChannelMap/Makefile.arch
Added various files used for analysis of HLT output data.
[u/mrichter/AliRoot.git] / HLT / PHOS / ana / deadChannelMap / Makefile.arch
1 # -*- mode: makefile -*-
2 #
3 # Makefile containing platform dependencies for ROOT based projects.
4 #
5 # Copyright (c) 2000 Rene Brun and Fons Rademakers
6 #
7 # Author: Fons Rademakers, 29/2/2000
8
9 ROOTCONFIG   := root-config
10
11 ARCH         := $(shell $(ROOTCONFIG) --arch)
12 PLATFORM     := $(shell $(ROOTCONFIG) --platform)
13
14 CXX           =
15 ObjSuf        = o
16 SrcSuf        = cxx
17 ExeSuf        =
18 DllSuf        = so
19 OutPutOpt     = -o # keep whitespace after "-o"
20
21 ROOTCFLAGS   := $(shell $(ROOTCONFIG) --cflags)
22 ROOTLDFLAGS  := $(shell $(ROOTCONFIG) --ldflags)
23 ROOTLIBS     := $(shell $(ROOTCONFIG) --libs)
24 ROOTGLIBS    := $(shell $(ROOTCONFIG) --glibs)
25 HASTHREAD    := $(shell $(ROOTCONFIG) --has-thread)
26
27 ifeq ($(ARCH),linux)
28 # Linux with egcs, gcc 2.9x, gcc 3.x (>= RedHat 5.2)
29 CXX           = g++
30 CXXFLAGS      = -O -Wall -fPIC
31 #CXXFLAGS      = -Wall -fPIC -g
32 LD            = g++
33 LDFLAGS       = -O
34 SOFLAGS       = -shared
35 endif
36
37 ifeq ($(ARCH),hpuxacc)
38 # HP-UX 10.x with aCC
39 CXX           = aCC
40 CXXFLAGS      = -O +Z
41 LD            = aCC
42 LDFLAGS       = -O -z
43 SOFLAGS       = -b
44 endif
45
46 ifeq ($(ARCH),hpuxia64acc)
47 # HP-UX 11i 1.5 (IA-64) with aCC
48 CXX           = aCC
49 CXXFLAGS      = +DD64 -O +Z
50 LD            = aCC
51 LDFLAGS       = +DD64 -O -z
52 SOFLAGS       = -b
53 endif
54
55 ifeq ($(ARCH),hpuxgcc)
56 # HP-UX 10.x with g++
57 CXXFLAGS      = -O -fPIC
58 CXX           = g++
59 LD            = g++
60 LDFLAGS       = -O
61 SOFLAGS       = -fPIC -shared
62 endif
63
64 ifeq ($(ARCH),hurddeb)
65 # GNU/Hurd
66 CXX           = g++
67 CXXFLAGS      = -O2 -Wall -fPIC
68 LD            = g++
69 LDFLAGS       = -O2
70 SOFLAGS       = -shared
71 endif
72
73 ifeq ($(ARCH),aix)
74 # IBM AIX xlC 4.x
75 CXX           = xlC
76 CXXFLAGS      = -O
77 LD            = xlC
78 LDFLAGS       = -O
79 SOFLAGS       =
80 DllSuf        = a
81 endif
82
83 ifeq ($(ARCH),aix5)
84 # IBM AIX xlC 5.x
85 CXX           = xlC
86 CXXFLAGS      = -O
87 LD            = xlC
88 LDFLAGS       = -O
89 SOFLAGS       =
90 DllSuf        = a
91 endif
92
93 ifeq ($(ARCH),aixgcc)
94 # IBM AIX with GCC
95 CXX           = g++
96 CXXFLAGS      = -O
97 LD            = g++
98 LDFLAGS       = -O
99 SOFLAGS       = -shared
100 DllSuf        = a
101 EXPLLINKLIBS  = $(ROOTLIBS) $(ROOTGLIBS)
102 endif
103
104 ifeq ($(ARCH),solaris)
105 # Solaris CC
106 CXX           = /opt/SUNWspro/bin/CC
107 CXXFLAGS      = -O -KPIC
108 LD            = /opt/SUNWspro/bin/CC
109 LDFLAGS       = -O
110 SOFLAGS       = -G
111 endif
112
113 ifeq ($(ARCH),solarisCC5)
114 # Solaris CC 5.0
115 CXX           = CC
116 CXXFLAGS      = -O -KPIC
117 LD            = CC
118 LDFLAGS       = -O
119 SOFLAGS       = -G
120 endif
121
122 ifeq ($(ARCH),solarisgcc)
123 # Solaris gcc
124 CXX           = g++
125 CXXFLAGS      = -O -fPIC
126 LD            = g++
127 LDFLAGS       = -O
128 SOFLAGS       = -shared
129 endif
130
131 ifeq ($(ARCH),solariskcc)
132 # Solaris kcc
133 CXX           = KCC --one_instantiation_per_object
134 CXXFLAGS      = -O4 -KPIC
135 LD            = KCC
136 LDFLAGS       = -O4
137 SOFLAGS       =
138 endif
139
140 ifeq ($(ARCH),solarisx86)
141 # Solaris CC on Intel
142 CXX           = CC
143 CXXFLAGS      = -O -KPIC
144 LD            = CC
145 LDFLAGS       = -O
146 SOFLAGS       = -G
147 endif
148
149 ifeq ($(ARCH),sgicc)
150 # SGI
151 CXX           = CC -n32  -I/usr/include/CC.sgi
152 CXXFLAGS      = -O
153 LD            = CC -n32 -LANG:std  -I/usr/include/CC.sgi
154 LDFLAGS       = -O
155 SOFLAGS       = -shared
156 endif
157
158 ifeq ($(ARCH),sgicc64)
159 # SGI
160 CXX           = CC -64  -I/usr/include/CC.sgi
161 CXXFLAGS      = -O
162 LD            = CC -64 -LANG:std -I/usr/include/CC.sgi
163 LDFLAGS       = -O
164 SOFLAGS       = -shared
165 endif
166
167 ifeq ($(ARCH),sgigcc)
168 # SGI 6.x with gcc
169 CXX           = g++
170 CXXFLAGS      = -O -Wall -fPIC
171 LD            = g++
172 LDFLAGS       = -O -Wl,-u,__builtin_new -Wl,-u,__builtin_delete -Wl,-u,__nw__FUiPv
173 SOFLAGS       = -shared
174 endif
175
176 ifeq ($(ARCH),sgin32gcc)
177 # SGI 6.x with gcc for n32 ABI
178 CXX           = g++
179 CXXFLAGS      = -O -Wall -fPIC
180 LD            = g++
181 LDFLAGS       = -O -L/usr/lib32 -Wl,-woff,134 -lgen
182 SOFLAGS       = -shared
183 endif
184
185 ifeq ($(ARCH),sgikcc)
186 # SGI with KCC
187 CXX           = KCC -n32 --one_instantiation_per_object
188 CXXFLAGS      = -O
189 LD            = KCC -n32
190 LDFLAGS       = -O
191 SOFLAGS       =
192 endif
193
194 ifeq ($(ARCH),alphagcc)
195 # Alpha/OSF with gcc
196 CXX           = g++
197 CXXFLAGS      = -O2 -Wall -fPIC
198 LD            = g++
199 LDFLAGS       = -O2
200 SOFLAGS       = -Wl,-expect_unresolved,* -shared
201 endif
202
203 ifeq ($(ARCH),alphakcc)
204 # Alpha/OSF with kai compiler (not yet valid)
205 CXX           = KCC --one_instantiation_per_object
206 CXXFLAGS      = -O -fPIC
207 LD            = KCC
208 LDFLAGS       = -O
209 SOFLAGS       = -Wl,-expect_unresolved,* -shared
210 endif
211
212 ifeq ($(ARCH),alphacxx6)
213 # Alpha/OSF with cxx6
214 CXX           = cxx
215 CXXFLAGS      = -O
216 LD            = cxx
217 LDFLAGS       = -O
218 SOFLAGS       = -shared -nocxxstd -Wl,-expect_unresolved,*,-msym
219 endif
220
221 ifeq ($(ARCH),linuxrh51)
222 # Linux with gcc 2.7.2.x
223 CXX           = g++
224 CXXFLAGS      = -O2 -Wall -fPIC
225 LD            = g++
226 LDFLAGS       = -O2
227 SOFLAGS       = -shared
228 endif
229
230 ifeq ($(ARCH),linuxrh42)
231 # Linux with gcc 2.7.2.x (RedHat 4.2)
232 CXX           = g++
233 CXXFLAGS      = -O2 -Wall -fPIC
234 LD            = g++
235 LDFLAGS       = -O2
236 SOFLAGS       = -shared
237 endif
238
239 ifeq ($(ARCH),linuxdeb)
240 # Linux with gcc 2.7.2.x
241 CXX           = g++
242 CXXFLAGS      = -O1 -Wall -fPIC
243 LD            = g++
244 LDFLAGS       = -O1
245 SOFLAGS       = -shared
246 endif
247
248 ifeq ($(ARCH),linuxdeb2ppc)
249 # Debian/Linux on the PowerPC
250 CXX           = g++
251 CXXFLAGS      = -O2 -Wall -fPIC
252 LD            = g++
253 LDFLAGS       = -O2
254 SOFLAGS       = -shared
255 endif
256
257 ifeq ($(ARCH),linuxsuse6)
258 # Linux with gcc 2.7.2.x
259 CXX           = g++
260 CXXFLAGS      = -O2 -Wall -fPIC
261 LD            = g++
262 LDFLAGS       = -O2
263 SOFLAGS       = -shared
264 endif
265
266 ifeq ($(ARCH),linuxkcc)
267 # Linux with the KAI compiler
268 CXX           = KCC --one_instantiation_per_object
269 CXXFLAGS      = -O -fPIC +K0
270 LD            = KCC
271 LDFLAGS       = -O $(shell $(ROOTCONFIG) --cflags)
272 SOFLAGS       =
273 endif
274
275 ifeq ($(ARCH),linuxicc)
276 # Linux with Intel icc compiler
277 ICC_MAJOR    := $(shell icc -v 2>&1 | awk '{ if (NR==1) print $$2 }' | \
278                 cut -d'.' -f1)
279 ICC_MINOR    := $(shell icc -v 2>&1 | awk '{ if (NR==1) print $$2 }' | \
280                 cut -d'.' -f2)
281 CXX           = icc
282 CXXFLAGS      = -O -fPIC -wd1476
283 LD            = icpc
284 LDFLAGS       = -O
285 SOFLAGS       = -shared
286 ifeq ($(ICC_MAJOR),8)
287 ifneq ($(ICC_MINOR),0)
288 CXXFLAGS     += -wd1572
289 endif
290 endif
291 endif
292
293 ifeq ($(ARCH),linuxppcgcc)
294 # MkLinux with gcc and glibc
295 CXX           = g++
296 CXXFLAGS      = -O2 -Wall -fPIC
297 LD            = g++
298 LDFLAGS       = -O2
299 SOFLAGS       = -shared
300 endif
301
302 ifeq ($(ARCH),linuxia64gcc)
303 # Itanium Linux with gcc 2.9x
304 CXX           = g++
305 CXXFLAGS      = -O2 -Wall -fPIC
306 LD            = g++
307 LDFLAGS       = -O2
308 SOFLAGS       = -shared
309 endif
310
311 ifeq ($(ARCH),linuxia64sgi)
312 # Itanium Linux with sgiCC
313 CXX           = sgiCC
314 CXXFLAGS      = -O -Wall -fPIC
315 LD            = gsgiCC
316 LDFLAGS       = -O
317 SOFLAGS       = -shared
318 endif
319
320 ifeq ($(ARCH),linuxia64ecc)
321 # Itanium Linux with Intel icc (was ecc)
322 ICC_MAJOR    := $(shell icc -v 2>&1 | awk '{ if (NR==1) print $$2 }' | \
323                 cut -d'.' -f1)
324 ICC_MINOR    := $(shell icc -v 2>&1 | awk '{ if (NR==1) print $$2 }' | \
325                 cut -d'.' -f2)
326 CXX           = icc
327 CXXFLAGS      = -O -fPIC -wd1476
328 LD            = icpc
329 LDFLAGS       = -O
330 SOFLAGS       = -shared
331 ifeq ($(ICC_MAJOR),8)
332 ifneq ($(ICC_MINOR),0)
333 CXXFLAGS     += -wd1572
334 endif
335 endif
336 endif
337
338 ifeq ($(ARCH),linuxx8664gcc)
339 # AMD Opteron and Intel EM64T (64 bit mode) Linux with gcc 3.x
340 CXX           = g++
341 CXXFLAGS      = -O2 -Wall -fPIC
342 LD            = g++
343 LDFLAGS       = -O2
344 SOFLAGS       = -shared
345 endif
346
347 ifeq ($(ARCH),linuxppc64gcc)
348 # PPC64 Linux with gcc 3.x
349 CXX           = g++
350 CXXFLAGS      = -O -Wall -fPIC
351 LD            = g++
352 LDFLAGS       = -O
353 SOFLAGS       = -shared
354 endif
355
356 ifeq ($(ARCH),linuxx8664icc)
357 # AMD Opteron and Intel EM64T (64 bit mode) Linux with Intel icc compiler
358 CXX           = icc
359 CXXFLAGS      = -O -fPIC -wd1476 -wd1572
360 LD            = icpc
361 LDFLAGS       = -O
362 SOFLAGS       = -shared
363 endif
364
365 ifeq ($(ARCH),linuxalphagcc)
366 # Alpha Linux with gcc
367 CXX           = g++
368 CXXFLAGS      = -O2 -Wall -fPIC
369 LD            = g++
370 LDFLAGS       = -O2
371 SOFLAGS       = -shared
372 endif
373
374 ifeq ($(ARCH),linuxarm)
375 # ARM Linux with egcs
376 CXX           = g++
377 CXXFLAGS      = -O -Wall -fPIC
378 LD            = g++
379 LDFLAGS       = -O
380 SOFLAGS       = -shared
381 endif
382
383 ifeq ($(ARCH),mklinux)
384 # MkLinux with libc5
385 CXX           = g++
386 CXXFLAGS      = -O2 -Wall -fPIC
387 LD            = g++
388 LDFLAGS       = -O2
389 SOFLAGS       = -shared
390 endif
391
392 ifeq ($(ARCH),freebsd)
393 # FreeBSD with libc5
394 CXX           = g++
395 CXXFLAGS      = -O -pipe -W -Wall -fPIC
396 LD            = g++
397 LDFLAGS       = -O
398 SOFLAGS       = -shared -Wl,-x
399 endif
400
401 ifeq ($(ARCH),freebsd4)
402 # FreeBSD with glibc
403 CXXFLAGS     += -W -Wall -fPIC
404 LD            = $(CXX)
405 SOFLAGS       = -shared -Wl,-x
406 endif
407
408 ifeq ($(ARCH),freebsd5)
409 # FreeBSD with glibc
410 CXXFLAGS     += -W -Wall -fPIC
411 LD            = $(CXX)
412 endif
413
414 ifeq ($(ARCH),openbsd)
415 # OpenBSD with libc
416 CXX           = g++
417 CXXFLAGS      = -O -pipe -W -Wall -fPIC
418 LD            = g++
419 LDFLAGS       = -O
420 SOFLAGS       = -shared -Wl,-x
421 endif
422
423 ifeq ($(ARCH),macosx)
424 # MacOS X with cc (GNU cc 2.95.2 and gcc 3.3)
425 MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)
426 CXX           = c++
427 CXXFLAGS      = -O2 -pipe -Wall -W -Woverloaded-virtual
428 LDFLAGS       = -O2 -bind_at_load
429 # The SOFLAGS will be used to create the .dylib,
430 # the .so will be created separately
431 DllSuf        = dylib
432 ifeq ($(MACOSX_MINOR),4)
433 UNDEFOPT      = dynamic_lookup
434 LD            = MACOSX_DEPLOYMENT_TARGET=10.4 c++
435 else
436 ifeq ($(MACOSX_MINOR),3)
437 UNDEFOPT      = dynamic_lookup
438 LD            = MACOSX_DEPLOYMENT_TARGET=10.3 c++
439 else
440 UNDEFOPT      = suppress
441 LD            = c++
442 endif
443 endif
444 SOFLAGS       = -dynamiclib -single_module -undefined $(UNDEFOPT)
445 endif
446
447 ifeq ($(ARCH),macosxicc)
448 # MacOS X with Intel icc compiler
449 MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)
450 CXX           = icc
451 CXXFLAGS      = -O -fPIC -wd1476
452 LDFLAGS       = -O
453 # The SOFLAGS will be used to create the .dylib,
454 # the .so will be created separately
455 DllSuf        = dylib
456 ifeq ($(MACOSX_MINOR),4)
457 LD            = MACOSX_DEPLOYMENT_TARGET=10.4 icpc
458 endif
459 SOFLAGS       = -dynamiclib -single_module -Xlinker -undefined dynamic_lookup
460 endif
461
462 ifeq ($(ARCH),macosx64)
463 # MacOS X >= 10.4 with gcc 64 bit mode (GNU gcc 4.*)
464 # Only specific option (-m64) comes from root-config
465 MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)
466 CXX           = c++
467 CXXFLAGS      = -O2 -pipe -Wall -W -Woverloaded-virtual
468 LDFLAGS       = -O2 -bind_at_load
469 # The SOFLAGS will be used to create the .dylib,
470 # the .so will be created separately
471 DllSuf        = dylib
472 LD            = MACOSX_DEPLOYMENT_TARGET=10.4 c++
473 SOFLAGS       = -dynamiclib -single_module -undefined dynamic_lookup
474 endif
475
476 ifeq ($(ARCH),macosxxlc)
477 # MacOS X with IBM xlC compiler
478 MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)
479 CXX           = xlC
480 CXXFLAGS      = -O
481 LDFLAGS       = -O -Wl,-bind_at_load
482 # The SOFLAGS will be used to create the .dylib,
483 # the .so will be created separately
484 DllSuf        = dylib
485 ifeq ($(MACOSX_MINOR),4)
486 UNDEFOPT      = dynamic_lookup
487 LD            = MACOSX_DEPLOYMENT_TARGET=10.4 xlC
488 else
489 ifeq ($(MACOSX_MINOR),3)
490 UNDEFOPT      = dynamic_lookup
491 LD            = MACOSX_DEPLOYMENT_TARGET=10.3 xlC
492 else
493 UNDEFOPT      = suppress
494 LD            = xlC
495 endif
496 endif
497 SOFLAGS       = -qmkshrobj -single_module -undefined $(UNDEFOPT)
498 endif
499
500 ifeq ($(ARCH),win32)
501 # Windows with the VC++ compiler
502 VC_MAJOR     := $(shell unset VS_UNICODE_OUTPUT; cl.exe 2>&1 | awk '{ if (NR==1) print $$8 }' | \
503                 cut -d'.' -f1)
504 ObjSuf        = obj
505 SrcSuf        = cxx
506 ExeSuf        = .exe
507 DllSuf        = dll
508 OutPutOpt     = -out:
509 CXX           = cl
510 CXXOPT        = -O2
511 #CXXOPT        = -Z7
512 CXXFLAGS      = $(CXXOPT) -nologo -I$(shell $(ROOTCONFIG) --incdir) -FIw32pragma.h
513 LD            = link
514 LDOPT         = -opt:ref
515 #LDOPT         = -debug
516 LDFLAGS       = $(LDOPT) -pdb:none -nologo
517 SOFLAGS       = -DLL
518
519 EXPLLINKLIBS  = $(ROOTLIBS) $(ROOTGLIBS)
520 endif
521
522 ifeq ($(ARCH),win32old)
523 # Windows with the VC++ compiler
524 ObjSuf        = obj
525 SrcSuf        = cxx
526 ExeSuf        = .exe
527 DllSuf        = dll
528 OutPutOpt     = -out:
529 CXX           = cl
530 CXXOPT        = -O2
531 #CXXOPT        = -Z7
532 CXXFLAGS      = $(CXXOPT) -G5 -GR -GX -MD -DWIN32 -D_WINDOWS -nologo \
533                 -DVISUAL_CPLUSPLUS -D_X86_=1 -D_DLL
534 LD            = link
535 LDOPT         = -opt:ref
536 #LDOPT         = -debug
537 LDFLAGS       = $(LDOPT) -pdb:none -nologo
538 SOFLAGS       = -DLL
539
540 EXPLLINKLIBS  = $(ROOTLIBS) $(ROOTGLIBS)
541 endif
542
543 ifeq ($(ARCH),win32gcc)
544 # Windows with gcc
545 DllSuf        = dll
546 ExeSuf        = .exe
547 CXX           = g++
548 CXXFLAGS      = -O -pipe -Wall -Woverloaded-virtual -I/usr/X11R6/include
549 LD            = g++
550 LDFLAGS       = -O -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc \
551                 -L/usr/X11R6/lib 
552 SOFLAGS       = -shared -D_DLL -Wl,--export-all-symbols
553 EXPLLINKLIBS  = $(ROOTLIBS) $(ROOTGLIBS)
554 endif
555
556 ifeq ($(CXX),)
557 $(error $(ARCH) invalid architecture)
558 endif
559
560 #CXXFLAGS     += $(ROOTCFLAGS) -I/home/odjuvsla/Workspace/alice/AliRootDev/RAW -I/home/odjuvsla/Workspace/alice/AliRootDev/include
561 CXXFLAGS     += $(ROOTCFLAGS) -I$(ALICE_ROOT)/RAW -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/PHOS -I$(ALIHLT_BASEDIR)/PHOS -I$(ALIHLT_BASEDIR)/BASE
562 LDFLAGS      += $(ROOTLDFLAGS)
563 LIBS          = $(ROOTLIBS) $(SYSLIBS)
564 GLIBS         = $(ROOTGLIBS) $(SYSLIBS)
565 ROOTLIBS      = -L$(ROOTSYS)/lib -lXMLIO -lMinuit -lGeom -lVMC -lEG
566 ALILIBS       = -L$(ALICE_ROOT)/lib/tgt_linux 
567 HLTLIBS       = -L$(ALIHLT_LIBDIR)
568 #ALILIBS              = -L/home/odjuvsla/Workspace/alice/AliRootDev/lib/tgt_linux -lESD -lCDB
569
570 GLIBS         = $(ROOTGLIBS) $(SYSLIBS)