2 # Makefile template for the Alice HLT TPC display library
4 MODULE = AliHLTTPCDisplay
6 AM_CPPFLAGS = @ALIROOT_CPPFLAGS@ \
12 lib_LTLIBRARIES = libAliHLTTPCDisplay.la
14 LIBRARY_VERSION = '2:0:0'
17 libAliHLTTPCDisplay_la_SOURCES = AliHLTTPCDisplayMain.cxx \
18 AliHLTTPCDisplay.cxx \
19 AliHLTTPCDisplay3D.cxx \
20 AliHLTTPCDisplayCharge.cxx \
21 AliHLTTPCDisplayFront.cxx \
22 AliHLTTPCDisplayPad.cxx \
23 AliHLTTPCDisplayPadRow.cxx \
24 AliHLTTPCDisplayResiduals.cxx
26 DEFAULT_GEOMETRY = alice.geom
27 libAliHLTTPCDisplay_la_DATA = $(srcdir)/$(DEFAULT_GEOMETRY)
28 libAliHLTTPCDisplay_ladir = $(pkgdatadir)
29 AM_CPPFLAGS += -DDEFAULT_GEOMETRY=\"$(libAliHLTTPCDisplay_ladir)/$(DEFAULT_GEOMETRY)\" \
30 -DHOMERREADER_HEADER=\"@HOMERREADER_HEADER@\"
32 # class header files, the link definition for the root dictionary
33 # will be created from the names of the header files
34 CLASS_HDRS = AliHLTTPCDisplayMain.h \
36 AliHLTTPCDisplay3D.h \
37 AliHLTTPCDisplayCharge.h \
38 AliHLTTPCDisplayFront.h \
39 AliHLTTPCDisplayPad.h \
40 AliHLTTPCDisplayPadRow.h \
41 AliHLTTPCDisplayResiduals.h
45 pkginclude_HEADERS = $(CLASS_HDRS)
47 # version info for the library
48 libAliHLTTPCDisplay_la_LIBADD = @HOMER_INBUILT_LIB@
49 libAliHLTTPCDisplay_la_LDFLAGS = -L@ROOTLIBDIR@ \
55 -version-info $(LIBRARY_VERSION)
57 # automatic generation of data and time of library build
58 COMPILE_INFO = AliHLTTPCDisplayCompileInfo.cxx
60 # set the file name for the generated root dictionary
61 DICTCPP = AliHLTTPCDisplay-DICT.cxx
62 # add additional include files which are necessary for the compilation of the
63 # dictionary files and which are not part of the CLASS_HDRS
64 DICTINCLUDE = AliHLTTPCSpacePointData.h \
66 nodist_libAliHLTTPCDisplay_la_SOURCES = $(COMPILE_INFO) \
69 EXTRA_DIST = $(libAliHLTTPCDisplay_la_DATA)
70 CLEANFILES = $(COMPILE_INFO)
72 include $(top_srcdir)/make.dict
74 $(COMPILE_INFO): $(libAliHLTTPCDisplay_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;}' >> $@
82 @echo 'extern "C" const char* __lib$(MODULE)Properties=""' >> $@
83 @echo '#if defined(HAVE_HOMERREADER) ' >> $@
85 @echo '#endif // defined(HAVE_HOMERREADER)' >> $@
88 @echo 'void __init()'>> $@
89 @echo '{std::cout << "lib$(MODULE) build on " << __DATE__ << " - " << __TIME__ << std::endl;}'>> $@