Home | History | Annotate | Line # | Download | only in libedit
Makefile revision 1.5
      1  1.1      cgd #	@(#)Makefile	8.1 (Berkeley) 6/4/93
      2  1.1      cgd 
      3  1.1      cgd LIB=	edit
      4  1.1      cgd 
      5  1.1      cgd OSRCS=	chared.c common.c el.c emacs.c hist.c key.c map.c parse.c \
      6  1.1      cgd 	prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c \
      7  1.1      cgd 	help.c fcns.c
      8  1.1      cgd 
      9  1.5    lukem MAN=	editline.3 editrc.5
     10  1.5    lukem 
     11  1.5    lukem MLINKS=	editline.3 el_init.3 editline.3 el_end.3 editline.3 el_reset.3 \
     12  1.5    lukem 	editline.3 el_gets.3 editline.3 el_getc.3 editline.3 el_push.3 \
     13  1.5    lukem 	editline.3 el_parse.3 editline.3 el_set.3 editline.3 el_source.3 \
     14  1.5    lukem 	editline.3 el_resize.3 editline.3 el_line.3 \
     15  1.5    lukem 	editline.3 el_insertstr.3 editline.3 el_deletestr.3 \
     16  1.5    lukem 	editline.3 history_init.3 editline.3 history_end.3 editline.3 history.3
     17  1.5    lukem 
     18  1.1      cgd # For speed and debugging
     19  1.1      cgd #SRCS=   ${OSRCS} tokenizer.c history.c
     20  1.1      cgd # For protection
     21  1.1      cgd SRCS=	editline.c tokenizer.c history.c
     22  1.1      cgd 
     23  1.1      cgd CLEANFILES+=common.h emacs.h fcns.h help.h vi.h help.c fcns.c editline.c
     24  1.1      cgd CFLAGS+=-I. -I${.CURDIR} 
     25  1.1      cgd CFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
     26  1.1      cgd CFLAGS+=#-DDEBUG_PASTE
     27  1.1      cgd 
     28  1.1      cgd AHDR=vi.h emacs.h common.h 
     29  1.1      cgd ASRC=${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c
     30  1.1      cgd 
     31  1.1      cgd vi.h: vi.c makelist
     32  1.1      cgd 	sh ${.CURDIR}/makelist -h ${.CURDIR}/vi.c > ${.TARGET}
     33  1.1      cgd 
     34  1.1      cgd emacs.h: emacs.c makelist
     35  1.1      cgd 	sh ${.CURDIR}/makelist -h ${.CURDIR}/emacs.c > ${.TARGET}
     36  1.1      cgd 
     37  1.1      cgd common.h: common.c makelist
     38  1.1      cgd 	sh ${.CURDIR}/makelist -h ${.CURDIR}/common.c > ${.TARGET}
     39  1.1      cgd 
     40  1.1      cgd fcns.h: ${AHDR} makelist
     41  1.1      cgd 	sh ${.CURDIR}/makelist -fh ${AHDR} > ${.TARGET}
     42  1.1      cgd 
     43  1.1      cgd fcns.c: ${AHDR} fcns.h makelist
     44  1.1      cgd 	sh ${.CURDIR}/makelist -fc ${AHDR} > ${.TARGET}
     45  1.1      cgd 
     46  1.1      cgd help.c: ${ASRC} makelist 
     47  1.1      cgd 	sh ${.CURDIR}/makelist -bc ${ASRC} > ${.TARGET}
     48  1.1      cgd 
     49  1.1      cgd help.h: ${ASRC} makelist
     50  1.1      cgd 	sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET}
     51  1.1      cgd 
     52  1.1      cgd editline.c: ${OSRCS}
     53  1.1      cgd 	sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET}
     54  1.1      cgd 
     55  1.1      cgd .depend: vi.h emacs.h common.h fcns.h help.h help.c
     56  1.2      cgd all: vi.h emacs.h common.h fcns.h help.h help.c
     57  1.1      cgd 
     58  1.1      cgd 
     59  1.1      cgd test:	libedit.a test.o 
     60  1.1      cgd 	${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} -ltermcap
     61  1.1      cgd 
     62  1.3      jtk includes:
     63  1.1      cgd 	-cd ${.CURDIR}; cmp -s histedit.h ${DESTDIR}/usr/include/histedit.h > \
     64  1.1      cgd 	    /dev/null 2>&1 || \
     65  1.4  thorpej 	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 histedit.h \
     66  1.1      cgd 	    ${DESTDIR}/usr/include
     67  1.1      cgd 
     68  1.1      cgd .include <bsd.lib.mk>
     69