176d00450SStefan Farfeleder# $NetBSD: Makefile,v 1.34 2005/05/28 12:02:53 lukem Exp $ 258f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 33cf3c5d9SMarcel Moolenaar# $FreeBSD$ 458f0484fSRodney W. Grimes 558f0484fSRodney W. GrimesLIB= edit 63ca3047aSKen SmithSHLIB_MAJOR= 7 741d8423fSGordon TetlowSHLIBDIR?= /lib 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 12357bbe4aSRuslan ErmilovDPADD= ${LIBNCURSES} 13357bbe4aSRuslan ErmilovLDADD= -lncurses 14e46d877dSAndrey A. Chernov 154a558355SRuslan ErmilovMAN= editline.3 editrc.5 16bd5176cbSMike Smith 174f375b90SDavid E. O'BrienMLINKS= editline.3 el_deletestr.3 editline.3 el_end.3 editline.3 el_init.3 \ 184f375b90SDavid E. O'Brien editline.3 el_get.3 editline.3 el_getc.3 editline.3 el_gets.3 \ 194f375b90SDavid E. O'Brien editline.3 history.3 editline.3 history_end.3 \ 204f375b90SDavid E. O'Brien editline.3 history_init.3 editline.3 el_insertstr.3 \ 214f375b90SDavid E. O'Brien editline.3 el_line.3 editline.3 el_parse.3 editline.3 el_push.3 \ 224f375b90SDavid E. O'Brien editline.3 el_reset.3 editline.3 el_resize.3 editline.3 el_set.3 \ 2376d00450SStefan Farfeleder editline.3 el_source.3 \ 2476d00450SStefan Farfeleder editline.3 tok_init.3 editline.3 tok_end.3 editline.3 tok_reset.3 \ 2576d00450SStefan Farfeleder editline.3 tok_line.3 editline.3 tok_str.3 26bd5176cbSMike Smith 2758f0484fSRodney W. Grimes# For speed and debugging 2858f0484fSRodney W. Grimes#SRCS= ${OSRCS} tokenizer.c history.c 2958f0484fSRodney W. Grimes# For protection 3058f0484fSRodney W. GrimesSRCS= editline.c tokenizer.c history.c 31bd5176cbSMike SmithSRCS+= common.h emacs.h fcns.h help.h vi.h 32bd5176cbSMike SmithCLEANFILES+= common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h 334f375b90SDavid E. O'Brien 3458f0484fSRodney W. GrimesCFLAGS+= -I. -I${.CURDIR} 3558f0484fSRodney W. GrimesCFLAGS+= #-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH 3676d00450SStefan FarfelederCFLAGS+= #-DDEBUG_PASTE -DDEBUG_EDIT 3758f0484fSRodney W. Grimes 3858f0484fSRodney W. GrimesAHDR= vi.h emacs.h common.h 3958f0484fSRodney W. GrimesASRC= ${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c 4058f0484fSRodney W. Grimes 414f375b90SDavid E. O'Brien.for hdr in vi emacs common 424f375b90SDavid E. O'Brien${hdr}.h: ${hdr}.c makelist 434f375b90SDavid E. O'Brien sh ${.CURDIR}/makelist -h ${.CURDIR}/${hdr}.c > ${.TARGET} 444f375b90SDavid E. O'Brien.endfor 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 583c195773SDavid E. O'Brieneditline.c: ${OSRCS} 593c195773SDavid E. O'Brien sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET} 6058f0484fSRodney W. Grimes 613c195773SDavid E. O'Brien# minimal dependency to make "make depend" optional 623c195773SDavid E. O'Brieneditline.o editline.po editline.So editline.ln: \ 633c195773SDavid E. O'Brien common.h emacs.h fcns.c fcns.h help.c help.h vi.h 643c195773SDavid E. O'Brien 653c195773SDavid E. O'Brientest.o: ${.CURDIR}/TEST/test.c 6658f0484fSRodney W. Grimes 676897a8a7SRodney W. Grimestest: test.o libedit.a ${DPADD} ${LIBTERMCAP} 68b7e5f46aSPeter Wemm ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} 6958f0484fSRodney W. Grimes 7058f0484fSRodney W. Grimes.include <bsd.lib.mk> 71