Compilation with srcdir != builddir

David Faure faure at kde.org
Fri Mar 11 15:27:53 GMT 2005


On Friday 11 March 2005 16:23, Luciano Montanaro wrote:
> In this case, shouldn't the INCLUDE line in kjs/Makefile.am
> 
> INCLUDES = -I$(top_srcdir) $(PCRECFLAGS) $(all_includes)
> 
> read 
> 
> INCLUDES = -I$(top_srcdir) -I$(top_builddir) $(PCRECFLAGS) $(all_includes)
> 
> instead? Otherwise, the generated global.h file will not be found.
> I've not tested with kdelibs sources, actually, I noticed this while 
> experimenting with kdenox.

top_builddir is also known as ".", and -I. is automatically part of $(all_includes).
This works fine in kdelibs, so this must be a kdenox bug.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list