2 # Makefile template for the libAliHLTTrigger library
4 # This files defines the autotools-based build system of the
5 # libAliHLTTrigger library. All lines starting with a '#' are comments.
6 # Note: Source files definitions must be made in libAliHLTTrigger.pkg
12 # include the pkg definition which actually contains the source
14 MODDIR = $(top_srcdir)
15 PKGDEF = $(MODDIR)/libAliHLTTrigger.pkg
16 include $(top_srcdir)/libAliHLTTrigger.pkg
20 # The lib_LTLIBRARIES variable is a fixed variable of the autotools build
21 # system. All libraries defined by the Makefile template have to be added
22 # here. Since we aim for separated directories for different libraries
23 # there will be only one library.
24 lib_LTLIBRARIES = libAliHLTTrigger.la
26 # version info for the library
27 # The libtool program is used to created the library, a version number can
28 # be specified by using the -version-info flag. This flag accepts an argument
29 # of the form current[:revision[:age]].
30 # If either revision or age are omitted, they default to 0. Also note that
31 # age must be less than or equal to the current interface number. Here are a
32 # set of rules to help you update your library version information:
34 # 1. Start with version information of 0:0:0 for each libtool library.
35 # 2. Update the version information only immediately before a public release
36 # of your software. More frequent updates are unnecessary, and only
37 # guarantee that the current interface number gets larger faster.
38 # 3. If the library source code has changed at all since the last update,
39 # then increment revision (c:r:a becomes c:r+1:a).
40 # 4. If any interfaces have been added, removed, or changed since the last
41 # update, increment current, and set revision to 0.
42 # 5. If any interfaces have been added since the last public release, then
44 # 6. If any interfaces have been removed since the last public release, then
46 LIBRARY_VERSION = '1:0:0'
49 # The source files are specified in libAliHLTTrigger.pkg
50 libAliHLTTrigger_la_SOURCES = $(MODULE_SRCS)
53 # The header files are specified in libAliHLTTrigger.pkg
54 pkginclude_HEADERS = $(MODULE_HDRS)
56 # compilation flags of the library
57 # This is the place to add further include directories if you are
58 # using external modules. The AliRoot/STEER and ROOT directories
59 # are the default include directories.
60 # Include paths within the HLT modules are automatically taken from the
61 # EINCLUDE variable of the pkg definition
62 # other AliRoot dependencies might need to added
63 AM_CPPFLAGS = -DMODULE=$(MODULE) \
64 -DPKGINCLUDEDIR=\"$(pkgincludedir)\" \
68 $(foreach i, $(EINCLUDE), \
69 $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
70 $(foreach i, $(EINCLUDE), \
71 $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
73 # linking flags of the library
74 # This is the place to add further libraries if you are
75 # using external modules. The AliRoot, ROOT and HLT base libraries
76 # are added by default.
77 # Also the version of the library
78 libAliHLTTrigger_la_LIBADD = $(top_builddir)/BASE/util/libAliHLTUtil.la \
79 $(top_builddir)/MUON/libAliHLTMUON.la \
80 $(top_builddir)/TRD/libAliHLTTRD.la
82 libAliHLTTrigger_la_LDFLAGS = -L@ROOTLIBDIR@ \
87 -version-info $(LIBRARY_VERSION)
89 # automatic generation of data and time of library build
90 COMPILE_INFO = AliHLTTriggerCompileInfo.cxx
92 # set the file name for the generated root dictionary
93 DICTCPP = AliHLTTrigger-DICT.cxx
94 nodist_libAliHLTTrigger_la_SOURCES= $(COMPILE_INFO) \
97 CLEANFILES = $(COMPILE_INFO)
99 include $(top_srcdir)/make.dict
103 $(COMPILE_INFO): $(libAliHLTTrigger_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
104 @echo '//automatically generated compilation info' > $@
105 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
106 @echo '//add changes in Makefile.am' >> $@
107 @echo 'extern "C" void CompileInfo( const char*& date, const char*& time)' >> $@
108 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@