Mail Archives: djgpp/1999/05/18/09:40:38
On Tue, 18 May 1999, Ephraim Ben-Ishai wrote:
> I use gcc with the -MM switch to make dependencies. My dependency file comes
> out as follows:
>
> file1.o: file1.c dep1.h dep2.h dep3.h dep4.h .......
>
> my problem is as follows:
>
> all the dependency files contain the correct path to the however the target
> does not have the path just the name:
>
> how do I get the gcc to place the path infront of the target.
You don't.
Instead, add a VPATH or vpath directive to your Makefile that would cause
Make to search the correct directories for source files.
- Raw text -