-# $NetBSD: Makefile,v 1.7 2008/08/29 00:02:22 gmcgarry Exp $
+# $NetBSD: Makefile,v 1.8 2009/07/26 03:05:52 dholland Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= pom
MAN= pom.6
-DPADD= ${LIBM}
-LDADD= -lm
+SRCS= pom.c
-.include <bsd.prog.mk>
+all: $(PROG)
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
-COPTS.pom.c+= -Wno-pointer-sign
-.endif
+$(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