# CFLAGS = -g -DDEBUG
CFLAGS = -g -D_GNU_SOURCE -DCHATINPORT=17331 -DCHATOUTPORT=18331

chatter:	Main.o InputFromUser.o OutputToUser.o OutputRecept.o InputRecept.o
	gcc $(CFLAGS) -o chatter Main.o InputFromUser.o OutputToUser.o OutputRecept.o InputRecept.o  -lpthread

Main.o:	Main.c chat.h
	gcc -c $(CFLAGS) Main.c

InputFromUser.o:	InputFromUser.c chat.h
	gcc -c $(CFLAGS) InputFromUser.c

OutputToUser.o:	OutputToUser.c chat.h
	gcc -c $(CFLAGS) OutputToUser.c

InputRecept.o:	InputRecept.c chat.h
	gcc -c $(CFLAGS) InputRecept.c

OutputRecept.o:	OutputRecept.c chat.h
	gcc -c $(CFLAGS) OutputRecept.c

clean:
	rm -f chatter *.o *~
