Modification of operator=
[u/mrichter/AliRoot.git] / HLT / SampleLib / Makefile.am
CommitLineData
b521659f 1# $Id$
2# Makefile template for the Alice HLT sample library
3
6c1a9d9e 4# This files defines the autotools-based build system of the
5# libAliHLTSample library. All lines starting with a '#' are comments.
6# Note: Source files definitions must be made in libAliHLTSample.pkg
7# For further information refer to the README.
b22e91eb 8
b521659f 9MODULE = AliHLTSample
10
9ce4bf4a 11EXTRA_DIST = AliHLTSampleLinkDef.h
b521659f 12
6c1a9d9e 13# include the pkg definition which actually contains the source
14# file definitions
2d7ff710 15include $(top_srcdir)/libAliHLTSample.pkg
b521659f 16
17# library definition
6c1a9d9e 18# The lib_LTLIBRARIES variable is a fixed variable of the autotools build
19# system. All libraries defined by the Makefile template have to be added
20# here. Since we aim for separated directories for different libraries
21# there will be only one library.
b521659f 22lib_LTLIBRARIES = libAliHLTSample.la
23
6c1a9d9e 24# version info for the library
25# The libtool program is used to created the library, a version number can
26# be specified by using the -version-info flag. This flag accepts an argument
27# of the form current[:revision[:age]].
28# If either revision or age are omitted, they default to 0. Also note that
29# age must be less than or equal to the current interface number. Here are a
30# set of rules to help you update your library version information:
31#
32# 1. Start with version information of 0:0:0 for each libtool library.
33# 2. Update the version information only immediately before a public release
34# of your software. More frequent updates are unnecessary, and only
35# guarantee that the current interface number gets larger faster.
36# 3. If the library source code has changed at all since the last update,
37# then increment revision (c:r:a becomes c:r+1:a).
38# 4. If any interfaces have been added, removed, or changed since the last
39# update, increment current, and set revision to 0.
40# 5. If any interfaces have been added since the last public release, then
41# increment age.
42# 6. If any interfaces have been removed since the last public release, then
43# set age to 0.
44LIBRARY_VERSION = '1:0:0'
45
b521659f 46# library sources
6c1a9d9e 47# The source files are specified in libAliHLTSample.pkg
2d7ff710 48libAliHLTSample_la_SOURCES = $(MODULE_SRCS)
b521659f 49
6c1a9d9e 50# library headers
51# The header files are specified in libAliHLTSample.pkg
2d7ff710 52noinst_HEADERS = $(MODULE_HDRS)
b521659f 53
6c1a9d9e 54# compilation flags of the library
55# This is the place to add further include directories if you are
56# using external modules. The AliRoot, ROOT and HLT base directories
57# are the default include directories.
58AM_CPPFLAGS = @HLTBASE_CPPFLAGS@ \
59 @ALIROOT_CPPFLAGS@ \
60 @ROOTCFLAGS@
61
62# linking flags of the library
63# This is the place to add further libraries if you are
64# using external modules. The AliRoot, ROOT and HLT base libraries
65# are added by default.
66# Also the version of the library
67libAliHLTSample_la_LDFLAGS = -L@ROOTLIBDIR@ \
68 @ROOTLIBS@ \
69 @HLTBASE_LDFLAGS@ \
70 @ALIROOT_LDFLAGS@ \
71 @ALIROOT_LIBS@ \
72 -version-info $(LIBRARY_VERSION)
b521659f 73
74# set the file name for the generated root dictionary
75DICTCPP = AliHLTSample-DICT.cxx
76nodist_libAliHLTSample_la_SOURCES = $(DICTCPP)
77
78CLEANFILES =
79
6c1a9d9e 80###############################################################################
81#
82# do not change anything below this line
83#
84DICTDEF = $(MODULE)-LinkDef.h
85DICTFILES = $(DICTCPP) $(DICTCPP:.cxx=.h) $(DICTDEF)
86DICTHEADERS = $(CLASS_HDRS)
87
88CLEANFILES += $(DICTFILES)
89
90
91$(DICTCPP:.cxx=.h): $(DICTCPP)
92 if test $@ ; then : ; else rm -f $< ; $(MAKE) $(MAKEFLAGS) $< ; fi
93
94$(DICTCPP): $(DICTHEADERS:%=$(srcdir)/%) $(DICTDEF)
95 if [ -x $(ROOTCINT) ]; then $(ROOTCINT) -f $@ -c $(CPPFLAGS) $(AM_CPPFLAGS) $(DEFS) $(foreach i, $(DICTINCLUDE), $(i)) $^ ; fi
96$(DICTDEF): Makefile.am
97 @echo '//automatically generated ROOT DICT definition' > $@
98 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
99 @echo '//add further class definitions to the CLASS_HDRS variable in Makefile.am' >> $@
100 @echo '#ifdef __CINT__' >> $@
101 @echo '#pragma link off all globals;' >> $@
102 @echo '#pragma link off all classes;' >> $@
103 @echo '#pragma link off all functions;' >> $@
104 @$(foreach i, $(DICTHEADERS), \
105 echo "#pragma link C++ class `echo $(i) | sed -e "s|.*/||g" -e "s|\.h.*||"`;" >> $@ ;)
106 @echo '#endif' >> $@