1*c4a1f025SPedro F. Giffuni# $NetBSD: Makefile,v 1.37 2009/01/18 12:17:49 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 996535454SJilles TjoelkerOSRCS= chared.c common.c el.c emacs.c fcns.c filecomplete.c help.c \ 1096535454SJilles Tjoelker hist.c key.c map.c \ 11bd5176cbSMike Smith parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c 1258f0484fSRodney W. Grimes 13357bbe4aSRuslan ErmilovDPADD= ${LIBNCURSES} 142dea247fSJilles TjoelkerLDADD= -lncurses 15e46d877dSAndrey A. Chernov 164a558355SRuslan ErmilovMAN= editline.3 editrc.5 17bd5176cbSMike Smith 184f375b90SDavid E. O'BrienMLINKS= editline.3 el_deletestr.3 editline.3 el_end.3 editline.3 el_init.3 \ 194f375b90SDavid E. O'Brien editline.3 el_get.3 editline.3 el_getc.3 editline.3 el_gets.3 \ 204f375b90SDavid E. O'Brien editline.3 history.3 editline.3 history_end.3 \ 214f375b90SDavid E. O'Brien editline.3 history_init.3 editline.3 el_insertstr.3 \ 224f375b90SDavid E. O'Brien editline.3 el_line.3 editline.3 el_parse.3 editline.3 el_push.3 \ 234f375b90SDavid E. O'Brien editline.3 el_reset.3 editline.3 el_resize.3 editline.3 el_set.3 \ 2476d00450SStefan Farfeleder editline.3 el_source.3 \ 2576d00450SStefan Farfeleder editline.3 tok_init.3 editline.3 tok_end.3 editline.3 tok_reset.3 \ 2676d00450SStefan Farfeleder editline.3 tok_line.3 editline.3 tok_str.3 27bd5176cbSMike Smith 2858f0484fSRodney W. Grimes# For speed and debugging 291e3f1446SDavid E. O'Brien#SRCS= ${OSRCS} 3058f0484fSRodney W. Grimes# For protection 311e3f1446SDavid E. O'BrienSRCS= editline.c 321e3f1446SDavid E. O'BrienSRCS+= tokenizer.c history.c readline.c 33bd5176cbSMike SmithSRCS+= common.h emacs.h fcns.h help.h vi.h 34bd5176cbSMike SmithCLEANFILES+= common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h 354f375b90SDavid E. O'Brien 361e3f1446SDavid E. O'BrienINCS= histedit.h 371e3f1446SDavid E. O'Brien 381e3f1446SDavid E. O'BrienCFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/edit 3958f0484fSRodney W. GrimesCFLAGS+= #-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH 4076d00450SStefan FarfelederCFLAGS+= #-DDEBUG_PASTE -DDEBUG_EDIT 4158f0484fSRodney W. Grimes 42daaf5759SEd SchoutenWARNS?= 1 43daaf5759SEd Schouten 441e3f1446SDavid E. O'BrienSUBDIR= edit/readline 451e3f1446SDavid E. O'Brien 4658f0484fSRodney W. GrimesAHDR= vi.h emacs.h common.h 4758f0484fSRodney W. GrimesASRC= ${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c 4858f0484fSRodney W. Grimes 494f375b90SDavid E. O'Brien.for hdr in vi emacs common 504f375b90SDavid E. O'Brien${hdr}.h: ${hdr}.c makelist 514f375b90SDavid E. O'Brien sh ${.CURDIR}/makelist -h ${.CURDIR}/${hdr}.c > ${.TARGET} 524f375b90SDavid E. O'Brien.endfor 5358f0484fSRodney W. Grimes 5458f0484fSRodney W. Grimesfcns.h: ${AHDR} makelist 5558f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET} 5658f0484fSRodney W. Grimes 5758f0484fSRodney W. Grimesfcns.c: ${AHDR} fcns.h makelist 5858f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET} 5958f0484fSRodney W. Grimes 6058f0484fSRodney W. Grimeshelp.c: ${ASRC} makelist 6158f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET} 6258f0484fSRodney W. Grimes 6358f0484fSRodney W. Grimeshelp.h: ${ASRC} makelist 6458f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET} 6558f0484fSRodney W. Grimes 663c195773SDavid E. O'Brieneditline.c: ${OSRCS} 673c195773SDavid E. O'Brien sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET} 6858f0484fSRodney W. Grimes 693c195773SDavid E. O'Brien# minimal dependency to make "make depend" optional 703c195773SDavid E. O'Brieneditline.o editline.po editline.So editline.ln: \ 713c195773SDavid E. O'Brien common.h emacs.h fcns.c fcns.h help.c help.h vi.h 723c195773SDavid E. O'Brien 73*c4a1f025SPedro F. Giffunitc1.o: ${.CURDIR}/TEST/tc1.c 7458f0484fSRodney W. Grimes 75*c4a1f025SPedro F. Giffunitest: tc1.o libedit.a ${DPADD} ${LIBTERMCAP} 76b7e5f46aSPeter Wemm ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} 7758f0484fSRodney W. Grimes 7858f0484fSRodney W. Grimes.include <bsd.lib.mk> 79