[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to add specified lib path in the dependency file
From: |
sailor |
Subject: |
Re: How to add specified lib path in the dependency file |
Date: |
30 Dec 2004 04:09:14 -0800 |
User-agent: |
G2/0.2 |
The problem is ever solved by myself, the script as follows:
$(LIBDIR)/%.o : %.c
@ $(RM) $(subst /,$(DIRCHAR),$@)
$(MKDIR) $(subst /,$(DIRCHAR),$(LIBDIR))
$(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(OPTION_OBJECT_ONLY)
$(OPTION_OBJECT_NAME)$@ $<
@ sed -e s/$(@F)/$(shell (echo $(LIBDIR)\$(@F) | sed -e s/\\/\\\\/g -e
"s/ //g"))/ $(patsubst %.o,%.d,$(@F)) > $(patsubst %.o,%.d,$(@F)).tmp
@ $(MV) $(patsubst %.o,%.d,$(@F)).tmp $(patsubst %.o,%.d,$(@F))
but even I include the dependency file, make do nothing even any
depended file is changed.
So confused,my god~@#$!