13c195773SDavid E. O'Brien# $NetBSD: Makefile,v 1.19 2000/08/15 12:01:40 mrg Exp $ 258f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 33cf3c5d9SMarcel Moolenaar# $FreeBSD$ 458f0484fSRodney W. Grimes 558f0484fSRodney W. GrimesLIB= edit 63c195773SDavid E. O'BrienSHLIB_MAJOR= 4 73cf3c5d9SMarcel MoolenaarSHLIB_MINOR= 0 858f0484fSRodney W. Grimes 9bd5176cbSMike SmithOSRCS= chared.c common.c el.c emacs.c fcns.c help.c hist.c key.c map.c \ 10bd5176cbSMike Smith parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c 1158f0484fSRodney W. Grimes 121b779c59SMarcel MoolenaarDPADD= ${LIBTERMCAP} 131b779c59SMarcel MoolenaarLDADD= -ltermcap 14e46d877dSAndrey A. Chernov 154a558355SRuslan ErmilovMAN= editline.3 editrc.5 16bd5176cbSMike Smith 17bd5176cbSMike SmithMLINKS= editline.3 el_init.3 editline.3 el_end.3 editline.3 el_reset.3 \ 183c195773SDavid E. O'Brien editline.3 el_get.3 \ 19bd5176cbSMike Smith editline.3 el_gets.3 editline.3 el_getc.3 editline.3 el_push.3 \ 20bd5176cbSMike Smith editline.3 el_parse.3 editline.3 el_set.3 editline.3 el_source.3 \ 21bd5176cbSMike Smith editline.3 el_resize.3 editline.3 el_line.3 \ 22bd5176cbSMike Smith editline.3 el_insertstr.3 editline.3 el_deletestr.3 \ 2370ff7ab7SMatthew N. Dodd editline.3 history_init.3 editline.3 history_end.3 \ 243c195773SDavid E. O'Brien editline.3 history.3 25bd5176cbSMike Smith 2658f0484fSRodney W. Grimes# For speed and debugging 2758f0484fSRodney W. Grimes#SRCS= ${OSRCS} tokenizer.c history.c 2858f0484fSRodney W. Grimes# For protection 2958f0484fSRodney W. GrimesSRCS= editline.c tokenizer.c history.c 3058f0484fSRodney W. Grimes 31bd5176cbSMike SmithSRCS+= common.h emacs.h fcns.h help.h vi.h 323c195773SDavid E. O'BrienINCS= histedit.h 33bd5176cbSMike Smith 34bd5176cbSMike SmithCLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h 3558f0484fSRodney W. GrimesCFLAGS+=-I. -I${.CURDIR} 3658f0484fSRodney W. GrimesCFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH 3758f0484fSRodney W. GrimesCFLAGS+=#-DDEBUG_PASTE 3858f0484fSRodney W. Grimes 3958f0484fSRodney W. GrimesAHDR=vi.h emacs.h common.h 4058f0484fSRodney W. GrimesASRC=${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c 4158f0484fSRodney W. Grimes 4258f0484fSRodney W. Grimesvi.h: vi.c makelist 4358f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -h ${.CURDIR}/vi.c > ${.TARGET} 4458f0484fSRodney W. Grimes 4558f0484fSRodney W. Grimesemacs.h: emacs.c makelist 4658f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -h ${.CURDIR}/emacs.c > ${.TARGET} 4758f0484fSRodney W. Grimes 4858f0484fSRodney W. Grimescommon.h: common.c makelist 4958f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -h ${.CURDIR}/common.c > ${.TARGET} 5058f0484fSRodney W. Grimes 5158f0484fSRodney W. Grimesfcns.h: ${AHDR} makelist 5258f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET} 5358f0484fSRodney W. Grimes 5458f0484fSRodney W. Grimesfcns.c: ${AHDR} fcns.h makelist 5558f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET} 5658f0484fSRodney W. Grimes 5758f0484fSRodney W. Grimeshelp.c: ${ASRC} makelist 5858f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET} 5958f0484fSRodney W. Grimes 6058f0484fSRodney W. Grimeshelp.h: ${ASRC} makelist 6158f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET} 6258f0484fSRodney W. Grimes 633c195773SDavid E. O'Brieneditline.c: ${OSRCS} 643c195773SDavid E. O'Brien sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET} 6558f0484fSRodney W. Grimes 663c195773SDavid E. O'Brien# minimal dependency to make "make depend" optional 673c195773SDavid E. O'Brieneditline.o editline.po editline.So editline.ln: \ 683c195773SDavid E. O'Brien common.h emacs.h fcns.c fcns.h help.c help.h vi.h 693c195773SDavid E. O'Brien 703c195773SDavid E. O'Brientest.o: ${.CURDIR}/TEST/test.c 7158f0484fSRodney W. Grimes 726897a8a7SRodney W. Grimestest: test.o libedit.a ${DPADD} ${LIBTERMCAP} 73b7e5f46aSPeter Wemm ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} 7458f0484fSRodney W. Grimes 7558f0484fSRodney W. Grimes.include <bsd.lib.mk> 76