3ae7e28d0f56ab6b21a66e8752dac4e8e487337e
[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                                   PeakFinderTest.cxx
25
26 # class header files, the link definition for the root dictionary
27 # will be created from the names of the header files
28 CLASS_HDRS                      = AliHLTPHOSPulseGenerator.h \
29                                   AliHLTPHOSRawAnalyzer.h \
30                                   AliHLTPHOSRawAnalyzerPeakFinder.h \
31                                   AliHLTPHOSRawAnalyzerCrude.h \
32                                   AliHLTPHOSRawAnalyzerKLevel.h \
33                                   AliHLTPHOSRawAnalyzerLMS.h \
34                                   AliHLTPHOSRawAnalyzerChiSquareFit.h \
35                                   AliHLTPHOSEmcCalibData.h \
36                                   AliHLTPHOSRawAnalyzerComponent.h \
37                                   AliHLTPHOSRawAnalyzerCrudeComponent.h \
38                                   AliHLTPHOSRawAnalyzerPeakFinderComponent.h 
39
40
41 pkginclude_HEADERS              = $(CLASS_HDRS) \
42                                   AliHLTPHOSCommonDefs.h
43
44 # version info and linking flags for the library
45 libAliHLTPHOS_la_LDFLAGS        = -L@ROOTLIBDIR@ \
46                                   @ROOTLIBS@ \
47                                   @ALIROOT_LDFLAGS@ \
48                                   @ALIROOT_LIBS@ \
49                                   -version-info 0:0:0
50
51 # automatic generation of data and time of library build
52 COMPILE_INFO                    =  AliHLTPHOSCompileInfo.cxx
53
54 # set the file name for the generated root dictionary
55 DICTCPP                         =  AliHLTPHOS-DICT.cxx
56 # add additional include files which are necessary for the compilation of the 
57 # dictionary files and which are not part of the CLASS_HDRS
58 DICTINCLUDE                     = 
59
60 nodist_libAliHLTPHOS_la_SOURCES = $(COMPILE_INFO) \
61                                   $(DICTCPP)
62
63 CLEANFILES                      = $(COMPILE_INFO)
64
65 include $(top_srcdir)/make.dict
66
67 $(COMPILE_INFO): $(libAliHLTPHOS_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
68         @echo '//automatically generated compilation info' > $@
69         @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
70         @echo '//add changes in Makefile.am' >> $@
71         @echo '#include <iostream>' >> $@
72         @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
73         @echo '{date=__DATE__; time=__TIME__; return;}' >> $@
74         @echo >> $@
75         @echo 'void __init()'>> $@
76         @echo '{std::cout << "lib$(MODULE) build on " << __DATE__ << " - " << __TIME__ << std::endl;}'>> $@