Hi,

I have a  question: How in GNU make (I have 3.79.1) do I do something like:

#
TARGETS := foo bar
foo_OBJS := test.o bleah.o
bar_OBJS := bar.o dumb.o bleah.o

$(TARGETS): $($@_OBJS) whatever.a
    $(CC) $(LDFLAGS) $^ -o $@
#

I mean, to have each one of the targets referenced by $(TARGETS) to 
depend on it's own setting on targetname_OBJS. Is there a way to do this 
using GNU make?

I have too many targets to write and maintain an individual rule for 
each one.

Thanks,

Alexandre



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to