build: Fix Makefile.

Create correctly the obj directory.
code: Add debug prints.