]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/Makefile.am
Remove compilser warnings
[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
db16520a 8# generation of the TPC Pad mapping tables for the
9# AliHLTTPCDigitReaderRaw reader
10if USE_TPC_MAPPING
11TPC_MAPPING_NOINST_SRC = mapping2array.cxx
12TPC_MAPPING_INC = mapping_array_out.inc
13TPC_MAPPING_NOINST_PGM = mapping2array
14TPC_MAPPING_COMPONENTS = AliHLTTPCDigitReaderRaw.cxx
15endif
16
17noinst_PROGRAMS = $(TPC_MAPPING_NOINST_PGM)
18if USE_TPC_MAPPING
19mapping2array_SOURCES = $(TPC_MAPPING_NOINST_SRC)
20endif
21
b521659f 22# library definition
23lib_LTLIBRARIES = libAliHLTTPC.la
24
fc455fba 25# version info for the library
071c3382 26LIBRARY_VERSION = '7:0:4'
fc455fba 27
28# MODDIR is set by the AliRoot build system and denotes the topdir
29# of the module, we must set it since the package definition libAliHLTTPC.pkg
30# includes another common configuration file
31MODDIR = $(top_srcdir)
312160d3 32PKGDEF = $(MODDIR)/libAliHLTTPC.pkg
fc455fba 33include $(top_srcdir)/libAliHLTTPC.pkg
34
34e89120 35# compiler flags
36AM_CPPFLAGS = -DMODULE=$(MODULE) \
37 $(foreach i, $(EINCLUDE), \
38 $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
39 $(foreach i, $(EINCLUDE), \
40 $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
41
b521659f 42# library sources
fc455fba 43libAliHLTTPC_la_SOURCES = $(MODULE_SRCS)
b521659f 44
fc455fba 45# library headers
46pkginclude_HEADERS = $(MODULE_HDRS)
b521659f 47
fc455fba 48# linker flags
5ad1e184 49libAliHLTTPC_la_LIBADD = $(top_builddir)/BASE/util/libAliHLTUtil.la \
50 $(top_builddir)/RCU/libAliHLTRCU.la
db16520a 51libAliHLTTPC_la_LDFLAGS = -L@ROOTLIBDIR@ \
52 @ROOTLIBS@ \
53 @ALIROOT_LDFLAGS@ \
74c73e5a 54 @ALIROOT_LIBS@ \
95316e9f 55 @ALITPC_LIBS@ \
fc455fba 56 -version-info $(LIBRARY_VERSION)
b521659f 57
842fd76a 58# automatic generation of data and time of library build
59COMPILE_INFO = AliHLTTPCCompileInfo.cxx
60
b521659f 61# set the file name for the generated root dictionary
62DICTCPP = AliHLTTPC-DICT.cxx
842fd76a 63nodist_libAliHLTTPC_la_SOURCES = $(COMPILE_INFO) \
64 $(DICTCPP)
b521659f 65
db16520a 66BUILT_SOURCES = $(TPC_MAPPING_INC)
842fd76a 67CLEANFILES = $(COMPILE_INFO) \
68 $(BUILT_SOURCES)
b521659f 69
70include $(top_srcdir)/make.dict
71
dad9a9bd 72SUBDIRS = . test EVE
db16520a 73
74$(TPC_MAPPING_INC): $(TPC_MAPPING_NOINST_PGM)
75 ./$<
842fd76a 76
77$(COMPILE_INFO): $(libAliHLTTPC_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
78 @echo '//automatically generated compilation info' > $@
79 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
80 @echo '//add changes in Makefile.am' >> $@
179be78e 81 @echo 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@
842fd76a 82 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@