From d35519a8efb0295803c687019b9b7e6058428fbc Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Wed, 3 Jun 1987 19:21:53 -0800 Subject: [PATCH] new template SCCS-vsn: games/battlestar/Makefile 1.9 SCCS-vsn: old/boggle/Makefile 5.6 SCCS-vsn: games/cribbage/Makefile 5.4 --- usr/src/games/battlestar/Makefile | 2 +- usr/src/games/cribbage/Makefile | 76 +++++++++++++++++++------------ usr/src/old/boggle/Makefile | 2 +- 3 files changed, 49 insertions(+), 31 deletions(-) diff --git a/usr/src/games/battlestar/Makefile b/usr/src/games/battlestar/Makefile index 54b4894127..bba5c8758d 100644 --- a/usr/src/games/battlestar/Makefile +++ b/usr/src/games/battlestar/Makefile @@ -4,7 +4,7 @@ # the terms of the Berkeley Software License Agreement. # -# @(#)Makefile 1.8 %G% +# @(#)Makefile 1.9 %G% CFLAGS= -O OBJS= battlestar.o com1.o com2.o com3.o com4.o com5.o com6.o com7.o \ diff --git a/usr/src/games/cribbage/Makefile b/usr/src/games/cribbage/Makefile index 763fa69caa..6783abbc3e 100644 --- a/usr/src/games/cribbage/Makefile +++ b/usr/src/games/cribbage/Makefile @@ -1,49 +1,67 @@ # -# Copyright (c) 1980 Regents of the University of California. +# Copyright (c) 1987 Regents of the University of California. # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # -# @(#)Makefile 5.3 (Berkeley) %G% -# -# make file for cribbage +# @(#)Makefile 5.4 (Berkeley) %G% # +CFLAGS= -O +LIBC= /lib/libc.a +LIBS= -lcurses -ltermlib HDRS= cribbage.h deck.h cribcur.h +SRCS= extern.c crib.c support.c cards.c score.c io.c 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 extern.o -CFLAGS= -O -DESTDIR= - -cribbage: ${OBJS} - ${CC} ${CFLAGS} -o cribbage ${OBJS} -lcurses -ltermlib all: cribbage crib.instr -crib.o io.o support.o: cribcur.h +cribbage: ${OBJS} ${LIBC} + ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} -test: ${TOBJS} - ${CC} ${CFLAGS} -o test ${TOBJS} -lcurses -ltermlib +test: ${TOBJS} ${LIBC} + ${CC} -o $@ ${CFLAGS} ${TOBJS} ${LIBS} crib.instr: cribbage.n macro nroff cribbage.n > crib.instr -tags: ${HDRS} ${CFILES} - ctags -u $? - ed - tags < :ctfix - sort tags -o tags +clean: FRC + rm -f ${OBJS} core crib.instr cribbage test + +depend: FRC + mkdep ${CFLAGS} ${SRCS} + +install: FRC + install -s -o bin -g bin -m 755 cribbage ${DESTDIR}/usr/games/cribbage + install -o bin -g bin -m 644 crib.instr ${DESTDIR}/usr/games/lib/crib.instr + +lint: FRC + lint ${CFLAGS} ${SRCS} + +tags: FRC + ctags ${SRCS} -depend: +FRC: -clean: - rm -f ${OBJS} ? a.out core crib.instr cribbage errs +# DO NOT DELETE THIS LINE -- mkdep uses it. +# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. -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 +extern.o: extern.c /usr/include/curses.h /usr/include/stdio.h +extern.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h +extern.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h deck.h +extern.o: cribbage.h +crib.o: crib.c /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h +crib.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h +crib.o: /usr/include/sys/ttydev.h /usr/include/signal.h deck.h cribbage.h +crib.o: cribcur.h +support.o: support.c /usr/include/curses.h /usr/include/stdio.h +support.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h +support.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h deck.h +support.o: cribbage.h cribcur.h +cards.o: cards.c /usr/include/stdio.h deck.h +score.o: score.c /usr/include/stdio.h deck.h cribbage.h +io.o: io.c /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h +io.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h +io.o: /usr/include/sys/ttydev.h /usr/include/ctype.h /usr/include/signal.h +io.o: deck.h cribbage.h cribcur.h -install: cribbage crib.instr - install -s cribbage $(DESTDIR)/usr/games - install -m 644 crib.instr $(DESTDIR)/usr/games/lib +# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/usr/src/old/boggle/Makefile b/usr/src/old/boggle/Makefile index f04a98b297..e9c7038f8f 100644 --- a/usr/src/old/boggle/Makefile +++ b/usr/src/old/boggle/Makefile @@ -3,7 +3,7 @@ # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # -# @(#)Makefile 5.5 (Berkeley) %G% +# @(#)Makefile 5.6 (Berkeley) %G% # DESTDIR= CC = /bin/cc -- 2.20.1