2 # Makefile template for the Alice HLT TPC display library
4 MODULE = AliHLTTPCDisplay
6 AM_CPPFLAGS = @ALIROOT_CPPFLAGS@ \
12 lib_LTLIBRARIES = libAliHLTTPCDisplay.la
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
24 DEFAULT_GEOMETRY = alice.geom
25 libAliHLTTPCDisplay_la_DATA = $(srcdir)/$(DEFAULT_GEOMETRY)
26 libAliHLTTPCDisplay_ladir = $(pkgdatadir)
27 AM_CPPFLAGS += -DDEFAULT_GEOMETRY=\"$(libAliHLTTPCDisplay_ladir)/$(DEFAULT_GEOMETRY)\"
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 \
33 AliHLTTPCDisplay3D.h \
34 AliHLTTPCDisplayCharge.h \
35 AliHLTTPCDisplayFront.h \
36 AliHLTTPCDisplayPad.h \
37 AliHLTTPCDisplayPadRow.h \
38 AliHLTTPCDisplayResiduals.h
42 pkginclude_HEADERS = $(CLASS_HDRS)
44 # version info for the library
45 libAliHLTTPCDisplay_la_LDFLAGS = -L@ROOTLIBDIR@ \
53 # automatic generation of data and time of library build
54 COMPILE_INFO = AliHLTTPCDisplayCompileInfo.cxx
56 # set the file name for the generated root dictionary
57 DICTCPP = AliHLTTPCDisplay-DICT.cxx
58 # add additional include files which are necessary for the compilation of the
59 # dictionary files and which are not part of the CLASS_HDRS
60 DICTINCLUDE = AliHLTTPCSpacePointData.h \
62 nodist_libAliHLTTPCDisplay_la_SOURCES = $(COMPILE_INFO) \
65 EXTRA_DIST = $(libAliHLTTPCDisplay_la_DATA)
66 CLEANFILES = $(COMPILE_INFO)
68 include $(top_srcdir)/make.dict
70 $(COMPILE_INFO): $(libAliHLTTPCDisplay_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
71 @echo '//automatically generated compilation info' > $@
72 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
73 @echo '//add changes in Makefile.am' >> $@
74 @echo '#include <iostream>' >> $@
75 @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
76 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@
78 @echo 'extern "C" const char* __lib$(MODULE)Properties=""' >> $@
79 @echo '#if defined(HAVE_HOMERREADER) ' >> $@
81 @echo '#endif // defined(HAVE_HOMERREADER)' >> $@
84 @echo 'void __init()'>> $@
85 @echo '{std::cout << "lib$(MODULE) build on " << __DATE__ << " - " << __TIME__ << std::endl;}'>> $@