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
11 EXTRA_DIST = HLTbaseLinkDef.h
13 AM_CPPFLAGS = -DMODULE=$(MODULE)
15 bin_SCRIPTS = setenv.sh setenv.csh
18 lib_LTLIBRARIES = libHLTbase.la
20 # version info for the library
21 LIBRARY_VERSION = '1:1: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 libHLTbase.pkg
25 # includes another common configuration file
26 MODDIR = $(top_srcdir)
27 PKGDEF = $(MODDIR)/libHLTbase.pkg
28 include $(top_srcdir)/libHLTbase.pkg
31 libHLTbase_la_SOURCES = $(MODULE_SRCS)
34 pkginclude_HEADERS = $(MODULE_HDRS)
37 libHLTbase_la_LDFLAGS = -version-info $(LIBRARY_VERSION)
39 # automatic generation of data and time of library build
40 COMPILE_INFO = HLTBaseCompileInfo.cxx
42 # set the file name for the generated root dictionary
43 DICTCPP = HLTbase-DICT.cxx
44 nodist_libHLTbase_la_SOURCES = $(COMPILE_INFO) \
47 CLEANFILES = $(COMPILE_INFO)
49 include $(top_srcdir)/make.dict
51 $(COMPILE_INFO): $(libHLTbase_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
52 @echo '//automatically generated compilation info' > $@
53 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
54 @echo '//add changes in Makefile.am' >> $@
55 @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
56 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@