]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added compiler version information macro to differentiate between gcc version 2.x...
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 25 Aug 2002 16:16:44 +0000 (16:16 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 25 Aug 2002 16:16:44 +0000 (16:16 +0000)
HLT/Makefile.conf

index 44fbc3b125837ed54b9ee25ed3f493fa1e11fd7c..bd9abc74e0c3fe87b2fc0b08cb1934d0c5a03cb5 100644 (file)
@@ -22,15 +22,20 @@ LIBDIR = $(LEVEL3)/lib_$(USERNAME)
 endif
 
 #Switch on/off HLT logging classes
-#NOLOGGING = 1
+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 
 
-CXX         = g++
-LD          = g++
-CXXFLAGS    = -O2 -Wall -fPIC -Woverloaded-virtual $(EXTRACXXFLAGS)
-LDFLAGS     = -O2 $(EXTRALDFLAGS)
-SOFLAGS     = -shared
+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
+
+CXXFLAGS     = -O2 -Wall -fPIC -Woverloaded-virtual $(CXXGCC3FLAGS) $(EXTRACXXFLAGS) 
+LDFLAGS      = -O2 $(EXTRALDFLAGS)
+SOFLAGS      = -shared