added license
split Makefile off into makefile/makedefs file and added auto detection of part type.