1*61274Sbostic# @(#)Makefile 8.1 (Berkeley) 06/04/93 254251Smarc 355252SmarcLIB= edit 455252Smarc 555252SmarcOSRCS= chared.c common.c el.c emacs.c hist.c key.c map.c parse.c \ 655252Smarc prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c \ 755252Smarc help.c fcns.c 855252Smarc 955252Smarc# For speed and debugging 1055252Smarc#SRCS= ${OSRCS} tokenizer.c history.c 1155252Smarc# For protection 1255252SmarcSRCS= editline.c tokenizer.c history.c 1355252Smarc 1455252SmarcCLEANFILES+=common.h emacs.h fcns.h help.h vi.h help.c fcns.c editline.c 1555252SmarcCFLAGS+=-I. -I${.CURDIR} 1654251SmarcCFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH 1754251SmarcCFLAGS+=#-DDEBUG_PASTE 1854251Smarc 1955252SmarcAHDR=vi.h emacs.h common.h 2055252SmarcASRC=${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c 2155252Smarc 2254251Smarcvi.h: vi.c makelist 2355252Smarc sh ${.CURDIR}/makelist -h ${.CURDIR}/vi.c > ${.TARGET} 2454251Smarc 2554251Smarcemacs.h: emacs.c makelist 2655252Smarc sh ${.CURDIR}/makelist -h ${.CURDIR}/emacs.c > ${.TARGET} 2754251Smarc 2854251Smarccommon.h: common.c makelist 2955252Smarc sh ${.CURDIR}/makelist -h ${.CURDIR}/common.c > ${.TARGET} 3054251Smarc 3154251Smarcfcns.h: ${AHDR} makelist 3255252Smarc sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET} 3354251Smarc 3454251Smarcfcns.c: ${AHDR} fcns.h makelist 3555252Smarc sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET} 3654251Smarc 3754251Smarchelp.c: ${ASRC} makelist 3855252Smarc sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET} 3954251Smarc 4055252Smarchelp.h: ${ASRC} makelist 4155252Smarc sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET} 4254251Smarc 4355252Smarceditline.c: ${OSRCS} 4455252Smarc sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET} 4554251Smarc 4655252Smarc.depend: vi.h emacs.h common.h fcns.h help.h help.c 4755252Smarc 4855252Smarc 4955252Smarctest: libedit.a test.o 5055252Smarc ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} -ltermcap 5155252Smarc 5254251Smarcbeforeinstall: 5355252Smarc -cd ${.CURDIR}; cmp -s histedit.h ${DESTDIR}/usr/include/histedit.h > \ 5455252Smarc /dev/null 2>&1 || \ 5555252Smarc install -c -o ${BINOWN} -g ${BINGRP} -m 444 histedit.h \ 5655252Smarc ${DESTDIR}/usr/include 5754251Smarc 5854251Smarc.include <bsd.lib.mk> 59