-# @(#)Makefile 5.1 (Berkeley) 5/11/90
+# $NetBSD: Makefile,v 1.8 2009/07/26 03:05:52 dholland Exp $
+# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= pom
-MAN6= pom.0
-DPADD= ${LIBM}
-LDADD= -lm
+MAN= pom.6
+SRCS= pom.c
-.include <bsd.prog.mk>
+all: $(PROG)
+
+$(PROG): $(SRCS)
+ $(CC) $(CFLAGS) -o $(PROG) $(SRCS)
+ $(STRIP) $(PROG)
+
+install: $(PROG) $(MAN)
+ $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
+ $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
+
+clean:
+ rm -f $(CLEANFILES) $(PROG)
+
+.PHONY: all clean install