#These should be changed to fit your system
CC = g++
GTKCONFIG = /usr/bin/gtk-config 

#These shouldn't
FLAGS = -O2 -Wall
GTKFLAGS = `$(GTKCONFIG) --cflags` `$(GTKCONFIG) --libs`


SRC = Square.cc Border.cc othello.cc playertype.cc Player.cc \
	Local_Player.cc AI_one_Player.cc AI_two_Player.cc \
	Network_Player.cc

OBJ = $(SRC:%.cc=%.o)


%.o	: %.cc
	$(CC) $(FLAGS) -c $<

all	: othello

othello	: $(OBJ)
	$(CC) -g $(OBJ) -o othello $(FLAGS) $(GTKFLAGS)

clean	: FORCE
	rm -f *.o *~ *.bak .dep othello gmon.out

depend	: FORCE
	$(CC) -MM $(FLAGS) $(SRC) >.dep

.dep	:
	$(CC) -MM $(FLAGS) $(SRC) >.dep

FORCE		:

include .dep
