]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/BASE/util/Makefile.am
Modified initialisation
[u/mrichter/AliRoot.git] / HLT / BASE / util / Makefile.am
CommitLineData
242bb794 1# $Id$
2# Makefile template for the Alice HLT framework
3
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 libAliHLTUtil, MODULE=AliHLTUtil
9MODULE = AliHLTUtil
10
11EXTRA_DIST =
12
13AM_CPPFLAGS = @ALIROOT_CPPFLAGS@ \
14 -DMODULE=$(MODULE) \
15 -I$(top_srcdir)/BASE
16
17# library definition
18lib_LTLIBRARIES = libAliHLTUtil.la
19
20# version info for the library
21LIBRARY_VERSION = '0:0:0'
22
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 libAliHLTUtil.pkg
25# includes another common configuration file
26MODDIR = $(top_srcdir)
27PKGDEF = $(MODDIR)/libAliHLTUtil.pkg
28include $(top_srcdir)/libAliHLTUtil.pkg
29
30# library sources
31libAliHLTUtil_la_SOURCES = $(MODULE_SRCS)
32
33# library headers
34pkginclude_HEADERS = $(MODULE_HDRS)
35
36# linker flags
37libAliHLTUtil_la_LDFLAGS = -version-info $(LIBRARY_VERSION)
38
39# automatic generation of data and time of library build
40COMPILE_INFO = HLTBaseCompileInfo.cxx
41
42# set the file name for the generated root dictionary
43DICTCPP = AliHLTUtil-DICT.cxx
44nodist_libAliHLTUtil_la_SOURCES = $(COMPILE_INFO) \
45 $(DICTCPP)
46
47CLEANFILES = $(COMPILE_INFO)
48
49include $(top_srcdir)/make.dict
50
51$(COMPILE_INFO): $(libAliHLTUtil_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;}' >> $@