update makefile for macosx

update makefile for macosx. my first PR :D