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

#These shouldn't
CFLAGS = -O2 `$(GTKCONFIG) --cflags`
LDFLAGS = `$(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) $(CFLAGS) -c $<

all	: othello

othello	: $(OBJ)
	$(CC) -g $(OBJ) -o othello $(LDFLAGS)

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

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

FORCE		:



Square.o: Square.cc Square.h
Border.o: Border.cc Border.h Square.h
othello.o: othello.cc othello.h Player.h Square.h Border.h \
 playertype.h
playertype.o: playertype.cc playertype.h
Player.o: Player.cc Player.h othello.h
Local_Player.o: Local_Player.cc Local_Player.h Player.h playertype.h \
 othello.h
AI_one_Player.o: AI_one_Player.cc AI_one_Player.h Player.h \
 playertype.h othello.h
AI_two_Player.o: AI_two_Player.cc AI_two_Player.h Player.h \
 playertype.h othello.h Square.h
Network_Player.o: Network_Player.cc Network_Player.h Player.h \
 playertype.h othello.h
