]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/Makefile.am
documentation
[u/mrichter/AliRoot.git] / HLT / BASE / Makefile.am
1 # $Id$
2 # Makefile template for the Alice HLT framework
3
4 # be aware of the two different meanings of 'MODULE'
5 # 1. AliRoot classifies each detector and main sub-package as a module
6 #    so for all HLT library packages MODULE is equal HLT
7 # 2. The HLT stand-alone build system knows about sub-modules
8 #    e.g. for libHLTbase, MODULE=HLTbase
9 MODULE                          = HLTbase
10
11 if EN_HLT_UTIL
12 UTIL_DIR=util
13 endif
14
15 SUBDIRS                         = . $(UTIL_DIR) interface HOMER
16
17 EXTRA_DIST                      = 
18
19 AM_CPPFLAGS                     = -DMODULE=$(MODULE)
20
21 bin_SCRIPTS                     = setenv.sh setenv.csh
22
23 # library definition
24 lib_LTLIBRARIES                 =  libHLTbase.la
25
26 # version info for the library
27 LIBRARY_VERSION                 = '4:0:1'
28
29 # MODDIR is set by the AliRoot build system and denotes the topdir
30 # of the module, we must set it since the package definition libHLTbase.pkg
31 # includes another common configuration file
32 MODDIR                          = $(top_srcdir)
33 PKGDEF                          = $(MODDIR)/libHLTbase.pkg
34 include $(top_srcdir)/libHLTbase.pkg
35
36 # library sources
37 libHLTbase_la_SOURCES           = $(MODULE_SRCS)
38
39 # library headers
40 pkginclude_HEADERS              = $(MODULE_HDRS)
41
42 # linker flags
43 libHLTbase_la_LDFLAGS           = -L@ROOTLIBDIR@ \
44                                   @ROOTLIBS@ \
45                                   -version-info $(LIBRARY_VERSION)
46
47 # automatic generation of data and time of library build
48 COMPILE_INFO                    =  HLTBaseCompileInfo.cxx
49
50 # set the file name for the generated root dictionary
51 DICTCPP                         =  HLTbase-DICT.cxx
52 nodist_libHLTbase_la_SOURCES    =  $(COMPILE_INFO) \
53                                    $(DICTCPP)
54
55 CLEANFILES                      =  $(COMPILE_INFO)
56
57 include $(top_srcdir)/make.dict
58
59 $(COMPILE_INFO): $(libHLTbase_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
60         @echo '//automatically generated compilation info' > $@
61         @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
62         @echo '//add changes in Makefile.am' >> $@
63         @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
64         @echo '{date=__DATE__; time=__TIME__; return;}' >> $@