# $Id$ # Makefile template for the Alice HLT framework # be aware of the two different meanings of 'MODULE' # 1. AliRoot classifies each detector and main sub-package as a module # so for all HLT library packages MODULE is equal HLT # 2. The HLT stand-alone build system knows about sub-modules # e.g. for libAliHLTUtil, MODULE=AliHLTUtil MODULE = AliHLTUtil EXTRA_DIST = AM_CPPFLAGS = @ALIROOT_CPPFLAGS@ \ -DMODULE=$(MODULE) \ -I$(top_srcdir)/BASE # library definition lib_LTLIBRARIES = libAliHLTUtil.la # version info for the library LIBRARY_VERSION = '0:0:0' # MODDIR is set by the AliRoot build system and denotes the topdir # of the module, we must set it since the package definition libAliHLTUtil.pkg # includes another common configuration file MODDIR = $(top_srcdir) PKGDEF = $(MODDIR)/libAliHLTUtil.pkg include $(top_srcdir)/libAliHLTUtil.pkg # library sources libAliHLTUtil_la_SOURCES = $(MODULE_SRCS) # library headers pkginclude_HEADERS = $(MODULE_HDRS) # linker flags libAliHLTUtil_la_LDFLAGS = -L@ROOTLIBDIR@ \ @ROOTLIBS@ \ @ALIROOT_LDFLAGS@ \ @ALIROOT_LIBS@ \ -version-info $(LIBRARY_VERSION) # automatic generation of data and time of library build COMPILE_INFO = AliHLTUtilCompileInfo.cxx # set the file name for the generated root dictionary DICTCPP = AliHLTUtil-DICT.cxx nodist_libAliHLTUtil_la_SOURCES = $(COMPILE_INFO) \ $(DICTCPP) CLEANFILES = $(COMPILE_INFO) include $(top_srcdir)/make.dict $(COMPILE_INFO): $(libAliHLTUtil_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am @echo '//automatically generated compilation info' > $@ @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@ @echo '//add changes in Makefile.am' >> $@ @echo 'extern "C" void CompileInfo( char*& date, char*& time)' >> $@ @echo '{date=__DATE__; time=__TIME__; return;}' >> $@