>  dj> But the $^ expands into full paths.

> You have two choices:
>
> 1) Use the "-lfoo" syntax on the prerequisites list, and make sure that
>    the directory containing the libraries is listed via VPATH or vpath.

This doesn't do anything, and I have tried this approach.  The -"-lfoo"
will expand out into the full path name and be included in the command
line.  Ie, I've got this test makefile:
   VPATH=zzz
   test: a.o b.o -lfoo -lbar ; @echo $^

And it prints out "a.o b.o zzz/libfoo.a zzz/libbar.a".

Darin Johnson



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to