#Define whether you want to run with ALIROOT or only ROOT
#Only one of them should be defined
ifndef USEPACKAGE
-#USEPACKAGE = ROOT
USEPACKAGE = ALIROOT
-#USEPACKAGE = NOROOT
+#USEPACKAGE = ROOT
+#USEPACKAGE = STANDALONE
endif
#Specify the directory where the level3code tree is located.
ifndef TOPDIR
TOPDIR = $(HOME)/workcode/level3code
endif
+
+#Define directory to contain additional L3 code, such as logging classes.
+ifndef LEVEL3
+LEVEL3 = /prog/alice/level3
+endif
ifndef LIBDIR
LIBDIR = $(LEVEL3)/lib_$(USERNAME)
endif
-OBJDIR = lib
#Switch on/off HLT logging classes
#NOLOGGING = 1
#Switch on/off saving MC data through the chain.
#This will only have an effect if you are running with aliroot.
-#DO_MC = 1
+#DO_MC = 1
+
+#Switch of if you are not using patched AliTPC
+#This will only have an effect if you are running with aliroot.
+ASVVERSION = 1
+
+#If you are compiling on the alpha, use this flag:
+#EXTRACXXFLAGS += -mcpu=ev6
+
+CXX = g++
+LD = g++
+GCCVERSION = $(shell $(CXX) --version | head -n 1 | cut -d" " -f 3 | cut -d. -f 1)
+
+CXXGCC3FLAGS = -DGCCVERSION=$(GCCVERSION)
+#CXXGCC3FLAGS += -pedantic
+#CXXGCC3FLAGS += -Wno-deprecated
-CXX = g++
-LD = g++
-CXXFLAGS = -O2 -Wall -fPIC -Woverloaded-virtual
-LDFLAGS = -O2
-SOFLAGS = -shared
\ No newline at end of file
+CXXFLAGS = -O2 -Wall -fPIC -Woverloaded-virtual $(CXXGCC3FLAGS) $(EXTRACXXFLAGS)
+LDFLAGS = -O2 $(EXTRALDFLAGS)
+SOFLAGS = -shared