xref: /freebsd/lib/libedit/Makefile (revision 3cf3c5d9ddb2edd1033c0b8e612096b8b35b3bb4)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.1 (Berkeley) 6/4/93
23cf3c5d9SMarcel Moolenaar#
33cf3c5d9SMarcel Moolenaar# $FreeBSD$
43cf3c5d9SMarcel Moolenaar#
558f0484fSRodney W. Grimes
658f0484fSRodney W. GrimesLIB=	edit
73cf3c5d9SMarcel MoolenaarSHLIB_MAJOR=	3
83cf3c5d9SMarcel MoolenaarSHLIB_MINOR=	0
958f0484fSRodney W. Grimes
10bd5176cbSMike SmithOSRCS=	chared.c common.c el.c emacs.c fcns.c help.c hist.c key.c map.c \
11bd5176cbSMike Smith	parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c
1258f0484fSRodney W. Grimes
13e46d877dSAndrey A. ChernovLDADD+= -ltermcap
14b7e5f46aSPeter WemmDPADD+= ${LIBTERMCAP}
15e46d877dSAndrey A. Chernov
16f76efb86SAndrey A. ChernovMAN3=   editline.3
17f76efb86SAndrey A. ChernovMAN5=   editrc.5
18bd5176cbSMike Smith
19bd5176cbSMike SmithMLINKS=	editline.3 el_init.3 editline.3 el_end.3 editline.3 el_reset.3 \
20bd5176cbSMike Smith	editline.3 el_gets.3 editline.3 el_getc.3 editline.3 el_push.3 \
21bd5176cbSMike Smith	editline.3 el_parse.3 editline.3 el_set.3 editline.3 el_source.3 \
22bd5176cbSMike Smith	editline.3 el_resize.3 editline.3 el_line.3 \
23bd5176cbSMike Smith	editline.3 el_insertstr.3 editline.3 el_deletestr.3 \
2470ff7ab7SMatthew N. Dodd	editline.3 history_init.3 editline.3 history_end.3 \
2570ff7ab7SMatthew N. Dodd	editline.3 history.3 editline.3 el_data_get.3 editline.3 el_data_set.3
26bd5176cbSMike Smith
2758f0484fSRodney W. Grimes# For speed and debugging
2858f0484fSRodney W. Grimes#SRCS=   ${OSRCS} tokenizer.c history.c
2958f0484fSRodney W. Grimes# For protection
3058f0484fSRodney W. GrimesSRCS=	editline.c tokenizer.c history.c
3158f0484fSRodney W. Grimes
32bd5176cbSMike SmithSRCS+=	common.h emacs.h fcns.h help.h vi.h
33bd5176cbSMike Smith
34bd5176cbSMike SmithCLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h
3558f0484fSRodney W. GrimesCFLAGS+=-I. -I${.CURDIR}
3658f0484fSRodney W. GrimesCFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
3758f0484fSRodney W. GrimesCFLAGS+=#-DDEBUG_PASTE
3858f0484fSRodney W. Grimes
3958f0484fSRodney W. GrimesAHDR=vi.h emacs.h common.h
4058f0484fSRodney W. GrimesASRC=${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c
4158f0484fSRodney W. Grimes
4258f0484fSRodney W. Grimesvi.h: vi.c makelist
4358f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -h ${.CURDIR}/vi.c > ${.TARGET}
4458f0484fSRodney W. Grimes
4558f0484fSRodney W. Grimesemacs.h: emacs.c makelist
4658f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -h ${.CURDIR}/emacs.c > ${.TARGET}
4758f0484fSRodney W. Grimes
4858f0484fSRodney W. Grimescommon.h: common.c makelist
4958f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -h ${.CURDIR}/common.c > ${.TARGET}
5058f0484fSRodney W. Grimes
5158f0484fSRodney W. Grimesfcns.h: ${AHDR} makelist
5258f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET}
5358f0484fSRodney W. Grimes
5458f0484fSRodney W. Grimesfcns.c: ${AHDR} fcns.h makelist
5558f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET}
5658f0484fSRodney W. Grimes
5758f0484fSRodney W. Grimeshelp.c: ${ASRC} makelist
5858f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET}
5958f0484fSRodney W. Grimes
6058f0484fSRodney W. Grimeshelp.h: ${ASRC} makelist
6158f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET}
6258f0484fSRodney W. Grimes
63fb4289daSMike Smitheditline.c:
64fb4289daSMike Smith	sh ${.CURDIR}/makelist -e ${OSRCS} > ${.TARGET}
6558f0484fSRodney W. Grimes
66f92bdbd0SJohn Polstrabeforedepend editline.o editline.po editline.So: \
67fb4289daSMike Smith	vi.h emacs.h common.h fcns.h fcns.c help.h help.c
6858f0484fSRodney W. Grimes
696897a8a7SRodney W. Grimestest:	test.o libedit.a ${DPADD} ${LIBTERMCAP}
70b7e5f46aSPeter Wemm	${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD}
7158f0484fSRodney W. Grimes
7258f0484fSRodney W. Grimes.include <bsd.lib.mk>
73