Using "-l" libraries as targets

2015-06-01 Thread Luke Allardyce
I was trying to take advantage of make's library lookup to force a local copy of the lib source to build if it can't find one already installed when I came across the following. The Makefile below (assuming two source files foo.cpp and main.exe.cpp) forces main.exe to relink on every run main.exe

Re: Using "-l" libraries as targets

2015-06-01 Thread Luke Allardyce
That results in "make: *** No rule to make target '-lfoo', needed by 'main.exe'. Stop.", unless of course libfoo.a is already installed. On 1 June 2015 at 21:11, Paul Smith wrote: > On Mon, 2015-06-01 at 20:57 +0900, Luke Allardyce wrote: >> It's