2 # Makefile template for the Alice HLT framework
4 # be aware of the two different meanings of 'MODULE'
5 # 1. AliRoot classifies each detector and main sub-package as a module
6 # so for all HLT library packages MODULE is equal HLT
7 # 2. The HLT stand-alone build system knows about sub-modules
8 # e.g. for libAliHLTUtil, MODULE=AliHLTUtil
16 lib_LTLIBRARIES = libAliHLTUtil.la
18 # version info for the library
19 LIBRARY_VERSION = '1:0:1'
21 # MODDIR is set by the AliRoot build system and denotes the topdir
22 # of the module, we must set it since the package definition libAliHLTUtil.pkg
23 # includes another common configuration file
24 MODDIR = $(top_srcdir)
25 PKGDEF = $(MODDIR)/libAliHLTUtil.pkg
26 include $(top_srcdir)/libAliHLTUtil.pkg
29 AM_CPPFLAGS = -DMODULE=$(MODULE) \
30 $(foreach i, $(EINCLUDE), \
31 $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
32 $(foreach i, $(EINCLUDE), \
33 $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
36 libAliHLTUtil_la_SOURCES = $(MODULE_SRCS)
39 pkginclude_HEADERS = $(MODULE_HDRS)
42 libAliHLTUtil_la_LDFLAGS = -L@ROOTLIBDIR@ \
46 -version-info $(LIBRARY_VERSION)
48 # automatic generation of data and time of library build
49 COMPILE_INFO = AliHLTUtilCompileInfo.cxx
51 # set the file name for the generated root dictionary
52 DICTCPP = AliHLTUtil-DICT.cxx
53 nodist_libAliHLTUtil_la_SOURCES = $(COMPILE_INFO) \
56 CLEANFILES = $(COMPILE_INFO)
58 include $(top_srcdir)/make.dict
60 $(COMPILE_INFO): $(libAliHLTUtil_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
61 @echo '//automatically generated compilation info' > $@
62 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
63 @echo '//add changes in Makefile.am' >> $@
64 @echo 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@
65 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@