Rewrite Makefile for put into different directory based on CPU arch
Remove compiler warning uncheck return value of fgets