2 ################################
3 # Makefile.conf for HLT code. #
5 # Author: Anders Vestbo, #
7 ################################
10 ARCH := $(shell root-config --arch)
12 ifeq ($(ARCH),macosxxlc)
16 #Specify the directory where the level3code tree is located.
18 ALIHLT_TOPDIR = $(HOME)/workcode/level3code
21 #Define directory to contain additional hlt code, such as logging classes.
23 ALIHLT_BASEDIR = /prog/alice/level3
26 #Define directory where libs will be stored
28 ALIHLT_LIBDIR = $(ALIHLT_BASEDIR)/lib_$(USER)
31 #Define whether you want to run with ALIROOT or only ROOT
32 #Only one of them should be defined
33 ifndef ALIHLT_USEPACKAGE
34 ALIHLT_USEPACKAGE = ALIROOT
35 #ALIHLT_USEPACKAGE = ROOT
36 #ALIHLT_USEPACKAGE = STANDALONE
39 #Switch off special HLT logging classes
40 ifeq ($(ALIHLT_NOLOGGING),true)
44 #Switch on saving MC data through the chain.
45 #This will only have an effect if you are running with aliroot.
46 ifeq ($(ALIHLT_DOMC),true)
50 #Switch on ALIROOT version detection by cvs command
51 ifeq ($(ALIHLT_ALIDETECT),true)
55 #switch on NEWIO if aliroot version needs it
56 ifndef ALIHLT_USENEWIO
57 ALIHLT_USENEWIO = false
58 ifeq ($(ALICE_LEVEL),ali-head)
59 ALIHLT_USENEWIO = true
63 ifeq ($(ALIHLT_ROWHOUGH),true)
67 ifeq ($(ALIHLT_USENEWIO),true)
71 #----------------------------------------------------
72 #Some compiler flags or defines: You can use your
73 #own setting by defining them outside (make -e)
74 #----------------------------------------------------
79 CXXFLAGS = -O -pipe -Wall -fsigned-char $(CXXGCC3FLAGS) $(EXTRACXXFLAGS)
80 CINTCXXFLAGS = -pipe -W -Wall -fsigned-char \
81 -DG__REGEXP -DG__UNIX -DG__SHAREDLIB \
82 -DG__ROOT -DG__REDIRECTIO -DG__OSFDLL
84 #SOFLAGS = -bundle -flat_namespace -Xlinker -bind_at_load -undefined suppress
85 SOFLAGS = -bundle -flat_namespace -undefined suppress
86 DYFLAGS = -dynamiclib -flat_namespace -undefined suppress \
87 -compatibility_version 1 -current_version 1.0.0
88 LDFLAGS = -O $(EXTRALDFLAGS) -L/sw/lib -ldl
91 CXXFLAGS = -O2 -fPIC -Wall $(CXXGCC3FLAGS) $(EXTRACXXFLAGS)
93 LDFLAGS = -O2 $(EXTRALDFLAGS)
97 #static flags for profiling