]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Enable the VZERO package in HLT in compilation
authorjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Sep 2010 14:34:20 +0000 (14:34 +0000)
committerjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Sep 2010 14:34:20 +0000 (14:34 +0000)
HLT/Makefile.am
HLT/configure.ac
HLT/libAliHLTVZERO.pkg [new file with mode: 0644]

index a9d30929add37a5ffc3f5e73d95e9e0e29383563..c49834525ac9ee4ca9a66b31bbfe905e7c1b7119 100644 (file)
@@ -65,6 +65,10 @@ if EN_HLT_JET
 JET_DIR=JET
 endif
 
+if EN_HLT_VZERO
+VZERO_DIR=VZERO
+endif
+
 if EN_HLT_QA
 QA_DIR=QA
 endif
@@ -85,6 +89,7 @@ SUBDIRS               = BASE \
                           $(ITS_DIR) \
                           $(GLOBAL_DIR) \
                          $(JET_DIR) \
+                         $(VZERO_DIR) \
                          $(QA_DIR) \
                          doc
 
@@ -110,6 +115,7 @@ EXTRA_DIST          = libHLTbase.pkg \
                          libAliHLTEMCAL.pkg \
                          libAliHLTGlobal.pkg \
                          libAliHLTJet.pkg \
+                         libAliHLTVZERO.pkg \
                          exa/sample-component1.C \
                          exa/monitoring.C \
                          hlt.conf \
index 067d5e6ee4aa88b097cf15e276dce59ee1d65436..bde96fcd23c083b099b4a1d6f49f248429deffb4 100644 (file)
@@ -1231,6 +1231,36 @@ AC_MSG_CHECKING([whether to compile Jet library])
 AC_MSG_RESULT([$enable_module])
 AC_SUBST([ALIJET_LIBS])
 
+dnl ------------------------------------------------------------------
+AH_TEMPLATE([HLT_VZERO],[hlt vzero library])
+
+ALIVZERO_LIBS=
+CHECK_HLTMODULE([vzero],
+               [], [$ALIROOT_CPPFLAGS],
+               [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
+               [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], 
+               [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
+
+if test "x$enable_module" = "xmissheader"; then
+  enable_module="no...header.missing"
+  enable_vzero=$enable_module
+elif test "x$enable_module" = "xforce"; then
+  enable_vzero="yes"
+else
+  enable_vzero=$enable_module
+fi
+
+if test "x$enable_vzero" = "xyes" ; then 
+  AC_DEFINE(HLT_VZERO)
+  ALIVZERO_LIBS=$ALIHLTMODULE_LIBS
+else
+  enable_module=$enable_vzero
+fi
+AM_CONDITIONAL(EN_HLT_VZERO, test x$enable_vzero = xyes)
+AC_MSG_CHECKING([whether to compile VZERO library])
+AC_MSG_RESULT([$enable_module])
+AC_SUBST([ALIVZERO_LIBS])
+
 dnl ------------------------------------------------------------------
 AH_TEMPLATE([HLT_ITS],[hlt its library])
 
@@ -1526,6 +1556,11 @@ if test "x$enable_jet" = "xyes"; then
   AC_CONFIG_FILES([JET/Makefile])
 fi
 
+AC_MSG_NOTICE([compile vzero library: $enable_vzero])
+if test "x$enable_vzero" = "xyes"; then 
+  AC_CONFIG_FILES([VZERO/Makefile])
+fi
+
 AC_MSG_NOTICE([compile comp library: $enable_comp])
 if test "x$enable_comp" = "xyes"; then 
   AC_CONFIG_FILES([comp/Makefile])
diff --git a/HLT/libAliHLTVZERO.pkg b/HLT/libAliHLTVZERO.pkg
new file mode 100644 (file)
index 0000000..8c5d60c
--- /dev/null
@@ -0,0 +1,50 @@
+#-*- Mode: Makefile -*-
+# $Id: libAliHLTVZERO.pkg $
+
+# This files defines the source and header files for the
+# libAliHLTVZERO 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:=    AliHLTVZERORecoComponent.h \
+               AliHLTVZEROAgent.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/VZERO \
+            VZERO \
+           STEER \
+           RAW
+
+LIBRARY_DEP := -lHLTbase \
+              -lCDB -lESD -lSTEER -lSTEERBase \
+               -lRAWDatarec -lRAWDatabase \
+               -lVZERObase -lVZEROrec \
+               -L$(ROOTLIBDIR) -lEG
+
+###############################################################################
+#
+# do not change anything below this line
+#
+include $(MODDIR)/hlt.conf
+
+SRCS         := $(patsubst %,VZERO/%,$(MODULE_SRCS))
+CINTHDRS     := $(patsubst %,VZERO/%,$(CLASS_HDRS))
+HDRS         := $(patsubst %,VZERO/%,$(MODULE_HDRS))
+DHDR         := $(patsubst %,VZERO/%,$(MODULE_DHDR))
+CINTAUTOLINK := $(shell test "x$(MODULE_DHDR)" = "x" && echo 1)
+
+EDEFINE      := ${HLTDEFS}
+PACKCXXFLAGS := ${HLTCXXFLAGS}
+PACKCFLAGS   := ${HLTCLFAGS}
+PACKDCXXFLAGS:= ${HLTDCXXFLAGS}
+PACKSOFLAGS  := $(HLTSOFLAGS)