getcommand() added

changes to makefile