CC = /usr/bin/gcc
LIBS = -ltermcap

stacker: stack.o move.o
	$(CC) $(LIBS) othello.c stack.o move.o -o othello

stack.o: stack.h
	@$(CC) -c stack.c -o stack.o

move.o: move.h
	@$(CC) -c move.c -o move.o

clean:
	@find . -name "*~" -print |xargs -r rm
	@find . -name "*.o" -print |xargs -r rm

dist: clean
	@find . -name "othello" -print |xargs -r rm
