On Sun, Feb 28, 2010 at 3:08 AM, Eus
<[email protected]> wrote:
> In my Makefile, there are three executables.
>
> One needs -lsqlite3 and -lm and the other two don't.
>
> Specifying "LDLIBS := $(LDLIBS) -lsqlite3 -lm" at the beginning of the
> Makefile will also affect the other two executables.
>
> Yes, I know that somehow redundant -l* does not affect the programs that
> do not need them. But, it causes a processing overhead.
>
> Therefore, what is the best practice for this case? The specified method
> above or another better method that you might know?
In the GNU make info pages, in section 6, "How to Use Variables",
you'll find a listing of sub-sections about various subtopics. That
includes the entry:
---
* Target-specific:: Variable values can be defined on a per-target
basis.
---
Perhaps what's described there could help?
Philip Guenther
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make