158f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 258f0484fSRodney W. Grimes 358f0484fSRodney W. GrimesLIB= edit 458f0484fSRodney W. Grimes 5bd5176cbSMike SmithOSRCS= chared.c common.c el.c emacs.c fcns.c help.c hist.c key.c map.c \ 6bd5176cbSMike Smith parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c 758f0484fSRodney W. Grimes 8e46d877dSAndrey A. ChernovLDADD+= -ltermcap 9b7e5f46aSPeter WemmDPADD+= ${LIBTERMCAP} 10e46d877dSAndrey A. Chernov 11f76efb86SAndrey A. ChernovMAN3= editline.3 12f76efb86SAndrey A. ChernovMAN5= editrc.5 13bd5176cbSMike Smith 14bd5176cbSMike SmithMLINKS= editline.3 el_init.3 editline.3 el_end.3 editline.3 el_reset.3 \ 15bd5176cbSMike Smith editline.3 el_gets.3 editline.3 el_getc.3 editline.3 el_push.3 \ 16bd5176cbSMike Smith editline.3 el_parse.3 editline.3 el_set.3 editline.3 el_source.3 \ 17bd5176cbSMike Smith editline.3 el_resize.3 editline.3 el_line.3 \ 18bd5176cbSMike Smith editline.3 el_insertstr.3 editline.3 el_deletestr.3 \ 19bd5176cbSMike Smith editline.3 history_init.3 editline.3 history_end.3 editline.3 history.3 20bd5176cbSMike Smith 21bd5176cbSMike Smith 2258f0484fSRodney W. Grimes# For speed and debugging 2358f0484fSRodney W. Grimes#SRCS= ${OSRCS} tokenizer.c history.c 2458f0484fSRodney W. Grimes# For protection 2558f0484fSRodney W. GrimesSRCS= editline.c tokenizer.c history.c 2658f0484fSRodney W. Grimes 27bd5176cbSMike SmithSRCS+= common.h emacs.h fcns.h help.h vi.h 28bd5176cbSMike Smith 29bd5176cbSMike SmithCLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h 3058f0484fSRodney W. GrimesCFLAGS+=-I. -I${.CURDIR} 3158f0484fSRodney W. GrimesCFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH 3258f0484fSRodney W. GrimesCFLAGS+=#-DDEBUG_PASTE 3358f0484fSRodney W. Grimes 3458f0484fSRodney W. GrimesAHDR=vi.h emacs.h common.h 3558f0484fSRodney W. GrimesASRC=${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c 3658f0484fSRodney W. Grimes 3758f0484fSRodney W. Grimesvi.h: vi.c makelist 3858f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -h ${.CURDIR}/vi.c > ${.TARGET} 3958f0484fSRodney W. Grimes 4058f0484fSRodney W. Grimesemacs.h: emacs.c makelist 4158f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -h ${.CURDIR}/emacs.c > ${.TARGET} 4258f0484fSRodney W. Grimes 4358f0484fSRodney W. Grimescommon.h: common.c makelist 4458f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -h ${.CURDIR}/common.c > ${.TARGET} 4558f0484fSRodney W. Grimes 4658f0484fSRodney W. Grimesfcns.h: ${AHDR} makelist 4758f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET} 4858f0484fSRodney W. Grimes 4958f0484fSRodney W. Grimesfcns.c: ${AHDR} fcns.h makelist 5058f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET} 5158f0484fSRodney W. Grimes 5258f0484fSRodney W. Grimeshelp.c: ${ASRC} makelist 5358f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET} 5458f0484fSRodney W. Grimes 5558f0484fSRodney W. Grimeshelp.h: ${ASRC} makelist 5658f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET} 5758f0484fSRodney W. Grimes 5858f0484fSRodney W. Grimeseditline.c: ${OSRCS} 5958f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET} 6058f0484fSRodney W. Grimes 6158f0484fSRodney W. Grimes.depend: vi.h emacs.h common.h fcns.h help.h help.c 6258f0484fSRodney W. Grimes 636897a8a7SRodney W. Grimestest: test.o libedit.a ${DPADD} ${LIBTERMCAP} 64b7e5f46aSPeter Wemm ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} 6558f0484fSRodney W. Grimes 6658f0484fSRodney W. Grimes.include <bsd.lib.mk> 67