Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. SRCS = a.c
  2.  
  3. depend: .depend
  4.  
  5. .depend: $(SRCS)
  6. rm -f ./.depend
  7. $(CC) $(CFLAGS) -MM $^ -MF ./.depend;
  8.  
  9. include .depend
  10.  
  11.  
  12. # -MM outputs source file header dependecies, excluding system headers;
  13. # the output syntax is the preprocessor syntax that make can use to define
  14. # all source file dependencies, and that is why it's included at the end
  15.  
  16. # -MF specifies the file to output to when used with -MM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement