rebuild Makefile with conditions for different architectures