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