xref: /original-bsd/games/monop/Makefile (revision 10ea2def)
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.3 (Berkeley) 10/19/88
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
31MAN=	monop.0
32
33all: monop initdeck cards.pck
34
35monop: ${MOBJS} ${LIBC}
36	${CC} -o $@ ${CFLAGS} ${MOBJS}
37
38initdeck: ${IOBJS}
39	${CC} ${CFLAGS} -o $@ ${IOBJS}
40
41cards.pck:
42	./initdeck
43
44clean:
45	rm -f ${IOBJS} ${MOBJS} core monop initdeck cards.pck
46
47cleandir: clean
48	rm -f ${MAN} tags .depend
49
50depend: ${SRCS}
51	mkdep ${CFLAGS} ${MSRCS} ${ISRCS}
52
53install: ${MAN}
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)
57	install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6
58
59lint: ${SRCS}
60	lint ${CFLAGS} ${MSRCS}
61	lint ${CFLAGS} ${ISRCS}
62
63tags: ${SRCS}
64	ctags ${MSRCS} ${ISRCS}
65