rewrite makefile to add debug info