Attached is an update version which doesn't use VPATH and supports both in-tree and out-of-tree builds. One way to improve this even further would be to completely avoid the mkasmdep and instead include the architecture specific object files into the list of objects directly (filtering out the generic versions). Would that be a preferred way?