]>
Commit | Line | Data |
---|---|---|
1 | # $Id$ | |
2 | # Makefile template for the Alice HLT TPC library | |
3 | ||
4 | MODULE = AliHLTTPC | |
5 | ||
6 | EXTRA_DIST = | |
7 | ||
8 | # generation of the TPC Pad mapping tables for the | |
9 | # AliHLTTPCDigitReaderRaw reader | |
10 | if USE_TPC_MAPPING | |
11 | TPC_MAPPING_NOINST_SRC = mapping2array.cxx | |
12 | TPC_MAPPING_INC = mapping_array_out.inc | |
13 | TPC_MAPPING_NOINST_PGM = mapping2array | |
14 | TPC_MAPPING_COMPONENTS = AliHLTTPCDigitReaderRaw.cxx | |
15 | endif | |
16 | ||
17 | noinst_PROGRAMS = $(TPC_MAPPING_NOINST_PGM) | |
18 | if USE_TPC_MAPPING | |
19 | mapping2array_SOURCES = $(TPC_MAPPING_NOINST_SRC) | |
20 | endif | |
21 | ||
22 | # library definition | |
23 | lib_LTLIBRARIES = libAliHLTTPC.la | |
24 | ||
25 | # version info for the library | |
26 | LIBRARY_VERSION = '4:0:1' | |
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 | |
31 | MODDIR = $(top_srcdir) | |
32 | PKGDEF = $(MODDIR)/libAliHLTTPC.pkg | |
33 | include $(top_srcdir)/libAliHLTTPC.pkg | |
34 | ||
35 | # compiler flags | |
36 | AM_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 | ||
42 | # library sources | |
43 | libAliHLTTPC_la_SOURCES = $(MODULE_SRCS) | |
44 | ||
45 | # library headers | |
46 | pkginclude_HEADERS = $(MODULE_HDRS) | |
47 | ||
48 | # linker flags | |
49 | libAliHLTTPC_la_LIBADD = $(top_builddir)/BASE/util/libAliHLTUtil.la | |
50 | libAliHLTTPC_la_LDFLAGS = -L@ROOTLIBDIR@ \ | |
51 | @ROOTLIBS@ \ | |
52 | @ALIROOT_LDFLAGS@ \ | |
53 | @ALIROOT_LIBS@ \ | |
54 | @ALITPC_LIBS@ \ | |
55 | -version-info $(LIBRARY_VERSION) | |
56 | ||
57 | # automatic generation of data and time of library build | |
58 | COMPILE_INFO = AliHLTTPCCompileInfo.cxx | |
59 | ||
60 | # set the file name for the generated root dictionary | |
61 | DICTCPP = AliHLTTPC-DICT.cxx | |
62 | nodist_libAliHLTTPC_la_SOURCES = $(COMPILE_INFO) \ | |
63 | $(DICTCPP) | |
64 | ||
65 | BUILT_SOURCES = $(TPC_MAPPING_INC) | |
66 | CLEANFILES = $(COMPILE_INFO) \ | |
67 | $(BUILT_SOURCES) | |
68 | ||
69 | include $(top_srcdir)/make.dict | |
70 | ||
71 | SUBDIRS = . OnlineDisplay | |
72 | ||
73 | $(TPC_MAPPING_INC): $(TPC_MAPPING_NOINST_PGM) | |
74 | ./$< | |
75 | ||
76 | $(COMPILE_INFO): $(libAliHLTTPC_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am | |
77 | @echo '//automatically generated compilation info' > $@ | |
78 | @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@ | |
79 | @echo '//add changes in Makefile.am' >> $@ | |
80 | @echo 'extern "C" void CompileInfo( char*& date, char*& time)' >> $@ | |
81 | @echo '{date=__DATE__; time=__TIME__; return;}' >> $@ |