nnop / notes

notes
1 stars 0 forks source link

dependencies auto-generation #208

Open nnop opened 6 years ago

nnop commented 6 years ago

Add following lines:

-include $(OBJS:.o=.d)

%.o: %.c
  gcc -c $(CFLAGS) $*.c -o $*.o
  gcc -MM $(CFLAGS) $*.c > $*.d