1
2BUILT_SOURCES = vi.h emacs.h common.h fcns.h help.h fcns.c help.c
3if WIDECHAR
4BUILT_SOURCES += tokenizern.c historyn.c
5endif
6
7AHDR= vi.h emacs.h common.h 
8ASRC= $(srcdir)/vi.c $(srcdir)/emacs.c $(srcdir)/common.c
9
10vi.h: Makefile $(srcdir)/vi.c
11	AWK=$(AWK) sh $(srcdir)/makelist -h $(srcdir)/vi.c > $@
12
13emacs.h: Makefile $(srcdir)/emacs.c
14	AWK=$(AWK) sh $(srcdir)/makelist -h $(srcdir)/emacs.c > $@
15
16common.h: Makefile $(srcdir)/common.c
17	AWK=$(AWK) sh $(srcdir)/makelist -h $(srcdir)/common.c > $@
18
19fcns.h: Makefile $(AHDR)
20	AWK=$(AWK) sh $(srcdir)/makelist -fh $(AHDR) > $@
21
22help.h: Makefile $(ASRC)
23	AWK=$(AWK) sh $(srcdir)/makelist -bh $(ASRC) > $@
24
25fcns.c: Makefile $(AHDR)
26	AWK=$(AWK) sh $(srcdir)/makelist -fc $(AHDR) > $@
27
28help.c: Makefile $(ASRC)
29	AWK=$(AWK) sh $(srcdir)/makelist -bc $(ASRC) > $@
30
31tokenizern.c: Makefile $(srcdir)/tokenizer.c
32	AWK=$(AWK) sh $(srcdir)/makelist -n $(srcdir)/tokenizer.c > $@
33
34historyn.c: Makefile $(srcdir)/history.c
35	AWK=$(AWK) sh $(srcdir)/makelist -n $(srcdir)/history.c > $@
36
37CLEANFILES = $(BUILT_SOURCES)
38
39lib_LTLIBRARIES    = libedit.la
40libedit_la_SOURCES = chared.c common.c el.c emacs.c hist.c keymacro.c map.c chartype.c parse.c \
41							prompt.c read.c refresh.c search.c sig.c terminal.c tty.c vi.c \
42							fgetln.c wcsdup.c tokenizer.c \
43							history.c filecomplete.c readline.c chared.h el.h hist.h \
44							histedit.h keymacro.h map.h chartype.h parse.h prompt.h read.h refresh.h \
45							search.h sig.h sys.h terminal.h tty.h vis.h filecomplete.h \
46							editline/readline.h
47
48if !HAVE_STRLCPY
49libedit_la_SOURCES += strlcpy.c
50endif
51if !HAVE_STRLCAT
52libedit_la_SOURCES += strlcat.c
53endif
54if !HAVE_VIS
55libedit_la_SOURCES += vis.c
56endif
57if !HAVE_UNVIS
58libedit_la_SOURCES += unvis.c
59endif
60if WIDECHAR
61libedit_la_SOURCES += eln.c
62endif
63
64EXTRA_DIST = makelist shlib_version
65nobase_include_HEADERS = histedit.h editline/readline.h
66
67nodist_libedit_la_SOURCES = $(BUILT_SOURCES)
68
69libedit_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION)
70
71