updated Makefile to build AMD-compatible