adding libAliHLTUtil to dependencies
[u/mrichter/AliRoot.git] / HLT / ITS / Makefile.am
CommitLineData
d6e2c707 1# $Id$
2# Makefile template for the AliHLTITS library.
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 libAliHLTITS, MODULE=AliHLTITS
9MODULE = AliHLTITS
10
11SUBDIRS =
12
13EXTRA_DIST =
14
15# library definition
16lib_LTLIBRARIES = libAliHLTITS.la
17
18# version info for the library
b00f5a54 19LIBRARY_VERSION = '1:0:0'
d6e2c707 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 libAliHLTITS.pkg
23# includes another common configuration file
24MODDIR = $(top_srcdir)
25PKGDEF = $(MODDIR)/libAliHLTITS.pkg
26include $(top_srcdir)/libAliHLTITS.pkg
27
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
35# library sources
36libAliHLTITS_la_SOURCES = $(MODULE_SRCS)
37
38# library headers
39pkginclude_HEADERS = $(MODULE_HDRS)
40
41# linker flags
820cc834 42libAliHLTITS_la_LIBADD = $(top_builddir)/TPCLib/libAliHLTTPC.la \
43 $(top_builddir)/BASE/util/libAliHLTUtil.la
d6e2c707 44libAliHLTITS_la_LDFLAGS = -L@ROOTLIBDIR@ \
45 @ROOTLIBS@ \
46 @ALIROOT_LDFLAGS@ \
47 @ALIROOT_LIBS@ \
cad2d06c 48 @ALIITS_LIBS@ \
d6e2c707 49 -version-info $(LIBRARY_VERSION)
50
51# automatic generation of data and time of library build
52COMPILE_INFO = AliHLTITSCompileInfo.cxx
53
54# set the file name for the generated root dictionary
55DICTCPP = AliHLTITS-DICT.cxx
56nodist_libAliHLTITS_la_SOURCES = $(COMPILE_INFO) \
57 $(DICTCPP)
58
59CLEANFILES = $(COMPILE_INFO)
60
61include $(top_srcdir)/make.dict
62
63$(COMPILE_INFO): $(libAliHLTITS_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
64 @echo '//automatically generated compilation info' > $@
65 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
66 @echo '//add changes in Makefile.am' >> $@
179be78e 67 @echo 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@
d6e2c707 68 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@