################################################################################
#                                                                              #
#                               Othello Makefile                               #
#                               ----------------                               #
#                                                                              #
# Written by: John Thornley, Computer Science Dept., Caltech.                  #
# Last modified: Monday 23rd December 1996.                                    #
#                                                                              #
################################################################################

CC = gcc
CCFLAGS =-O3

LD = gcc
LDFLAGS =

all: single game

single: othello.o minimax.o single.o
	$(LD) $(LDFLAGS) -o single othello.o minimax.o single.o

game: othello.o minimax.o game.o 
	$(LD) $(LDFLAGS) -o game othello.o minimax.o game.o

othello.o: othello.c boolean.h othello.h
	$(CC) $(CCFLAGS) -c othello.c

minimax.o: minimax.c boolean.h othello.h minimax.h
	$(CC) $(CCFLAGS) -c minimax.c

single.o: single.c boolean.h othello.h minimax.h
	$(CC) $(CCFLAGS) -c single.c

game.o: game.c boolean.h othello.h minimax.h
	$(CC) $(CCFLAGS) -c game.c

clean:
	@rm -f *.o core *~
################################################################################
