CFLAGS=-Wall -Wstrict-prototypes -O2 -g -ggdb -I../tclient
CPPFLAGS=
SRCS=client.c comm_client.c tetribot.c tetris.c log.c

all: tetribot

comm_client.o: ../tclient/tcommon.h

tetribot: tetribot.o client.o comm_client.o ../tclient/tcommon.o tetris.o log.o
	$(CC) $(CFLAGS) -o tetribot $^

depend:
	makedepend -I/usr/include-- $(CFLAGS) -- $(SRCS) > /dev/null 2>&1

clean:
	rm -rf *.o tetribot

.PHONY: clean
