Compiler Warning removed
[u/mrichter/AliRoot.git] / HLT / Makefile.conf
CommitLineData
01ee3a4e 1#$Id$
3e87ef69 2################################
3# Makefile.conf for HLT code. #
4# #
5# Author: Anders Vestbo, #
6# Constantin Loizide #
7################################
01ee3a4e 8
3e87ef69 9#Specify the directory where the level3code tree is located.
10ifndef ALIHLT_TOPDIR
11ALIHLT_TOPDIR = $(HOME)/workcode/level3code
01ee3a4e 12endif
13
3e87ef69 14#Define directory to contain additional hlt code, such as logging classes.
15ifndef ALIHLT_BASEDIR
16ALIHLT_BASEDIR = /prog/alice/level3
01ee3a4e 17endif
d2e100c5 18
3e87ef69 19#Define directory where libs will be stored
20ifndef ALIHLT_LIBDIR
21ALIHLT_LIBDIR = $(ALIHLT_BASEDIR)/lib_$(USER)
d2e100c5 22endif
3e87ef69 23
24#Define whether you want to run with ALIROOT or only ROOT
25#Only one of them should be defined
26ifndef ALIHLT_USEPACKAGE
27ALIHLT_USEPACKAGE = ALIROOT
28#ALIHLT_USEPACKAGE = ROOT
29#ALIHLT_USEPACKAGE = STANDALONE
01ee3a4e 30endif
01ee3a4e 31
3e87ef69 32#Switch off special HLT logging classes
33ifeq ($(ALIHLT_NOLOGGING),true)
34NOLOGGING = 1
35endif
01ee3a4e 36
3e87ef69 37#Switch on saving MC data through the chain.
01ee3a4e 38#This will only have an effect if you are running with aliroot.
3e87ef69 39ifeq ($(ALIHLT_DOMC),true)
40DOMC = 1
41endif
01ee3a4e 42
3e87ef69 43#Switch on ALIROOT version detection by cvs command
44ifeq ($(ALIHLT_ALIDETECT),true)
45USECVS = 1
46endif
47
b2a02bce 48#switch on NEWIO if aliroot version needs it
49ifndef ALIHLT_USENEWIO
50ALIHLT_USENEWIO = false
51ifeq ($(ALICE_LEVEL),ali-head)
52ALIHLT_USENEWIO = true
53endif
54ifeq ($(ALICE_LEVEL),ali-v4-01-00)
55ALIHLT_USENEWIO = true
56endif
57endif
58
59ifeq ($(ALIHLT_USENEWIO),true)
60USENEWIO = 1
61endif
62
63
3e87ef69 64#----------------------------------------------------
65#Some compiler flags or defines: You can use your
66#own setting by defining them outside (make -e)
67#----------------------------------------------------
5672e807 68
47b00675 69CXX = g++
3e87ef69 70LD = $(CXX)
71GCCVERSION = $(shell $(CXX) --version | head -n 1 | cut -d" " -f 3 | cut -d. -f 1 | cut -d" " -f1)
b1f97365 72
47b00675 73CXXGCC3FLAGS = -DGCCVERSION=$(GCCVERSION)
74#CXXGCC3FLAGS += -pedantic
75#CXXGCC3FLAGS += -Wno-deprecated
3e87ef69 76#CXXGCC3FLAGS += -Woverloaded-virtual
77
78#If you are compiling on the alpha, use this flag:
79#EXTRACXXFLAGS += -mcpu=ev6
47b00675 80
3e87ef69 81CXXFLAGS = -O2 -Wall -fPIC $(CXXGCC3FLAGS) $(EXTRACXXFLAGS)
47b00675 82LDFLAGS = -O2 $(EXTRALDFLAGS)
83SOFLAGS = -shared