Commit | Line | Data |
---|---|---|
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 | # | |
8de8adc4 | 17 | # @(#)Makefile 5.3 (Berkeley) %G% |
dc6229b2 KB |
18 | # |
19 | # Nifty foo monopoly maker | |
20 | # Program: Ken Arnold | |
21 | # Makefile: K.S. | |
22 | # | |
23 | CFLAGS= -O | |
24 | LIBC= /lib/libc.a | |
25 | MSRCS= 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 | |
27 | MOBJS= 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 | |
29 | ISRCS= initdeck.c | |
30 | IOBJS= initdeck.o | |
8de8adc4 | 31 | MAN= monop.0 |
dc6229b2 KB |
32 | |
33 | all: monop initdeck cards.pck | |
34 | ||
8de8adc4 | 35 | monop: ${MOBJS} ${LIBC} |
dc6229b2 KB |
36 | ${CC} -o $@ ${CFLAGS} ${MOBJS} |
37 | ||
38 | initdeck: ${IOBJS} | |
39 | ${CC} ${CFLAGS} -o $@ ${IOBJS} | |
40 | ||
8de8adc4 | 41 | cards.pck: |
dc6229b2 KB |
42 | ./initdeck |
43 | ||
8de8adc4 | 44 | clean: |
dc6229b2 KB |
45 | rm -f ${IOBJS} ${MOBJS} core monop initdeck cards.pck |
46 | ||
8de8adc4 KB |
47 | cleandir: clean |
48 | rm -f ${MAN} tags .depend | |
49 | ||
50 | depend: ${SRCS} | |
dc6229b2 KB |
51 | mkdep ${CFLAGS} ${MSRCS} ${ISRCS} |
52 | ||
8de8adc4 | 53 | install: ${MAN} |
dc6229b2 KB |
54 | install -o games -g bin -m 400 cards.pck ${DESTDIR}/usr/games/lib |
55 | install -s -o games -g bin -m 700 monop ${DESTDIR}/usr/games/hide | |
56 | (cd ${DESTDIR}/usr/games; rm -f monop; ln -s dm monop; chown games.bin monop) | |
8de8adc4 | 57 | install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6 |
dc6229b2 | 58 | |
8de8adc4 | 59 | lint: ${SRCS} |
dc6229b2 KB |
60 | lint ${CFLAGS} ${MSRCS} |
61 | lint ${CFLAGS} ${ISRCS} | |
62 | ||
8de8adc4 | 63 | tags: ${SRCS} |
dc6229b2 | 64 | ctags ${MSRCS} ${ISRCS} |