# $Id$
# Makefile template for the Alice HLT framework
+# be aware of the two different meanings of 'MODULE'
+# 1. AliRoot classifies each detector and main sub-package as a module
+# so for all HLT library packages MODULE is equal HLT
+# 2. The HLT stand-alone build system knows about sub-modules
+# e.g. for libHLTbase, MODULE=HLTbase
MODULE = HLTbase
-AM_CPPFLAGS = -DMODULE=$(MODULE)
+if EN_HLT_UTIL
+UTIL_DIR=util
+endif
+
+SUBDIRS = . $(UTIL_DIR) interface HOMER test
+
+EXTRA_DIST =
+
+bin_SCRIPTS = setenv.sh setenv.csh
# library definition
lib_LTLIBRARIES = libHLTbase.la
+# version info for the library
+LIBRARY_VERSION = '9:0:0'
+
+# MODDIR is set by the AliRoot build system and denotes the topdir
+# of the module, we must set it since the package definition libHLTbase.pkg
+# includes another common configuration file
+MODDIR = $(top_srcdir)
+PKGDEF = $(MODDIR)/libHLTbase.pkg
+include $(top_srcdir)/libHLTbase.pkg
+
+# compiler flags
+AM_CPPFLAGS = -DMODULE=$(MODULE) \
+ $(foreach i, $(EINCLUDE), \
+ $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
+ $(foreach i, $(EINCLUDE), \
+ $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
+
# library sources
-libHLTbase_la_SOURCES = AliHLTComponent.cxx \
- AliHLTComponentHandler.cxx \
- AliHLTSystem.cxx \
- AliHLT_C_Component_WrapperInterface.cxx \
- AliHLTProcessor.cxx \
- AliHLTConfiguration.cxx \
- AliHLTLogging.cxx \
- AliHLTDataBuffer.cxx \
- AliHLTDataSource.cxx \
- AliHLTDataSink.cxx
-
-# class header files, the link definition for the root dictionary
-# will be created from the names of the header files
-CLASS_HDRS = AliHLTComponent.h \
- AliHLTComponentHandler.h \
- AliHLTSystem.h \
- AliHLTProcessor.h \
- AliHLTConfiguration.h \
- AliHLTConfigurationHandler.h \
- AliHLTTask.h \
- AliHLTLogging.h \
- AliHLTDataBuffer.h \
- AliHLTDataSource.h \
- AliHLTDataSink.h
-pkginclude_HEADERS = $(CLASS_HDRS) \
- AliHLTDataTypes.h \
- AliHLT_C_Component_WrapperInterface.h \
- AliHLTDefinitions.h
-
-noinst_HEADERS = AliHLTStdIncludes.h
+libHLTbase_la_SOURCES = $(MODULE_SRCS)
-# version info for the library
-libHLTbase_la_LDFLAGS = -version-info 1:0:0
+# library headers
+pkginclude_HEADERS = $(MODULE_HDRS)
+
+# linker flags
+libHLTbase_la_LDFLAGS = -L@ROOTLIBDIR@ \
+ @ROOTLIBS@ \
+ @ALIHLTBASE_LIBS@ \
+ -version-info $(LIBRARY_VERSION)
# automatic generation of data and time of library build
COMPILE_INFO = HLTBaseCompileInfo.cxx
nodist_libHLTbase_la_SOURCES = $(COMPILE_INFO) \
$(DICTCPP)
-CLEANFILES =
+CLEANFILES = $(COMPILE_INFO)
include $(top_srcdir)/make.dict
@echo '//automatically generated compilation info' > $@
@echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
@echo '//add changes in Makefile.am' >> $@
- @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
+ @echo 'void $(MODULE)CompileInfo(const char*& date, const char*& time)' >> $@
@echo '{date=__DATE__; time=__TIME__; return;}' >> $@
-
-# @echo '//automatically generated compilation info' > $@
-# @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
-# @echo '//add changes in Makefile.am' >> $@
-# @echo 'void __$(MODULE)_compile_info(const char** pDate, const char** pDate)' >> $@
-# @echo '{' >> $@
-# @echo 'if (pDate) *pDate=__DATE__;' >> $@
-# @echo 'if (pTime) *pTime=__TIME__;' >> $@
-# @echo '}' >> $@