2 # Makefile template for the Alice HLT global library
9 lib_LTLIBRARIES = libAliHLTGlobal.la
11 # version info for the library
12 LIBRARY_VERSION = '1:0:0'
14 # MODDIR is set by the AliRoot build system and denotes the topdir
15 # of the module, we must set it since the package definition libAliHLTGlobal.pkg
16 # includes another common configuration file
17 MODDIR = $(top_srcdir)
18 PKGDEF = $(MODDIR)/libAliHLTGlobal.pkg
19 include $(top_srcdir)/libAliHLTGlobal.pkg
22 AM_CPPFLAGS = -DMODULE=$(MODULE) \
24 $(foreach i, $(EINCLUDE), \
25 $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
26 $(foreach i, $(EINCLUDE), \
27 $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
29 libAliHLTGlobal_la_SOURCES = $(MODULE_SRCS)
32 pkginclude_HEADERS = $(MODULE_HDRS)
34 # additional link def file
35 EXTRA_DIST +=$(MODULE_DHDR)
37 libAliHLTGlobal_la_LIBADD = $(top_builddir)/BASE/util/libAliHLTUtil.la
38 # version info for the library
39 libAliHLTGlobal_la_LDFLAGS = -L@ROOTLIBDIR@ \
45 -version-info $(LIBRARY_VERSION)
47 # automatic generation of data and time of library build
48 COMPILE_INFO = AliHLTGlobalCompileInfo.cxx
50 # set the file name for the generated root dictionary
51 DICTCPP = AliHLTGlobal-DICT.cxx
52 nodist_libAliHLTGlobal_la_SOURCES = $(COMPILE_INFO) \
55 CLEANFILES = $(COMPILE_INFO)
57 include $(top_srcdir)/make.dict
61 $(COMPILE_INFO): $(libAliHLTGlobal_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
62 @echo '//automatically generated compilation info' > $@
63 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
64 @echo '//add changes in Makefile.am' >> $@
65 @echo 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@
66 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@