update makefile to work with C/C++ mix code