1# 2# Copyright (c) 1987 Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that the above copyright notice and this paragraph are 7# duplicated in all such forms and that any documentation, 8# advertising materials, and other materials related to such 9# distribution and use acknowledge that the software was developed 10# by the University of California, Berkeley. The name of the 11# University may not be used to endorse or promote products derived 12# from this software without specific prior written permission. 13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 5.13 (Berkeley) 06/18/88 18# 19LIBC= /lib/libc.a 20LIBS= -ltermlib 21CFLAGS= -O -DV7 22SRCS= allow.c board.c check.c data.c extra.c fancy.c init.c main.c move.c \ 23 odds.c one.c save.c subs.c table.c teach.c text.c ttext1.c ttext2.c \ 24 tutor.c version.c 25BSRCS= allow.c board.c check.c extra.c fancy.c init.c main.c move.c \ 26 odds.c one.c save.c subs.c table.c text.c version.c 27BOBJS= allow.o board.o check.o extra.o fancy.o init.o main.o move.o \ 28 odds.o one.o save.o subs.o table.o text.o version.o 29TSRCS= allow.c board.c check.c data.c fancy.c init.c odds.c one.c save.c \ 30 subs.c table.c teach.c ttext1.c ttext2.c tutor.c 31TOBJS= allow.o board.o check.o data.o fancy.o init.o odds.o one.o save.o \ 32 subs.o table.o teach.o ttext1.o ttext2.o tutor.o 33 34all: backgammon teachgammon 35 36# Backgammon program 37backgammon: ${BOBJS} ${LIBC} 38 ${CC} -o $@ ${BOBJS} ${LIBS} 39 40# Backgammon rules and tutorial 41teachgammon: ${TOBJS} ${LIBC} 42 ${CC} -o $@ ${TOBJS} ${LIBS} 43 44clean: FRC 45 rm -f ${TOBJS} ${BOBJS} core teachgammon backgammon 46 47depend: FRC 48 mkdep ${CFLAGS} ${SRCS} 49 50install: FRC 51 install -s -o games -g bin -m 700 backgammon ${DESTDIR}/usr/games/hide 52 install -s -o games -g bin -m 700 teachgammon ${DESTDIR}/usr/games/hide 53 (cd ${DESTDIR}/usr/games; rm -f backgammon; ln -s dm backgammon; chown games.bin backgammon) 54 (cd ${DESTDIR}/usr/games; rm -f teachgammon; ln -s dm teachgammon; chown games.bin teachgammon) 55 56lint: FRC 57 lint ${CFLAGS} ${BRCS} 58 lint ${CFLAGS} ${TSRCS} 59 60tags: FRC 61 ctags ${SRCS} 62 63FRC: 64 65# DO NOT DELETE THIS LINE -- mkdep uses it. 66# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 67 68allow.o: allow.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 69allow.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 70board.o: board.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 71board.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 72check.o: check.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 73check.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 74data.o: data.c tutor.h 75extra.o: extra.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 76extra.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 77fancy.o: fancy.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 78fancy.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 79init.o: init.c /usr/include/sgtty.h /usr/include/sys/ioctl.h 80init.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 81main.o: main.c /usr/include/stdio.h back.h /usr/include/sgtty.h 82main.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h 83main.o: /usr/include/sys/ttydev.h 84move.o: move.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 85move.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 86odds.o: odds.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 87odds.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 88one.o: one.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 89one.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 90save.o: save.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 91save.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 92subs.o: subs.c /usr/include/stdio.h back.h /usr/include/sgtty.h 93subs.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h 94subs.o: /usr/include/sys/ttydev.h 95table.o: table.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 96table.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 97teach.o: teach.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 98teach.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 99text.o: text.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 100text.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 101ttext1.o: ttext1.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 102ttext1.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 103ttext2.o: ttext2.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 104ttext2.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 105tutor.o: tutor.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 106tutor.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h tutor.h 107version.o: version.c 108 109# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 110