-# from: @(#)Makefile 5.3 (Berkeley) 5/11/90
-# $Id: Makefile,v 1.3 1993/08/01 05:44:36 mycroft Exp $
+# $NetBSD: Makefile,v 1.11 2010/02/06 23:45:25 he Exp $
+# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= rain
-MAN6= rain.0
-DPADD= ${LIBTERM}
-LDADD= -ltermcap
+MAN= rain.6
+SRCS= rain.c
-.include <bsd.prog.mk>
+all: $(PROG)
+
+$(PROG): $(SRCS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw
+ $(STRIP) $(PROG)
+
+install: $(PROG) $(MAN)
+ $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/games/$(PROG)
+ $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN)
+
+clean:
+ rm -f $(CLEANFILES) $(PROG)
+
+.PHONY: all clean install