]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/make.dict
Structure to hold information about accumualted energy in each cell (crystall)
[u/mrichter/AliRoot.git] / HLT / make.dict
index 9dcb2c5b3ab41468a8e10fcf267bee9b6c887500..b9765ef2bcb096bcb0466e9480cd5e51dcc59de9 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,11 +25,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 $(AM_CPPFLAGS) $(DEFS) $^ ; fi
-$(DICTDEF): Makefile.am
+       if [ -x $(ROOTCINT) ]; then $(ROOTCINT) -f $@ -c $(CPPFLAGS) $(AM_CPPFLAGS) $(DEFS) $(foreach i, $(DICTINCLUDE), $(i)) $^ ; fi
+$(DICTDEF): Makefile.am $(PKGDEF)
        @echo '//automatically generated ROOT DICT definition' > $@
        @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
-       @echo '//add further class definitions to the DICTHEADERS variable in Makefile.am' >> $@
+       @echo '//add further class definitions to the CLASS_HDRS variable in Makefile.am' >> $@
        @echo '#ifdef __CINT__' >> $@
        @echo '#pragma link off all globals;' >> $@
        @echo '#pragma link off all classes;' >> $@