|
|
1.1 root 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) 6/18/88
18: #
19: LIBC= /lib/libc.a
20: LIBS= -ltermlib
21: CFLAGS= -O -DV7
22: SRCS= 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
25: BSRCS= 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
27: BOBJS= 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
29: TSRCS= 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
31: TOBJS= 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:
34: all: backgammon teachgammon
35:
36: # Backgammon program
37: backgammon: ${BOBJS} ${LIBC}
38: ${CC} -o $@ ${BOBJS} ${LIBS}
39:
40: # Backgammon rules and tutorial
41: teachgammon: ${TOBJS} ${LIBC}
42: ${CC} -o $@ ${TOBJS} ${LIBS}
43:
44: clean: FRC
45: rm -f ${TOBJS} ${BOBJS} core teachgammon backgammon
46:
47: depend: FRC
48: mkdep ${CFLAGS} ${SRCS}
49:
50: install: 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:
56: lint: FRC
57: lint ${CFLAGS} ${BRCS}
58: lint ${CFLAGS} ${TSRCS}
59:
60: tags: FRC
61: ctags ${SRCS}
62:
63: FRC:
64:
65: # DO NOT DELETE THIS LINE -- mkdep uses it.
66: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
67:
68: allow.o: allow.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
69: allow.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
70: board.o: board.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
71: board.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
72: check.o: check.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
73: check.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
74: data.o: data.c tutor.h
75: extra.o: extra.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
76: extra.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
77: fancy.o: fancy.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
78: fancy.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
79: init.o: init.c /usr/include/sgtty.h /usr/include/sys/ioctl.h
80: init.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
81: main.o: main.c /usr/include/stdio.h back.h /usr/include/sgtty.h
82: main.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
83: main.o: /usr/include/sys/ttydev.h
84: move.o: move.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
85: move.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
86: odds.o: odds.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
87: odds.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
88: one.o: one.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
89: one.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
90: save.o: save.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
91: save.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
92: subs.o: subs.c /usr/include/stdio.h back.h /usr/include/sgtty.h
93: subs.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
94: subs.o: /usr/include/sys/ttydev.h
95: table.o: table.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
96: table.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
97: teach.o: teach.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
98: teach.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
99: text.o: text.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
100: text.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
101: ttext1.o: ttext1.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
102: ttext1.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
103: ttext2.o: ttext2.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
104: ttext2.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
105: tutor.o: tutor.c back.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
106: tutor.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h tutor.h
107: version.o: version.c
108:
109: # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.