Compilation of AliAnalysisGoodies.cxx only if Root was compiled with XML support
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Feb 2007 08:27:57 +0000 (08:27 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Feb 2007 08:27:57 +0000 (08:27 +0000)
ANALYSIS/ANALYSISLinkDef.h
ANALYSIS/libANALYSIS.pkg

index 11081fe..73dba5d 100644 (file)
@@ -9,7 +9,10 @@
 #pragma link C++ class  AliAnalysisDataSlot+;
 #pragma link C++ class  AliAnalysisManager+;
 
-#pragma link C++ class  AliAnalysisGoodies+;
 #pragma link C++ class  AliAnalysisSelector+;
 
+#ifdef WITHXML
+#pragma link C++ class  AliAnalysisGoodies+;
+#endif
+
 #endif
index 8ceb724..3e4d697 100644 (file)
@@ -1,15 +1,23 @@
 SRCS = AliAnalysisDataContainer.cxx AliAnalysisDataSlot.cxx \
-       AliAnalysisManager.cxx AliAnalysisTask.cxx AliAnalysisGoodies.cxx \
+       AliAnalysisManager.cxx AliAnalysisTask.cxx \
        AliAnalysisSelector.cxx
 
-HDRS:= $(SRCS:.cxx=.h) 
-
-DHDR= ANALYSISLinkDef.h
-
 CHECKALIEN = $(shell root-config --has-alien)
 ifeq (yes,$(CHECKALIEN))
 PACKCXXFLAGS := $(CXXFLAGS) -DWITHALIEN
 endif
+
+CHECKXML = $(shell root-config --has-xml)
+ifeq (yes,$(CHECKXML))
+PACKCXXFLAGS += $(CXXFLAGS) -DWITHXML
+CINTFLAGS += -DWITHXML
+SRCS += AliAnalysisGoodies.cxx
+endif
+
+HDRS:= $(SRCS:.cxx=.h) 
+
+DHDR= ANALYSISLinkDef.h
+
 EXPORT:=$(SRCS:.cxx=.h)