печально быть антисоциальным - November 6th, 2013

Nov. 6th, 2013

07:39 pm - dažreiz kaitina, ka murgs ir iebūvēts sistēmas pamatos

"These dependency files are then all included by the makefile, to obtain dependency info. An implicit rule is provided that describes how the dependency files are to be created. In short, something like this:

 
SRCS = foo.c bar.c ...

  %.P : %.c
          $(MAKEDEPEND)
          @sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' < $*.d > $@; \
             rm -f $*.d; [ -s $@ ] || rm -f $@

  include $(SRCS:.c=.P)
"
http://mad-scientist.net/make/autodep.html

(3 comments | Leave a comment)
Previous day (Calendar) Next day