-# @(#)Makefile 5.2 (Berkeley) 4/8/91
+# $NetBSD: Makefile,v 1.7 2002/09/18 06:16:40 lukem Exp $
+# @(#)Makefile 8.1 (Berkeley) 5/31/93
-PROG= cfscores
-CFLAGS+=-I${.CURDIR}/../canfield
-NOMAN= noman
-HIDEGAME=hidegame
+PROG= cfscores
+SRCS= cfscores.c
-.include "../../Makefile.inc"
-.include <bsd.prog.mk>
+all: $(PROG)
+
+$(PROG): $(SRCS)
+ $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -I../canfield -I$(ROOT)
+ $(STRIP) $(PROG)
+
+install: $(PROG) $(MAN)
+ $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
+
+clean:
+ rm -f $(CLEANFILES) $(PROG)
+
+.PHONY: all clean install