Add copyright header
Support OPTFLAGS in Makefile