1678bbc14SPedro F. Giffuni# $NetBSD: Makefile,v 1.56 2016/03/02 19:24:20 christos Exp $ 258f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 33cf3c5d9SMarcel Moolenaar# $FreeBSD$ 458f0484fSRodney W. Grimes 5c389411cSGlen BarberPACKAGE=clibs 6*6ea268b6SPedro F. Giffuni 73ca3047aSKen SmithSHLIB_MAJOR= 7 841d8423fSGordon TetlowSHLIBDIR?= /lib 958f0484fSRodney W. Grimes 1098fa04efSPedro F. GiffuniWARNS?= 3 11*6ea268b6SPedro F. GiffuniLIB= edit 12*6ea268b6SPedro F. Giffuni 13*6ea268b6SPedro F. GiffuniLIBADD= ncursesw 1498fa04efSPedro F. Giffuni 15450aba5bSPedro F. GiffuniOSRCS= chared.c common.c el.c eln.c emacs.c fcns.c filecomplete.c help.c \ 16c1a66a97SBaptiste Daroussin hist.c keymacro.c map.c chartype.c \ 17c1a66a97SBaptiste Daroussin parse.c prompt.c read.c refresh.c search.c sig.c terminal.c tty.c vi.c 1858f0484fSRodney W. Grimes 194a558355SRuslan ErmilovMAN= editline.3 editrc.5 20bd5176cbSMike Smith 214f375b90SDavid E. O'BrienMLINKS= editline.3 el_deletestr.3 editline.3 el_end.3 editline.3 el_init.3 \ 224f375b90SDavid E. O'Brien editline.3 el_get.3 editline.3 el_getc.3 editline.3 el_gets.3 \ 234f375b90SDavid E. O'Brien editline.3 history.3 editline.3 history_end.3 \ 244f375b90SDavid E. O'Brien editline.3 history_init.3 editline.3 el_insertstr.3 \ 254f375b90SDavid E. O'Brien editline.3 el_line.3 editline.3 el_parse.3 editline.3 el_push.3 \ 264f375b90SDavid E. O'Brien editline.3 el_reset.3 editline.3 el_resize.3 editline.3 el_set.3 \ 2776d00450SStefan Farfeleder editline.3 el_source.3 \ 2876d00450SStefan Farfeleder editline.3 tok_init.3 editline.3 tok_end.3 editline.3 tok_reset.3 \ 2976d00450SStefan Farfeleder editline.3 tok_line.3 editline.3 tok_str.3 30bd5176cbSMike Smith 3158f0484fSRodney W. Grimes# For speed and debugging 32*6ea268b6SPedro F. Giffuni#SRCS= ${OSRCS} readline.c tokenizer.c history.c 3358f0484fSRodney W. Grimes# For protection 34*6ea268b6SPedro F. GiffuniSRCS= editline.c readline.c tokenizer.c history.c 35bd5176cbSMike SmithSRCS+= common.h emacs.h fcns.h help.h vi.h 36*6ea268b6SPedro F. Giffuni 37*6ea268b6SPedro F. Giffuni# Widechar 38*6ea268b6SPedro F. GiffuniSRCS+= tokenizern.c historyn.c 39*6ea268b6SPedro F. GiffuniCLEANFILES+= tokenizern.c historyn.c 404f375b90SDavid E. O'Brien 411e3f1446SDavid E. O'BrienINCS= histedit.h 421e3f1446SDavid E. O'Brien 43*6ea268b6SPedro F. GiffuniCLEANFILES+= common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h 44c1a66a97SBaptiste DaroussinCFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/edit -DWIDECHAR 45678bbc14SPedro F. Giffuni#CFLAGS+= -DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH 46678bbc14SPedro F. Giffuni#CFLAGS+= -DDEBUG_PASTE -DDEBUG_EDIT 4758f0484fSRodney W. Grimes 4858f0484fSRodney W. GrimesAHDR= vi.h emacs.h common.h 4958f0484fSRodney W. GrimesASRC= ${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c 5058f0484fSRodney W. Grimes 51*6ea268b6SPedro F. GiffuniSUBDIR= edit/readline 52*6ea268b6SPedro F. Giffuni 534f375b90SDavid E. O'Brien.for hdr in vi emacs common 544f375b90SDavid E. O'Brien${hdr}.h: ${hdr}.c makelist 554f375b90SDavid E. O'Brien sh ${.CURDIR}/makelist -h ${.CURDIR}/${hdr}.c > ${.TARGET} 564f375b90SDavid E. O'Brien.endfor 5758f0484fSRodney W. Grimes 5858f0484fSRodney W. Grimesfcns.h: ${AHDR} makelist 5958f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET} 6058f0484fSRodney W. Grimes 6158f0484fSRodney W. Grimesfcns.c: ${AHDR} fcns.h makelist 6258f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET} 6358f0484fSRodney W. Grimes 6458f0484fSRodney W. Grimeshelp.c: ${ASRC} makelist 6558f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET} 6658f0484fSRodney W. Grimes 6758f0484fSRodney W. Grimeshelp.h: ${ASRC} makelist 6858f0484fSRodney W. Grimes sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET} 6958f0484fSRodney W. Grimes 703c195773SDavid E. O'Brieneditline.c: ${OSRCS} 713c195773SDavid E. O'Brien sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET} 7258f0484fSRodney W. Grimes 73c1a66a97SBaptiste Daroussintokenizern.c: makelist Makefile 74c1a66a97SBaptiste Daroussin sh ${.CURDIR}/makelist -n tokenizer.c > ${.TARGET} 75c1a66a97SBaptiste Daroussin 76c1a66a97SBaptiste Daroussinhistoryn.c: makelist Makefile 77c1a66a97SBaptiste Daroussin sh ${.CURDIR}/makelist -n history.c > ${.TARGET} 78c1a66a97SBaptiste Daroussin 793c195773SDavid E. O'Brien# minimal dependency to make "make depend" optional 802b4da8aaSMarcel Moolenaareditline.o editline.po editline.pico editline.ln: \ 813c195773SDavid E. O'Brien common.h emacs.h fcns.c fcns.h help.c help.h vi.h 823c195773SDavid E. O'Brien 83c4a1f025SPedro F. Giffunitc1.o: ${.CURDIR}/TEST/tc1.c 8458f0484fSRodney W. Grimes 85c4a1f025SPedro F. Giffunitest: tc1.o libedit.a ${DPADD} ${LIBTERMCAP} 86b7e5f46aSPeter Wemm ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} 8758f0484fSRodney W. Grimes 8858f0484fSRodney W. Grimes.include <bsd.lib.mk> 89