adopted Makefile to #759