EXTRA_DIST =
-AM_CPPFLAGS = -DMODULE=$(MODULE)
-
bin_SCRIPTS = setenv.sh setenv.csh
# library definition
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 = $(MODULE_SRCS)
EXTRA_DIST =
-AM_CPPFLAGS = @ALIROOT_CPPFLAGS@ \
- -DMODULE=$(MODULE) \
- -I$(top_srcdir)/BASE
-
# library definition
lib_LTLIBRARIES = libAliHLTUtil.la
PKGDEF = $(MODDIR)/libAliHLTUtil.pkg
include $(top_srcdir)/libAliHLTUtil.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
libAliHLTUtil_la_SOURCES = $(MODULE_SRCS)
noinst_HEADERS = $(MODULE_HDRS)
# compilation flags of the library
-AM_CPPFLAGS = @HLTBASE_CPPFLAGS@ \
- @ALIROOT_CPPFLAGS@ \
+AM_CPPFLAGS = -DMODULE=$(MODULE) \
@ROOTCFLAGS@ \
- -I$(top_srcdir)/BASE \
- -I$(top_srcdir)/MUON \
- -I$(top_srcdir)/MUON/OnlineAnalysis \
- -I$(top_srcdir)/MUON/OfflineInterface \
- -I$(ALICE_ROOT)/MUON \
- -I$(ALICE_ROOT)/STEER \
- -I$(ALICE_ROOT)/RAW
+ $(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)/|"))
# linking flags of the library
libAliHLTMUON_la_LDFLAGS = -L@ROOTLIBDIR@ \
PKGDEF = $(MODDIR)/libAliHLTSample.pkg
include $(top_srcdir)/libAliHLTSample.pkg
+
# library definition
# The lib_LTLIBRARIES variable is a fixed variable of the autotools build
# system. All libraries defined by the Makefile template have to be added
# compilation flags of the library
# This is the place to add further include directories if you are
-# using external modules. The AliRoot, ROOT and HLT base directories
+# using external modules. The AliRoot/STEER and ROOT directories
# are the default include directories.
-AM_CPPFLAGS = @HLTBASE_CPPFLAGS@ \
+# Include paths within the HLT modules are automatically taken from the
+# EINCLUDE variable of the pkg definition
+# other AliRoot dependencies might need to added
+AM_CPPFLAGS = -DMODULE=$(MODULE) \
+ @HLTBASE_CPPFLAGS@ \
@ALIROOT_CPPFLAGS@ \
- @ROOTCFLAGS@
+ @ROOTCFLAGS@ \
+ $(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)/|"))
# linking flags of the library
# This is the place to add further libraries if you are
EXTRA_DIST =
-AM_CPPFLAGS = @ALIROOT_CPPFLAGS@ \
- -I$(srcdir) \
- -I$(srcdir)/tracking \
- -I$(top_srcdir)/BASE \
- -I$(top_srcdir)/BASE/util
-
# generation of the TPC Pad mapping tables for the
# AliHLTTPCDigitReaderRaw reader
if USE_TPC_MAPPING
PKGDEF = $(MODDIR)/libAliHLTTPC.pkg
include $(top_srcdir)/libAliHLTTPC.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
libAliHLTTPC_la_SOURCES = $(MODULE_SRCS)
PACKCFLAGS := ${HLTCLFAGS}
PACKDCXXFLAGS:= ${HLTDCXXFLAGS}
-EINCLUDE := HLT/TPCLib HLT/TPCLib/tracking HLT/BASE HLT/BASE/util TPC RAW
+EINCLUDE := HLT/TPCLib HLT/TPCLib/tracking HLT/BASE HLT/BASE/util TPC RAW STEER