summaryrefslogtreecommitdiffstats
path: root/worms/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'worms/Makefile')
-rw-r--r--worms/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/worms/Makefile b/worms/Makefile
index eb6681a1..f96a8bbd 100644
--- a/worms/Makefile
+++ b/worms/Makefile
@@ -3,7 +3,19 @@
PROG= worms
MAN= worms.6
-DPADD= ${LIBCURSES} ${LIBTERMINFO}
-LDADD= -lcurses -lterminfo
+SRCS= worms.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