add manual page, Berkeley specific copyright
[unix-history] / usr / src / games / quiz / Makefile
CommitLineData
b1b965a2 1#
5aabaf49
KB
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
8d7661b8 6# @(#)Makefile 4.5 (Berkeley) %G%
5aabaf49 7#
b1b965a2 8CFLAGS= -O
5aabaf49
KB
9LIBC= /lib/libc.a
10SRCS= quiz.c
8b51accb 11OBJS=
5aabaf49
KB
12
13all: quiz
14
8b51accb
KB
15quiz: ${LIBC}
16 ${CC} -o $@ ${CFLAGS} ${SRCS}
5aabaf49
KB
17
18clean: FRC
19 rm -f ${OBJS} core quiz
b1b965a2 20
5aabaf49 21depend: FRC
8b51accb 22 mkdep -p ${CFLAGS} ${SRCS}
b1b965a2 23
5aabaf49 24install: FRC
8d7661b8 25 -[ -d ${DESTDIR}/usr/games/lib/quiz.k ] || mkdir ${DESTDIR}/usr/games/lib/quiz.k
8b51accb
KB
26 chmod 700 ${DESTDIR}/usr/games/lib/quiz.k
27 chown games.bin ${DESTDIR}/usr/games/lib/quiz.k
28 cd quiz.k; install -c -o games -g bin -m 400 * ${DESTDIR}/usr/games/lib/quiz.k
29 install -s -o games -g bin -m 700 quiz ${DESTDIR}/usr/games/hide
30 (cd ${DESTDIR}/usr/games; rm -f quiz; ln -s dm quiz; chown games.bin quiz)
b1b965a2 31
5aabaf49
KB
32lint: FRC
33 lint ${CFLAGS} ${SRCS}
34
35tags: FRC
36 ctags ${SRCS}
37
38FRC:
39
40# DO NOT DELETE THIS LINE -- mkdep uses it.
41# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
42
8b51accb
KB
43quiz: quiz.c /usr/include/stdio.h /usr/include/signal.h
44quiz: /usr/include/machine/trap.h
5aabaf49
KB
45
46# IF YOU PUT ANYTHING HERE IT WILL GO AWAY