]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/OnlineDisplay/Makefile.am
079ccb5987a10927b68218794e9484d7752261d3
[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     = $(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                                   -version-info 1:1:0
51
52 # automatic generation of data and time of library build
53 COMPILE_INFO                    =  AliHLTTPCDisplayCompileInfo.cxx
54
55 # set the file name for the generated root dictionary
56 DICTCPP                         =  AliHLTTPCDisplay-DICT.cxx
57 # add additional include files which are necessary for the compilation of the 
58 # dictionary files and which are not part of the CLASS_HDRS
59 DICTINCLUDE                     = AliHLTTPCSpacePointData.h \
60                                   AliHLTTPCTrackArray.h
61 nodist_libAliHLTTPCDisplay_la_SOURCES  =  $(COMPILE_INFO) \
62                                           $(DICTCPP)
63
64 CLEANFILES                      = 
65
66 include $(top_srcdir)/make.dict
67
68 $(COMPILE_INFO): $(libAliHLTTPCDisplay_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
69         @echo '//automatically generated compilation info' > $@
70         @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
71         @echo '//add changes in Makefile.am' >> $@
72         @echo '#include <iostream>' >> $@
73         @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
74         @echo '{date=__DATE__; time=__TIME__; return;}' >> $@
75         @echo >> $@
76         @echo 'extern "C" const char* __lib$(MODULE)Properties=""' >> $@
77         @echo '#if defined(HAVE_HOMERREADER)      ' >> $@
78         @echo '"HOMER"'                             >> $@
79         @echo '#endif // defined(HAVE_HOMERREADER)' >> $@
80         @echo ';'                                   >> $@
81         @echo >> $@
82         @echo 'void __init()'>> $@
83         @echo '{std::cout << "lib$(MODULE) build on " << __DATE__ << " - " << __TIME__ << std::endl;}'>> $@