version 1.1.1.1, 2014/07/30 08:16:45
|
version 1.1.1.2, 2021/03/17 01:01:01
|
Line 1
|
Line 1
|
## -*- text -*- ## |
## -*- text -*- ## |
# Master Makefile for the GNU readline library. |
# Master Makefile for the GNU readline library. |
# Copyright (C) 1994-2009 Free Software Foundation, Inc. | # Copyright (C) 1994-2018 Free Software Foundation, Inc. |
|
|
# This program is free software: you can redistribute it and/or modify |
# This program is free software: you can redistribute it and/or modify |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
Line 45 RM = rm -f
|
Line 45 RM = rm -f
|
CP = cp |
CP = cp |
MV = mv |
MV = mv |
|
|
PURIFY = @PURIFY@ |
|
|
|
@SET_MAKE@ |
@SET_MAKE@ |
SHELL = @MAKE_SHELL@ |
SHELL = @MAKE_SHELL@ |
|
|
Line 61 mandir = @mandir@
|
Line 59 mandir = @mandir@
|
includedir = @includedir@ |
includedir = @includedir@ |
datadir = @datadir@ |
datadir = @datadir@ |
localedir = @localedir@ |
localedir = @localedir@ |
|
pkgconfigdir = ${libdir}/pkgconfig |
|
|
infodir = @infodir@ |
infodir = @infodir@ |
|
|
Line 73 DESTDIR =
|
Line 72 DESTDIR =
|
|
|
# Programs to make tags files. |
# Programs to make tags files. |
ETAGS = etags |
ETAGS = etags |
CTAGS = ctags -tw | CTAGS = ctags -w |
|
|
CFLAGS = @CFLAGS@ |
CFLAGS = @CFLAGS@ |
LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"' | LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"' @BRACKETED_PASTE@ |
CPPFLAGS = @CPPFLAGS@ |
CPPFLAGS = @CPPFLAGS@ |
|
|
DEFS = @DEFS@ @CROSS_COMPILE@ |
DEFS = @DEFS@ @CROSS_COMPILE@ |
Line 87 TERMCAP_LIB = @TERMCAP_LIB@
|
Line 86 TERMCAP_LIB = @TERMCAP_LIB@
|
# For libraries which include headers from other libraries. |
# For libraries which include headers from other libraries. |
INCLUDES = -I. -I$(srcdir) |
INCLUDES = -I. -I$(srcdir) |
|
|
XCCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) $(INCLUDES) | XCCFLAGS = $(ASAN_CFLAGS) $(DEFS) $(LOCAL_DEFS) $(INCLUDES) $(CPPFLAGS) |
CCFLAGS = $(XCCFLAGS) $(LOCAL_CFLAGS) $(CFLAGS) |
CCFLAGS = $(XCCFLAGS) $(LOCAL_CFLAGS) $(CFLAGS) |
|
|
# could add -Werror here |
# could add -Werror here |
Line 96 GCC_LINT_FLAGS = -ansi -Wall -Wshadow -Wpointer-arith
|
Line 95 GCC_LINT_FLAGS = -ansi -Wall -Wshadow -Wpointer-arith
|
-Wmissing-prototypes -Wno-implicit -pedantic |
-Wmissing-prototypes -Wno-implicit -pedantic |
GCC_LINT_CFLAGS = $(XCCFLAGS) $(GCC_LINT_FLAGS) @CFLAGS@ @LOCAL_CFLAGS@ |
GCC_LINT_CFLAGS = $(XCCFLAGS) $(GCC_LINT_FLAGS) @CFLAGS@ @LOCAL_CFLAGS@ |
|
|
|
ASAN_XCFLAGS = -fsanitize=address -fno-omit-frame-pointer |
|
ASAN_XLDFLAGS = -fsanitize=address |
|
|
|
install_examples = @EXAMPLES_INSTALL_TARGET@ |
|
|
.c.o: |
.c.o: |
${RM} $@ |
${RM} $@ |
$(CC) -c $(CCFLAGS) $< |
$(CC) -c $(CCFLAGS) $< |
Line 116 CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(s
|
Line 120 CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(s
|
$(srcdir)/histfile.c $(srcdir)/nls.c $(srcdir)/search.c \ |
$(srcdir)/histfile.c $(srcdir)/nls.c $(srcdir)/search.c \ |
$(srcdir)/shell.c $(srcdir)/savestring.c $(srcdir)/tilde.c \ |
$(srcdir)/shell.c $(srcdir)/savestring.c $(srcdir)/tilde.c \ |
$(srcdir)/text.c $(srcdir)/misc.c $(srcdir)/compat.c \ |
$(srcdir)/text.c $(srcdir)/misc.c $(srcdir)/compat.c \ |
$(srcdir)/mbutil.c $(srcdir)/xfree.c | $(srcdir)/mbutil.c |
|
|
# The header files for this library. |
# The header files for this library. |
HSOURCES = $(srcdir)/readline.h $(srcdir)/rldefs.h $(srcdir)/chardefs.h \ |
HSOURCES = $(srcdir)/readline.h $(srcdir)/rldefs.h $(srcdir)/chardefs.h \ |
Line 145 DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT
|
Line 149 DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT
|
|
|
CREATED_MAKEFILES = Makefile doc/Makefile examples/Makefile shlib/Makefile |
CREATED_MAKEFILES = Makefile doc/Makefile examples/Makefile shlib/Makefile |
CREATED_CONFIGURE = config.status config.h config.cache config.log \ |
CREATED_CONFIGURE = config.status config.h config.cache config.log \ |
stamp-config stamp-h | stamp-config stamp-h readline.pc |
CREATED_TAGS = TAGS tags |
CREATED_TAGS = TAGS tags |
|
|
INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \ |
INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \ |
Line 162 all: $(TARGETS)
|
Line 166 all: $(TARGETS)
|
|
|
everything: all examples |
everything: all examples |
|
|
|
asan: |
|
${MAKE} ${MFLAGS} ASAN_CFLAGS='${ASAN_XCFLAGS}' ASAN_LDFLAGS='${ASAN_XLDFLAGS}' everything |
|
|
static: $(STATIC_LIBS) |
static: $(STATIC_LIBS) |
|
|
libreadline.a: $(OBJECTS) |
libreadline.a: $(OBJECTS) |
Line 234 uninstall-headers:
|
Line 241 uninstall-headers:
|
|
|
maybe-uninstall-headers: uninstall-headers |
maybe-uninstall-headers: uninstall-headers |
|
|
install-static: installdirs $(STATIC_LIBS) install-headers install-doc install-examples | install-pc: installdirs |
| -$(INSTALL_DATA) $(BUILD_DIR)/readline.pc $(DESTDIR)$(pkgconfigdir)/readline.pc |
| |
| uninstall-pc: |
| -test -n "$(pkgconfigdir)" && cd $(DESTDIR)$(pkgconfigdir) && \ |
| ${RM} readline.pc |
| |
| maybe-uninstall-pc: uninstall-pc |
| |
| install-static: installdirs $(STATIC_LIBS) install-headers install-doc ${install_examples} install-pc |
-$(MV) $(DESTDIR)$(libdir)/libreadline.a $(DESTDIR)$(libdir)/libreadline.old |
-$(MV) $(DESTDIR)$(libdir)/libreadline.a $(DESTDIR)$(libdir)/libreadline.old |
$(INSTALL_DATA) libreadline.a $(DESTDIR)$(libdir)/libreadline.a |
$(INSTALL_DATA) libreadline.a $(DESTDIR)$(libdir)/libreadline.a |
-test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libreadline.a |
-test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libreadline.a |
Line 245 install-static: installdirs $(STATIC_LIBS) install-hea
|
Line 261 install-static: installdirs $(STATIC_LIBS) install-hea
|
installdirs: $(srcdir)/support/mkinstalldirs |
installdirs: $(srcdir)/support/mkinstalldirs |
-$(SHELL) $(srcdir)/support/mkinstalldirs $(DESTDIR)$(includedir) \ |
-$(SHELL) $(srcdir)/support/mkinstalldirs $(DESTDIR)$(includedir) \ |
$(DESTDIR)$(includedir)/readline $(DESTDIR)$(libdir) \ |
$(DESTDIR)$(includedir)/readline $(DESTDIR)$(libdir) \ |
$(DESTDIR)$(infodir) $(DESTDIR)$(man3dir) $(DESTDIR)$(docdir) | $(DESTDIR)$(infodir) $(DESTDIR)$(man3dir) $(DESTDIR)$(docdir) \ |
| $(DESTDIR)$(pkgconfigdir) |
|
|
uninstall: uninstall-headers uninstall-doc uninstall-examples | uninstall: uninstall-headers uninstall-doc uninstall-examples uninstall-pc |
-test -n "$(DESTDIR)$(libdir)" && cd $(DESTDIR)$(libdir) && \ |
-test -n "$(DESTDIR)$(libdir)" && cd $(DESTDIR)$(libdir) && \ |
${RM} libreadline.a libreadline.old libhistory.a libhistory.old $(SHARED_LIBS) |
${RM} libreadline.a libreadline.old libhistory.a libhistory.old $(SHARED_LIBS) |
-( cd shlib; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} uninstall ) |
-( cd shlib; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} uninstall ) |
|
|
install-shared: installdirs install-headers shared install-doc | install-shared: installdirs install-headers shared install-doc install-pc |
( cd shlib ; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} install ) |
( cd shlib ; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} install ) |
|
|
uninstall-shared: maybe-uninstall-headers | uninstall-shared: maybe-uninstall-headers maybe-uninstall-pc |
-( cd shlib; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} uninstall ) |
-( cd shlib; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} uninstall ) |
|
|
install-examples: installdirs install-headers |
install-examples: installdirs install-headers |
Line 304 distclean maintainer-clean: clean
|
Line 321 distclean maintainer-clean: clean
|
$(RM) $(CREATED_CONFIGURE) |
$(RM) $(CREATED_CONFIGURE) |
$(RM) $(CREATED_TAGS) |
$(RM) $(CREATED_TAGS) |
|
|
|
readline.pc: config.status $(srcdir)/readline.pc.in |
|
$(SHELL) config.status |
|
|
info dvi html pdf ps: |
info dvi html pdf ps: |
-( cd doc && $(MAKE) $(MFLAGS) $@ ) |
-( cd doc && $(MAKE) $(MFLAGS) $@ ) |
|
|
Line 334 bind.o: history.h
|
Line 354 bind.o: history.h
|
callback.o: rlconf.h |
callback.o: rlconf.h |
callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h |
callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h |
callback.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h |
callback.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h |
compat.o: rlstdc.h | compat.o: ${BUILD_DIR}/config.h |
| compat.o: rlstdc.h rltypedefs.h |
complete.o: ansi_stdlib.h posixdir.h posixstat.h |
complete.o: ansi_stdlib.h posixdir.h posixstat.h |
complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h |
complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h |
complete.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h |
complete.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h |
Line 395 readline.o: posixstat.h ansi_stdlib.h posixjmp.h
|
Line 416 readline.o: posixstat.h ansi_stdlib.h posixjmp.h
|
rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h |
rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h |
rltty.o: rltty.h |
rltty.o: rltty.h |
rltty.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h |
rltty.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h |
|
savestring.o: ${BUILD_DIR}/config.h |
search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h |
search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h |
search.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h |
search.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h |
search.o: ansi_stdlib.h history.h rlstdc.h |
search.o: ansi_stdlib.h history.h rlstdc.h |