head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	94.05.26.20.01.37;	author md;	state Exp;
branches;
next	1.1;

1.1
date	93.02.24.23.57.29;	author md;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Need to link with libcompat to pick up 4.3 regular expression code.
@
text
@PROG=less
CFLAGS+=-I${.CURDIR}/obj -g
SRCS=	brac.c ch.c charset.c cmdbuf.c command.c decode.c edit.c \
	filename.c forwback.c help.c ifile.c input.c jump.c line.c \
	linenum.c lsystem.c main.c mark.c optfunc.c option.c opttbl.c \
	os.c output.c position.c prompt.c screen.c search.c signal.c \
	tags.c ttyin.c version.c
LDADD+=	-ltermcap -lcompat
DPADD+=	${LIBTERMCAP} ${LIBCOMPAT}
CLEANFILES+= funcs.h

afterinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m 0444 ${.CURDIR}/less.hlp \
		${DESTDIR}${BINDIR}/../lib

funcs.h ../obj/funcs.h:
	(cd ${.CURDIR}; awk -f mkfuncs.awk $(SRCS) > obj/funcs.h)

.depend: funcs.h

.include "../../Makefile.inc"
.include <bsd.prog.mk>
@


1.1
log
@Initial revision
@
text
@d8 2
a9 2
LDADD+=	-ltermcap
DPADD+=	${LIBTERMCAP}
@
