2 # Makefile template for the Alice HLT benchmark routines
4 MODULE = AliHLTBenchmark
13 lib_LTLIBRARIES = libAliHLTBenchmark.la
15 # version info for the library
16 LIBRARY_VERSION = '0:0:0'
18 # MODDIR is set by the AliRoot build system and denotes the topdir
19 # of the module, we must set it since the package definition libAliHLTBenchmark.pkg
20 # includes another common configuration file
21 # that might become relevant if the library is also to be included into the
22 # AliRoot build system
23 # MODDIR = $(top_srcdir)
24 # PKGDEF = $(MODDIR)/libAliHLTBenchmark.pkg
25 # include $(top_srcdir)/libAliHLTBenchmark.pkg
27 ###### to be moved to libAliHLTBenchmark.pkg if included to AliRoot #############
28 CLASS_HDRS:= AliHLTBenchExternalTrackComponent.h
30 MODULE_SRCS= $(CLASS_HDRS:.h=.cxx)
32 MODULE_HDRS:= $(CLASS_HDRS)
34 EINCLUDE = HLT/BASE STEER
35 #################################################################################
38 AM_CPPFLAGS = -DMODULE=$(MODULE) \
39 $(foreach i, $(EINCLUDE), \
40 $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
41 $(foreach i, $(EINCLUDE), \
42 $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
45 libAliHLTBenchmark_la_SOURCES = $(MODULE_SRCS)
48 pkginclude_HEADERS = $(MODULE_HDRS)
51 libAliHLTBenchmark_la_LDFLAGS = -L@ROOTLIBDIR@ \
53 -version-info $(LIBRARY_VERSION)
55 # automatic generation of data and time of library build
56 COMPILE_INFO = AliHLTBenchmarkCompileInfo.cxx
58 # set the file name for the generated root dictionary
59 DICTCPP = AliHLTBenchmark-DICT.cxx
60 nodist_libAliHLTBenchmark_la_SOURCES = $(COMPILE_INFO) \
63 CLEANFILES = $(COMPILE_INFO)
65 include $(top_srcdir)/make.dict
67 $(COMPILE_INFO): $(libAliHLTBenchmark_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
68 @echo '//automatically generated compilation info' > $@
69 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
70 @echo '//add changes in Makefile.am' >> $@
71 @echo 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@
72 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@