# usage:
# 1. set variable CLASS_HDRS to the class header files
# 2. set DICTCPP variable to dictionary c++ file name
-# e.g. <module>-DICT.cxx
+# e.g. <module>-DICT.cxx (<module> replaced by your module name)
# 3. add the source file name to the list of generated sources
# nodist_lib<module>_la_SOURCES = $(DICTCPP)
-# 4. include this file from your Makefile(.am)
+# 4. add additional include files which are necessary for the compilation
+# of the dictionary files and which are not part of the CLASS_HDRS to
+# the DICTINCLUDE variable
+# 5. include this file from your Makefile(.am)
# e.g. include ../make.dict
#
# Author: Matthias.Richter@ift.uib.no
if test $@ ; then : ; else rm -f $< ; $(MAKE) $(MAKEFLAGS) $< ; fi
$(DICTCPP): $(DICTHEADERS:%=$(srcdir)/%) $(DICTDEF)
- if [ -x $(ROOTCINT) ]; then $(ROOTCINT) -f $@ -c $(CPPFLAGS) $(AM_CPPFLAGS) $(DEFS) $^ ; fi
+ if [ -x $(ROOTCINT) ]; then $(ROOTCINT) -f $@ -c $(CPPFLAGS) $(AM_CPPFLAGS) $(DEFS) $(foreach i, $(DICTINCLUDE), $(i)) $^ ; fi
$(DICTDEF): Makefile.am
@echo '//automatically generated ROOT DICT definition' > $@
@echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@