1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2 3LIB= edit 4 |
5OSRCS= chared.c common.c el.c emacs.c fcns.c help.c hist.c key.c map.c \ 6 parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c |
7 8LDADD+= -ltermcap 9DPADD+= ${LIBTERMCAP} 10 |
11MAN3= editline.3 editrc.5 12 13MLINKS= editline.3 el_init.3 editline.3 el_end.3 editline.3 el_reset.3 \ 14 editline.3 el_gets.3 editline.3 el_getc.3 editline.3 el_push.3 \ 15 editline.3 el_parse.3 editline.3 el_set.3 editline.3 el_source.3 \ 16 editline.3 el_resize.3 editline.3 el_line.3 \ 17 editline.3 el_insertstr.3 editline.3 el_deletestr.3 \ 18 editline.3 history_init.3 editline.3 history_end.3 editline.3 history.3 19 20 |
21# For speed and debugging 22#SRCS= ${OSRCS} tokenizer.c history.c 23# For protection 24SRCS= editline.c tokenizer.c history.c 25 |
26SRCS+= common.h emacs.h fcns.h help.h vi.h 27HEADERS=histedit.h 28 29CLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h |
30CFLAGS+=-I. -I${.CURDIR} 31CFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH 32CFLAGS+=#-DDEBUG_PASTE 33 34AHDR=vi.h emacs.h common.h 35ASRC=${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c 36 37vi.h: vi.c makelist --- 17 unchanged lines hidden (view full) --- 55help.h: ${ASRC} makelist 56 sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET} 57 58editline.c: ${OSRCS} 59 sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET} 60 61.depend: vi.h emacs.h common.h fcns.h help.h help.c 62 |
63test: test.o libedit.a ${DPADD} ${LIBTERMCAP} 64 ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} 65 |
66beforeinstall: 67 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ 68 ${.CURDIR}/histedit.h ${DESTDIR}/usr/include 69 |
70.include <bsd.lib.mk> |