modifiing fifo.c and adding the related rule in the makefile