Makefile improvement and dealt with warning