Enable the ZDC package in HLT in compilation
authorjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Oct 2010 16:59:00 +0000 (16:59 +0000)
committerjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Oct 2010 16:59:00 +0000 (16:59 +0000)
HLT/Makefile.am
HLT/configure.ac
HLT/libAliHLTZDC.pkg [new file with mode: 0644]

index c498345..b049faa 100644 (file)
@@ -41,6 +41,10 @@ if EN_HLT_FMD
 FMD_DIR=FMD
 endif
 
+if EN_HLT_ZDC
+ZDC_DIR=ZDC
+endif
+
 if EN_HLT_MUON
 MUON_DIR=MUON
 endif
@@ -83,6 +87,7 @@ SUBDIRS               = BASE \
                           $(EMCAL_DIR) \
                          $(TRD_DIR) \
                          $(FMD_DIR) \
+                         $(ZDC_DIR) \
                          $(MUON_DIR) \
                          $(COMP_DIR) \
                           $(TRIGGER_DIR) \
@@ -107,6 +112,7 @@ EXTRA_DIST          = libHLTbase.pkg \
                          libAliHLTTPC.pkg \
                          libAliHLTTRD.pkg \
                          libAliHLTFMD.pkg \
+                         libAliHLTZDC.pkg \
                          libAliHLTMUON.pkg \
                          libAliHLTComp.pkg \
                          libAliHLTTrigger.pkg \
index c20874e..f16bb1a 100644 (file)
@@ -1030,6 +1030,36 @@ AC_MSG_RESULT([$enable_module])
 AC_SUBST([ALIFMD_LIBS])
 
 dnl ------------------------------------------------------------------
+AH_TEMPLATE([HLT_ZDC],[hlt zdc library])
+
+ALIZDC_LIBS=$ALIHLTMODULE_LIBS
+CHECK_HLTMODULE([zdc],
+               [], [$ALIROOT_CPPFLAGS],
+               [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
+               [ZDCbase ZDCrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
+               [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
+
+if test "x$enable_module" = "xmissheader"; then
+  enable_module="no...missing.headers"
+  enable_zdc=$enable_module
+elif test "x$enable_module" = "xforce"; then
+  enable_zdc="yes"
+else
+  enable_zdc=$enable_module
+fi
+
+if test "x$enable_zdc" = "xyes" ; then
+  AC_DEFINE(HLT_ZDC)
+  ALIZDC_LIBS=$ALIHLTMODULE_LIBS
+else
+  enable_module=$enable_zdc
+fi
+AM_CONDITIONAL(EN_HLT_ZDC, test x$enable_zdc = xyes)
+AC_MSG_CHECKING([whether to compile ZDC library])
+AC_MSG_RESULT([$enable_module])
+AC_SUBST([ALIZDC_LIBS])
+
+dnl ------------------------------------------------------------------
 AH_TEMPLATE([HLT_MUON],[hlt dimuon library])
 
 ALIMUON_LIBS=
@@ -1548,6 +1578,11 @@ if test "x$enable_fmd" = "xyes"; then
   AC_CONFIG_FILES([FMD/Makefile])
 fi
 
+AC_MSG_NOTICE([compile ZDC library: $enable_zdc])
+if test "x$enable_zdc" = "xyes"; then 
+  AC_CONFIG_FILES([ZDC/Makefile])
+fi
+
 AC_MSG_NOTICE([compile MUON library: $enable_muon])
 if test "x$enable_muon" = "xyes"; then 
   AC_CONFIG_FILES([MUON/Makefile])
diff --git a/HLT/libAliHLTZDC.pkg b/HLT/libAliHLTZDC.pkg
new file mode 100644 (file)
index 0000000..4803a4c
--- /dev/null
@@ -0,0 +1,50 @@
+#-*- Mode: Makefile -*-
+# $Id: libAliHLTZDC.pkg $
+
+# This files defines the source and header files for the
+# libAliHLTZDC library and additional flags for the compilation
+# and linking process. 
+
+# class header files, the link definition for the root dictionary
+# will be created from the names of the header files
+CLASS_HDRS:=   AliHLTZDCESDRecoComponent.h \
+               AliHLTZDCAgent.h
+
+# library sources, generated from the class headers
+MODULE_SRCS=   $(CLASS_HDRS:.h=.cxx)
+
+# library headers
+MODULE_HDRS:=  $(CLASS_HDRS)
+
+# Leave MODULE_DHDR empty to enable automatic generation of *LinkDef.h
+MODULE_DHDR:=
+
+EINCLUDE := HLT/BASE \
+           HLT/ZDC \
+        ZDC \
+           STEER \
+           RAW
+
+LIBRARY_DEP := -lHLTbase \
+              -lCDB -lESD -lSTEER -lSTEERBase \
+               -lRAWDatarec -lRAWDatabase \
+               -lZDCbase -lZDCrec \
+               -L$(ROOTLIBDIR) -lEG
+
+###############################################################################
+#
+# do not change anything below this line
+#
+include $(MODDIR)/hlt.conf
+
+SRCS         := $(patsubst %,ZDC/%,$(MODULE_SRCS))
+CINTHDRS     := $(patsubst %,ZDC/%,$(CLASS_HDRS))
+HDRS         := $(patsubst %,ZDC/%,$(MODULE_HDRS))
+DHDR         := $(patsubst %,ZDC/%,$(MODULE_DHDR))
+CINTAUTOLINK := $(shell test "x$(MODULE_DHDR)" = "x" && echo 1)
+
+EDEFINE      := ${HLTDEFS}
+PACKCXXFLAGS := ${HLTCXXFLAGS}
+PACKCFLAGS   := ${HLTCLFAGS}
+PACKDCXXFLAGS:= ${HLTDCXXFLAGS}
+PACKSOFLAGS  := $(HLTSOFLAGS)