1. Add a Makefile
2. Fix the typo: "deamon" ==> "daemon"
3. Change the ways to parse command-line-argument, using getopt() to make code more consise and readable, without affecting its functionality.

Signed-off-by: Siyuan Hua <jonnyhsy@foxmail.com>