add common Makefile for c/c++