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
13 AM_CPPFLAGS = @ALIROOT_CPPFLAGS@ \
18 lib_LTLIBRARIES = libAliHLTUtil.la
20 # version info for the library
21 LIBRARY_VERSION = '0:0:0'
23 # MODDIR is set by the AliRoot build system and denotes the topdir
24 # of the module, we must set it since the package definition libAliHLTUtil.pkg
25 # includes another common configuration file
26 MODDIR = $(top_srcdir)
27 PKGDEF = $(MODDIR)/libAliHLTUtil.pkg
28 include $(top_srcdir)/libAliHLTUtil.pkg
31 libAliHLTUtil_la_SOURCES = $(MODULE_SRCS)
34 pkginclude_HEADERS = $(MODULE_HDRS)
37 libAliHLTUtil_la_LDFLAGS = -L@ROOTLIBDIR@ \
41 -version-info $(LIBRARY_VERSION)
43 # automatic generation of data and time of library build
44 COMPILE_INFO = HLTBaseCompileInfo.cxx
46 # set the file name for the generated root dictionary
47 DICTCPP = AliHLTUtil-DICT.cxx
48 nodist_libAliHLTUtil_la_SOURCES = $(COMPILE_INFO) \
51 CLEANFILES = $(COMPILE_INFO)
53 include $(top_srcdir)/make.dict
55 $(COMPILE_INFO): $(libAliHLTUtil_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
56 @echo '//automatically generated compilation info' > $@
57 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
58 @echo '//add changes in Makefile.am' >> $@
59 @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
60 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@