update Makefile

add header.
link main with lib.