Add makefile snippet for C/CPP to compile static/dynamic library