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