add c.tmpl and improve Makefile