add agent.c Makefile