]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
added libAliHLTTRD, added libAliHLTTPC to AliRoot build system
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Feb 2007 11:37:05 +0000 (11:37 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Feb 2007 11:37:05 +0000 (11:37 +0000)
HLT/Makefile.am
HLT/TPCLib/Makefile.am
HLT/TRD/AliHLTTRDLinkDef.h [new file with mode: 0644]
HLT/TRD/Makefile.am [new file with mode: 0644]
HLT/configure.ac
HLT/libAliHLTTPC.pkg [new file with mode: 0644]
HLT/libAliHLTTRD.pkg [new file with mode: 0644]

index ee1cfa69f881dad8151e9319ba84fdbe6e877e08..eac8e5af7d6f928c067b71cad14419e5395f0d81 100644 (file)
@@ -14,15 +14,21 @@ if EN_HLT_PHOS
 PHOS_DIR=PHOS
 endif
 
+if EN_HLT_TRD
+TRD_DIR=TRD
+endif
+
 SUBDIRS                = BASE \
                          $(SAMPLE_DIR) \
                          $(TPC_DIR) \
                          $(PHOS_DIR) \
+                         $(TRD_DIR) \
                          doc
 
 EXTRA_DIST             = libHLTbase.pkg \
                          libAliHLTSample.pkg \
                          libAliHLTPHOS.pkg \
+                         libAliHLTTRD.pkg \
                          hlt.conf
 
 DIST_SUBDIRS           = $(SUBDIRS)
index 268c6c144a92a2c21aa807e33740d37f2c50e0fd..9d0f0a280b90ad196d51ccca179b9bf89b1580ef 100644 (file)
@@ -3,6 +3,8 @@
 
 MODULE                                 = AliHLTTPC
 
+EXTRA_DIST                     = AliHLTTPCLinkDef.h
+
 AM_CPPFLAGS                    = @ALIROOT_CPPFLAGS@         \
                                  -I$(top_srcdir)/BASE
 
diff --git a/HLT/TRD/AliHLTTRDLinkDef.h b/HLT/TRD/AliHLTTRDLinkDef.h
new file mode 100644 (file)
index 0000000..eb99c72
--- /dev/null
@@ -0,0 +1,10 @@
+// @(#) $Id$
+
+#ifdef __CINT__
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+
+#endif
+
diff --git a/HLT/TRD/Makefile.am b/HLT/TRD/Makefile.am
new file mode 100644 (file)
index 0000000..63e1cdc
--- /dev/null
@@ -0,0 +1,111 @@
+# $Id$
+# Makefile template for the Alice HLT TRD library
+
+# This files defines the autotools-based build system of the
+# libAliHLTTRD library. All lines starting with a '#' are comments.
+# Note: Source files definitions must be made in libAliHLTTRD.pkg
+# For further information refer to the README.
+
+MODULE                                 = AliHLTTRD
+
+EXTRA_DIST                     = AliHLTTRDLinkDef.h
+
+# MODDIR is set by the AliRoot build system and denotes the topdir
+# of the module, we must set it since the package definition libHLTbase.pkg
+# includes another common configuration file
+# include the pkg definition which actually contains the source
+# file definitions
+MODDIR                         = $(top_srcdir)
+PKGDEF                         = $(MODDIR)/libAliHLTTRD.pkg
+include $(top_srcdir)/libAliHLTTRD.pkg
+
+# library definition
+# The lib_LTLIBRARIES variable is a fixed variable of the autotools build
+# system. All libraries defined by the Makefile template have to be added
+# here. Since we aim for separated directories for different libraries
+# there will be only one library.
+lib_LTLIBRARIES                        =  libAliHLTTRD.la
+
+# version info for the library
+# The libtool program is used to created the library, a version number can
+# be specified by using the -version-info flag. This flag accepts an argument
+# of the form current[:revision[:age]].
+# If either revision or age are omitted, they default to 0. Also note that
+# age must be less than or equal to the current interface number. Here are a
+# set of rules to help you update your library version information:
+#
+#   1. Start with version information of 0:0:0 for each libtool library.
+#   2. Update the version information only immediately before a public release
+#      of your software. More frequent updates are unnecessary, and only
+#      guarantee that the current interface number gets larger faster.
+#   3. If the library source code has changed at all since the last update,
+#      then increment revision (c:r:a becomes c:r+1:a).
+#   4. If any interfaces have been added, removed, or changed since the last
+#      update, increment current, and set revision to 0.
+#   5. If any interfaces have been added since the last public release, then
+#      increment age.
+#   6. If any interfaces have been removed since the last public release, then
+#      set age to 0. 
+LIBRARY_VERSION                        = '0:0:0'
+
+# library sources
+# The source files are specified in libAliHLTTRD.pkg
+libAliHLTTRD_la_SOURCES        =  $(MODULE_SRCS)
+
+# library headers
+# The header files are specified in libAliHLTTRD.pkg
+noinst_HEADERS                 =  $(MODULE_HDRS)
+
+# compilation flags of the library
+# This is the place to add further include directories if you are
+# using external modules. The AliRoot, ROOT and HLT base directories
+# are the default include directories.
+AM_CPPFLAGS                    = @HLTBASE_CPPFLAGS@ \
+                                 @ALIROOT_CPPFLAGS@ \
+                                 @ROOTCFLAGS@
+
+# linking flags of the library
+# This is the place to add further libraries if you are
+# using external modules. The AliRoot, ROOT and HLT base libraries
+# are added by default.
+# Also the version of the library 
+libAliHLTTRD_la_LDFLAGS                = -L@ROOTLIBDIR@ \
+                                 @ROOTLIBS@ \
+                                 @HLTBASE_LDFLAGS@ \
+                                 @ALIROOT_LDFLAGS@ \
+                                 @ALIROOT_LIBS@ \
+                                 -version-info $(LIBRARY_VERSION)
+
+# set the file name for the generated root dictionary
+DICTCPP                                =  AliHLTTRD-DICT.cxx
+nodist_libAliHLTTRD_la_SOURCES  =  $(DICTCPP)
+
+CLEANFILES                     =
+
+###############################################################################
+#
+# do not change anything below this line
+#
+DICTDEF                                =  $(MODULE)-LinkDef.h
+DICTFILES                      =  $(DICTCPP) $(DICTCPP:.cxx=.h) $(DICTDEF)
+DICTHEADERS                    =  $(CLASS_HDRS)
+
+CLEANFILES                     += $(DICTFILES)
+
+
+$(DICTCPP:.cxx=.h): $(DICTCPP)
+       if test $@ ; then : ; else rm -f $< ; $(MAKE) $(MAKEFLAGS) $< ; fi 
+
+$(DICTCPP): $(DICTHEADERS:%=$(srcdir)/%) $(DICTDEF)
+       if [ -x $(ROOTCINT) ]; then $(ROOTCINT) -f $@ -c $(CPPFLAGS) $(AM_CPPFLAGS) $(DEFS) $(foreach i, $(DICTINCLUDE), $(i)) $^ ; fi
+$(DICTDEF): Makefile.am
+       @echo '//automatically generated ROOT DICT definition' > $@
+       @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
+       @echo '//add further class definitions to the CLASS_HDRS variable in Makefile.am' >> $@
+       @echo '#ifdef __CINT__' >> $@
+       @echo '#pragma link off all globals;' >> $@
+       @echo '#pragma link off all classes;' >> $@
+       @echo '#pragma link off all functions;' >> $@
+       @$(foreach i, $(DICTHEADERS), \
+          echo "#pragma link C++ class `echo $(i) | sed -e "s|.*/||g" -e "s|\.h.*||"`;" >> $@ ;)
+       @echo '#endif' >> $@
index ef30c26cb5d9cf2975766fb34005fcde3cc57231..07e060dbd1a4421cf8065759b1e77fbf5e5ca734 100644 (file)
@@ -263,7 +263,6 @@ if test ! "x$have_aliroot" = "xno" ; then
     
   fi
   AC_MSG_CHECKING([for TPC mapping layout])
-  AM_CONDITIONAL(USE_TPC_MAPPING, test x$have_tpc_mapping = xyes)
   AC_MSG_RESULT([$have_tpc_mapping])
 
   dnl
@@ -298,6 +297,7 @@ AC_SUBST([ALIROOT_LDFLAGS])
 AC_SUBST([ALIROOTBINDIR])
 AC_SUBST([ALIROOTLIBDIR])
 AC_SUBST([ALIROOT_LIBS])
+AM_CONDITIONAL(USE_TPC_MAPPING, test x$have_tpc_mapping = xyes)
 
 HLTBASE_CPPFLAGS='-I${top_srcdir}/BASE'
 HLTBASE_LDFLAGS=
@@ -446,6 +446,22 @@ fi
 AM_CONDITIONAL(EN_HLT_PHOS, test x$enable_phos = xyes)
 AC_MSG_RESULT([$enable_phos])
 
+dnl ------------------------------------------------------------------
+AC_MSG_CHECKING([whether to compile trd library])
+AH_TEMPLATE([HLT_TRD],[hlt trd library])
+AC_ARG_ENABLE(trd,
+  [AC_HELP_STRING([--enable-trd],
+      [compile the trd library ])],
+  [],[enable_trd=yes])
+if test "x$have_aliroot" = "xno" ; then
+   enable_trd="no...requires.AliRoot"
+fi
+if test "x$enable_trd" = "xyes" ; then 
+  AC_DEFINE(HLT_TRD)
+fi
+AM_CONDITIONAL(EN_HLT_TRD, test x$enable_trd = xyes)
+AC_MSG_RESULT([$enable_trd])
+
 dnl ------------------------------------------------------------------
 AC_MSG_CHECKING([whether to enable HLT logging])
 AH_TEMPLATE([NOLOGGING],[disable hlt logging])
@@ -530,6 +546,7 @@ AC_CONFIG_FILES([Makefile
                 TPCLib/mapping2array.cxx
                 TPCLib/OnlineDisplay/Makefile
                 PHOS/Makefile
+                TRD/Makefile
                 doc/Makefile
                 doc/doxygen.conf])
 
diff --git a/HLT/libAliHLTTPC.pkg b/HLT/libAliHLTTPC.pkg
new file mode 100644 (file)
index 0000000..dcc6118
--- /dev/null
@@ -0,0 +1,106 @@
+#-*- Mode: Makefile -*-
+# $Id: 
+
+include $(MODDIR)/hlt.conf
+
+MODULE_SRCS=   AliHLTTPCLog.cxx \
+               AliHLTTPCTransform.cxx \
+               AliHLTTPCMemHandler.cxx \
+               AliHLTTPCDataCompressorHelper.cxx \
+               AliHLTTPCFitter.cxx \
+               AliHLTTPCFileHandler.cxx \
+               AliHLTTPCBenchmark.cxx \
+               AliHLTTPCDDLDataFileHandler.cxx \
+               AliHLTTPCClusterFinder.cxx \
+               AliHLTTPCDigitReader.cxx \
+               AliHLTTPCDigitReaderPacked.cxx \
+               AliHLTTPCDigitReaderUnpacked.cxx \
+               AliHLTTPCDigitReaderRaw.cxx \
+               AliHLTTPCVertex.cxx \
+               AliHLTTPCVertexArray.cxx \
+               AliHLTTPCVertexFinder.cxx \
+               AliHLTTPCTrackArray.cxx \
+               AliHLTTPCTrack.cxx \
+               AliHLTTPCConfMapFit.cxx \
+               AliHLTTPCConfMapTrack.cxx \
+               AliHLTTPCConfMapPoint.cxx \
+               AliHLTTPCConfMapper.cxx \
+               AliHLTTPCModelTrack.cxx \
+               AliHLTTPCMerger.cxx \
+               AliHLTTPCTrackMerger.cxx \
+               AliHLTTPCGlobalMerger.cxx \
+               AliHLTTPCInterMerger.cxx \
+               AliHLTTPCCATracker.cxx \
+               AliHLTTPCPad.cxx \
+               AliHLTTPCDefinitions.cxx \
+               AliHLTTPCRawDataUnpackerComponent.cxx \
+               AliHLTTPCClusterFinderComponent.cxx \
+               AliHLTTPCVertexFinderComponent.cxx \
+               AliHLTTPCSliceTrackerComponent.cxx \
+               AliHLTTPCGlobalMergerComponent.cxx \
+               AliHLTTPCCATrackerComponent.cxx \
+               AliHLTTPCEsdWriterComponent.cxx
+
+CLASS_HDRS:=   AliHLTTPCLog.h \
+               AliHLTTPCTransform.h \
+               AliHLTTPCMemHandler.h \
+               AliHLTTPCDataCompressorHelper.h \
+               AliHLTTPCFitter.h \
+               AliHLTTPCFileHandler.h \
+               AliHLTTPCBenchmark.h \
+               AliHLTTPCDDLDataFileHandler.h \
+               AliHLTTPCClusterFinder.h \
+               AliHLTTPCDigitReader.h \
+               AliHLTTPCDigitReaderPacked.h \
+               AliHLTTPCDigitReaderUnpacked.h \
+               AliHLTTPCDigitReaderRaw.h \
+               AliHLTTPCVertex.h \
+               AliHLTTPCVertexArray.h \
+               AliHLTTPCVertexFinder.h \
+               AliHLTTPCTrackArray.h \
+               AliHLTTPCTrack.h \
+               AliHLTTPCConfMapFit.h \
+               AliHLTTPCConfMapTrack.h \
+               AliHLTTPCConfMapPoint.h \
+               AliHLTTPCConfMapper.h \
+               AliHLTTPCModelTrack.h \
+               AliHLTTPCMerger.h \
+               AliHLTTPCTrackMerger.h \
+               AliHLTTPCGlobalMerger.h \
+               AliHLTTPCInterMerger.h \
+               AliHLTTPCCATracker.h \
+               AliHLTTPCPad.h \
+               AliHLTTPCSpacePointData.h \
+               AliHLTTPCDefinitions.h \
+               AliHLTTPCRawDataUnpackerComponent.h \
+               AliHLTTPCClusterFinderComponent.h \
+               AliHLTTPCVertexFinderComponent.h \
+               AliHLTTPCSliceTrackerComponent.h \
+               AliHLTTPCGlobalMergerComponent.h \
+               AliHLTTPCCATrackerComponent.h \
+               AliHLTTPCEsdWriterComponent.h
+
+MODULE_HDRS:=  $(CLASS_HDRS) \
+               AliHLTTPCLogging.h \
+               AliHLTTPCRootTypes.h \
+               AliHLTTPCDigitData.h \
+               AliHLTTPCTrackSegmentData.h \
+               AliHLTTPCVertexData.h \
+               AliHLTTPCTrackletDataFormat.h \
+               AliHLTTPCRawDataFormat.h \
+               AliHLTTPCClusterDataFormat.h \
+               AliHLTTPCModels.h
+
+DHDR:=                 TPCLib/AliHLTTPCLinkDef.h
+CINTAUTOLINK:=
+
+SRCS:=$(patsubst %,TPCLib/%,$(MODULE_SRCS))
+CINTHDRS:=$(patsubst %,TPCLib/%,$(CLASS_HDRS))
+HDRS:=$(patsubst %,TPCLib/%,$(MODULE_HDRS))
+
+EDEFINE      := ${HLTDEFS}
+PACKCXXFLAGS := ${HLTCXXFLAGS}
+PACKCFLAGS   := ${HLTCLFAGS}
+PACKDCXXFLAGS:= ${HLTDCXXFLAGS}
+
+EINCLUDE := HLT/TPCLib HLT/BASE TPC RAW
diff --git a/HLT/libAliHLTTRD.pkg b/HLT/libAliHLTTRD.pkg
new file mode 100644 (file)
index 0000000..af17685
--- /dev/null
@@ -0,0 +1,52 @@
+#-*- Mode: Makefile -*-
+# $Id: 
+
+include $(MODDIR)/hlt.conf
+
+# This files defines the source and header files for the
+# libAliHLTSample library and additional flags for the compilation
+# and linking process. For further information refer to the 
+# README.
+
+# library sources
+MODULE_SRCS=   
+
+# class header files, the link definition for the root dictionary
+# will be created from the names of the header files
+CLASS_HDRS:=   
+
+# library headers
+# in most cases you might have already added all the header files to
+# the CLASS_HDRS variable. So we just use the content of this. You
+# can simply add more header files which don't contain classes with
+# ROOT dictionary support
+MODULE_HDRS:=  $(CLASS_HDRS)
+
+# The autotools-based stand-alone built system creates  the LinkDef
+# file required by the ROOT dictionary generation for the all header
+# files specified in CLASS_HDRS.  
+# When creating a ROOT dictionary in AliRoot you must eventually
+# provide a *LinkDef.h file which tells rootcint what to do with the
+# classes. The *LinkDef.h must be added to DHDR in that case.
+# There might be an extension also in ALIROOT which allows to 
+# generate the LinkDef automatically.
+DHDR:=                 TRD/AliHLTTRDLinkDef.h          
+CINTAUTOLINK:=
+
+# extra defines and flags for the AliRoot build system. NOTE: include
+# directories and linking flags/options must be specified in 
+# Makefile.am (stand-alone build system) and here (AliRoot).
+EDEFINE      := ${HLTDEFS}
+PACKCXXFLAGS := ${HLTCXXFLAGS}
+PACKCFLAGS   := ${HLTCLFAGS}
+PACKDCXXFLAGS:= ${HLTDCXXFLAGS}
+
+EINCLUDE := HLT/BASE HLT/TRD TRD
+
+###############################################################################
+#
+# do not change anything below this line
+#
+SRCS:=$(patsubst %,SampleLib/%,$(MODULE_SRCS))
+CINTHDRS:=$(patsubst %,SampleLib/%,$(CLASS_HDRS))
+HDRS:=$(patsubst %,SampleLib/%,$(MODULE_HDRS))