less -> more
[unix-history] / usr / src / usr.bin / more / Makefile
CommitLineData
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#
6fd2d660 17# @(#)Makefile 5.2 (Berkeley) %G%
298f35b9
KB
18#
19
20DEFS= -DHELPFILE=\"/usr/lib/less.help\" -DEDIT_PGM=\"/usr/ucb/vi\" -DRECOMP
21CFLAGS= -O ${DEFS}
22LIBC= /lib/libc.a
23SRCS= ch.c command.c decode.c help.c input.c line.c linenum.c main.c \
24 option.c os.c output.c position.c prim.c prompt.c screen.c \
6fd2d660 25 signal.c tags.c ttyin.c
298f35b9
KB
26OBJS= ch.o command.o decode.o help.o input.o line.o linenum.o main.o \
27 option.o os.o output.o position.o prim.o prompt.o screen.o \
6fd2d660
KB
28 signal.o tags.o ttyin.o
29MAN= less.0
298f35b9 30
6fd2d660 31all: less
298f35b9
KB
32
33less: ${OBJS} ${LIBC}
34 ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermcap
35
298f35b9
KB
36#funcs.h: ${SRCS}
37funcs.h:
38 awk -f mkfuncs.awk ${SRCS} > funcs.h
39
6fd2d660
KB
40clean:
41 rm -f ${OBJS} core less lesskey
42
43cleandir: clean
44 rm -f ${MAN} tags .depend
298f35b9 45
6fd2d660 46depend: ${SRCS} funcs.h
298f35b9
KB
47 mkdep ${CFLAGS} ${SRCS}
48
6fd2d660 49install: ${MAN}
298f35b9 50 install -s -o bin -g bin -m 755 less ${DESTDIR}/usr/ucb/less
298f35b9 51 install -o bin -g bin -m 444 less.0 ${DESTDIR}/usr/man/cat1/less.0
298f35b9
KB
52 install -c -o bin -g bin -m 444 less.help ${DESTDIR}/usr/lib/less.help
53
6fd2d660 54lint: ${SRCS}
298f35b9
KB
55 lint ${CFLAGS} ${SRCS}
56
6fd2d660 57tags: ${SRCS}
298f35b9 58 ctags ${SRCS}