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 libHLTbase, MODULE=HLTbase
15 SUBDIRS = . $(UTIL_DIR) interface HOMER test
19 bin_SCRIPTS = setenv.sh setenv.csh
22 lib_LTLIBRARIES = libHLTbase.la
24 # version info for the library
25 LIBRARY_VERSION = '5:0:2'
27 # MODDIR is set by the AliRoot build system and denotes the topdir
28 # of the module, we must set it since the package definition libHLTbase.pkg
29 # includes another common configuration file
30 MODDIR = $(top_srcdir)
31 PKGDEF = $(MODDIR)/libHLTbase.pkg
32 include $(top_srcdir)/libHLTbase.pkg
35 AM_CPPFLAGS = -DMODULE=$(MODULE) \
36 $(foreach i, $(EINCLUDE), \
37 $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
38 $(foreach i, $(EINCLUDE), \
39 $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
42 libHLTbase_la_SOURCES = $(MODULE_SRCS)
45 pkginclude_HEADERS = $(MODULE_HDRS)
48 libHLTbase_la_LDFLAGS = -L@ROOTLIBDIR@ \
50 -version-info $(LIBRARY_VERSION)
52 # automatic generation of data and time of library build
53 COMPILE_INFO = HLTBaseCompileInfo.cxx
55 # set the file name for the generated root dictionary
56 DICTCPP = HLTbase-DICT.cxx
57 nodist_libHLTbase_la_SOURCES = $(COMPILE_INFO) \
60 CLEANFILES = $(COMPILE_INFO)
62 include $(top_srcdir)/make.dict
64 $(COMPILE_INFO): $(libHLTbase_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
65 @echo '//automatically generated compilation info' > $@
66 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
67 @echo '//add changes in Makefile.am' >> $@
68 @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
69 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@