]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/SampleLib/Makefile.am
filter out some of the -D flags as rootcint has a limitation to 1024 charakters
[u/mrichter/AliRoot.git] / HLT / SampleLib / Makefile.am
index 7851e35d26af3c0fa15275badb62ca723b5e2148..96ea66b68641c411f3d1afb332c3645507838183 100644 (file)
@@ -107,7 +107,11 @@ $(DICTCPP:.cxx=.h): $(DICTCPP)
        if test $@ ; then : ; else rm -f $< ; $(MAKE) $(MAKEFLAGS) $< ; fi 
 
 $(DICTCPP): $(DICTHEADERS:%=$(srcdir)/%) $(DICTDEF)
-       if [ -x $(ROOTCINT) ]; then $(ROOTCINT) -f $@ -c $(CPPFLAGS) $(AM_CPPFLAGS) $(DEFS) $(foreach i, $(DICTINCLUDE), $(i)) $^ ; fi
+       if [ -x $(ROOTCINT) ]; then $(ROOTCINT) -f $@ -c $(CPPFLAGS) $(AM_CPPFLAGS) \
+        `for i in $(DEFS);do case $$i in $(foreach def, $(DEFFILTER), $(def) |) -DVERSION*);; *) echo -n " $$i";; esac; done` \
+        $(foreach i, $(DICTINCLUDE), $(i)) \
+        $^ ; fi
+
 $(DICTDEF): Makefile.am $(PKGDEF)
        @echo '//automatically generated ROOT DICT definition' > $@
        @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@