enhanced HLT build system: EINCLUDE from pkg definition determines include paths
[u/mrichter/AliRoot.git] / HLT / MUON / Makefile.am
index 4463a47dab59e49b7b5829156ee44ea624137822..a44d7a386f2baa6b4bbfd0b0dbe86d8a184502e8 100644 (file)
@@ -22,16 +22,12 @@ libAliHLTMUON_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@ \