]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/BASE/Makefile.am
merged branch tag HLT-v0-7-Rev00 to HEAD
[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
15SUBDIRS = . $(UTIL_DIR) interface
242bb794 16
9ce4bf4a 17EXTRA_DIST = HLTbaseLinkDef.h
18
a742f6f8 19AM_CPPFLAGS = -DMODULE=$(MODULE)
b521659f 20
53feaef5 21bin_SCRIPTS = setenv.sh setenv.csh
22
b521659f 23# library definition
24lib_LTLIBRARIES = libHLTbase.la
25
2d7ff710 26# version info for the library
5eb989a6 27LIBRARY_VERSION = '4:0:1'
2d7ff710 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
6c1a9d9e 32MODDIR = $(top_srcdir)
33PKGDEF = $(MODDIR)/libHLTbase.pkg
2d7ff710 34include $(top_srcdir)/libHLTbase.pkg
6c1a9d9e 35
b521659f 36# library sources
2d7ff710 37libHLTbase_la_SOURCES = $(MODULE_SRCS)
b521659f 38
2d7ff710 39# library headers
40pkginclude_HEADERS = $(MODULE_HDRS)
6c1a9d9e 41
2d7ff710 42# linker flags
fc455fba 43libHLTbase_la_LDFLAGS = -L@ROOTLIBDIR@ \
44 @ROOTLIBS@ \
fc455fba 45 -version-info $(LIBRARY_VERSION)
b521659f 46
fa760045 47# automatic generation of data and time of library build
48COMPILE_INFO = HLTBaseCompileInfo.cxx
49
b521659f 50# set the file name for the generated root dictionary
51DICTCPP = HLTbase-DICT.cxx
fa760045 52nodist_libHLTbase_la_SOURCES = $(COMPILE_INFO) \
53 $(DICTCPP)
b521659f 54
db16520a 55CLEANFILES = $(COMPILE_INFO)
b521659f 56
57include $(top_srcdir)/make.dict
fa760045 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;}' >> $@