Commit | Line | Data |
---|---|---|
5ff67f98 | 1 | # |
ca67e7b4 C |
2 | # Copyright (c) 1988 Regents of the University of California. |
3 | # All rights reserved. | |
5ff67f98 | 4 | # |
ca67e7b4 C |
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.5 (Berkeley) 6/29/88 | |
0a083259 SL |
18 | # |
19 | CFLAGS= -O | |
ca67e7b4 C |
20 | LIBC= /lib/libc.a |
21 | SRCS= more.c | |
22 | OBJS= more.o | |
23 | ||
24 | all: more | |
25 | ||
26 | more: ${OBJS} ${LIBC} | |
27 | ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermcap | |
0a083259 | 28 | |
ca67e7b4 C |
29 | clean: FRC |
30 | rm -f ${OBJS} core more | |
0a083259 | 31 | |
ca67e7b4 C |
32 | depend: FRC |
33 | mkdep ${CFLAGS} ${SRCS} | |
34 | ||
35 | install: FRC | |
36 | install -s -o bin -g bin -m 755 more ${DESTDIR}/usr/ucb/more | |
0a083259 SL |
37 | rm -f ${DESTDIR}/usr/ucb/page |
38 | ln ${DESTDIR}/usr/ucb/more ${DESTDIR}/usr/ucb/page | |
ca67e7b4 C |
39 | install -c -o bin -g bin -m 644 more.help ${DESTDIR}/usr/lib/more.help |
40 | ||
41 | lint: FRC | |
42 | lint ${CFLAGS} ${SRCS} | |
43 | ||
44 | tags: FRC | |
45 | ctags ${SRCS} | |
46 | ||
47 | FRC: | |
48 | ||
49 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
50 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
51 | ||
52 | more.o: more.c /usr/include/stdio.h /usr/include/sys/param.h | |
53 | more.o: /usr/include/sys/types.h /usr/include/signal.h | |
54 | more.o: /usr/include/machine/trap.h /usr/include/machine/machparam.h | |
55 | more.o: /usr/include/machine/endian.h /usr/include/ctype.h | |
56 | more.o: /usr/include/signal.h /usr/include/errno.h /usr/include/sgtty.h | |
57 | more.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
58 | more.o: /usr/include/sys/ttydev.h /usr/include/setjmp.h /usr/include/sys/stat.h | |
59 | more.o: /usr/include/sys/file.h /usr/include/a.out.h /usr/include/sys/exec.h | |
60 | more.o: /usr/include/varargs.h | |
61 | ||
62 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |