# $NetBSD: Makefile,v 1.65 2017/06/30 20:26:52 kre Exp $ # @(#)Makefile 8.1 (Berkeley) 6/4/93 USE_SHLIBDIR= yes WARNS?= 5 LIB= edit LIBDPLIBS+= terminfo ${.CURDIR}/../libterminfo .include "bsd.own.mk" COPTS+= -Wunused-parameter CWARNFLAGS.gcc+= -Wconversion CWARNFLAGS.clang+= -Wno-cast-qual SRCS = chared.c chartype.c common.c el.c eln.c emacs.c filecomplete.c \ hist.c history.c historyn.c keymacro.c literal.c map.c \ parse.c prompt.c read.c readline.c refresh.c search.c sig.c \ terminal.c tokenizer.c tokenizern.c tty.c vi.c MAN= editline.3 editrc.5 editline.7 MLINKS= \ editline.3 el_deletestr.3 \ editline.3 el_end.3 \ editline.3 el_get.3 \ editline.3 el_getc.3 \ editline.3 el_gets.3 \ editline.3 el_init.3 \ editline.3 el_init_fd.3 \ editline.3 el_insertstr.3 \ editline.3 el_line.3 \ editline.3 el_parse.3 \ editline.3 el_push.3 \ editline.3 el_reset.3 \ editline.3 el_resize.3 \ editline.3 el_set.3 \ editline.3 el_source.3 \ editline.3 history.3 \ editline.3 history_end.3 \ editline.3 history_init.3 \ editline.3 tok_end.3 \ editline.3 tok_init.3 \ editline.3 tok_line.3 \ editline.3 tok_reset.3 \ editline.3 tok_str.3 MLINKS+= \ editline.3 el_wdeletestr.3 \ editline.3 el_wget.3 \ editline.3 el_wgetc.3 \ editline.3 el_wgets.3 \ editline.3 el_winsertstr.3 \ editline.3 el_wline.3 \ editline.3 el_wparse.3 \ editline.3 el_wpush.3 \ editline.3 el_wset.3 \ editline.3 history_w.3 \ editline.3 history_wend.3 \ editline.3 history_winit.3 \ editline.3 tok_wend.3 \ editline.3 tok_winit.3 \ editline.3 tok_wline.3 \ editline.3 tok_wreset.3 \ editline.3 tok_wstr.3 LIBEDITDIR?=${.CURDIR} INCS= histedit.h INCSDIR=/usr/include CLEANFILES+=common.h.tmp emacs.h.tmp fcns.h.tmp func.h.tmp CLEANFILES+=help.h.tmp vi.h.tmp tc1.o tc1 .depend CPPFLAGS+=-I. -I${LIBEDITDIR} CPPFLAGS+=-I. -I${.CURDIR} #CPPFLAGS+=-DDEBUG_TTY -DDEBUG_KEY -DDEBUG -DDEBUG_REFRESH #CPPFLAGS+=-DDEBUG_PASTE -DDEBUG_EDIT AHDR=vi.h emacs.h common.h ASRC=${LIBEDITDIR}/vi.c ${LIBEDITDIR}/emacs.c ${LIBEDITDIR}/common.c DPSRCS+= ${AHDR} fcns.h func.h help.h CLEANFILES+= ${AHDR} fcns.h func.h help.h SUBDIR= readline .depend: ${AHDR} fcns.h func.h help.h vi.h: vi.c makelist Makefile ${_MKTARGET_CREATE} ${HOST_SH} ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/vi.c \ > ${.TARGET}.tmp && \ mv ${.TARGET}.tmp ${.TARGET} emacs.h: emacs.c makelist Makefile ${_MKTARGET_CREATE} ${HOST_SH} ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/emacs.c \ > ${.TARGET}.tmp && \ mv ${.TARGET}.tmp ${.TARGET} common.h: common.c makelist Makefile ${_MKTARGET_CREATE} ${HOST_SH} ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/common.c \ > ${.TARGET}.tmp && \ mv ${.TARGET}.tmp ${.TARGET} fcns.h: ${AHDR} makelist Makefile ${_MKTARGET_CREATE} ${HOST_SH} ${LIBEDITDIR}/makelist -fh ${AHDR} > ${.TARGET}.tmp && \ mv ${.TARGET}.tmp ${.TARGET} func.h: ${AHDR} makelist Makefile ${_MKTARGET_CREATE} ${HOST_SH} ${LIBEDITDIR}/makelist -fc ${AHDR} > ${.TARGET}.tmp && \ mv ${.TARGET}.tmp ${.TARGET} help.h: ${ASRC} makelist Makefile ${_MKTARGET_CREATE} ${HOST_SH} ${LIBEDITDIR}/makelist -bh ${ASRC} > ${.TARGET}.tmp && \ mv ${.TARGET}.tmp ${.TARGET} tc1.o: ${LIBEDITDIR}/TEST/tc1.c tc1: libedit.a tc1.o ${_MKTARGET_LINK} ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} -ltermlib .include .include # XXX .if defined(HAVE_GCC) COPTS.editline.c+= -Wno-cast-qual COPTS.literal.c+= -Wno-sign-conversion COPTS.tokenizer.c+= -Wno-cast-qual COPTS.tokenizern.c+= -Wno-cast-qual .endif /commit/usr.bin/units?h=lockdoc-9.3-0.2&id=539a9e10ad746ea6c49f840e822746df63e4a7ed'>Improve the parser. Now we understand negative exponents; fixes PR 50768.dholland 2015-09-20Add tera- and peta-bytes.martin 2014-03-18Merge riastradh-drm2 to HEAD.riastradh 2014-01-07Annotate functions using format strings.joerg 2013-07-20Use Mt for email addresses.wiz 2013-01-06Sort options in man page SYNOPSIS and sync usage with it.wiz 2013-01-02Really expand the name, not the definition, as the comment says.apb 2013-01-01fix incomplete commentapb 2013-01-01Add -l and -L options to units(1). "-l" simply lists all unitapb 2013-01-01Correctly ignore duplicate definitions. "continue" applies only to theapb 2012-12-28Rename "tappit-hen" to "tappithen" because unit names cannot containapb 2012-12-28Allow a number and a unit to be juxtaposed without an intervening space.apb 2012-12-28Fix references to undefined units:apb 2012-12-28Improve the description of the [count] from-unit to-unit arguments.apb 2012-03-20Use C89 function definitionsmatt 2011-09-06ANSIfy, static + __deadjoerg 2011-04-03Expand user warning (adding examples) and move to CAVEATS as it's not fixable.dholland 2011-04-03remove stray extra worddholland 2011-03-28Add dholland's comment about units not warning users about non-sensicalfair 2011-03-28fix typodholland 2011-03-28Update radioactivity-related units from http://physics.nist.gov/cuu/Units/.dholland 2009-04-14Appease -Wcast-qual with a liberal sprinkling of const.lukem 2007-02-15dipotre -> dioptre.dogcow 2006-05-01Coverity CID 814: Add extraneous checks to shut up Coverity.christos 2005-09-11Use .Nm instead of the verbose program name. From YOMURA Masanori in private ...wiz 2005-02-01A hogshead is defined in the U.S. to be 63 gallons, and otherwise refersgroo 2004-11-04Add (unsigned char) cast to ctype functionsdsl 2003-12-05Recognize reciprocal conversions and generate output like GNU units(1).mycroft 2003-08-23Remove jeroboam, magnum, and rehoboam from the "trivia" section andatatat 2003-08-12add the smootdogcow 2003-07-26netbsd.org->NetBSD.orgsalo 2003-05-17use strl*itojun 2002-09-30New sentence, new line.grant 2002-08-31Remove bogus output of '\n' when using -q.kristerw 2002-04-02Fix a spelling error in the usage, and while I'm here, make it aatatat 2001-12-18mdoc'ify. Sort sections.wiz 2001-12-01Whitespace cleanup.wiz 2001-11-04Add ``score'' (20) to trivia section.groo 2001-10-16While I'm here, for those currencies that have a fixed exchange rate againstbjh21 2001-10-16Add "rackunit" (alias "RU" or "U").bjh21 2001-01-30Add 's' to netherlandguilder. Fixes bin/12082 by Benjamin Wong.wiz 2001-01-30Tyop: millennium, not millenium (FreeBSD PR/24369)mjl 2000-06-14sweep of my licenses (userland files w/o only my copyright) forcgd 2000-06-14fix up NetBSD RCS Ids to match the standard, and the leading comment ascgd 2000-04-14Don't declare 'extern opt*' getopt variables.simonb