2 ################################
3 # Makefile.conf for HLT code. #
5 # Author: Anders Vestbo, #
7 ################################
9 #Specify the directory where the level3code tree is located.
11 ALIHLT_TOPDIR = $(HOME)/workcode/level3code
14 #Define directory to contain additional hlt code, such as logging classes.
16 ALIHLT_BASEDIR = /prog/alice/level3
19 #Define directory where libs will be stored
21 ALIHLT_LIBDIR = $(ALIHLT_BASEDIR)/lib_$(USER)
24 #Define whether you want to run with ALIROOT or only ROOT
25 #Only one of them should be defined
26 ifndef ALIHLT_USEPACKAGE
27 ALIHLT_USEPACKAGE = ALIROOT
28 #ALIHLT_USEPACKAGE = ROOT
29 #ALIHLT_USEPACKAGE = STANDALONE
32 #Switch off special HLT logging classes
33 ifeq ($(ALIHLT_NOLOGGING),true)
37 #Switch on saving MC data through the chain.
38 #This will only have an effect if you are running with aliroot.
39 ifeq ($(ALIHLT_DOMC),true)
43 #Switch on ALIROOT version detection by cvs command
44 ifeq ($(ALIHLT_ALIDETECT),true)
48 #----------------------------------------------------
49 #Some compiler flags or defines: You can use your
50 #own setting by defining them outside (make -e)
51 #----------------------------------------------------
55 GCCVERSION = $(shell $(CXX) --version | head -n 1 | cut -d" " -f 3 | cut -d. -f 1 | cut -d" " -f1)
57 CXXGCC3FLAGS = -DGCCVERSION=$(GCCVERSION)
58 #CXXGCC3FLAGS += -pedantic
59 #CXXGCC3FLAGS += -Wno-deprecated
60 #CXXGCC3FLAGS += -Woverloaded-virtual
62 #If you are compiling on the alpha, use this flag:
63 #EXTRACXXFLAGS += -mcpu=ev6
65 CXXFLAGS = -O2 -Wall -fPIC $(CXXGCC3FLAGS) $(EXTRACXXFLAGS)
66 LDFLAGS = -O2 $(EXTRALDFLAGS)