Commit | Line | Data |
---|---|---|
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 | 8 | CFLAGS= -O |
5aabaf49 KB |
9 | LIBC= /lib/libc.a |
10 | SRCS= quiz.c | |
8b51accb | 11 | OBJS= |
5aabaf49 KB |
12 | |
13 | all: quiz | |
14 | ||
8b51accb KB |
15 | quiz: ${LIBC} |
16 | ${CC} -o $@ ${CFLAGS} ${SRCS} | |
5aabaf49 KB |
17 | |
18 | clean: FRC | |
19 | rm -f ${OBJS} core quiz | |
b1b965a2 | 20 | |
5aabaf49 | 21 | depend: FRC |
8b51accb | 22 | mkdep -p ${CFLAGS} ${SRCS} |
b1b965a2 | 23 | |
5aabaf49 | 24 | install: 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 |
32 | lint: FRC |
33 | lint ${CFLAGS} ${SRCS} | |
34 | ||
35 | tags: FRC | |
36 | ctags ${SRCS} | |
37 | ||
38 | FRC: | |
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 |
43 | quiz: quiz.c /usr/include/stdio.h /usr/include/signal.h |
44 | quiz: /usr/include/machine/trap.h | |
5aabaf49 KB |
45 | |
46 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |