5d648140c298b927cd8ff4f51511db019c982873
[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 EXTRA_DIST                      = HLTPHOSLinkDef.h
7
8 AM_CPPFLAGS                     = @ALIROOT_CPPFLAGS@ \
9                                   -I@ALICE_ROOT@/PHOS \
10                                   -I$(top_srcdir)/BASE \
11                                   -I$(top_srcdir)/BASE/util
12
13
14 # library definition
15 lib_LTLIBRARIES                 =  libAliHLTPHOS.la
16
17 # library sources
18 libAliHLTPHOS_la_SOURCES        = AliHLTPHOSPulseGenerator.cxx \
19                                   AliHLTPHOSRawAnalyzerPeakFinder.cxx \
20                                   AliHLTPHOSRawAnalyzerCrude.cxx \
21                                   AliHLTPHOSRawAnalyzerKLevel.cxx \
22                                   AliHLTPHOSRawAnalyzerLMS.cxx \
23                                   AliHLTPHOSRawAnalyzerChiSquareFit.cxx \
24                                   AliHLTPHOSRawAnalyzer.cxx \
25                                   AliHLTPHOSEmcCalibData.cxx \
26                                   AliHLTPHOSRawAnalyzerComponent.cxx \
27                                   AliHLTPHOSRawAnalyzerCrudeComponent.cxx \
28                                   AliHLTPHOSRawAnalyzerPeakFinderComponent.cxx \
29                                   AliHLTPHOSDefinitions.cxx \
30                                   AliHLTPHOSFileWriterComponent.cxx \
31                                   AliHLTPHOSFileWriter.cxx \
32                                   AliHLTPHOSDDLPackedFileWriter.cxx \
33                                   AliHLTPHOSCellEnergiesFileWriter.cxx \
34                                   AliHLTPHOSRcuHistogramProducer.cxx \
35                                   AliHLTPHOSRcuHistogramProducerComponent.cxx \
36                                   AliHLTPHOSDataCorruptor.cxx \
37                                   AliHLTPHOSDataQualityMonitor.cxx \
38                                   AliHLTPHOSRcuDataQualityMonitorComponent.cxx \
39                                   AliHLTPHOSProcessor.cxx \
40                                   AliHLTPHOSClusterizer.cxx \
41                                   AliHLTPHOSClusterizerComponent.cxx \
42                                   AliHLTPHOSPhysicsAnalyzerSpectrum.cxx \
43                                   AliHLTPHOSPhysicsAnalyzerSpectrumComponent.cxx \
44                                   AliHLTPHOSPhysicsAnalyzer.cxx \
45                                   AliHLTPHOSPhysicsAnalyzerPeakFitter.cxx \
46                                   AliHLTPHOSSanityInspector.cxx \
47                                   AliHLTPHOSDigitMaker.cxx \
48                                   AliHLTPHOSRcuDigitMaker.cxx \
49                                   AliHLTPHOSDigitMakerComponent.cxx \
50                                   AliHLTPHOSRcuDigitMakerComponent.cxx \
51                                   AliHLTPHOSDigit.cxx \
52                                   AliHLTPHOSChannelCounter.cxx \
53                                   AliHLTPHOSTreeMakerComponent.cxx \
54                                   AliHLTPHOSRcuTreeMakerComponent.cxx \
55                                   AliHLTPHOSTreeMaker.cxx \
56                                   AliHLTPHOSRcuTreeMaker.cxx \
57                                   AliHLTPHOSBaselineAnalyzer.cxx \
58                                   AliHLTPHOSBaselineAnalyzerComponent.cxx \
59                                   AliHLTPHOSBaseline.cxx \
60                                   AliHLTDDLDecoder.cxx \
61                                   AliHLTAltroData.cxx \
62                                   AliHLTAltroBunch.cxx \
63                                   AliHLTPHOSMapper.cxx \
64                                   AliHLTPHOSRcuProcessor.cxx \
65                                   AliHLTPHOSDDLDecoderComponent.cxx \
66                                   AliHLTPHOSBase.cxx \
67                                   AliHLTPHOSConfig.cxx \
68                                   AliHLTPHOSAltroConfig.cxx \
69                                   AliHLTPHOSSandboxComponent.cxx \
70                                   AliHLTPHOSMIPCounter.cxx \
71                                   AliHLTPHOSMIPCounterComponent.cxx 
72 #                                 AliHLTPHOSNoiseMapper.cxx \
73 #                                 AliHLTPHOSNoiseMapperComponent.cxx
74
75
76 # class header files, the link definition for the root dictionary
77 # will be created from the names of the header files
78 CLASS_HDRS                      = AliHLTPHOSPulseGenerator.h \
79                                   AliHLTPHOSRawAnalyzerPeakFinder.h \
80                                   AliHLTPHOSRawAnalyzerCrude.h \
81                                   AliHLTPHOSRawAnalyzerKLevel.h \
82                                   AliHLTPHOSRawAnalyzerLMS.h \
83                                   AliHLTPHOSRawAnalyzerChiSquareFit.h \
84                                   AliHLTPHOSEmcCalibData.h \
85                                   AliHLTPHOSRawAnalyzerComponent.h \
86                                   AliHLTPHOSRawAnalyzerCrudeComponent.h \
87                                   AliHLTPHOSRawAnalyzerPeakFinderComponent.h \
88                                   AliHLTPHOSFileWriterComponent.h \
89                                   AliHLTPHOSFileWriter.h \
90                                   AliHLTPHOSDDLPackedFileWriter.h \
91                                   AliHLTPHOSCellEnergiesFileWriter.h \
92                                   AliHLTPHOSRcuHistogramProducer.h \
93                                   AliHLTPHOSRcuHistogramProducerComponent.h \
94                                   AliHLTPHOSDataCorruptor.h \
95                                   AliHLTPHOSDataQualityMonitor.h \
96                                   AliHLTPHOSRcuDataQualityMonitorComponent.h \
97                                   AliHLTPHOSProcessor.h \
98                                   AliHLTPHOSClusterizer.h \
99                                   AliHLTPHOSClusterizerComponent.h \
100                                   AliHLTPHOSPhysicsAnalyzerSpectrum.h \
101                                   AliHLTPHOSPhysicsAnalyzerSpectrumComponent.h \
102                                   AliHLTPHOSPhysicsAnalyzer.h \
103                                   AliHLTPHOSPhysicsAnalyzerPeakFitter.h \
104                                   AliHLTPHOSSanityInspector.h \
105                                   AliHLTPHOSDigitMaker.h \
106                                   AliHLTPHOSRcuDigitMaker.h \
107                                   AliHLTPHOSDigitMakerComponent.h \
108                                   AliHLTPHOSRcuDigitMakerComponent.h \
109                                   AliHLTPHOSDigit.h \
110                                   AliHLTPHOSChannelCounter.h \
111                                   AliHLTPHOSTreeMakerComponent.h \
112                                   AliHLTPHOSRcuTreeMakerComponent.h \
113                                   AliHLTPHOSTreeMaker.h \
114                                   AliHLTPHOSRcuTreeMaker.h \
115                                   AliHLTPHOSBaselineAnalyzer.h \
116                                   AliHLTPHOSBaselineAnalyzerComponent.h \
117                                   AliHLTPHOSBaseline.h \
118                                   AliHLTDDLDecoder.h \
119                                   AliHLTAltroData.h \
120                                   AliHLTPHOSMapper.h \
121                                   AliHLTPHOSRcuProcessor.h \
122                                   AliHLTPHOSBase.h \
123                                   AliHLTPHOSDDLDecoderComponent.h \
124                                   AliHLTPHOSMapper.h \
125                                   AliHLTPHOSConfig.h \
126                                   AliHLTPHOSAltroConfig.h \
127                                   AliHLTPHOSSandboxComponent.h \
128                                   AliHLTPHOSMIPCounter.h \
129                                   AliHLTPHOSMIPCounterComponent.h 
130 #                                 AliHLTPHOSNoiseMapper.h \
131 #                                 AliHLTPHOSNoiseMapperComponent.h
132
133 pkginclude_HEADERS              = $(CLASS_HDRS) \
134                                   AliHLTPHOSCommonDefs.h \
135                                   AliHLTPHOSConstants.h \
136                                   AliHLTAltroBunch.h \
137                                   AliHLTPHOSRecPointListDataStruct.h \
138                                   AliHLTPHOSRecPointDataStruct.h \
139                                   AliHLTPHOSClusterDataStruct.h \
140                                   AliHLTPHOSRawAnalyzer.h \
141                                   AliHLTPHOSDefinitions.h \
142                                   AliHLTPHOSModuleCellEnergyDataStruct.h\
143                                   AliHLTPHOSRcuCellEnergyDataStruct.h \
144                                   AliHLTPHOSValidCellDataStruct.h\
145                                   AliHLTPHOSDataHeaderStruct.h \
146                                   AliHLTPHOSModuleCellAccumulatedEnergyDataStruct.h \
147                                   AliHLTPHOSModuleCellAverageEnergyDataStruct.h \
148                                   AliHLTPHOSRcuCellAccumulatedEnergyDataStruct.h \
149                                   AliHLTPHOSRcuCellAverageEnergyDataStruct.h \
150                                   AliHLTPHOSRcuChannelDataStruct.h \
151                                   AliHLTPHOSValidChannelDataStruct.h \
152                                   AliHLTPHOSClusterDataStruct.h \
153                                   AliHLTPHOSRecPointDataStruct.h \
154                                   AliHLTPHOSRecPointListDataStruct.h \
155                                   AliHLTPHOSRecPointContainerStruct.h \
156                                   AliHLTPHOSDigitContainerDataStruct.h \
157                                   AliHLTPHOSRcuDigitContainerDataStruct.h \
158                                   AliHLTPHOSDigitDataStruct.h
159
160 # version info and linking flags for the library
161 libAliHLTPHOS_la_LIBADD         = $(top_builddir)/BASE/util/libAliHLTUtil.la
162 libAliHLTPHOS_la_LDFLAGS        = -L@ROOTLIBDIR@ \
163                                   @ROOTLIBS@ \
164                                   @ALIROOT_LDFLAGS@ \
165                                   @ALIROOT_LIBS@ \
166                                   -lRAWDatasim \
167                                   -lPHOSbase \
168                                   -lPHOSsim \
169                                   -lPHOSrec \
170                                   -version-info 0:0:0
171
172 # automatic generation of data and time of library build
173 COMPILE_INFO                    =  AliHLTPHOSCompileInfo.cxx
174
175 # set the file name for the generated root dictionary
176 DICTCPP                         =  AliHLTPHOS-DICT.cxx
177 # add additional include files which are necessary for the compilation of the 
178 # dictionary files and which are not part of the CLASS_HDRS
179 DICTINCLUDE                     = 
180
181 nodist_libAliHLTPHOS_la_SOURCES = $(COMPILE_INFO) \
182                                   $(DICTCPP)
183
184 CLEANFILES                      = $(COMPILE_INFO)
185
186 include $(top_srcdir)/make.dict
187
188 $(COMPILE_INFO): $(libAliHLTPHOS_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
189         @echo '//automatically generated compilation info' > $@
190         @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
191         @echo '//add changes in Makefile.am' >> $@
192         @echo '#include <iostream>' >> $@
193         @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
194         @echo '{date=__DATE__; time=__TIME__; return;}' >> $@
195         @echo >> $@
196         @echo 'void __init()'>> $@
197         @echo '{std::cout << "lib$(MODULE) build on " << __DATE__ << " - " << __TIME__ << std::endl;}'>> $@