summaryrefslogtreecommitdiff
path: root/net/tnftp/files/libedit/Makefile.in
blob: 4a334a53b36b506b329e36917d9c20e1b7e21b84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
#	$Id: Makefile.in,v 1.1 2004/03/11 13:01:01 grant Exp $
#

srcdir	= @srcdir@
VPATH	= @srcdir@
SHELL	= /bin/sh

CC	= @CC@
CFLAGS	= -I${srcdir} -I${srcdir}/.. -I. -I.. @INCLUDES@ @CFLAGS@

AR	= @AR@
RANLIB	= @RANLIB@

LIB	= libedit.a

SRCS	= chared.c common.c el.c emacs.c fcns.c help.c hist.c key.c map.c \
	  parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c \
	  tokenizer.c history.c
OBJS	= ${SRCS:.c=.o}


all:	${LIB}

${LIB}: ${OBJS}
	${AR} cr $@ ${OBJS}
	${RANLIB} $@

install:

clean:
	rm -f ${LIB} ${OBJS}
	rm -f common.h emacs.h fcns.c fcns.h help.c help.h vi.h

distclean: clean
	rm -f Makefile makelist


vi.h: vi.c
	sh makelist -h ${srcdir}/vi.c > $@

emacs.h: emacs.c
	sh makelist -h ${srcdir}/emacs.c > $@

common.h: common.c
	sh makelist -h ${srcdir}/common.c > $@

fcns.h: vi.h emacs.h common.h
	sh makelist -fh vi.h emacs.h common.h > $@

fcns.c: vi.h emacs.h common.h fcns.h
	sh makelist -fc vi.h emacs.h common.h > $@

help.c: vi.c emacs.c common.c
	sh makelist -bc ${srcdir}/vi.c ${srcdir}/emacs.c ${srcdir}/common.c > $@

help.h: vi.c emacs.c common.c
	sh makelist -bh ${srcdir}/vi.c ${srcdir}/emacs.c ${srcdir}/common.c > $@

${OBJS}: common.h emacs.h fcns.c fcns.h help.c help.h vi.h