]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/Makefile.am
build system clean-up, support for custom LinkDef added
[u/mrichter/AliRoot.git] / HLT / TPCLib / Makefile.am
CommitLineData
b521659f 1# $Id$
2# Makefile template for the Alice HLT TPC library
3
4MODULE = AliHLTTPC
5
014e1e83 6EXTRA_DIST =
0f51f5b8 7
74c73e5a 8AM_CPPFLAGS = @ALIROOT_CPPFLAGS@ \
312160d3 9 -I$(srcdir) \
10 -I$(srcdir)/tracking \
242bb794 11 -I$(top_srcdir)/BASE \
12 -I$(top_srcdir)/BASE/util
b521659f 13
db16520a 14# generation of the TPC Pad mapping tables for the
15# AliHLTTPCDigitReaderRaw reader
16if USE_TPC_MAPPING
17TPC_MAPPING_NOINST_SRC = mapping2array.cxx
18TPC_MAPPING_INC = mapping_array_out.inc
19TPC_MAPPING_NOINST_PGM = mapping2array
20TPC_MAPPING_COMPONENTS = AliHLTTPCDigitReaderRaw.cxx
21endif
22
23noinst_PROGRAMS = $(TPC_MAPPING_NOINST_PGM)
24if USE_TPC_MAPPING
25mapping2array_SOURCES = $(TPC_MAPPING_NOINST_SRC)
26endif
27
b521659f 28# library definition
29lib_LTLIBRARIES = libAliHLTTPC.la
30
fc455fba 31# version info for the library
312160d3 32LIBRARY_VERSION = '4:0:1'
fc455fba 33
34# MODDIR is set by the AliRoot build system and denotes the topdir
35# of the module, we must set it since the package definition libAliHLTTPC.pkg
36# includes another common configuration file
37MODDIR = $(top_srcdir)
312160d3 38PKGDEF = $(MODDIR)/libAliHLTTPC.pkg
fc455fba 39include $(top_srcdir)/libAliHLTTPC.pkg
40
b521659f 41# library sources
fc455fba 42libAliHLTTPC_la_SOURCES = $(MODULE_SRCS)
b521659f 43
fc455fba 44# library headers
45pkginclude_HEADERS = $(MODULE_HDRS)
b521659f 46
fc455fba 47# linker flags
242bb794 48libAliHLTTPC_la_LIBADD = $(top_builddir)/BASE/util/libAliHLTUtil.la
db16520a 49libAliHLTTPC_la_LDFLAGS = -L@ROOTLIBDIR@ \
50 @ROOTLIBS@ \
51 @ALIROOT_LDFLAGS@ \
74c73e5a 52 @ALIROOT_LIBS@ \
fc455fba 53 -version-info $(LIBRARY_VERSION)
b521659f 54
842fd76a 55# automatic generation of data and time of library build
56COMPILE_INFO = AliHLTTPCCompileInfo.cxx
57
b521659f 58# set the file name for the generated root dictionary
59DICTCPP = AliHLTTPC-DICT.cxx
842fd76a 60nodist_libAliHLTTPC_la_SOURCES = $(COMPILE_INFO) \
61 $(DICTCPP)
b521659f 62
db16520a 63BUILT_SOURCES = $(TPC_MAPPING_INC)
842fd76a 64CLEANFILES = $(COMPILE_INFO) \
65 $(BUILT_SOURCES)
b521659f 66
67include $(top_srcdir)/make.dict
68
78b557c2 69SUBDIRS = . OnlineDisplay
db16520a 70
71$(TPC_MAPPING_INC): $(TPC_MAPPING_NOINST_PGM)
72 ./$<
842fd76a 73
74$(COMPILE_INFO): $(libAliHLTTPC_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
75 @echo '//automatically generated compilation info' > $@
76 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
77 @echo '//add changes in Makefile.am' >> $@
78 @echo 'extern "C" void CompileInfo( char*& date, char*& time)' >> $@
79 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@