[ROOT] To add a few lines to Makefile

From: Victor Perevoztchikov (perev@bnl.gov)
Date: Sun May 26 2002 - 02:03:43 MEST


Hi Fons,
Proposal: if to add to $ROOTSYS/Makefile lines:
showCXX:
 @echo "$(CXX)"
showCXXFLAGS:
 @echo "$(CXXFLAGS)"
showLD:
 @echo "$(LD)"
showLDFLAGS:
showALLLIBS:
 @echo "$(ROOTLIBS) $(RINTLIBS) $(RINTLIBS) $(CINTLIBS) $(CILIBS) $(XLIBS) $(SYSLIBS)"

etc.

then   
gmake showCXXFLAGS
-pipe -Wall -Woverloaded-virtual -fPIC -Iinclude  -D_REENTRANT

As a result in makefile for application which uses ROOT, line:

CXXFLAGS := $(shell gmake -C $(ROOTSYS) -f Makefile)

Then CXXFLAGS will be defined exactly as it was used in ROOT.
So any modification of ROOT flags will be immediately used in user application.
The existing root-config utility provides wrong or outdated info. Evidently it is not easy to support it.
But proposed modification of Makefile garanteed correctness of information.

What is your opinion?

Victor










Victor M. Perevoztchikov   perev@bnl.gov         
Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000
tel office : 631-344-7894; fax 631-344-4206; home 631-345-2690



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:53 MET