CC=gcc

all: test_fifo full_fifo

test_fifo: test_fifo.o err.o
	$(CC) -Wall -o test_fifo test_fifo.o err.o

full_fifo: full_fifo.o err.o
	$(CC) -Wall -o full_fifo full_fifo.o err.o

full_fifo.o: full_fifo.c  err.h fifo.h
	$(CC) -Wall -c full_fifo.c

test_fifo.o: test_fifo.c err.h fifo.h
	$(CC) -Wall -c test_fifo.c

err.o: err.c err.h
	$(CC) -Wall -c err.c

clean:
	rm -f *.o test_fifo full_fifo
 
