SHELL   = /bin/sh
CC      = gcc

# Add the flag -DCOMPILE_GCC if you are compiling with gcc instead of cc.
# For BSD systems, use -DBSD; for System V, use -DUSG.
#
# Add the flag -DCOMPRESSED_DICT if your dictionary file is compressed.
# Add the flag -DPRINT_CPU_TILES if you want the computer players' tiles to
#   be displayed at all times.
# Add the flag -DDBLSIZE_BOARD if you want the board width to be 29 characters;
#   the default width is 15 characters.

CFLAGS  = -Wall -O2 -DCOMPILE_GCC -DUSG -ggdb

LIBS    = -lcurses -ltermcap

acbot: cmove.o misc.o init.o init2.o botmain.o score.o hook.o socket.o state.o botutil1.o botutil2.o botutil3.o personality.o fowc.o fowcb.o
	$(CC) botmain.o cmove.o misc.o init.o init2.o score.o hook.o state.o socket.o botutil1.o botutil2.o botutil3.o personality.o fowc.o fowcb.o -o $@ $(LIBS)
critique: critio.o critlist.o critbl.o critmain.o critbatch.o cmove.o misc.o init.o score.o hook.o fowc.o
	$(CC) critio.o critlist.o critbl.o critmain.o critbatch.o cmove.o misc.o init.o score.o hook.o fowc.o -o critique $(LIBS)

cmove.o init.o init2.o misc.o score.o botmain.o hook.o state.o socket.o botutil1.o botutil2.o botutil3.o personality.o fowc.o fowcb.o critmain.o critio.o critbl.o critlist.o critbatch.o: funddefs.h globals.h proto.h
socket.o state.o misc.o botutil1.o botutil2.o botutil3.o botmain.o: socket.h
init.o botmain.o hook.o botutil1.o botutil2.o botutil3.o state.o personality.o fowc.o: botutil.h
init.o fowc.o fowcb.o critmain.o: fowc.h
critio.o critlist.o critbl.o critmain.o critbatch.o fowc.o: critique.h
