]>
Commit | Line | Data |
---|---|---|
1 | # $Id$ | |
2 | # Makefile template for the Alice HLT TPC library | |
3 | ||
4 | MODULE = AliHLTTPC | |
5 | ||
6 | EXTRA_DIST = AliHLTTPCLinkDef.h | |
7 | ||
8 | AM_CPPFLAGS = @ALIROOT_CPPFLAGS@ \ | |
9 | -I$(top_srcdir)/BASE | |
10 | ||
11 | # generation of the TPC Pad mapping tables for the | |
12 | # AliHLTTPCDigitReaderRaw reader | |
13 | if USE_TPC_MAPPING | |
14 | TPC_MAPPING_NOINST_SRC = mapping2array.cxx | |
15 | TPC_MAPPING_INC = mapping_array_out.inc | |
16 | TPC_MAPPING_NOINST_PGM = mapping2array | |
17 | TPC_MAPPING_COMPONENTS = AliHLTTPCDigitReaderRaw.cxx | |
18 | endif | |
19 | ||
20 | noinst_PROGRAMS = $(TPC_MAPPING_NOINST_PGM) | |
21 | if USE_TPC_MAPPING | |
22 | mapping2array_SOURCES = $(TPC_MAPPING_NOINST_SRC) | |
23 | endif | |
24 | ||
25 | # library definition | |
26 | lib_LTLIBRARIES = libAliHLTTPC.la | |
27 | ||
28 | # version info for the library | |
29 | LIBRARY_VERSION = '3:0:0' | |
30 | ||
31 | # MODDIR is set by the AliRoot build system and denotes the topdir | |
32 | # of the module, we must set it since the package definition libAliHLTTPC.pkg | |
33 | # includes another common configuration file | |
34 | MODDIR = $(top_srcdir) | |
35 | PKGDEF = $(MODDIR)/libHLTbase.pkg | |
36 | include $(top_srcdir)/libAliHLTTPC.pkg | |
37 | ||
38 | # library sources | |
39 | libAliHLTTPC_la_SOURCES = $(MODULE_SRCS) | |
40 | ||
41 | # library headers | |
42 | pkginclude_HEADERS = $(MODULE_HDRS) | |
43 | ||
44 | # linker flags | |
45 | libAliHLTTPC_la_LDFLAGS = -L@ROOTLIBDIR@ \ | |
46 | @ROOTLIBS@ \ | |
47 | @ALIROOT_LDFLAGS@ \ | |
48 | @ALIROOT_LIBS@ \ | |
49 | -version-info $(LIBRARY_VERSION) | |
50 | ||
51 | # set the file name for the generated root dictionary | |
52 | DICTCPP = AliHLTTPC-DICT.cxx | |
53 | nodist_libAliHLTTPC_la_SOURCES = $(DICTCPP) | |
54 | ||
55 | BUILT_SOURCES = $(TPC_MAPPING_INC) | |
56 | CLEANFILES = $(BUILT_SOURCES) | |
57 | ||
58 | include $(top_srcdir)/make.dict | |
59 | ||
60 | SUBDIRS = . OnlineDisplay | |
61 | ||
62 | $(TPC_MAPPING_INC): $(TPC_MAPPING_NOINST_PGM) | |
63 | ./$< |