]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - HLT/SampleLib/Makefile.am
- implementation dependence on HAVE_TPC_MAPPING fixed, no defines in header file
[u/mrichter/AliRoot.git] / HLT / SampleLib / Makefile.am
... / ...
CommitLineData
1# $Id$
2# Makefile template for the Alice HLT sample library
3
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.
8
9MODULE = AliHLTSample
10
11#EXTRA_DIST = libAliHLTSample.pkg
12
13# include the pkg definition which actually contains the source
14# file definitions
15#include libAliHLTSample.pkg
16
17# library definition
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.
22lib_LTLIBRARIES = libAliHLTSample.la
23
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
46# library sources
47# The source files are specified in libAliHLTSample.pkg
48#libAliHLTSample_la_SOURCES = $(MODULE_SRCS)
49# temporary until lib*.pkg file is commited to AliRoot
50libAliHLTSample_la_SOURCES= AliHLTSampleComponent1.cxx \
51 AliHLTSampleComponent2.cxx \
52 AliHLTDummyComponent.cxx
53
54# temporary until lib*.pkg file is commited to AliRoot
55CLASS_HDRS= AliHLTSampleComponent1.h \
56 AliHLTSampleComponent2.h \
57 AliHLTDummyComponent.h
58
59# library headers
60# The header files are specified in libAliHLTSample.pkg
61#noinst_HEADERS = $(MODULE_HDRS)
62# temporary until lib*.pkg file is commited to AliRoot
63noinst_HEADERS= $(CLASS_HDRS)
64
65# compilation flags of the library
66# This is the place to add further include directories if you are
67# using external modules. The AliRoot, ROOT and HLT base directories
68# are the default include directories.
69AM_CPPFLAGS = @HLTBASE_CPPFLAGS@ \
70 @ALIROOT_CPPFLAGS@ \
71 @ROOTCFLAGS@
72
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
78libAliHLTSample_la_LDFLAGS = -L@ROOTLIBDIR@ \
79 @ROOTLIBS@ \
80 @HLTBASE_LDFLAGS@ \
81 @ALIROOT_LDFLAGS@ \
82 @ALIROOT_LIBS@ \
83 -version-info $(LIBRARY_VERSION)
84
85# set the file name for the generated root dictionary
86DICTCPP = AliHLTSample-DICT.cxx
87nodist_libAliHLTSample_la_SOURCES = $(DICTCPP)
88
89CLEANFILES =
90
91###############################################################################
92#
93# do not change anything below this line
94#
95DICTDEF = $(MODULE)-LinkDef.h
96DICTFILES = $(DICTCPP) $(DICTCPP:.cxx=.h) $(DICTDEF)
97DICTHEADERS = $(CLASS_HDRS)
98
99CLEANFILES += $(DICTFILES)
100
101
102$(DICTCPP:.cxx=.h): $(DICTCPP)
103 if test $@ ; then : ; else rm -f $< ; $(MAKE) $(MAKEFLAGS) $< ; fi
104
105$(DICTCPP): $(DICTHEADERS:%=$(srcdir)/%) $(DICTDEF)
106 if [ -x $(ROOTCINT) ]; then $(ROOTCINT) -f $@ -c $(CPPFLAGS) $(AM_CPPFLAGS) $(DEFS) $(foreach i, $(DICTINCLUDE), $(i)) $^ ; fi
107$(DICTDEF): Makefile.am
108 @echo '//automatically generated ROOT DICT definition' > $@
109 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
110 @echo '//add further class definitions to the CLASS_HDRS variable in Makefile.am' >> $@
111 @echo '#ifdef __CINT__' >> $@
112 @echo '#pragma link off all globals;' >> $@
113 @echo '#pragma link off all classes;' >> $@
114 @echo '#pragma link off all functions;' >> $@
115 @$(foreach i, $(DICTHEADERS), \
116 echo "#pragma link C++ class `echo $(i) | sed -e "s|.*/||g" -e "s|\.h.*||"`;" >> $@ ;)
117 @echo '#endif' >> $@