add makefile for cplusplus version