]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/interface/Makefile.am
reverting r45444 to disentangle modules and make porting possible
[u/mrichter/AliRoot.git] / HLT / BASE / interface / Makefile.am
1 # $Id$
2 # Makefile template for the Alice HLT external interface
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 libHLTinterface, MODULE=HLTinterface
9 MODULE                          = HLTinterface
10
11 SUBDIRS                         = . test
12
13 EXTRA_DIST                      = HLTinterface-LinkDef.h
14
15 AM_CPPFLAGS                     = -DMODULE=$(MODULE) \
16                                   -I$(top_srcdir)/BASE
17
18 # library definition
19 lib_LTLIBRARIES                 =  libHLTinterface.la
20
21 # version info for the library
22 LIBRARY_VERSION                 = '0:0:0'
23
24 # MODDIR is set by the AliRoot build system and denotes the topdir
25 # of the module, we must set it since the package definition libHLTinterface.pkg
26 # includes another common configuration file
27 MODDIR                          = $(top_srcdir)
28 PKGDEF                          = $(MODDIR)/libHLTinterface.pkg
29 include $(top_srcdir)/libHLTinterface.pkg
30
31 # library sources
32 libHLTinterface_la_SOURCES      = $(MODULE_SRCS)
33
34 # library headers
35 pkginclude_HEADERS              = $(MODULE_HDRS)
36
37 # linker flags
38 libHLTinterface_la_LIBADD       = $(top_builddir)/BASE/libHLTbase.la
39 libHLTinterface_la_LDFLAGS      = -version-info $(LIBRARY_VERSION)
40
41 # automatic generation of data and time of library build
42 COMPILE_INFO                    =  HLTinterfaceCompileInfo.cxx
43
44 # set the file name for the generated root dictionary
45 DICTCPP                         =  HLTinterface-DICT.cxx
46 nodist_libHLTinterface_la_SOURCES    =  $(COMPILE_INFO) \
47                                    $(DICTCPP)
48
49 CLEANFILES                      =  $(COMPILE_INFO)
50
51 include $(top_srcdir)/make.dict
52
53 $(COMPILE_INFO):  Makefile.am
54         @echo '//automatically generated compilation info' > $@
55         @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
56         @echo '//add changes in Makefile.am' >> $@
57         @echo 'void $(MODULE)CompileInfo(const char*& date, const char*& time)' >> $@
58         @echo '{date=__DATE__; time=__TIME__; return;}' >> $@