- compined HLT/AliRoot build system adapted to phos and trd library
[u/mrichter/AliRoot.git] / HLT / TRD / Makefile.am
1 # $Id$
2 # Makefile template for the Alice HLT TRD library
3
4 MODULE                          = AliHLTTRD
5
6 EXTRA_DIST                      =
7
8 # library definition
9 lib_LTLIBRARIES                 = libAliHLTTRD.la
10
11 # version info for the library
12 LIBRARY_VERSION                 = '1:0:0'
13
14 # MODDIR is set by the AliRoot build system and denotes the topdir
15 # of the module, we must set it since the package definition libAliHLTTRD.pkg
16 # includes another common configuration file
17 MODDIR                          = $(top_srcdir)
18 PKGDEF                          = $(MODDIR)/libAliHLTTRD.pkg
19 include $(top_srcdir)/libAliHLTTRD.pkg
20
21 # compiler flags
22 AM_CPPFLAGS                     = -DMODULE=$(MODULE) \
23                                   $(PACKCXXFLAGS) \
24                                   $(foreach i, $(EINCLUDE),  \
25                                         $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
26                                   $(foreach i, $(EINCLUDE),  \
27                                         $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
28 # library sources
29 libAliHLTTRD_la_SOURCES         = $(MODULE_SRCS)
30
31 # library headers
32 pkginclude_HEADERS              = $(MODULE_HDRS)
33
34 # additional link def file
35 EXTRA_DIST                      +=$(MODULE_DHDR)
36
37 libAliHLTTRD_la_LIBADD          = $(top_builddir)/BASE/util/libAliHLTUtil.la
38 # version info for the library
39 libAliHLTTRD_la_LDFLAGS         = -L@ROOTLIBDIR@ \
40                                   @ROOTLIBS@ \
41                                   @ALIROOT_LDFLAGS@ \
42                                   @ALIROOT_LIBS@ \
43                                   @ALITRD_LIBS@ \
44                                   -version-info  $(LIBRARY_VERSION)
45
46 # automatic generation of data and time of library build
47 COMPILE_INFO                    =  AliHLTTRDCompileInfo.cxx
48
49 # set the file name for the generated root dictionary
50 DICTCPP                         =  AliHLTTRD-DICT.cxx
51 nodist_libAliHLTTRD_la_SOURCES  =  $(COMPILE_INFO) \
52                                    $(DICTCPP)
53
54 CLEANFILES                      = $(COMPILE_INFO)
55
56 include $(top_srcdir)/make.dict
57
58 SUBDIRS                         = . 
59
60 $(COMPILE_INFO): $(libAliHLTTPC_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
61         @echo '//automatically generated compilation info' > $@
62         @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
63         @echo '//add changes in Makefile.am' >> $@
64         @echo 'extern "C" void CompileInfo( char*& date, char*& time)' >> $@
65         @echo '{date=__DATE__; time=__TIME__; return;}' >> $@