]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/Makefile.conf
Cerenkov production switched off.
[u/mrichter/AliRoot.git] / HLT / Makefile.conf
1 #$Id$
2 ################################
3 # Makefile.conf for HLT code.  #
4 #                              #
5 # Author: Anders Vestbo,       #
6 #         Constantin Loizide   #                    
7 ################################
8
9 #Added for MACOSX
10 ARCH = $(shell uname)
11
12 #Specify the directory where the level3code tree is located.
13 ifndef ALIHLT_TOPDIR
14 ALIHLT_TOPDIR = $(HOME)/workcode/level3code
15 endif
16
17 #Define directory to contain additional hlt code, such as logging classes.
18 ifndef ALIHLT_BASEDIR
19 ALIHLT_BASEDIR = /prog/alice/level3
20 endif
21
22 #Define directory where libs will be stored
23 ifndef ALIHLT_LIBDIR
24 ALIHLT_LIBDIR = $(ALIHLT_BASEDIR)/lib_$(USER)
25 endif
26
27 #Define whether you want to run with ALIROOT or only ROOT
28 #Only one of them should be defined
29 ifndef ALIHLT_USEPACKAGE
30 ALIHLT_USEPACKAGE = ALIROOT
31 #ALIHLT_USEPACKAGE = ROOT
32 #ALIHLT_USEPACKAGE = STANDALONE
33 endif
34
35 #Switch off special HLT logging classes
36 ifeq ($(ALIHLT_NOLOGGING),true)
37 NOLOGGING = 1
38 endif
39
40 #Switch on saving MC data through the chain.
41 #This will only have an effect if you are running with aliroot.
42 ifeq ($(ALIHLT_DOMC),true)
43 DOMC = 1
44 endif
45
46 #Switch on ALIROOT version detection by cvs command
47 ifeq ($(ALIHLT_ALIDETECT),true)
48 USECVS = 1
49 endif
50
51 #switch on NEWIO if aliroot version needs it
52 ifndef ALIHLT_USENEWIO
53 ALIHLT_USENEWIO = false
54 ifeq ($(ALICE_LEVEL),ali-head)
55 ALIHLT_USENEWIO = true
56 endif
57 ifeq ($(ALICE_LEVEL),ali-v4-01-00)
58 ALIHLT_USENEWIO = true
59 endif
60 endif
61
62 ifeq ($(ALIHLT_USENEWIO),true)
63 USENEWIO = 1
64 endif
65
66
67 #----------------------------------------------------
68 #Some compiler flags or defines: You can use your
69 #own setting by defining them outside (make -e)
70 #----------------------------------------------------
71
72 GCCVERSION   = $(shell $(CXX) --version | head -n 1 | cut -d" " -f 3 | cut -d. -f 1 | cut -d" " -f1)
73 CXXGCC3FLAGS = -DGCCVERSION=$(GCCVERSION)
74
75 ifeq ($(ARCH),Darwin)
76 FINKDIR         = /sw
77 CXX             = g++
78 CXXFLAGS        = -O -pipe -Wall -fsigned-char $(CXXGCC3FLAGS) $(EXTRACXXFLAGS)
79 LD              = $(CXX)
80 #SOFLAGS         = -bundle -flat_namespace -Xlinker -bind_at_load -undefined suppress
81 SOFLAGS         = -bundle -flat_namespace -undefined suppress
82 DYFLAGS         = -dynamiclib -flat_namespace -undefined suppress \
83                   -compatibility_version 1 -current_version 1.0.0 
84 LDFLAGS         = -O $(EXTRALDFLAGS) -L/sw/lib -ldl
85
86 CINTCXXFLAGS  = -pipe -W -Wall -fsigned-char \
87                 -DG__REGEXP  -DG__UNIX -DG__SHAREDLIB \
88                 -DG__ROOT -DG__REDIRECTIO -DG__OSFDLL
89 else
90 CXX          = g++
91 LD           = $(CXX)
92 #CXXGCC3FLAGS += -pedantic
93 #CXXGCC3FLAGS += -Wno-deprecated
94 #CXXGCC3FLAGS += -Woverloaded-virtual
95
96 #If you are compiling on the alpha, use this flag:
97 #EXTRACXXFLAGS += -mcpu=ev6
98 CXXFLAGS     = -O2 -Wall -fPIC $(CXXGCC3FLAGS) $(EXTRACXXFLAGS) 
99 LDFLAGS      = -O2 $(EXTRALDFLAGS)
100 SOFLAGS      = -shared
101 endif