1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2 3LIB= edit 4 5OSRCS= chared.c common.c el.c emacs.c hist.c key.c map.c parse.c \ 6 prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c \ 7 help.c fcns.c help.h 8 9LDADD+= -ltermcap 10DPADD+= ${LIBTERMCAP} 11 12# For speed and debugging 13#SRCS= ${OSRCS} tokenizer.c history.c 14# For protection 15SRCS= editline.c tokenizer.c history.c 16 17CLEANFILES+=common.h emacs.h fcns.h help.h vi.h help.c fcns.c editline.c 18CFLAGS+=-I. -I${.CURDIR} 19CFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH 20CFLAGS+=#-DDEBUG_PASTE 21 22AHDR=vi.h emacs.h common.h 23ASRC=${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c 24 25vi.h: vi.c makelist 26 sh ${.CURDIR}/makelist -h ${.CURDIR}/vi.c > ${.TARGET} 27 28emacs.h: emacs.c makelist 29 sh ${.CURDIR}/makelist -h ${.CURDIR}/emacs.c > ${.TARGET} 30 31common.h: common.c makelist 32 sh ${.CURDIR}/makelist -h ${.CURDIR}/common.c > ${.TARGET} 33 34fcns.h: ${AHDR} makelist 35 sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET} 36 37fcns.c: ${AHDR} fcns.h makelist 38 sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET} 39 40help.c: ${ASRC} makelist 41 sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET} 42 43help.h: ${ASRC} makelist 44 sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET} 45 46editline.c: ${OSRCS} 47 sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET} 48 49.depend: vi.h emacs.h common.h fcns.h help.h help.c 50 51 52test: test.o libedit.a ${DPADD} ${LIBTERMCAP} 53 ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} 54 55.include <bsd.lib.mk> 56