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