1# Makefile 1.1 82/05/11 2 3CFLAGS= -O -DV7 4OBJS= allow.o board.o check.o extra.o fancy.o init.o main.o move.o\ 5 odds.o one.o save.o subs.o table.o text.o message.o 6TOBJS= allow.o board.o check.o data.o fancy.o init.o odds.o one.o save.o subs.o\ 7 table.o teach.o ttext1.o ttext2.o tutor.o 8SRCS= allow.c board.c check.c data.c extra.c fancy.c init.c main.c\ 9 move.c odds.c one.c save.c subs.c table.c teach.c text.c ttext1.c\ 10 ttext2.c tutor.c message.c 11TARF= bg.tar 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# Save subroutine. Uses "execl" which execl's itself to backgammon 35save.c: execl 36 ex - save.c < Savefix 37execl: execl.c 38 cc -O -o execl execl.c 39 40# Documentation 41backgammon.doc: backgammon.src 42 -rm -f backgammon.doc 43 nroff -man -Tcrt backgammon.src > backgammon.doc 44 45# Installation 46install: 47 -chmod 711 backgammon teachgammon 48 pubrm backgammon 49 public backgammon 50 51news: 52 pubrm gammon.news 53 public gammon.news 54 55tar: 56 tar crvf ${TARF} ${SRCS} back.h tutor.h makefile execl.c Mesgfix Savefix backgammon.src 57 58