Create makefile and rdef file