Commit | Line | Data |
---|---|---|
5ff67f98 | 1 | # |
51a16129 | 2 | # Copyright (c) 1987 Regents of the University of California. |
5ff67f98 DF |
3 | # All rights reserved. The Berkeley software License Agreement |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
51a16129 | 6 | # @(#)Makefile 5.3 (Berkeley) %G% |
0a083259 SL |
7 | # |
8 | CFLAGS= -O | |
51a16129 KB |
9 | LIBC= /lib/libc.a |
10 | SRCS= more.c | |
11 | OBJS= more.o | |
0a083259 | 12 | |
51a16129 | 13 | all: more |
0a083259 | 14 | |
51a16129 KB |
15 | more: ${OBJS} ${LIBC} |
16 | ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermcap | |
17 | ||
18 | clean: FRC | |
19 | rm -f ${OBJS} core more | |
20 | ||
21 | depend: FRC | |
22 | mkdep ${CFLAGS} ${SRCS} | |
23 | ||
24 | install: FRC | |
25 | install -s -o bin -g bin -m 755 more ${DESTDIR}/usr/ucb/more | |
0a083259 SL |
26 | rm -f ${DESTDIR}/usr/ucb/page |
27 | ln ${DESTDIR}/usr/ucb/more ${DESTDIR}/usr/ucb/page | |
51a16129 KB |
28 | install -c -o bin -g bin -m 644 more.help ${DESTDIR}/usr/lib/more.help |
29 | ||
30 | lint: FRC | |
31 | lint ${CFLAGS} ${SRCS} | |
32 | ||
33 | tags: FRC | |
34 | ctags ${SRCS} | |
35 | ||
36 | FRC: | |
37 | ||
38 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
39 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
40 | ||
41 | more.o: more.c /usr/include/stdio.h /usr/include/sys/types.h | |
42 | more.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/errno.h | |
43 | more.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
44 | more.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
45 | more.o: /usr/include/setjmp.h /usr/include/sys/stat.h /usr/include/sys/file.h | |
46 | more.o: /usr/include/sys/exec.h | |
47 | ||
48 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |