Added comfort: Linkdef files on the fly
Manually writing those linkdef files for rootcint is a PITA. With a new utility “gencintlinkdef.pl”, they actually become Makefile targets.
The idea is that you tag functions and classes which you want to be accessible from CINT (typically, only very few of many), with a comment (“//++CINT”) which the perl script can search for.
// only to show the recipe
class rootcintclass { //++CINT make it known to cint
class internal_class { //this one not
int cint_function (const int ii); //++CINT this one will be known
int function (const int ii); // this one not.
[purschke@phoncsa]$ gencintlinkdef.pl dummy.h
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class rootcintclass;
#pragma link C++ function cint_function;
$(CINTGEN) $(HDRFILES) > $@