rework makefile subarch logic to allow shared files