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