]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/Makefile.am
coding conventions and compilation warnings
[u/mrichter/AliRoot.git] / HLT / TPCLib / Makefile.am
1 # $Id$
2 # Makefile template for the Alice HLT TPC library
3
4 MODULE                          = AliHLTTPC
5
6 EXTRA_DIST                      = 
7
8 AM_CPPFLAGS                     = @ALIROOT_CPPFLAGS@         \
9                                   -I$(srcdir)                \
10                                   -I$(srcdir)/tracking       \
11                                   -I$(top_srcdir)/BASE       \
12                                   -I$(top_srcdir)/BASE/util
13
14 # generation of the TPC Pad mapping tables for the 
15 # AliHLTTPCDigitReaderRaw reader
16 if USE_TPC_MAPPING
17 TPC_MAPPING_NOINST_SRC          = mapping2array.cxx
18 TPC_MAPPING_INC                 = mapping_array_out.inc
19 TPC_MAPPING_NOINST_PGM          = mapping2array
20 TPC_MAPPING_COMPONENTS          = AliHLTTPCDigitReaderRaw.cxx
21 endif
22
23 noinst_PROGRAMS                 = $(TPC_MAPPING_NOINST_PGM)
24 if USE_TPC_MAPPING
25 mapping2array_SOURCES           = $(TPC_MAPPING_NOINST_SRC)
26 endif
27
28 # library definition
29 lib_LTLIBRARIES                 =  libAliHLTTPC.la
30
31 # version info for the library
32 LIBRARY_VERSION                 = '4:0:1'
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
37 MODDIR                          = $(top_srcdir)
38 PKGDEF                          = $(MODDIR)/libAliHLTTPC.pkg
39 include $(top_srcdir)/libAliHLTTPC.pkg
40
41 # library sources
42 libAliHLTTPC_la_SOURCES         = $(MODULE_SRCS)
43
44 # library headers
45 pkginclude_HEADERS              = $(MODULE_HDRS)
46
47 # linker flags
48 libAliHLTTPC_la_LIBADD          = $(top_builddir)/BASE/util/libAliHLTUtil.la
49 libAliHLTTPC_la_LDFLAGS         = -L@ROOTLIBDIR@ \
50                                   @ROOTLIBS@ \
51                                   @ALIROOT_LDFLAGS@ \
52                                   @ALIROOT_LIBS@ \
53                                   -version-info  $(LIBRARY_VERSION)
54
55 # automatic generation of data and time of library build
56 COMPILE_INFO                    =  AliHLTTPCCompileInfo.cxx
57
58 # set the file name for the generated root dictionary
59 DICTCPP                         =  AliHLTTPC-DICT.cxx
60 nodist_libAliHLTTPC_la_SOURCES  =  $(COMPILE_INFO) \
61                                    $(DICTCPP)
62
63 BUILT_SOURCES                   = $(TPC_MAPPING_INC)
64 CLEANFILES                      = $(COMPILE_INFO) \
65                                   $(BUILT_SOURCES)
66
67 include $(top_srcdir)/make.dict
68
69 SUBDIRS                         = . OnlineDisplay
70
71 $(TPC_MAPPING_INC): $(TPC_MAPPING_NOINST_PGM)
72         ./$<
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;}' >> $@