X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/83d87cc2642c6958b99e98c44891b486b944c6fe..HEAD:/gomoku/Makefile diff --git a/gomoku/Makefile b/gomoku/Makefile index c4f4ea1c..7c1479f6 100644 --- a/gomoku/Makefile +++ b/gomoku/Makefile @@ -1,11 +1,21 @@ -# $NetBSD: Makefile,v 1.2 1996/12/28 18:56:57 tls Exp $ +# $NetBSD: Makefile,v 1.5 2010/02/06 23:45:25 he Exp $ # @(#)Makefile 8.1 (Berkeley) 7/24/94 PROG= gomoku SRCS= bdinit.c bdisp.c main.c makemove.c pickmove.c stoc.c MAN= gomoku.6 -DPADD= ${LIBCURSES} ${LIBTERM} -LDADD= -lcurses -ltermlib -HIDEGAME=hidegame -.include +all: $(PROG) + +$(PROG): $(SRCS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw + $(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