]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/OnlineDisplay/Makefile.am
04c73691b2ae5a3e025ef7faff71d72a46aa5603
[u/mrichter/AliRoot.git] / HLT / TPCLib / OnlineDisplay / Makefile.am
1 # $Id$
2 # Makefile template for the Alice HLT TPC display library
3
4 MODULE                          = AliHLTTPCDisplay
5
6 AM_CPPFLAGS                     = @ALIROOT_CPPFLAGS@         \
7                                   @HOMER_CPPFLAGS@ \
8                                   -I$(top_srcdir)/BASE       \
9                                   -I$(srcdir)/../
10
11 # library definition
12 lib_LTLIBRARIES                 =  libAliHLTTPCDisplay.la
13
14 LIBRARY_VERSION                 = '2:0:0'
15
16 # library sources
17 libAliHLTTPCDisplay_la_SOURCES  = AliHLTTPCDisplayMain.cxx \
18                                   AliHLTTPCDisplay.cxx  \
19                                   AliHLTTPCDisplay3D.cxx  \
20                                   AliHLTTPCDisplayCharge.cxx  \
21                                   AliHLTTPCDisplayFront.cxx  \
22                                   AliHLTTPCDisplayPad.cxx  \
23                                   AliHLTTPCDisplayPadRow.cxx  \
24                                   AliHLTTPCDisplayResiduals.cxx
25
26 DEFAULT_GEOMETRY                = alice.geom
27 libAliHLTTPCDisplay_la_DATA     = $(srcdir)/$(DEFAULT_GEOMETRY)
28 libAliHLTTPCDisplay_ladir       = $(pkgdatadir)
29 AM_CPPFLAGS                     += -DDEFAULT_GEOMETRY=\"$(libAliHLTTPCDisplay_ladir)/$(DEFAULT_GEOMETRY)\" \
30                                    -DHOMERREADER_HEADER=\"@HOMERREADER_HEADER@\"
31
32 # class header files, the link definition for the root dictionary
33 # will be created from the names of the header files
34 CLASS_HDRS                      = AliHLTTPCDisplayMain.h  \
35                                   AliHLTTPCDisplay.h  \
36                                   AliHLTTPCDisplay3D.h  \
37                                   AliHLTTPCDisplayCharge.h  \
38                                   AliHLTTPCDisplayFront.h  \
39                                   AliHLTTPCDisplayPad.h  \
40                                   AliHLTTPCDisplayPadRow.h  \
41                                   AliHLTTPCDisplayResiduals.h
42
43
44
45 pkginclude_HEADERS              = $(CLASS_HDRS)
46
47 # version info for the library
48 libAliHLTTPCDisplay_la_LIBADD   = @HOMER_INBUILT_LIB@
49 libAliHLTTPCDisplay_la_LDFLAGS  = -L@ROOTLIBDIR@ \
50                                   @ROOTLIBS@ \
51                                   @ALIROOT_LDFLAGS@ \
52                                   @ALIROOT_LIBS@ \
53                                   @HOMER_LDFLAGS@ \
54                                   @HOMER_LIBS@ \
55                                   -version-info $(LIBRARY_VERSION)
56
57 # automatic generation of data and time of library build
58 COMPILE_INFO                    =  AliHLTTPCDisplayCompileInfo.cxx
59
60 # set the file name for the generated root dictionary
61 DICTCPP                         =  AliHLTTPCDisplay-DICT.cxx
62 # add additional include files which are necessary for the compilation of the 
63 # dictionary files and which are not part of the CLASS_HDRS
64 DICTINCLUDE                     = AliHLTTPCSpacePointData.h \
65                                   AliHLTTPCTrackArray.h
66 nodist_libAliHLTTPCDisplay_la_SOURCES  =  $(COMPILE_INFO) \
67                                           $(DICTCPP)
68
69 EXTRA_DIST                      = $(libAliHLTTPCDisplay_la_DATA)
70 CLEANFILES                      = $(COMPILE_INFO)
71
72 include $(top_srcdir)/make.dict
73
74 $(COMPILE_INFO): $(libAliHLTTPCDisplay_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 '#include <iostream>' >> $@
79         @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
80         @echo '{date=__DATE__; time=__TIME__; return;}' >> $@
81         @echo >> $@
82         @echo 'extern "C" const char* __lib$(MODULE)Properties=""' >> $@
83         @echo '#if defined(HAVE_HOMERREADER)      ' >> $@
84         @echo '"HOMER"'                             >> $@
85         @echo '#endif // defined(HAVE_HOMERREADER)' >> $@
86         @echo ';'                                   >> $@
87         @echo >> $@
88         @echo 'void __init()'>> $@
89         @echo '{std::cout << "lib$(MODULE) build on " << __DATE__ << " - " << __TIME__ << std::endl;}'>> $@