- compined HLT/AliRoot build system adapted to phos and trd library
[u/mrichter/AliRoot.git] / HLT / TRD / Makefile.am
CommitLineData
0f51f5b8 1# $Id$
2# Makefile template for the Alice HLT TRD library
3
0f51f5b8 4MODULE = AliHLTTRD
5
95316e9f 6EXTRA_DIST =
0f51f5b8 7
0f51f5b8 8# library definition
95316e9f 9lib_LTLIBRARIES = libAliHLTTRD.la
0f51f5b8 10
808618f5 11# version info for the library
12LIBRARY_VERSION = '1:0:0'
13
95316e9f 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
17MODDIR = $(top_srcdir)
18PKGDEF = $(MODDIR)/libAliHLTTRD.pkg
19include $(top_srcdir)/libAliHLTTRD.pkg
20
21# compiler flags
22AM_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)/|"))
0f51f5b8 28# library sources
95316e9f 29libAliHLTTRD_la_SOURCES = $(MODULE_SRCS)
0af7cb2e 30
95316e9f 31# library headers
32pkginclude_HEADERS = $(MODULE_HDRS)
0af7cb2e 33
95316e9f 34# additional link def file
35EXTRA_DIST +=$(MODULE_DHDR)
0f51f5b8 36
808618f5 37libAliHLTTRD_la_LIBADD = $(top_builddir)/BASE/util/libAliHLTUtil.la
0af7cb2e 38# version info for the library
0f51f5b8 39libAliHLTTRD_la_LDFLAGS = -L@ROOTLIBDIR@ \
40 @ROOTLIBS@ \
0f51f5b8 41 @ALIROOT_LDFLAGS@ \
42 @ALIROOT_LIBS@ \
95316e9f 43 @ALITRD_LIBS@ \
808618f5 44 -version-info $(LIBRARY_VERSION)
0f51f5b8 45
842fd76a 46# automatic generation of data and time of library build
47COMPILE_INFO = AliHLTTRDCompileInfo.cxx
48
0f51f5b8 49# set the file name for the generated root dictionary
50DICTCPP = AliHLTTRD-DICT.cxx
842fd76a 51nodist_libAliHLTTRD_la_SOURCES = $(COMPILE_INFO) \
52 $(DICTCPP)
0f51f5b8 53
842fd76a 54CLEANFILES = $(COMPILE_INFO)
0f51f5b8 55
842fd76a 56include $(top_srcdir)/make.dict
0f51f5b8 57
808618f5 58SUBDIRS = .
59
842fd76a 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;}' >> $@