HLT component for writing analyzed raw data to files
[u/mrichter/AliRoot.git] / HLT / PHOS / Makefile.am
1 # $Id$
2 # Makefile template for the Alice HLT PHOS library
3
4 MODULE                          = AliHLTPHOS
5
6 AM_CPPFLAGS                     = @ALIROOT_CPPFLAGS@ \
7                                   -I$(top_srcdir)/BASE
8
9 # library definition
10 lib_LTLIBRARIES                 =  libAliHLTPHOS.la
11
12 # library sources
13 libAliHLTPHOS_la_SOURCES        = AliHLTPHOSPulseGenerator.cxx \
14                                   AliHLTPHOSRawAnalyzerPeakFinder.cxx \
15                                   AliHLTPHOSRawAnalyzerCrude.cxx \
16                                   AliHLTPHOSRawAnalyzerKLevel.cxx \
17                                   AliHLTPHOSRawAnalyzerLMS.cxx \
18                                   AliHLTPHOSRawAnalyzerChiSquareFit.cxx \
19                                   AliHLTPHOSRawAnalyzer.cxx \
20                                   AliHLTPHOSEmcCalibData.cxx \
21                                   AliHLTPHOSRawAnalyzerComponent.cxx \
22                                   AliHLTPHOSRawAnalyzerCrudeComponent.cxx \
23                                   AliHLTPHOSRawAnalyzerPeakFinderComponent.cxx \
24                                   AliHLTPHOSDefinitions.cxx \
25                                   AliHLTPHOSModuleMergerComponent.cxx \
26                                   AliHLTPHOSFileWriterComponent.cxx \
27                                   PeakFinderTest.cxx
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                      = AliHLTPHOSPulseGenerator.h \
32                                   AliHLTPHOSRawAnalyzer.h \
33                                   AliHLTPHOSRawAnalyzerPeakFinder.h \
34                                   AliHLTPHOSRawAnalyzerCrude.h \
35                                   AliHLTPHOSRawAnalyzerKLevel.h \
36                                   AliHLTPHOSRawAnalyzerLMS.h \
37                                   AliHLTPHOSRawAnalyzerChiSquareFit.h \
38                                   AliHLTPHOSEmcCalibData.h \
39                                   AliHLTPHOSRawAnalyzerComponent.h \
40                                   AliHLTPHOSRawAnalyzerCrudeComponent.h \
41                                   AliHLTPHOSRawAnalyzerPeakFinderComponent.h \
42                                   AliHLTPHOSDefinitions.h \
43                                   AliHLTPHOSModuleMergerComponent.h \
44                                   AliHLTPHOSRcuCellEnergyDataStruct.h \
45                                   AliHLTPHOSModuleCellEnergyDataStruct.h\
46                                   AliHLTPHOSFileWriterComponent.h \
47 #                                 AliHLTPHOSValidCellDataStruct.h
48 pkginclude_HEADERS              = $(CLASS_HDRS) \
49                                   AliHLTPHOSCommonDefs.h
50
51 # version info and linking flags for the library
52 libAliHLTPHOS_la_LDFLAGS        = -L@ROOTLIBDIR@ \
53                                   @ROOTLIBS@ \
54                                   @ALIROOT_LDFLAGS@ \
55                                   @ALIROOT_LIBS@ \
56                                   -version-info 0:0:0
57
58 # automatic generation of data and time of library build
59 COMPILE_INFO                    =  AliHLTPHOSCompileInfo.cxx
60
61 # set the file name for the generated root dictionary
62 DICTCPP                         =  AliHLTPHOS-DICT.cxx
63 # add additional include files which are necessary for the compilation of the 
64 # dictionary files and which are not part of the CLASS_HDRS
65 DICTINCLUDE                     = 
66
67 nodist_libAliHLTPHOS_la_SOURCES = $(COMPILE_INFO) \
68                                   $(DICTCPP)
69
70 CLEANFILES                      = $(COMPILE_INFO)
71
72 include $(top_srcdir)/make.dict
73
74 $(COMPILE_INFO): $(libAliHLTPHOS_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 'void __init()'>> $@
83         @echo '{std::cout << "lib$(MODULE) build on " << __DATE__ << " - " << __TIME__ << std::endl;}'>> $@