On 2009-09-16 09:21Z, Axel Etzold wrote: > > I have doenloaded a (quite large GNU-licensed) software package that > implements a script language for some very specific calculations. > This software makes use of all sorts of libraries written in C for > arbitrary precision calculations, export to Gnuplot etc. > > It is installed using the usual make-make install process on Linux. > > Is there a way I could change the Makefile such that profiling > (http://en.wikipedia.org/wiki/Profiling_(computer_programming)) > can be enabled ?
This isn't really a gnu make question, but, assuming your compiler is gcc, add '-pg' to CFLAGS and LDFLAGS and rebuild from scratch, e.g.: CFLAGS='-pg' LDFLAGS='-pg' ./configure && make then use the profiler 'gprof', which is part of gnu binutils. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
