add BINDIR to and use .PHONY in Makefile
fix makefile and xrc