]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - cribbage/Makefile
Fix merge conflicts
[bsdgames-darwin.git] / cribbage / Makefile
index 40abb34b4678bb3755e95ad1c164862444c50bf0..45f9c718ab822cdec6497f437aebdf8f6f1d2786 100644 (file)
@@ -1,15 +1,24 @@
-#      $NetBSD: Makefile,v 1.8 1997/11/20 00:12:34 mrg Exp $
+#      $NetBSD: Makefile,v 1.13 2010/02/06 23:45:25 he Exp $
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
 PROG=  cribbage
-DPADD= ${LIBCURSES} ${LIBTERM}
-LDADD= -lcurses -ltermlib
 SRCS=  extern.c crib.c cards.c instr.c io.c score.c support.c
 MAN=   cribbage.6
-HIDEGAME=hidegame
-SETGIDGAME=yes
 FILES= cribbage.n
 FILESNAME=cribbage.instr
-FILESDIR=/usr/share/games
 
-.include <bsd.prog.mk>
+all: $(PROG)
+
+$(PROG): $(SRCS)
+       $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw -I$(ROOT)
+       $(STRIP) $(PROG)
+
+install: $(PROG) $(MAN)
+       $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
+       $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
+       $(GINSTALL) -Dm644 $(FILES) $(DESTDIR)/$(PREFIX)/share/games/$(FILESNAME)
+
+clean:
+       rm -f $(CLEANFILES) $(PROG)
+
+.PHONY: all clean install