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
14 lib_LTLIBRARIES = libAliHLTUtil.la
16 # version info for the library
17 LIBRARY_VERSION = '0:0:0'
19 # MODDIR is set by the AliRoot build system and denotes the topdir
20 # of the module, we must set it since the package definition libAliHLTUtil.pkg
21 # includes another common configuration file
22 MODDIR = $(top_srcdir)
23 PKGDEF = $(MODDIR)/libAliHLTUtil.pkg
24 include $(top_srcdir)/libAliHLTUtil.pkg
27 AM_CPPFLAGS = -DMODULE=$(MODULE) \
28 $(foreach i, $(EINCLUDE), \
29 $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
30 $(foreach i, $(EINCLUDE), \
31 $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
34 libAliHLTUtil_la_SOURCES = $(MODULE_SRCS)
37 pkginclude_HEADERS = $(MODULE_HDRS)
40 libAliHLTUtil_la_LDFLAGS = -L@ROOTLIBDIR@ \
44 -version-info $(LIBRARY_VERSION)
46 # automatic generation of data and time of library build
47 COMPILE_INFO = AliHLTUtilCompileInfo.cxx
49 # set the file name for the generated root dictionary
50 DICTCPP = AliHLTUtil-DICT.cxx
51 nodist_libAliHLTUtil_la_SOURCES = $(COMPILE_INFO) \
54 CLEANFILES = $(COMPILE_INFO)
56 include $(top_srcdir)/make.dict
58 $(COMPILE_INFO): $(libAliHLTUtil_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
59 @echo '//automatically generated compilation info' > $@
60 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
61 @echo '//add changes in Makefile.am' >> $@
62 @echo 'extern "C" void CompileInfo( char*& date, char*& time)' >> $@
63 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@