2 # Makefile template for the Alice HLT external interface
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 libHLTinterface, MODULE=HLTinterface
13 EXTRA_DIST = HLTinterface-LinkDef.h
15 AM_CPPFLAGS = -DMODULE=$(MODULE) \
19 lib_LTLIBRARIES = libHLTinterface.la
21 # version info for the library
22 LIBRARY_VERSION = '0:0:0'
24 # MODDIR is set by the AliRoot build system and denotes the topdir
25 # of the module, we must set it since the package definition libHLTinterface.pkg
26 # includes another common configuration file
27 MODDIR = $(top_srcdir)
28 PKGDEF = $(MODDIR)/libHLTinterface.pkg
29 include $(top_srcdir)/libHLTinterface.pkg
32 libHLTinterface_la_SOURCES = $(MODULE_SRCS)
35 pkginclude_HEADERS = $(MODULE_HDRS)
38 libHLTinterface_la_LIBADD = $(top_builddir)/BASE/libHLTbase.la
39 libHLTinterface_la_LDFLAGS = -version-info $(LIBRARY_VERSION)
41 # automatic generation of data and time of library build
42 COMPILE_INFO = HLTinterfaceCompileInfo.cxx
44 # set the file name for the generated root dictionary
45 DICTCPP = HLTinterface-DICT.cxx
46 nodist_libHLTinterface_la_SOURCES = $(COMPILE_INFO) \
49 CLEANFILES = $(COMPILE_INFO)
51 include $(top_srcdir)/make.dict
53 $(COMPILE_INFO): Makefile.am
54 @echo '//automatically generated compilation info' > $@
55 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
56 @echo '//add changes in Makefile.am' >> $@
57 @echo 'void $(MODULE)CompileInfo(const char*& date, const char*& time)' >> $@
58 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@