update makefile and add nullptr example