]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/Makefile.am
aliroot integration
[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 SUBDIRS                         = . util
12
13 EXTRA_DIST                      = HLTbaseLinkDef.h
14
15 AM_CPPFLAGS                     = -DMODULE=$(MODULE) \
16                                   -I@ALICE_ROOT@/STEER
17
18 bin_SCRIPTS                     = setenv.sh setenv.csh
19
20 # library definition
21 lib_LTLIBRARIES                 =  libHLTbase.la
22
23 # version info for the library
24 LIBRARY_VERSION                 = '3:0:0'
25
26 # MODDIR is set by the AliRoot build system and denotes the topdir
27 # of the module, we must set it since the package definition libHLTbase.pkg
28 # includes another common configuration file
29 MODDIR                          = $(top_srcdir)
30 PKGDEF                          = $(MODDIR)/libHLTbase.pkg
31 include $(top_srcdir)/libHLTbase.pkg
32
33 # library sources
34 libHLTbase_la_SOURCES           = $(MODULE_SRCS)
35
36 # library headers
37 pkginclude_HEADERS              = $(MODULE_HDRS)
38
39 # linker flags
40 libHLTbase_la_LDFLAGS           = -L@ROOTLIBDIR@ \
41                                   @ROOTLIBS@ \
42                                   @ALIROOT_LDFLAGS@ \
43                                   @ALIROOT_LIBS@ \
44                                   -version-info $(LIBRARY_VERSION)
45
46 # automatic generation of data and time of library build
47 COMPILE_INFO                    =  HLTBaseCompileInfo.cxx
48
49 # set the file name for the generated root dictionary
50 DICTCPP                         =  HLTbase-DICT.cxx
51 nodist_libHLTbase_la_SOURCES    =  $(COMPILE_INFO) \
52                                    $(DICTCPP)
53
54 CLEANFILES                      =  $(COMPILE_INFO)
55
56 include $(top_srcdir)/make.dict
57
58 $(COMPILE_INFO): $(libHLTbase_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
59         @echo '//automatically generated compilation info' > $@
60         @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
61         @echo '//add changes in Makefile.am' >> $@
62         @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
63         @echo '{date=__DATE__; time=__TIME__; return;}' >> $@