BSD 4_3_Reno release
[unix-history] / usr / src / games / cribbage / Makefile
index 94418e9..81e39ae 100644 (file)
@@ -1,42 +1,14 @@
-#
-# make file for cribbage
-#
-# @(#)Makefile 1.2 (Berkeley) %G%
-#
-HDRS=  cribbage.h deck.h cribcur.h
-OBJS=  extern.o crib.o support.o cards.o score.o io.o
-CFILES=        extern.c crib.c support.c cards.c score.c io.c
-TOBJS= test.o cards.o score.o io.o
-CFLAGS=        -O
+#      @(#)Makefile    5.11 (Berkeley) 5/11/90
 
 
-cribbage:      ${OBJS}
-       ${CC} ${CFLAGS} -o cribbage ${OBJS} -lcurses -ltermlib
+PROG=  cribbage
+DPADD= ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT}
+LDADD= -lcurses -ltermlib -lcompat
+SRCS=  extern.c crib.c cards.c instr.c io.c score.c support.c
+MAN6=  cribbage.0
+HIDEGAME=hidegame
 
 
-all: cribbage crib.instr
+beforeinstall: 
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/cribbage.n \
+           ${DESTDIR}/usr/share/games/cribbage.instr
 
 
-crib.o io.o support.o: cribcur.h
-
-test:          ${TOBJS}
-       ${CC} ${CFLAGS} -o test ${TOBJS}
-
-crib.instr: cribbage.n macro
-       nroff cribbage.n > crib.instr
-
-tags: ${HDRS} ${CFILES}
-       ctags -u $?
-       ed - tags < :ctfix
-       sort tags -o tags
-
-clean:
-       rm -f ${OBJS} ? a.out core crib.instr cribbage
-
-crib.o:                deck.h  cribbage.h      cribcur.h
-support.o:     deck.h  cribbage.h      cribcur.h
-test.o:                deck.h
-cards.o:       deck.h
-score.o:       deck.h
-io.o:          deck.h                  cribcur.h
-
-install: cribbage crib.instr
-       install -c -s cribbage /usr/games/
-       install -c crib.instr /usr/games/lib/
+.include <bsd.prog.mk>