#	@(#)Makefile	5.3 (Berkeley) 5/11/90
#	edited for normal-type make and Linux by Jim Winstead Jr.

PROG=	worms
SRC=	worms.c
MAN=	worms.6
MAN_F=	worms.6f

gamedir	=/usr/local/games
man6dir	=/usr/man/man6
cat6dir =/usr/man/cat6

CC=	gcc -O
CFLAGS=	-DUSG -Dlinux -DCOLOR
NROFF=	cawf

all:	$(PROG)

worms:	$(SRC)
	$(CC) $(CFLAGS) -o worms worms.c -ltermcap

worms.6f:	worms.6
	$(NROFF) -man worms.6 > worms.6f

install: $(PROG) $(MAN) $(MAN_F)
	install -s $(PROG) $(gamedir)
	install $(MAN) $(man6dir)
	install $(MAN_F) $(cat6dir)/$(MAN)

