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