On Mon, 19 May 2008, Paul Smith wrote:
> The best practice I've seen used everywhere (and what I use
> personally) is to conditionalize all the variables with the target
> names. So, you can do something like:
>
> TARGETLIB = fubar.so barfoo.so
>
> fobar.so_SRCS = src1.c src2.c
>
> barfoo.so_SRCS = src3.cpp src4.c
>
> etc. Now in your rules to build things, conditionalize all the
> variables with $@ like this:
>
> $(CC) ... $([EMAIL PROTECTED])
>
> anyway, you get the idea. Sometimes it's better to use $* instead;
> it really depends on what you're doing.
ah, yes, this will work nicely, thanks.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make