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