]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/sim/Makefile.am
New production macros (Yves)
[u/mrichter/AliRoot.git] / HLT / sim / Makefile.am
index 980939d56621f20e335cffbd0ff2425f5856ff14..613167dc4973e5be2bd1d25781e91779da77bd92 100644 (file)
@@ -7,11 +7,6 @@ SUBDIRS                        =
 
 EXTRA_DIST                     = 
 
-AM_CPPFLAGS                    = -DMODULE=$(MODULE) \
-                                 $(PACKCXXFLAGS) \
-                                 @ALIROOT_CPPFLAGS@         \
-                                 -I$(top_srcdir)/BASE
-
 # library definition
 lib_LTLIBRARIES                        =  libHLTsim.la
 
@@ -25,6 +20,13 @@ MODDIR                               = $(top_srcdir)
 PKGDEF                         = $(MODDIR)/libHLTsim.pkg
 include $(top_srcdir)/libHLTsim.pkg
 
+# compiler flags
+AM_CPPFLAGS                    = -DMODULE=$(MODULE) \
+                                 $(PACKCXXFLAGS) \
+                                 $(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
 libHLTsim_la_SOURCES           = $(MODULE_SRCS)
 
@@ -52,5 +54,5 @@ $(COMPILE_INFO): $(libHLTsim_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS)
        @echo '//automatically generated compilation info' > $@
        @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
        @echo '//add changes in Makefile.am' >> $@
-       @echo 'extern "C" void CompileInfo( char*& date, char*& time)' >> $@
+       @echo 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@
        @echo '{date=__DATE__; time=__TIME__; return;}' >> $@