Splitting of the ITS libraries (M.Masera & E.Crescio)
[u/mrichter/AliRoot.git] / HLT / Makefile.conf
CommitLineData
ead9cc3e 1# -*- Mode: Makefile -*-
01ee3a4e 2#$Id$
3e87ef69 3################################
4# Makefile.conf for HLT code. #
5# #
6# Author: Anders Vestbo, #
7# Constantin Loizide #
8################################
01ee3a4e 9
1f1942b8 10#Added for MACOSX
86b74d5e 11ARCH := $(shell root-config --arch)
12
13ifeq ($(ARCH),macosxxlc)
14ARCH := macosx
15endif
1f1942b8 16
3e87ef69 17#Specify the directory where the level3code tree is located.
18ifndef ALIHLT_TOPDIR
19ALIHLT_TOPDIR = $(HOME)/workcode/level3code
01ee3a4e 20endif
21
3e87ef69 22#Define directory to contain additional hlt code, such as logging classes.
23ifndef ALIHLT_BASEDIR
24ALIHLT_BASEDIR = /prog/alice/level3
01ee3a4e 25endif
d2e100c5 26
3e87ef69 27#Define directory where libs will be stored
28ifndef ALIHLT_LIBDIR
29ALIHLT_LIBDIR = $(ALIHLT_BASEDIR)/lib_$(USER)
d2e100c5 30endif
3e87ef69 31
32#Define whether you want to run with ALIROOT or only ROOT
33#Only one of them should be defined
34ifndef ALIHLT_USEPACKAGE
35ALIHLT_USEPACKAGE = ALIROOT
36#ALIHLT_USEPACKAGE = ROOT
37#ALIHLT_USEPACKAGE = STANDALONE
01ee3a4e 38endif
01ee3a4e 39
3e87ef69 40#Switch off special HLT logging classes
41ifeq ($(ALIHLT_NOLOGGING),true)
42NOLOGGING = 1
43endif
01ee3a4e 44
3e87ef69 45#Switch on saving MC data through the chain.
01ee3a4e 46#This will only have an effect if you are running with aliroot.
3e87ef69 47ifeq ($(ALIHLT_DOMC),true)
48DOMC = 1
49endif
01ee3a4e 50
3e87ef69 51#Switch on ALIROOT version detection by cvs command
52ifeq ($(ALIHLT_ALIDETECT),true)
53USECVS = 1
54endif
55
b2a02bce 56#switch on NEWIO if aliroot version needs it
57ifndef ALIHLT_USENEWIO
58ALIHLT_USENEWIO = false
59ifeq ($(ALICE_LEVEL),ali-head)
60ALIHLT_USENEWIO = true
61endif
b2a02bce 62endif
0bd0c1ef 63
64ifeq ($(ALIHLT_ROWHOUGH),true)
65USEROWHOUGH = 1
b2a02bce 66endif
67
68ifeq ($(ALIHLT_USENEWIO),true)
69USENEWIO = 1
70endif
71
3e87ef69 72#----------------------------------------------------
73#Some compiler flags or defines: You can use your
74#own setting by defining them outside (make -e)
75#----------------------------------------------------
5672e807 76
1f1942b8 77ifeq ($(ARCH),Darwin)
78FINKDIR = /sw
79CXX = g++
80CXXFLAGS = -O -pipe -Wall -fsigned-char $(CXXGCC3FLAGS) $(EXTRACXXFLAGS)
5a31e9df 81CINTCXXFLAGS = -pipe -W -Wall -fsigned-char \
82 -DG__REGEXP -DG__UNIX -DG__SHAREDLIB \
83 -DG__ROOT -DG__REDIRECTIO -DG__OSFDLL
1f1942b8 84LD = $(CXX)
2469b598 85#SOFLAGS = -bundle -Xlinker -bind_at_load -undefined suppress
86SOFLAGS = -bundle -undefined suppress
87DYFLAGS = -dynamiclib -undefined suppress \
1f1942b8 88 -compatibility_version 1 -current_version 1.0.0
89LDFLAGS = -O $(EXTRALDFLAGS) -L/sw/lib -ldl
1f1942b8 90else
91CXX = g++
5a31e9df 92CXXFLAGS = -O2 -fPIC -Wall $(CXXGCC3FLAGS) $(EXTRACXXFLAGS)
1f1942b8 93LD = $(CXX)
47b00675 94LDFLAGS = -O2 $(EXTRALDFLAGS)
95SOFLAGS = -shared
1f1942b8 96endif
0bd0c1ef 97
98#static flags for profiling
99PROFILEFLAGS = -g -pg
100LDSTATIC = ar
101STATICFLAGS = rucs