]>
Commit | Line | Data |
---|---|---|
ce5f90bf | 1 | # $Id$ |
2 | # Makefile template for the Alice HLT benchmark routines | |
3 | ||
4 | MODULE = AliHLTBenchmark | |
5 | ||
6 | SUBDIRS = . | |
7 | ||
8 | EXTRA_DIST = | |
9 | ||
10 | bin_SCRIPTS = | |
11 | ||
12 | # library definition | |
13 | lib_LTLIBRARIES = libAliHLTBenchmark.la | |
14 | ||
15 | # version info for the library | |
16 | LIBRARY_VERSION = '0:0:0' | |
17 | ||
18 | # MODDIR is set by the AliRoot build system and denotes the topdir | |
19 | # of the module, we must set it since the package definition libAliHLTBenchmark.pkg | |
20 | # includes another common configuration file | |
21 | # that might become relevant if the library is also to be included into the | |
22 | # AliRoot build system | |
23 | # MODDIR = $(top_srcdir) | |
24 | # PKGDEF = $(MODDIR)/libAliHLTBenchmark.pkg | |
25 | # include $(top_srcdir)/libAliHLTBenchmark.pkg | |
26 | ||
27 | ###### to be moved to libAliHLTBenchmark.pkg if included to AliRoot ############# | |
28 | CLASS_HDRS:= AliHLTBenchExternalTrackComponent.h | |
29 | ||
30 | MODULE_SRCS= $(CLASS_HDRS:.h=.cxx) | |
31 | ||
32 | MODULE_HDRS:= $(CLASS_HDRS) | |
33 | ||
34 | EINCLUDE = HLT/BASE STEER | |
35 | ################################################################################# | |
36 | ||
37 | # compiler flags | |
38 | AM_CPPFLAGS = -DMODULE=$(MODULE) \ | |
39 | $(foreach i, $(EINCLUDE), \ | |
40 | $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \ | |
41 | $(foreach i, $(EINCLUDE), \ | |
42 | $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|")) | |
43 | ||
44 | # library sources | |
45 | libAliHLTBenchmark_la_SOURCES = $(MODULE_SRCS) | |
46 | ||
47 | # library headers | |
48 | pkginclude_HEADERS = $(MODULE_HDRS) | |
49 | ||
50 | # linker flags | |
51 | libAliHLTBenchmark_la_LDFLAGS = -L@ROOTLIBDIR@ \ | |
52 | @ROOTLIBS@ \ | |
53 | -version-info $(LIBRARY_VERSION) | |
54 | ||
55 | # automatic generation of data and time of library build | |
56 | COMPILE_INFO = AliHLTBenchmarkCompileInfo.cxx | |
57 | ||
58 | # set the file name for the generated root dictionary | |
59 | DICTCPP = AliHLTBenchmark-DICT.cxx | |
60 | nodist_libAliHLTBenchmark_la_SOURCES = $(COMPILE_INFO) \ | |
61 | $(DICTCPP) | |
62 | ||
63 | CLEANFILES = $(COMPILE_INFO) | |
64 | ||
65 | include $(top_srcdir)/make.dict | |
66 | ||
67 | $(COMPILE_INFO): $(libAliHLTBenchmark_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 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@ | |
72 | @echo '{date=__DATE__; time=__TIME__; return;}' >> $@ |