]>
Commit | Line | Data |
---|---|---|
78b557c2 | 1 | # $Id$ |
2 | # Makefile template for the Alice HLT TPC display library | |
3 | ||
4 | MODULE = AliHLTTPCDisplay | |
5 | ||
6 | AM_CPPFLAGS = @ALIROOT_CPPFLAGS@ \ | |
7 | @HOMER_CPPFLAGS@ \ | |
8 | -I$(top_srcdir)/BASE \ | |
9 | -I$(srcdir)/../ | |
10 | ||
11 | # library definition | |
12 | lib_LTLIBRARIES = libAliHLTTPCDisplay.la | |
13 | ||
f3f599e0 | 14 | LIBRARY_VERSION = '2:0:0' |
15 | ||
78b557c2 | 16 | # library sources |
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 | |
25 | ||
20b6dd9a | 26 | DEFAULT_GEOMETRY = alice.geom |
c160eda8 | 27 | libAliHLTTPCDisplay_la_DATA = $(srcdir)/$(DEFAULT_GEOMETRY) |
20b6dd9a | 28 | libAliHLTTPCDisplay_ladir = $(pkgdatadir) |
29 | AM_CPPFLAGS += -DDEFAULT_GEOMETRY=\"$(libAliHLTTPCDisplay_ladir)/$(DEFAULT_GEOMETRY)\" | |
30 | ||
78b557c2 | 31 | # class header files, the link definition for the root dictionary |
32 | # will be created from the names of the header files | |
4a6b4894 | 33 | CLASS_HDRS = AliHLTTPCDisplayMain.h \ |
78b557c2 | 34 | AliHLTTPCDisplay.h \ |
35 | AliHLTTPCDisplay3D.h \ | |
36 | AliHLTTPCDisplayCharge.h \ | |
37 | AliHLTTPCDisplayFront.h \ | |
38 | AliHLTTPCDisplayPad.h \ | |
39 | AliHLTTPCDisplayPadRow.h \ | |
40 | AliHLTTPCDisplayResiduals.h | |
41 | ||
42 | ||
43 | ||
4a6b4894 | 44 | pkginclude_HEADERS = $(CLASS_HDRS) |
78b557c2 | 45 | |
46 | # version info for the library | |
47 | libAliHLTTPCDisplay_la_LDFLAGS = -L@ROOTLIBDIR@ \ | |
48 | @ROOTLIBS@ \ | |
49 | @ALIROOT_LDFLAGS@ \ | |
50 | @ALIROOT_LIBS@ \ | |
51 | @HOMER_LDFLAGS@ \ | |
5f1685a0 | 52 | @HOMER_LIBS@ \ |
f3f599e0 | 53 | -version-info $(LIBRARY_VERSION) |
20b6dd9a | 54 | |
55 | # automatic generation of data and time of library build | |
56 | COMPILE_INFO = AliHLTTPCDisplayCompileInfo.cxx | |
78b557c2 | 57 | |
58 | # set the file name for the generated root dictionary | |
59 | DICTCPP = AliHLTTPCDisplay-DICT.cxx | |
4a6b4894 | 60 | # add additional include files which are necessary for the compilation of the |
61 | # dictionary files and which are not part of the CLASS_HDRS | |
62 | DICTINCLUDE = AliHLTTPCSpacePointData.h \ | |
63 | AliHLTTPCTrackArray.h | |
20b6dd9a | 64 | nodist_libAliHLTTPCDisplay_la_SOURCES = $(COMPILE_INFO) \ |
65 | $(DICTCPP) | |
78b557c2 | 66 | |
c160eda8 | 67 | EXTRA_DIST = $(libAliHLTTPCDisplay_la_DATA) |
68 | CLEANFILES = $(COMPILE_INFO) | |
78b557c2 | 69 | |
70 | include $(top_srcdir)/make.dict | |
20b6dd9a | 71 | |
72 | $(COMPILE_INFO): $(libAliHLTTPCDisplay_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am | |
73 | @echo '//automatically generated compilation info' > $@ | |
74 | @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@ | |
75 | @echo '//add changes in Makefile.am' >> $@ | |
76 | @echo '#include <iostream>' >> $@ | |
77 | @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@ | |
78 | @echo '{date=__DATE__; time=__TIME__; return;}' >> $@ | |
79 | @echo >> $@ | |
80 | @echo 'extern "C" const char* __lib$(MODULE)Properties=""' >> $@ | |
81 | @echo '#if defined(HAVE_HOMERREADER) ' >> $@ | |
82 | @echo '"HOMER"' >> $@ | |
83 | @echo '#endif // defined(HAVE_HOMERREADER)' >> $@ | |
84 | @echo ';' >> $@ | |
85 | @echo >> $@ | |
86 | @echo 'void __init()'>> $@ | |
87 | @echo '{std::cout << "lib$(MODULE) build on " << __DATE__ << " - " << __TIME__ << std::endl;}'>> $@ |