]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/BASE/Makefile.am
reverting r45444 to disentangle modules and make porting possible
[u/mrichter/AliRoot.git] / HLT / BASE / Makefile.am
CommitLineData
b521659f 1# $Id$
2# Makefile template for the Alice HLT framework
3
2d7ff710 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
b521659f 9MODULE = HLTbase
10
c018a1bd 11if EN_HLT_UTIL
12UTIL_DIR=util
13endif
14
853121af 15SUBDIRS = . $(UTIL_DIR) interface HOMER test
242bb794 16
014e1e83 17EXTRA_DIST =
9ce4bf4a 18
53feaef5 19bin_SCRIPTS = setenv.sh setenv.csh
20
b521659f 21# library definition
22lib_LTLIBRARIES = libHLTbase.la
23
2d7ff710 24# version info for the library
9e14734f 25LIBRARY_VERSION = '10:0:0'
2d7ff710 26
27# MODDIR is set by the AliRoot build system and denotes the topdir
28# of the module, we must set it since the package definition libHLTbase.pkg
29# includes another common configuration file
6c1a9d9e 30MODDIR = $(top_srcdir)
31PKGDEF = $(MODDIR)/libHLTbase.pkg
2d7ff710 32include $(top_srcdir)/libHLTbase.pkg
6c1a9d9e 33
34e89120 34# compiler flags
35AM_CPPFLAGS = -DMODULE=$(MODULE) \
36 $(foreach i, $(EINCLUDE), \
37 $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
38 $(foreach i, $(EINCLUDE), \
39 $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
40
b521659f 41# library sources
2d7ff710 42libHLTbase_la_SOURCES = $(MODULE_SRCS)
b521659f 43
2d7ff710 44# library headers
45pkginclude_HEADERS = $(MODULE_HDRS)
6c1a9d9e 46
2d7ff710 47# linker flags
fc455fba 48libHLTbase_la_LDFLAGS = -L@ROOTLIBDIR@ \
49 @ROOTLIBS@ \
c8500eef 50 @ALIHLTBASE_LIBS@ \
fc455fba 51 -version-info $(LIBRARY_VERSION)
b521659f 52
fa760045 53# automatic generation of data and time of library build
54COMPILE_INFO = HLTBaseCompileInfo.cxx
55
b521659f 56# set the file name for the generated root dictionary
57DICTCPP = HLTbase-DICT.cxx
fa760045 58nodist_libHLTbase_la_SOURCES = $(COMPILE_INFO) \
59 $(DICTCPP)
b521659f 60
db16520a 61CLEANFILES = $(COMPILE_INFO)
b521659f 62
63include $(top_srcdir)/make.dict
fa760045 64
65$(COMPILE_INFO): $(libHLTbase_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
66 @echo '//automatically generated compilation info' > $@
67 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
68 @echo '//add changes in Makefile.am' >> $@
179be78e 69 @echo 'void $(MODULE)CompileInfo(const char*& date, const char*& time)' >> $@
fa760045 70 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@