[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Weird question
From: |
Alexandre P. Nunes |
Subject: |
Weird question |
Date: |
Wed, 20 Mar 2002 14:49:14 -0300 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020310 |
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): $(address@hidden) 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
- Weird question,
Alexandre P. Nunes <=