Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SRCS = a.c
- depend: .depend
- .depend: $(SRCS)
- rm -f ./.depend
- $(CC) $(CFLAGS) -MM $^ -MF ./.depend;
- include .depend
- # -MM outputs source file header dependecies, excluding system headers;
- # the output syntax is the preprocessor syntax that make can use to define
- # all source file dependencies, and that is why it's included at the end
- # -MF specifies the file to output to when used with -MM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement