1# Makefile 1.3 82/11/27 2 3DESTDIR= 4CFLAGS= -O -DV7 5OBJS= allow.o board.o check.o extra.o fancy.o init.o main.o move.o\ 6 odds.o one.o save.o subs.o table.o text.o message.o 7TOBJS= allow.o board.o check.o data.o fancy.o init.o odds.o one.o save.o subs.o\ 8 table.o teach.o ttext1.o ttext2.o tutor.o 9SRCS= allow.c board.c check.c data.c extra.c fancy.c init.c main.c\ 10 move.c odds.c one.c save.c subs.c table.c teach.c text.c ttext1.c\ 11 ttext2.c tutor.c message.c 12 13all: backgammon teachgammon backgammon.doc 14 15# Backgammon program 16backgammon: $(OBJS) 17 -rm -f backgammon 18 cc -o backgammon $(OBJS) -ltermlib 19 20# Backgammon rules and tutorial 21teachgammon: ${TOBJS} 22 -rm -f teachgammon 23 cc -o teachgammon $(TOBJS) -ltermlib 24 25# Header files back.h and tutor.h 26allow.o board.o check.o extra.o fancy.o main.o move.o odds.o one.o save.o\ 27 subs.o table.o teach.o text.o ttext1.o ttext2.o: back.h 28data.o tutor.o: back.h tutor.h 29 30# Update message. /tmp is always changing, so use it to ensure execution 31message.c: /tmp 32 ex - message.c < Mesgfix 33 34# Documentation 35backgammon.doc: backgammon.src 36 -rm -f backgammon.doc 37 nroff -man -Tcrt backgammon.src > backgammon.doc 38 39# Installation 40install: 41 install backgammon ${DESTDIR}/usr/games/backgammon 42 install teachgammon ${DESTDIR}/usr/games/teachgammon 43 44clean: 45 rm -f ${OBJS} ${TOBJS} 46