1998-04-28 09:16:24 +02:00
|
|
|
# $Id: Makefile,v 1.29 1997/06/07 13:18:30 ache Exp $
|
1994-05-09 17:59:10 +02:00
|
|
|
|
1997-01-05 17:19:58 +01:00
|
|
|
SRCDIR= ${.CURDIR}/../../../contrib/libreadline
|
|
|
|
.PATH: ${SRCDIR}
|
1994-05-09 17:59:10 +02:00
|
|
|
|
1997-01-12 09:10:55 +01:00
|
|
|
SUBDIR= doc
|
1994-05-09 17:59:10 +02:00
|
|
|
|
|
|
|
LIB= readline
|
1995-05-08 10:43:06 +02:00
|
|
|
SHLIB_MAJOR= 3
|
1998-04-28 09:16:24 +02:00
|
|
|
SHLIB_MINOR= 1
|
1994-12-06 04:16:45 +01:00
|
|
|
MAN3= readline.3
|
1997-01-05 17:19:58 +01:00
|
|
|
|
1998-04-28 09:16:24 +02:00
|
|
|
RL_LIBRARY_VERSION = 2.2
|
1997-06-07 15:18:30 +02:00
|
|
|
LOCAL_CFLAGS= -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
|
|
|
|
CFLAGS+= -I${.CURDIR} -I${SRCDIR} -DHAVE_CONFIG_H ${LOCAL_CFLAGS}
|
1997-01-05 17:19:58 +01:00
|
|
|
|
1997-06-07 15:18:30 +02:00
|
|
|
HISTSRC= history.c histexpand.c histfile.c histsearch.c shell.c
|
1997-01-05 17:19:58 +01:00
|
|
|
TILDESRC= tilde.c
|
|
|
|
SRCS= readline.c vi_mode.c funmap.c keymaps.c parens.c search.c \
|
|
|
|
rltty.c complete.c bind.c isearch.c display.c signals.c \
|
|
|
|
util.c kill.c undo.c macro.c input.c callback.c terminal.c \
|
|
|
|
nls.c xmalloc.c \
|
|
|
|
$(HISTSRC) $(TILDESRC)
|
|
|
|
|
|
|
|
INSTALLED_HEADERS= readline.h chardefs.h keymaps.h history.h tilde.h
|
|
|
|
|
1994-12-06 04:16:45 +01:00
|
|
|
DPADD+= $(LIBTERMCAP)
|
1994-10-12 03:06:02 +01:00
|
|
|
LDADD+= -ltermcap
|
1994-05-09 17:59:10 +02:00
|
|
|
|
|
|
|
beforeinstall:
|
1997-01-05 17:19:58 +01:00
|
|
|
.for i in ${INSTALLED_HEADERS}
|
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${SRCDIR}/$i \
|
1996-08-30 04:13:06 +02:00
|
|
|
${DESTDIR}/usr/include/readline
|
|
|
|
.endfor
|
1994-05-09 17:59:10 +02:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|