ide/Project: Updated makefile generation code in light of latest changes (ARCH_FLAGS...)