Makefile revision 1.19
11.19Smrg# $NetBSD: Makefile,v 1.19 2000/08/15 12:01:40 mrg 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.19SmrgCLEANFILES+=common.h.tmp editline.c.tmp emacs.h.tmp fcns.c.tmp fcns.h.tmp 331.19SmrgCLEANFILES+=help.c.tmp help.h.tmp vi.h.tmp 341.18SchristosCPPFLAGS+=-I. -I${LIBEDITDIR} 351.17SsimonbCPPFLAGS+=-I. -I${.CURDIR} 361.11SlukemCPPFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH 371.11SlukemCPPFLAGS+=#-DDEBUG_PASTE 381.1Scgd 391.18SchristosAHDR=vi.h emacs.h common.h 401.18SchristosASRC=${LIBEDITDIR}/vi.c ${LIBEDITDIR}/emacs.c ${LIBEDITDIR}/common.c 411.1Scgd 421.1Scgdvi.h: vi.c makelist 431.19Smrg sh ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/vi.c > ${.TARGET}.tmp && \ 441.19Smrg mv ${.TARGET}.tmp ${.TARGET} 451.1Scgd 461.1Scgdemacs.h: emacs.c makelist 471.19Smrg sh ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/emacs.c > ${.TARGET}.tmp && \ 481.19Smrg mv ${.TARGET}.tmp ${.TARGET} 491.1Scgd 501.1Scgdcommon.h: common.c makelist 511.19Smrg sh ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/common.c > ${.TARGET}.tmp && \ 521.19Smrg mv ${.TARGET}.tmp ${.TARGET} 531.1Scgd 541.1Scgdfcns.h: ${AHDR} makelist 551.19Smrg sh ${LIBEDITDIR}/makelist -fh ${AHDR} > ${.TARGET}.tmp && \ 561.19Smrg mv ${.TARGET}.tmp ${.TARGET} 571.1Scgd 581.1Scgdfcns.c: ${AHDR} fcns.h makelist 591.19Smrg sh ${LIBEDITDIR}/makelist -fc ${AHDR} > ${.TARGET}.tmp && \ 601.19Smrg mv ${.TARGET}.tmp ${.TARGET} 611.1Scgd 621.18Schristoshelp.c: ${ASRC} makelist 631.19Smrg sh ${LIBEDITDIR}/makelist -bc ${ASRC} > ${.TARGET}.tmp && \ 641.19Smrg mv ${.TARGET}.tmp ${.TARGET} 651.1Scgd 661.1Scgdhelp.h: ${ASRC} makelist 671.19Smrg sh ${LIBEDITDIR}/makelist -bh ${ASRC} > ${.TARGET}.tmp && \ 681.19Smrg mv ${.TARGET}.tmp ${.TARGET} 691.1Scgd 701.1Scgdeditline.c: ${OSRCS} 711.19Smrg sh ${LIBEDITDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET}.tmp && \ 721.19Smrg mv ${.TARGET}.tmp ${.TARGET} 731.17Ssimonb 741.18Schristostest.o: ${LIBEDITDIR}/TEST/test.c 751.18Schristos 761.18Schristostest: libedit.a test.o 771.11Slukem ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} -ltermcap 781.16Sitohy 791.16Sitohy# minimal dependency to make "make depend" optional 801.16Sitohyeditline.o editline.po editline.so editline.ln: \ 811.16Sitohy common.h emacs.h fcns.c fcns.h help.c help.h vi.h 821.16Sitohyreadline.o readline.po readline.so readline.ln: \ 831.16Sitohy common.h emacs.h fcns.h help.h vi.h 841.1Scgd 851.1Scgd.include <bsd.lib.mk> 86