]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TRD/Makefile.am
unify system of the input multiplier for clusterizer and tracker and
[u/mrichter/AliRoot.git] / HLT / TRD / Makefile.am
index 26f25e72e6b580d30028750ab8870ddd1011e2b6..b4cdf27982ddb6960496829368084bfcf23279f5 100644 (file)
@@ -3,54 +3,64 @@
 
 MODULE                                 = AliHLTTRD
 
-EXTRA_DIST                     = AliHLTTRDLinkDef.h
+EXTRA_DIST                     =
 
-AM_CPPFLAGS                    = @ALIROOT_CPPFLAGS@         \
-                                 -I$(top_srcdir)/BASE \
-                                 -I$(ALICE_ROOT)/TRD
+# library definition
+lib_LTLIBRARIES                        = libAliHLTTRD.la
 
-# noinst_PROGRAMS                      = $(TRD_MAPPING_NOINST_PGM)
-# if USE_TRD_MAPPING
-# mapping2array_SOURCES                = $(TRD_MAPPING_NOINST_SRC)
-# endif
+# version info for the library
+LIBRARY_VERSION                        = '1:0:0'
 
-# library definition
-lib_LTLIBRARIES                        =  libAliHLTTRD.la
+# MODDIR is set by the AliRoot build system and denotes the topdir
+# of the module, we must set it since the package definition libAliHLTTRD.pkg
+# includes another common configuration file
+MODDIR                         = $(top_srcdir)
+PKGDEF                         = $(MODDIR)/libAliHLTTRD.pkg
+include $(top_srcdir)/libAliHLTTRD.pkg
 
+# compiler flags
+AM_CPPFLAGS                    = -DMODULE=$(MODULE) \
+                                 $(PACKCXXFLAGS) \
+                                 $(foreach i, $(EINCLUDE),  \
+                                       $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
+                                 $(foreach i, $(EINCLUDE),  \
+                                       $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
 # library sources
-libAliHLTTRD_la_SOURCES                = AliTRDclusterizerV1HLT.cxx \
-                                 AliHLTTRDDefinitions.cxx \
-                                 AliHLTTRDClusterizerComponent.cxx \
-                                 AliHLTTRDTrackerComponent.cxx \
-                                 AliTRDtrackerHLT.cxx
-
-# class header files, the link definition for the root dictionary
-# will be created from the names of the header files
-CLASS_HDRS                     = AliTRDclusterizerV1HLT.h \
-                                 AliHLTTRDDefinitions.h \
-                                 AliHLTTRDClusterizerComponent.h \
-                                 AliHLTTRDTrackerComponent.h \
-                                 AliTRDtrackerHLT.h
-
-pkginclude_HEADERS             = $(CLASS_HDRS) 
+libAliHLTTRD_la_SOURCES                = $(MODULE_SRCS)
+
+# library headers
+pkginclude_HEADERS             = $(MODULE_HDRS)
 
+# additional link def file
+EXTRA_DIST                     +=$(MODULE_DHDR)
+
+libAliHLTTRD_la_LIBADD         = $(top_builddir)/BASE/util/libAliHLTUtil.la
 # version info for the library
 libAliHLTTRD_la_LDFLAGS                = -L@ROOTLIBDIR@ \
                                  @ROOTLIBS@ \
+                                 @HLTBASE_LDFLAGS@ \
                                  @ALIROOT_LDFLAGS@ \
                                  @ALIROOT_LIBS@ \
-                                 -version-info 1:0:0
+                                 @ALITRD_LIBS@ \
+                                 -version-info  $(LIBRARY_VERSION)
+
+# automatic generation of data and time of library build
+COMPILE_INFO                   =  AliHLTTRDCompileInfo.cxx
 
 # set the file name for the generated root dictionary
 DICTCPP                                =  AliHLTTRD-DICT.cxx
-nodist_libAliHLTTRD_la_SOURCES  =  $(DICTCPP)
+nodist_libAliHLTTRD_la_SOURCES  =  $(COMPILE_INFO) \
+                                  $(DICTCPP)
+
+CLEANFILES                     = $(COMPILE_INFO)
 
-#BUILT_SOURCES                 = $(TRD_MAPPING_INC)
-#CLEANFILES                    = $(BUILT_SOURCES)
-CLEANFILES                     = 
 include $(top_srcdir)/make.dict
 
-SUBDIRS                        = . #OnlineDisplay
+SUBDIRS                        = . 
 
-#$(TRD_MAPPING_INC): $(TRD_MAPPING_NOINST_PGM)
-#      ./$<
+$(COMPILE_INFO): $(libAliHLTTPC_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
+       @echo '//automatically generated compilation info' > $@
+       @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
+       @echo '//add changes in Makefile.am' >> $@
+       @echo 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@
+       @echo '{date=__DATE__; time=__TIME__; return;}' >> $@