Hacker News new | ask | show | jobs
by sigjuice 2695 days ago
This tiny Makefile should convey the idea.

    CFLAGS=-MD -MP

    prog: <list of .o files>
        $(CC) -o $@ $^
        
    -include *.d