Makefile revision 1.13
11.13Schristos#	$NetBSD: Makefile,v 1.13 1997/10/26 20:17:48 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.13SchristosLINKS=${INCSDIR}/readline.h ${INCSDIR}/history.h
281.7Schristos
291.8SmycroftCLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h
301.11SlukemCPPFLAGS+=-I. -I${.CURDIR} 
311.11SlukemCPPFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
321.11SlukemCPPFLAGS+=#-DDEBUG_PASTE
331.1Scgd
341.1ScgdAHDR=vi.h emacs.h common.h 
351.1ScgdASRC=${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c
361.1Scgd
371.1Scgdvi.h: vi.c makelist
381.1Scgd	sh ${.CURDIR}/makelist -h ${.CURDIR}/vi.c > ${.TARGET}
391.1Scgd
401.1Scgdemacs.h: emacs.c makelist
411.1Scgd	sh ${.CURDIR}/makelist -h ${.CURDIR}/emacs.c > ${.TARGET}
421.1Scgd
431.1Scgdcommon.h: common.c makelist
441.1Scgd	sh ${.CURDIR}/makelist -h ${.CURDIR}/common.c > ${.TARGET}
451.1Scgd
461.1Scgdfcns.h: ${AHDR} makelist
471.1Scgd	sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET}
481.1Scgd
491.1Scgdfcns.c: ${AHDR} fcns.h makelist
501.1Scgd	sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET}
511.1Scgd
521.1Scgdhelp.c: ${ASRC} makelist 
531.1Scgd	sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET}
541.1Scgd
551.1Scgdhelp.h: ${ASRC} makelist
561.1Scgd	sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET}
571.1Scgd
581.1Scgdeditline.c: ${OSRCS}
591.1Scgd	sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET}
601.1Scgd
611.11Slukemtest.o:	${.CURDIR}/TEST/test.c
621.11Slukem	
631.1Scgdtest:	libedit.a test.o 
641.11Slukem	${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} -ltermcap
651.1Scgd
661.1Scgd.include <bsd.lib.mk>
67