]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/BASE/util/Makefile.am
adding a component for statistics and monitoring of the DAQ readout list
[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
4b31e06b 11SUBDIRS = . test
12
242bb794 13EXTRA_DIST =
14
242bb794 15# library definition
16lib_LTLIBRARIES = libAliHLTUtil.la
17
18# version info for the library
071c3382 19LIBRARY_VERSION = '1:0:1'
242bb794 20
21# MODDIR is set by the AliRoot build system and denotes the topdir
22# of the module, we must set it since the package definition libAliHLTUtil.pkg
23# includes another common configuration file
24MODDIR = $(top_srcdir)
25PKGDEF = $(MODDIR)/libAliHLTUtil.pkg
26include $(top_srcdir)/libAliHLTUtil.pkg
27
34e89120 28# compiler flags
29AM_CPPFLAGS = -DMODULE=$(MODULE) \
30 $(foreach i, $(EINCLUDE), \
31 $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
32 $(foreach i, $(EINCLUDE), \
33 $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
34
242bb794 35# library sources
36libAliHLTUtil_la_SOURCES = $(MODULE_SRCS)
37
38# library headers
39pkginclude_HEADERS = $(MODULE_HDRS)
40
41# linker flags
a742f6f8 42libAliHLTUtil_la_LDFLAGS = -L@ROOTLIBDIR@ \
43 @ROOTLIBS@ \
44 @ALIROOT_LDFLAGS@ \
45 @ALIROOT_LIBS@ \
b59c004b 46 @ALIUTIL_LIBS@ \
a742f6f8 47 -version-info $(LIBRARY_VERSION)
242bb794 48
49# automatic generation of data and time of library build
56951e49 50COMPILE_INFO = AliHLTUtilCompileInfo.cxx
242bb794 51
52# set the file name for the generated root dictionary
53DICTCPP = AliHLTUtil-DICT.cxx
54nodist_libAliHLTUtil_la_SOURCES = $(COMPILE_INFO) \
55 $(DICTCPP)
56
57CLEANFILES = $(COMPILE_INFO)
58
59include $(top_srcdir)/make.dict
60
61$(COMPILE_INFO): $(libAliHLTUtil_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
62 @echo '//automatically generated compilation info' > $@
63 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
64 @echo '//add changes in Makefile.am' >> $@
179be78e 65 @echo 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@
242bb794 66 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@