
CC=	gcc
CFLAGS=	-L/usr/athena/lib/ -I/usr/athena/include/ -Drsaix
XLIBS= -lX11 -lbsd
# 

all: xbugchess daemon

xbugchess: socks.o clocks.o table.o legalmoves.o xbugchess.o
	$(CC) $(CFLAGS) socks.o clocks.o table.o legalmoves.o xbugchess.o -o xbugchess $(XLIBS)

testchess: socks.o 
	$(CC) $(CFLAGS) -DUSEGETS -DDEBUG socks.o clocks.c xbugchess.c -o testchess $(XLIBS)

game: socks.o game.o
	$(CC) $(CFLAGS) socks.o game.o -o game

daemon: socks.o daemon.o
	$(CC) $(CFLAGS) daemon.o socks.o -o daemon

testclock: 
	$(CC) $(CFLAGS) -DUSEGETS -DDEBUG clocks.c testclock.c -o testclock $(XLIBS)

depend:
	makedepend -I/usr/athena/include -- xbugchess.c 

saber:
	#load socks.c clocks.c table.c legalmoves.c xbugchess.c /usr/lib/libX11.a

# DO NOT DELETE THIS LINE -- make depend depends on it.

xbugchess.o: xbugchess.c xbugchess.h /usr/include/stdio.h
xbugchess.o: /usr/include/standards.h /usr/athena/include/X11/Xlib.h
xbugchess.o: /usr/include/sys/types.h /usr/athena/include/X11/X.h
xbugchess.o: /usr/athena/include/X11/Xfuncproto.h
xbugchess.o: /usr/athena/include/X11/Xosdefs.h /usr/include/stddef.h
xbugchess.o: /usr/athena/include/X11/Xutil.h /usr/athena/include/X11/Xos.h
xbugchess.o: /usr/include/string.h /usr/include/fcntl.h /usr/include/unistd.h
xbugchess.o: /usr/include/sys/access.h /usr/include/sys/time.h
xbugchess.o: /usr/athena/include/X11/Xresource.h /usr/include/errno.h
xbugchess.o: /usr/include/sys/errno.h /usr/include/signal.h
xbugchess.o: /usr/include/sys/signal.h /usr/include/sys/socket.h
xbugchess.o: /usr/include/sys/wait.h /usr/include/netinet/in.h
xbugchess.o: /usr/include/net/nh.h /usr/include/sys/machine.h
xbugchess.o: /usr/include/netdb.h /usr/include/sys/timeb.h blackstip cursor
xbugchess.o: wait table.h clocks.h bitmaps/pawn_piece bitmaps/rook_piece
xbugchess.o: bitmaps/knight_piece bitmaps/bishop_piece bitmaps/queen_piece
xbugchess.o: bitmaps/king_piece bitmaps/qmutant_piece bitmaps/pawn_out
xbugchess.o: bitmaps/rook_out bitmaps/knight_out bitmaps/bishop_out
xbugchess.o: bitmaps/queen_out bitmaps/king_out bitmaps/qmutant_out
