I have added support to the Makefile for a debug build. I am not a master of Makefiles, so there may be a better way to do it, I'm not for sure. See attached patch.
For debug builds type:$ make debug
Keep in mind for a full debug build, you will need to do a 'make clean' first.