Split into dev and rel builds. Added makefile.