I wanted to have a pretty way to debug my C code and found the Gist that this is a fork of. I'm kinda new with Makefiles, so I saw an oppurtunity to figure that out as well.
So how do you use this? Save all the files in this hierarchy:
├── Makefile
├── bin
├── obj
└── src
├── helloworld.c
├── mylib.c
└── mylib.h
If you want debug messages. Compile with:
> make DEBUG=y
otherwise it defaults to DEBUG := n
as defined in the Makefile