On Sun, Nov 10, 2002 at 09:44:35PM +0000, Philip Armstrong wrote:
> What you need is a set of make rules like the following:

You don't.

> include $(patsubst %.o:%.dep,$(OBJS))

What do you think the "-include $(wildcard *.d) dummy" is for?

> $(BUILD)/%.d : %.c
>            gcc -MM -MG $< | sed -e "1s@^\([^ ]*\)\.o:@$(BUILD)/\1.d $(BUILD)/\1.o:@" 
>> $(BUILD)/$(@F)

What do you think the -MD flag to gcc is for?

Robert

-- 
Robert Schiele                  Tel.: +49-621-181-2517
Dipl.-Wirtsch.informatiker      mailto:rschiele@;uni-mannheim.de

Attachment: msg06980/pgp00000.pgp
Description: PGP signature

Reply via email to