Commit | Line | Data |
---|---|---|
298f35b9 KB |
1 | # |
2 | # Copyright (c) 1988 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, advertising | |
8 | # materials, and other materials related to such redistribution and | |
9 | # use acknowledge that the software was developed by the University | |
10 | # of California, Berkeley. The name of the University may not be | |
11 | # used to endorse or promote products derived from this software | |
12 | # without specific prior written permission. THIS SOFTWARE IS PROVIDED | |
13 | # ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, | |
14 | # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND | |
15 | # FITNESS FOR A PARTICULAR PURPOSE. | |
16 | # | |
966c6ec0 | 17 | # @(#)Makefile 5.3 (Berkeley) %G% |
298f35b9 KB |
18 | # |
19 | ||
966c6ec0 | 20 | CFLAGS= -O -I/nbsd/usr/include -I. |
298f35b9 KB |
21 | LIBC= /lib/libc.a |
22 | SRCS= ch.c command.c decode.c help.c input.c line.c linenum.c main.c \ | |
966c6ec0 | 23 | option.c os.c output.c position.c prim.c screen.c \ |
6fd2d660 | 24 | signal.c tags.c ttyin.c |
298f35b9 | 25 | OBJS= ch.o command.o decode.o help.o input.o line.o linenum.o main.o \ |
966c6ec0 | 26 | option.o os.o output.o position.o prim.o screen.o \ |
6fd2d660 | 27 | signal.o tags.o ttyin.o |
966c6ec0 | 28 | MAN= more.0 |
298f35b9 | 29 | |
966c6ec0 | 30 | all: more |
298f35b9 | 31 | |
966c6ec0 KB |
32 | more: ${OBJS} ${LIBC} |
33 | ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermcap /nbsd/lib/libc.a | |
298f35b9 | 34 | |
6fd2d660 | 35 | clean: |
966c6ec0 | 36 | rm -f ${OBJS} core more |
6fd2d660 KB |
37 | |
38 | cleandir: clean | |
39 | rm -f ${MAN} tags .depend | |
298f35b9 | 40 | |
966c6ec0 | 41 | depend: ${SRCS} |
298f35b9 KB |
42 | mkdep ${CFLAGS} ${SRCS} |
43 | ||
6fd2d660 | 44 | install: ${MAN} |
966c6ec0 KB |
45 | install -s -o bin -g bin -m 755 more ${DESTDIR}/usr/ucb/more |
46 | install -o bin -g bin -m 444 more.0 ${DESTDIR}/usr/man/cat1 | |
47 | install -c -o bin -g bin -m 444 more.help ${DESTDIR}/usr/lib | |
298f35b9 | 48 | |
6fd2d660 | 49 | lint: ${SRCS} |
298f35b9 KB |
50 | lint ${CFLAGS} ${SRCS} |
51 | ||
6fd2d660 | 52 | tags: ${SRCS} |
298f35b9 | 53 | ctags ${SRCS} |