Makefile revision 1.18
11.18Schristos# $NetBSD: Makefile,v 1.18 1999/07/06 14:10:21 christos Exp $ 21.1Scgd# @(#)Makefile 8.1 (Berkeley) 6/4/93 31.1Scgd 41.1ScgdLIB= edit 51.1Scgd 61.8SmycroftOSRCS= chared.c common.c el.c emacs.c fcns.c help.c hist.c key.c map.c \ 71.8Smycroft parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c 81.1Scgd 91.5SlukemMAN= editline.3 editrc.5 101.5Slukem 111.5SlukemMLINKS= editline.3 el_init.3 editline.3 el_end.3 editline.3 el_reset.3 \ 121.5Slukem editline.3 el_gets.3 editline.3 el_getc.3 editline.3 el_push.3 \ 131.15Slukem editline.3 el_parse.3 editline.3 el_set.3 editline.3 el_get.3 \ 141.15Slukem editline.3 el_source.3 editline.3 el_resize.3 editline.3 el_line.3 \ 151.5Slukem editline.3 el_insertstr.3 editline.3 el_deletestr.3 \ 161.5Slukem editline.3 history_init.3 editline.3 history_end.3 editline.3 history.3 171.5Slukem 181.1Scgd# For speed and debugging 191.14Sthorpej#SRCS= ${OSRCS} tokenizer.c history.c readline.c 201.1Scgd# For protection 211.12SchristosSRCS= editline.c tokenizer.c history.c readline.c 221.1Scgd 231.8SmycroftSRCS+= common.h emacs.h fcns.h help.h vi.h 241.8Smycroft 251.18SchristosLIBEDITDIR?=${.CURDIR} 261.18Schristos 271.12SchristosINCS= histedit.h readline.h 281.7SchristosINCSDIR=/usr/include 291.13SchristosLINKS=${INCSDIR}/readline.h ${INCSDIR}/history.h 301.7Schristos 311.8SmycroftCLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h 321.18SchristosCPPFLAGS+=-I. -I${LIBEDITDIR} 331.17SsimonbCPPFLAGS+=-I. -I${.CURDIR} 341.11SlukemCPPFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH 351.11SlukemCPPFLAGS+=#-DDEBUG_PASTE 361.1Scgd 371.18SchristosAHDR=vi.h emacs.h common.h 381.18SchristosASRC=${LIBEDITDIR}/vi.c ${LIBEDITDIR}/emacs.c ${LIBEDITDIR}/common.c 391.1Scgd 401.1Scgdvi.h: vi.c makelist 411.18Schristos sh ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/vi.c > ${.TARGET} 421.1Scgd 431.1Scgdemacs.h: emacs.c makelist 441.18Schristos sh ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/emacs.c > ${.TARGET} 451.1Scgd 461.1Scgdcommon.h: common.c makelist 471.18Schristos sh ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/common.c > ${.TARGET} 481.1Scgd 491.1Scgdfcns.h: ${AHDR} makelist 501.18Schristos sh ${LIBEDITDIR}/makelist -fh ${AHDR} > ${.TARGET} 511.1Scgd 521.1Scgdfcns.c: ${AHDR} fcns.h makelist 531.18Schristos sh ${LIBEDITDIR}/makelist -fc ${AHDR} > ${.TARGET} 541.1Scgd 551.18Schristoshelp.c: ${ASRC} makelist 561.18Schristos sh ${LIBEDITDIR}/makelist -bc ${ASRC} > ${.TARGET} 571.1Scgd 581.1Scgdhelp.h: ${ASRC} makelist 591.18Schristos sh ${LIBEDITDIR}/makelist -bh ${ASRC} > ${.TARGET} 601.1Scgd 611.1Scgdeditline.c: ${OSRCS} 621.18Schristos sh ${LIBEDITDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET} 631.17Ssimonb 641.18Schristostest.o: ${LIBEDITDIR}/TEST/test.c 651.18Schristos 661.18Schristostest: libedit.a test.o 671.11Slukem ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} -ltermcap 681.16Sitohy 691.16Sitohy# minimal dependency to make "make depend" optional 701.16Sitohyeditline.o editline.po editline.so editline.ln: \ 711.16Sitohy common.h emacs.h fcns.c fcns.h help.c help.h vi.h 721.16Sitohyreadline.o readline.po readline.so readline.ln: \ 731.16Sitohy common.h emacs.h fcns.h help.h vi.h 741.1Scgd 751.1Scgd.include <bsd.lib.mk> 76