[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VPATH Object file search optimization
From: |
Paul D. Smith |
Subject: |
Re: VPATH Object file search optimization |
Date: |
Wed, 14 Jul 2004 11:27:15 -0400 |
%% "Ricky Venable" <address@hidden> writes:
rv> I've noticed that my makefile had a good deal of overhead looking
rv> for object files. For a clean build, my makefile searches through
rv> all of VPATH looking for the object files. I only store object
rv> files in one directory, so it is a waste of time for make to
rv> search all of the source directories for object files, when I know
rv> they are not in there. I hoped that the statement "vpath %.o"
rv> would clear the path for all .o files, but of course it still
rv> looks through all of the VPATH directories. The only solution I
rv> can think of is to not even use VPATH, but to use vpath for each
rv> of my file types. This of course looks more clumsy, so I am
rv> wondering if there is another way.
The only way to avoid the VPATH search, if VPATH is set, is to use
fully-qualified pathnames.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist