
CC = g++

CFLAGS = -Wall -O2

ttt_test: tictactoe.o ttt_test.o
	$(CC) ttt_test.o tictactoe.o -o ttt_test `pkg-config --libs gfcui-2.0`

ttt_test.o: ttt_test.cc tictactoe.hh
	$(CC) -c ttt_test.cc -o ttt_test.o $(CFLAGS) `pkg-config gfcui-2.0 --cflags`

tictactoe.o: tictactoe.cc tictactoe.hh
	$(CC) -c tictactoe.cc -o tictactoe.o $(CFLAGS) `pkg-config gfcui-2.0 --cflags`

clean: 
	rm -f *.o ttt_test
