X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/65c59fa0ed298c0bb306d7b6f81bc9d14cefa5b8..df6504d6853de003e509d62fd5f7e35a625d4e1f:/dab/Makefile diff --git a/dab/Makefile b/dab/Makefile index d11f7d52..8525f907 100644 --- a/dab/Makefile +++ b/dab/Makefile @@ -1,12 +1,21 @@ -# $NetBSD: Makefile,v 1.2 2003/12/27 01:16:55 christos Exp $ - -WARNS=2 -DPADD+=${LIBSTDCPP} ${LIBCURSES} ${LIBTERMCAP} ${LIBM} -LDADD+=-lstdc++ -lcurses -ltermcap -lm +# $NetBSD: Makefile,v 1.7 2010/02/03 15:34:38 roy Exp $ PROG=dab MAN=dab.6 SRCS=algor.cc board.cc main.cc human.cc box.cc player.cc gamescreen.cc \ ttyscrn.cc random.cc -.include +all: $(PROG) + +$(PROG): $(SRCS) + $(CXX) $(CXXFLAGS) -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