move platform.mk out from makefile