Building an AMD file