Rewrite the Makefile

Change to abrasive 1.0-dev branch