]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/make.dict
- version HLT-v0-4 ready
[u/mrichter/AliRoot.git] / HLT / make.dict
index f3161b442b7c03fc2d5d67655d2d8b857c0295aa..a3aa7ec6b30bb20c18055f5ed6cba04803ccdebe 100644 (file)
@@ -3,10 +3,13 @@
 # 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
@@ -22,7 +25,7 @@ $(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) $^ ; 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 !!!' >> $@