switch from custom makefile to sdk 2