modify makefile for different arch & os