add manual page, Berkeley specific copyright
[unix-history] / usr / src / games / monop / Makefile
CommitLineData
dc6229b2
KB
1#
2# Copyright (c) 1987 Regents of the University of California.
0b23b2f7 3# All rights reserved.
dc6229b2 4#
0b23b2f7
KB
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.2 (Berkeley) %G%
dc6229b2
KB
18#
19# Nifty foo monopoly maker
20# Program: Ken Arnold
21# Makefile: K.S.
22#
23CFLAGS= -O
24LIBC= /lib/libc.a
25MSRCS= monop.c cards.c execute.c getinp.c houses.c jail.c misc.c morg.c \
26 print.c prop.c rent.c roll.c spec.c trade.c
27MOBJS= monop.o cards.o execute.o getinp.o houses.o jail.o misc.o morg.o \
28 print.o prop.o rent.o roll.o spec.o trade.o
29ISRCS= initdeck.c
30IOBJS= initdeck.o
31
32all: monop initdeck cards.pck
33
34monop: ${MOBJS} ${LIBC}
35 ${CC} -o $@ ${CFLAGS} ${MOBJS}
36
37initdeck: ${IOBJS}
38 ${CC} ${CFLAGS} -o $@ ${IOBJS}
39
40cards.pck: FRC
41 ./initdeck
42
43clean: FRC
44 rm -f ${IOBJS} ${MOBJS} core monop initdeck cards.pck
45
46depend: FRC
47 mkdep ${CFLAGS} ${MSRCS} ${ISRCS}
48
49install: FRC
50 install -o games -g bin -m 400 cards.pck ${DESTDIR}/usr/games/lib
51 install -s -o games -g bin -m 700 monop ${DESTDIR}/usr/games/hide
52 (cd ${DESTDIR}/usr/games; rm -f monop; ln -s dm monop; chown games.bin monop)
53
54lint: FRC
55 lint ${CFLAGS} ${MSRCS}
56 lint ${CFLAGS} ${ISRCS}
57
58tags: FRC
59 ctags ${MSRCS} ${ISRCS}
60
61FRC:
62
63# DO NOT DELETE THIS LINE -- mkdep uses it.
64# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
65
66monop.o: monop.c monop.def monop.h /usr/include/stdio.h deck.h mon.dat prop.dat
67monop.o: brd.dat
68cards.o: cards.c monop.ext monop.h /usr/include/stdio.h deck.h
69execute.o: execute.c monop.ext monop.h /usr/include/stdio.h deck.h
70execute.o: /usr/include/sys/types.h /usr/include/sys/stat.h
71execute.o: /usr/include/sys/time.h /usr/include/time.h
72getinp.o: getinp.c /usr/include/stdio.h /usr/include/ctype.h
73houses.o: houses.c monop.ext monop.h /usr/include/stdio.h deck.h
74jail.o: jail.c monop.ext monop.h /usr/include/stdio.h deck.h
75misc.o: misc.c monop.ext monop.h /usr/include/stdio.h deck.h
76misc.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h
77misc.o: /usr/include/pwd.h
78morg.o: morg.c monop.ext monop.h /usr/include/stdio.h deck.h
79print.o: print.c monop.ext monop.h /usr/include/stdio.h deck.h
80prop.o: prop.c monop.ext monop.h /usr/include/stdio.h deck.h
81rent.o: rent.c monop.ext monop.h /usr/include/stdio.h deck.h
82roll.o: roll.c
83spec.o: spec.c monop.ext monop.h /usr/include/stdio.h deck.h
84trade.o: trade.c monop.ext monop.h /usr/include/stdio.h deck.h
85initdeck.o: initdeck.c /usr/include/stdio.h deck.h
86
87# IF YOU PUT ANYTHING HERE IT WILL GO AWAY