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
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
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
38 sh ${.CURDIR}/makelist -h ${.CURDIR}/vi.c > ${.TARGET}
39
40emacs.h: emacs.c makelist
41 sh ${.CURDIR}/makelist -h ${.CURDIR}/emacs.c > ${.TARGET}
42
43common.h: common.c makelist
44 sh ${.CURDIR}/makelist -h ${.CURDIR}/common.c > ${.TARGET}
45
46fcns.h: ${AHDR} makelist
47 sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET}
48
49fcns.c: ${AHDR} fcns.h makelist
50 sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET}
51
52help.c: ${ASRC} makelist
53 sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET}
54
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>