build: compile protocol.c

Add make config to compile protocol.c

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>