Makefile revision 1.12
11.12Schristos#	$NetBSD: Makefile,v 1.12 1997/10/23 22:24:09 christos Exp $
21.1Scgd#	@(#)Makefile	8.1 (Berkeley) 6/4/93
31.1Scgd
41.1ScgdLIB=	edit
51.1Scgd
61.8SmycroftOSRCS=	chared.c common.c el.c emacs.c fcns.c help.c hist.c key.c map.c \
71.8Smycroft	parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c
81.1Scgd
91.5SlukemMAN=	editline.3 editrc.5
101.5Slukem
111.5SlukemMLINKS=	editline.3 el_init.3 editline.3 el_end.3 editline.3 el_reset.3 \
121.5Slukem	editline.3 el_gets.3 editline.3 el_getc.3 editline.3 el_push.3 \
131.5Slukem	editline.3 el_parse.3 editline.3 el_set.3 editline.3 el_source.3 \
141.5Slukem	editline.3 el_resize.3 editline.3 el_line.3 \
151.5Slukem	editline.3 el_insertstr.3 editline.3 el_deletestr.3 \
161.5Slukem	editline.3 history_init.3 editline.3 history_end.3 editline.3 history.3
171.5Slukem
181.1Scgd# For speed and debugging
191.1Scgd#SRCS=   ${OSRCS} tokenizer.c history.c
201.1Scgd# For protection
211.12SchristosSRCS=	editline.c tokenizer.c history.c readline.c
221.1Scgd
231.8SmycroftSRCS+=	common.h emacs.h fcns.h help.h vi.h
241.8Smycroft
251.12SchristosINCS= histedit.h readline.h
261.7SchristosINCSDIR=/usr/include
271.7Schristos
281.8SmycroftCLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h
291.11SlukemCPPFLAGS+=-I. -I${.CURDIR} 
301.11SlukemCPPFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
311.11SlukemCPPFLAGS+=#-DDEBUG_PASTE
321.1Scgd
331.1ScgdAHDR=vi.h emacs.h common.h 
341.1ScgdASRC=${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c
351.1Scgd
361.1Scgdvi.h: vi.c makelist
371.1Scgd	sh ${.CURDIR}/makelist -h ${.CURDIR}/vi.c > ${.TARGET}
381.1Scgd
391.1Scgdemacs.h: emacs.c makelist
401.1Scgd	sh ${.CURDIR}/makelist -h ${.CURDIR}/emacs.c > ${.TARGET}
411.1Scgd
421.1Scgdcommon.h: common.c makelist
431.1Scgd	sh ${.CURDIR}/makelist -h ${.CURDIR}/common.c > ${.TARGET}
441.1Scgd
451.1Scgdfcns.h: ${AHDR} makelist
461.1Scgd	sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET}
471.1Scgd
481.1Scgdfcns.c: ${AHDR} fcns.h makelist
491.1Scgd	sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET}
501.1Scgd
511.1Scgdhelp.c: ${ASRC} makelist 
521.1Scgd	sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET}
531.1Scgd
541.1Scgdhelp.h: ${ASRC} makelist
551.1Scgd	sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET}
561.1Scgd
571.1Scgdeditline.c: ${OSRCS}
581.1Scgd	sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET}
591.1Scgd
601.11Slukemtest.o:	${.CURDIR}/TEST/test.c
611.11Slukem	
621.1Scgdtest:	libedit.a test.o 
631.11Slukem	${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} -ltermcap
641.1Scgd
651.1Scgd.include <bsd.lib.mk>
66