Deleted Added
full compact
Makefile (17929) Makefile (26926)
1# @(#)Makefile 8.1 (Berkeley) 6/4/93
2
3LIB= edit
4
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
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
8
9LDADD+= -ltermcap
10DPADD+= ${LIBTERMCAP}
11
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
12# For speed and debugging
13#SRCS= ${OSRCS} tokenizer.c history.c
14# For protection
15SRCS= editline.c tokenizer.c history.c
16
21# For speed and debugging
22#SRCS= ${OSRCS} tokenizer.c history.c
23# For protection
24SRCS= editline.c tokenizer.c history.c
25
17CLEANFILES+=common.h emacs.h fcns.h help.h vi.h help.c fcns.c editline.c
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
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

--- 17 unchanged lines hidden (view full) ---

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
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
51
52test: test.o libedit.a ${DPADD} ${LIBTERMCAP}
53 ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD}
54
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
55.include <bsd.lib.mk>
70.include <bsd.lib.mk>