xref: /freebsd/lib/libedit/Makefile (revision 4a558355e5f3b4521cef56a6b705fa84be41dfa0)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.1 (Berkeley) 6/4/93
23cf3c5d9SMarcel Moolenaar# $FreeBSD$
358f0484fSRodney W. Grimes
458f0484fSRodney W. GrimesLIB=	edit
53cf3c5d9SMarcel MoolenaarSHLIB_MAJOR=	3
63cf3c5d9SMarcel MoolenaarSHLIB_MINOR=	0
758f0484fSRodney W. Grimes
8bd5176cbSMike SmithOSRCS=	chared.c common.c el.c emacs.c fcns.c help.c hist.c key.c map.c \
9bd5176cbSMike Smith	parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c
1058f0484fSRodney W. Grimes
111b779c59SMarcel MoolenaarDPADD=	${LIBTERMCAP}
121b779c59SMarcel MoolenaarLDADD=	-ltermcap
13e46d877dSAndrey A. Chernov
144a558355SRuslan ErmilovMAN=	editline.3 editrc.5
15bd5176cbSMike Smith
16bd5176cbSMike SmithMLINKS=	editline.3 el_init.3 editline.3 el_end.3 editline.3 el_reset.3 \
17bd5176cbSMike Smith	editline.3 el_gets.3 editline.3 el_getc.3 editline.3 el_push.3 \
18bd5176cbSMike Smith	editline.3 el_parse.3 editline.3 el_set.3 editline.3 el_source.3 \
19bd5176cbSMike Smith	editline.3 el_resize.3 editline.3 el_line.3 \
20bd5176cbSMike Smith	editline.3 el_insertstr.3 editline.3 el_deletestr.3 \
2170ff7ab7SMatthew N. Dodd	editline.3 history_init.3 editline.3 history_end.3 \
2270ff7ab7SMatthew N. Dodd	editline.3 history.3 editline.3 el_data_get.3 editline.3 el_data_set.3
23bd5176cbSMike Smith
2458f0484fSRodney W. Grimes# For speed and debugging
2558f0484fSRodney W. Grimes#SRCS=   ${OSRCS} tokenizer.c history.c
2658f0484fSRodney W. Grimes# For protection
2758f0484fSRodney W. GrimesSRCS=	editline.c tokenizer.c history.c
2858f0484fSRodney W. Grimes
29bd5176cbSMike SmithSRCS+=	common.h emacs.h fcns.h help.h vi.h
30bd5176cbSMike Smith
31bd5176cbSMike SmithCLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h
3258f0484fSRodney W. GrimesCFLAGS+=-I. -I${.CURDIR}
3358f0484fSRodney W. GrimesCFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
3458f0484fSRodney W. GrimesCFLAGS+=#-DDEBUG_PASTE
3558f0484fSRodney W. Grimes
3658f0484fSRodney W. GrimesAHDR=vi.h emacs.h common.h
3758f0484fSRodney W. GrimesASRC=${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c
3858f0484fSRodney W. Grimes
3958f0484fSRodney W. Grimesvi.h: vi.c makelist
4058f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -h ${.CURDIR}/vi.c > ${.TARGET}
4158f0484fSRodney W. Grimes
4258f0484fSRodney W. Grimesemacs.h: emacs.c makelist
4358f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -h ${.CURDIR}/emacs.c > ${.TARGET}
4458f0484fSRodney W. Grimes
4558f0484fSRodney W. Grimescommon.h: common.c makelist
4658f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -h ${.CURDIR}/common.c > ${.TARGET}
4758f0484fSRodney W. Grimes
4858f0484fSRodney W. Grimesfcns.h: ${AHDR} makelist
4958f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET}
5058f0484fSRodney W. Grimes
5158f0484fSRodney W. Grimesfcns.c: ${AHDR} fcns.h makelist
5258f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET}
5358f0484fSRodney W. Grimes
5458f0484fSRodney W. Grimeshelp.c: ${ASRC} makelist
5558f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET}
5658f0484fSRodney W. Grimes
5758f0484fSRodney W. Grimeshelp.h: ${ASRC} makelist
5858f0484fSRodney W. Grimes	sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET}
5958f0484fSRodney W. Grimes
60fb4289daSMike Smitheditline.c:
61fb4289daSMike Smith	sh ${.CURDIR}/makelist -e ${OSRCS} > ${.TARGET}
6258f0484fSRodney W. Grimes
63f92bdbd0SJohn Polstrabeforedepend editline.o editline.po editline.So: \
64fb4289daSMike Smith	vi.h emacs.h common.h fcns.h fcns.c help.h help.c
6558f0484fSRodney W. Grimes
666897a8a7SRodney W. Grimestest:	test.o libedit.a ${DPADD} ${LIBTERMCAP}
67b7e5f46aSPeter Wemm	${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD}
6858f0484fSRodney W. Grimes
6958f0484fSRodney W. Grimes.include <bsd.lib.mk>
70