Added new 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 EXTRA_DIST                      = AliHLTPHOSLinkDef.h
7
8 AM_CPPFLAGS                     = @ALIROOT_CPPFLAGS@ \
9                                   -I$(top_srcdir)/BASE
10
11 # library definition
12 lib_LTLIBRARIES                 =  libAliHLTPHOS.la
13
14 # library sources
15 libAliHLTPHOS_la_SOURCES        = AliHLTPHOSPulseGenerator.cxx \
16                                   AliHLTPHOSRawAnalyzerPeakFinder.cxx \
17                                   AliHLTPHOSRawAnalyzerCrude.cxx \
18                                   AliHLTPHOSRawAnalyzerKLevel.cxx \
19                                   AliHLTPHOSRawAnalyzerLMS.cxx \
20                                   AliHLTPHOSRawAnalyzerChiSquareFit.cxx \
21                                   AliHLTPHOSRawAnalyzer.cxx \
22                                   AliHLTPHOSEmcCalibData.cxx \
23                                   AliHLTPHOSRawAnalyzerComponent.cxx \
24                                   AliHLTPHOSRawAnalyzerCrudeComponent.cxx \
25                                   AliHLTPHOSRawAnalyzerPeakFinderComponent.cxx \
26                                   AliHLTPHOSDefinitions.cxx \
27                                   AliHLTPHOSModuleMergerComponent.cxx \
28                                   AliHLTPHOSFileWriterComponent.cxx \
29                                   AliHLTPHOSFileWriter.cxx \
30                                   AliHLTPHOSDDLPackedFileWriter.cxx \
31                                   AliHLTPHOSCellEnergiesFileWriter.cxx \
32                                   AliHLTPHOSHistogramProducerComponent.cxx \
33                                   AliHLTPHOSRcuHistogramProducer.cxx \
34                                   AliHLTPHOSRcuHistogramProducerComponent.cxx \
35                                   PeakFinderTest.cxx
36
37 # class header files, the link definition for the root dictionary
38 # will be created from the names of the header files
39 CLASS_HDRS                      = AliHLTPHOSPulseGenerator.h \
40                                   AliHLTPHOSRawAnalyzer.h \
41                                   AliHLTPHOSRawAnalyzerPeakFinder.h \
42                                   AliHLTPHOSRawAnalyzerCrude.h \
43                                   AliHLTPHOSRawAnalyzerKLevel.h \
44                                   AliHLTPHOSRawAnalyzerLMS.h \
45                                   AliHLTPHOSRawAnalyzerChiSquareFit.h \
46                                   AliHLTPHOSEmcCalibData.h \
47                                   AliHLTPHOSRawAnalyzerComponent.h \
48                                   AliHLTPHOSRawAnalyzerCrudeComponent.h \
49                                   AliHLTPHOSRawAnalyzerPeakFinderComponent.h \
50                                   AliHLTPHOSModuleMergerComponent.h \
51                                   AliHLTPHOSFileWriterComponent.h \
52                                   AliHLTPHOSFileWriter.h \
53                                   AliHLTPHOSDDLPackedFileWriter.h \
54                                   AliHLTPHOSCellEnergiesFileWriter.h \
55                                   AliHLTPHOSRcuHistogramProducer.h \
56                                   AliHLTPHOSRcuHistogramProducerComponent.h \
57                                   AliHLTPHOSHistogramProducerComponent.h
58
59 pkginclude_HEADERS              = $(CLASS_HDRS) \
60                                   AliHLTPHOSCommonDefs.h \
61                                   AliHLTPHOSDefinitions.h \
62                                   AliHLTPHOSModuleCellEnergyDataStruct.h\
63                                   AliHLTPHOSRcuCellEnergyDataStruct.h \
64                                   AliHLTPHOSValidCellDataStruct.h\
65                                   AliHLTPHOSDataHeaderStruct.h \
66                                   AliHLTPHOSModuleCellAccumulatedEnergyDataStruct.h \
67                                   AliHLTPHOSModuleCellAverageEnergyDataStruct.h \
68                                   AliHLTPHOSRcuCellAccumulatedEnergyDataStruct.h \
69                                   AliHLTPHOSRcuCellAverageEnergyDataStruct.h
70
71
72 # version info and linking flags for the library
73 libAliHLTPHOS_la_LDFLAGS        = -L@ROOTLIBDIR@ \
74                                   @ROOTLIBS@ \
75                                   @ALIROOT_LDFLAGS@ \
76                                   @ALIROOT_LIBS@ \
77                                   -version-info 0:0:0
78
79 # automatic generation of data and time of library build
80 COMPILE_INFO                    =  AliHLTPHOSCompileInfo.cxx
81
82 # set the file name for the generated root dictionary
83 DICTCPP                         =  AliHLTPHOS-DICT.cxx
84 # add additional include files which are necessary for the compilation of the 
85 # dictionary files and which are not part of the CLASS_HDRS
86 DICTINCLUDE                     = 
87
88 nodist_libAliHLTPHOS_la_SOURCES = $(COMPILE_INFO) \
89                                   $(DICTCPP)
90
91 CLEANFILES                      = $(COMPILE_INFO)
92
93 include $(top_srcdir)/make.dict
94
95 $(COMPILE_INFO): $(libAliHLTPHOS_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
96         @echo '//automatically generated compilation info' > $@
97         @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
98         @echo '//add changes in Makefile.am' >> $@
99         @echo '#include <iostream>' >> $@
100         @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
101         @echo '{date=__DATE__; time=__TIME__; return;}' >> $@
102         @echo >> $@
103         @echo 'void __init()'>> $@
104         @echo '{std::cout << "lib$(MODULE) build on " << __DATE__ << " - " << __TIME__ << std::endl;}'>> $@