2 # Makefile template for the Alice HLT simulation framework
11 lib_LTLIBRARIES = libHLTsim.la
13 # version info for the library
14 LIBRARY_VERSION = "$(LIBHLTSIM_VERSION):0:0"
16 # MODDIR is set by the AliRoot build system and denotes the topdir
17 # of the module, we must set it since the package definition libHLTsim.pkg
18 # includes another common configuration file
19 MODDIR = $(top_srcdir)
20 PKGDEF = $(MODDIR)/libHLTsim.pkg
21 include $(top_srcdir)/libHLTsim.pkg
24 AM_CPPFLAGS = -DMODULE=$(MODULE) \
27 $(foreach i, $(EINCLUDE), \
28 $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
29 $(foreach i, $(EINCLUDE), \
30 $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
32 libHLTsim_la_SOURCES = $(MODULE_SRCS)
35 pkginclude_HEADERS = $(MODULE_HDRS)
38 libHLTsim_la_LDFLAGS = -L@ROOTLIBDIR@ \
40 -version-info $(LIBRARY_VERSION)
42 # automatic generation of data and time of library build
43 COMPILE_INFO = HLTSimCompileInfo.cxx
45 # set the file name for the generated root dictionary
46 DICTCPP = HLTsim-DICT.cxx
47 nodist_libHLTsim_la_SOURCES = $(COMPILE_INFO) \
50 CLEANFILES = $(COMPILE_INFO)
52 include $(top_srcdir)/make.dict
54 $(COMPILE_INFO): $(libHLTsim_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
55 @echo '//automatically generated compilation info' > $@
56 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
57 @echo '//add changes in Makefile.am' >> $@
58 @echo 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@
59 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@