[編譯環境][make]自動生成依賴關係

sources = hello.c include $(sources:.c=.d) %.d: %.c @set -e; rm -f $@; \ $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ rm -f $@.$$$$ sour
相關文章
相關標籤/搜索