makefile improved. amr not working.