update Makefiles, fix some warnings, remove old code
compile firmware into code