1## -*- text -*- ## 2# Makefile for the GNU readline library shared library support. 3# 4# Copyright (C) 1998 Free Software Foundation, Inc. 5 6# This program is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 2, or (at your option) 9# any later version. 10 11# This program is distributed in the hope that it will be useful, 12# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# GNU General Public License for more details. 15 16# You should have received a copy of the GNU General Public License 17# along with this program; if not, write to the Free Software 18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA. 19 20RL_LIBRARY_VERSION = @LIBVERSION@ 21RL_LIBRARY_NAME = readline 22 23srcdir = @srcdir@ 24VPATH = .:@top_srcdir@ 25topdir = @top_srcdir@ 26BUILD_DIR = @BUILD_DIR@ 27 28INSTALL = @INSTALL@ 29INSTALL_PROGRAM = @INSTALL_PROGRAM@ 30INSTALL_DATA = @INSTALL_DATA@ 31 32CC = @CC@ 33RANLIB = @RANLIB@ 34AR = @AR@ 35ARFLAGS = @ARFLAGS@ 36RM = rm -f 37CP = cp 38MV = mv 39 40SHELL = @MAKE_SHELL@ 41 42host_os = @host_os@ 43 44prefix = @prefix@ 45exec_prefix = @exec_prefix@ 46libdir = @libdir@ 47 48CFLAGS = @CFLAGS@ 49LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"' 50CPPFLAGS = @CPPFLAGS@ 51LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@ @CFLAGS@ 52 53DEFS = @DEFS@ 54LOCAL_DEFS = @LOCAL_DEFS@ 55 56# 57# These values are generated for configure by ${topdir}/support/shobj-conf. 58# If your system is not supported by that script, but includes facilities for 59# dynamic loading of shared objects, please update the script and send the 60# changes to bash-maintainers@gnu.org. 61# 62SHOBJ_CC = @SHOBJ_CC@ 63SHOBJ_CFLAGS = @SHOBJ_CFLAGS@ 64SHOBJ_LD = @SHOBJ_LD@ 65 66SHOBJ_LDFLAGS = @SHOBJ_LDFLAGS@ 67SHOBJ_XLDFLAGS = @SHOBJ_XLDFLAGS@ 68SHOBJ_LIBS = @SHOBJ_LIBS@ 69 70SHLIB_XLDFLAGS = @SHLIB_XLDFLAGS@ 71SHLIB_LIBS = @SHLIB_LIBS@ 72SHLIB_LIBSUFF = @SHLIB_LIBSUFF@ 73 74SHLIB_LIBVERSION = @SHLIB_LIBVERSION@ 75 76SHLIB_STATUS = @SHLIB_STATUS@ 77 78# shared library versioning 79SHLIB_MAJOR= @SHLIB_MAJOR@ 80# shared library systems like SVR4's do not use minor versions 81SHLIB_MINOR= .@SHLIB_MINOR@ 82 83# For libraries which include headers from other libraries. 84INCLUDES = -I. -I.. -I$(topdir) -I$(includedir) 85 86CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) $(INCLUDES) $(LOCAL_CFLAGS) $(CFLAGS) 87 88.SUFFIXES: .so 89 90.c.so: 91 ${RM} $@ 92 $(SHOBJ_CC) -c $(CCFLAGS) $(SHOBJ_CFLAGS) -o $*.o $< 93 $(MV) $*.o $@ 94 95# The name of the main library target. 96 97SHARED_READLINE = libreadline.$(SHLIB_LIBVERSION) 98SHARED_HISTORY = libhistory.$(SHLIB_LIBVERSION) 99SHARED_LIBS = $(SHARED_READLINE) $(SHARED_HISTORY) 100 101# The C code source files for this library. 102CSOURCES = $(topdir)/readline.c $(topdir)/funmap.c $(topdir)/keymaps.c \ 103 $(topdir)/vi_mode.c $(topdir)/parens.c $(topdir)/rltty.c \ 104 $(topdir)/complete.c $(topdir)/bind.c $(topdir)/isearch.c \ 105 $(topdir)/display.c $(topdir)/signals.c $(topdir)/emacs_keymap.c \ 106 $(topdir)/vi_keymap.c $(topdir)/util.c $(topdir)/kill.c \ 107 $(topdir)/undo.c $(topdir)/macro.c $(topdir)/input.c \ 108 $(topdir)/callback.c $(topdir)/terminal.c $(topdir)/xmalloc.c \ 109 $(topdir)/history.c $(topdir)/histsearch.c $(topdir)/histexpand.c \ 110 $(topdir)/histfile.c $(topdir)/nls.c $(topdir)/search.c \ 111 $(topdir)/shell.c $(topdir)/savestring.c $(topdir)/tilde.c 112 113# The header files for this library. 114HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \ 115 posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \ 116 ansi_stdlib.h tcap.h xmalloc.h rlprivate.h rlshell.h 117 118SHARED_HISTOBJ = history.so histexpand.so histfile.so histsearch.so shell.so 119SHARED_TILDEOBJ = tilde.so 120SHARED_OBJ = readline.so vi_mode.so funmap.so keymaps.so parens.so search.so \ 121 rltty.so complete.so bind.so isearch.so display.so signals.so \ 122 util.so kill.so undo.so macro.so input.so callback.so terminal.so \ 123 nls.so xmalloc.so $(SHARED_HISTOBJ) $(SHARED_TILDEOBJ) 124 125########################################################################## 126 127all: $(SHLIB_STATUS) 128 129supported: $(SHARED_LIBS) 130 131unsupported: 132 @echo "Your system and compiler (${host_os}-${CC}) are not supported by the" 133 @echo "${topdir}/support/shobj-conf script." 134 @echo "If your operating system provides facilities for creating" 135 @echo "shared libraries, please update the script and re-run configure." 136 @echo "Please send the changes you made to bash-maintainers@gnu.org" 137 @echo "for inclusion in future bash and readline releases." 138 139$(SHARED_READLINE): $(SHARED_OBJ) 140 $(RM) $@ 141 $(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_OBJ) $(SHLIB_LIBS) 142 143$(SHARED_HISTORY): $(SHARED_HISTOBJ) xmalloc.so 144 $(RM) $@ 145 $(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_HISTOBJ) xmalloc.so $(SHLIB_LIBS) 146 147installdirs: $(topdir)/support/mkdirs 148 -$(SHELL) $(topdir)/support/mkdirs $(libdir) 149 150install: installdirs $(SHLIB_STATUS) 151 $(SHELL) $(topdir)/support/shlib-install -O $(host_os) -d $(libdir) -i "$(INSTALL_DATA)" $(SHARED_HISTORY) 152 $(SHELL) $(topdir)/support/shlib-install -O $(host_os) -d $(libdir) -i "$(INSTALL_DATA)" $(SHARED_READLINE) 153 @echo install: you may need to run ldconfig 154 155uninstall: 156 $(SHELL) $(topdir)/support/shlib-install -O $(host_os) -d $(libdir) -U $(SHARED_HISTORY) 157 $(SHELL) $(topdir)/support/shlib-install -O $(host_os) -d $(libdir) -U $(SHARED_READLINE) 158 @echo uninstall: you may need to run ldconfig 159 160clean mostlyclean: force 161 $(RM) $(SHARED_OBJ) $(SHARED_LIBS) 162 163distclean maintainer-clean: clean 164 $(RM) Makefile 165 166force: 167 168# Tell versions [3.59,3.63) of GNU make not to export all variables. 169# Otherwise a system limit (for SysV at least) may be exceeded. 170.NOEXPORT: 171 172# Dependencies 173bind.so: $(topdir)/ansi_stdlib.h $(topdir)/posixstat.h 174bind.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 175bind.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 176bind.so: $(topdir)/tilde.h $(topdir)/history.h 177callback.so: $(topdir)/rlconf.h 178callback.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h 179callback.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 180callback.so: $(topdir)/tilde.h 181complete.so: $(topdir)/ansi_stdlib.h posixdir.h $(topdir)/posixstat.h 182complete.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 183complete.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 184complete.so: $(topdir)/tilde.h 185display.so: $(topdir)/ansi_stdlib.h $(topdir)/posixstat.h 186display.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 187display.so: $(topdir)/tcap.h 188display.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 189display.so: $(topdir)/tilde.h $(topdir)/history.h 190funmap.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 191funmap.so: $(topdir)/rlconf.h $(topdir)/ansi_stdlib.h 192funmap.so: ${BUILD_DIR}/config.h $(topdir)/tilde.h 193histexpand.so: $(topdir)/ansi_stdlib.h 194histexpand.so: $(topdir)/history.h histlib.h 195histexpand.so: ${BUILD_DIR}/config.h 196histfile.so: $(topdir)/ansi_stdlib.h 197histfile.so: $(topdir)/history.h histlib.h 198histfile.so: ${BUILD_DIR}/config.h 199history.so: $(topdir)/ansi_stdlib.h 200history.so: $(topdir)/history.h histlib.h 201history.so: ${BUILD_DIR}/config.h 202histsearch.so: $(topdir)/ansi_stdlib.h 203histsearch.so: $(topdir)/history.h histlib.h 204histsearch.so: ${BUILD_DIR}/config.h 205input.so: $(topdir)/ansi_stdlib.h 206input.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 207input.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 208input.so: $(topdir)/tilde.h 209isearch.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 210isearch.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 211isearch.so: $(topdir)/ansi_stdlib.h $(topdir)/history.h $(topdir)/tilde.h 212keymaps.so: emacs_keymap.c vi_keymap.c 213keymaps.so: $(topdir)/keymaps.h $(topdir)/chardefs.h $(topdir)/rlconf.h 214keymaps.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 215keymaps.so: ${BUILD_DIR}/config.h $(topdir)/ansi_stdlib.h $(topdir)/tilde.h 216kill.so: $(topdir)/ansi_stdlib.h 217kill.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 218kill.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 219kill.so: $(topdir)/tilde.h $(topdir)/history.h 220macro.so: $(topdir)/ansi_stdlib.h 221macro.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 222macro.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 223macro.so: $(topdir)/tilde.h $(topdir)/history.h 224nls.so: $(topdir)/ansi_stdlib.h 225nls.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 226nls.o: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 227nls.o: $(topdir)/tilde.h $(topdir)/history.h $(topdir)/rlstdc.h 228parens.so: $(topdir)/rlconf.h ${BUILD_DIR}/config.h 229parens.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 230parens.so: $(topdir)/tilde.h 231readline.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 232readline.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 233readline.so: $(topdir)/history.h $(topdir)/tilde.h 234readline.so: $(topdir)/posixstat.h $(topdir)/ansi_stdlib.h $(topdir)/posixjmp.h 235rltty.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 236rltty.so: $(topdir)/rltty.h $(topdir)/tilde.h 237rltty.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 238search.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 239search.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 240search.so: $(topdir)/ansi_stdlib.h $(topdir)/history.h $(topdir)/tilde.h 241signals.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 242signals.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 243signals.so: $(topdir)/history.h $(topdir)/tilde.h 244terminal.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 245terminal.so: $(topdir)/tcap.h 246terminal.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 247terminal.so: $(topdir)/tilde.h $(topdir)/history.h 248tilde.so: $(topdir)/ansi_stdlib.h ${BUILD_DIR}/config.h $(topdir)/tilde.h 249undo.so: $(topdir)/ansi_stdlib.h 250undo.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 251undo.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 252undo.so: $(topdir)/tilde.h $(topdir)/history.h 253util.so: $(topdir)/posixjmp.h $(topdir)/ansi_stdlib.h 254util.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 255util.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 256util.so: $(topdir)/tilde.h 257vi_mode.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h 258vi_mode.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 259vi_mode.so: $(topdir)/history.h $(topdir)/ansi_stdlib.h $(topdir)/tilde.h 260xmalloc.so: ${BUILD_DIR}/config.h 261xmalloc.so: $(topdir)/ansi_stdlib.h 262 263bind.so: $(topdir)/rlshell.h 264histfile.so: $(topdir)/rlshell.h 265nls.so: $(topdir)/rlshell.h 266readline.so: $(topdir)/rlshell.h 267shell.so: $(topdir)/rlshell.h 268terminal.so: $(topdir)/rlshell.h 269histexpand.so: $(topdir)/rlshell.h 270 271bind.so: $(topdir)/rlprivate.h 272callback.so: $(topdir)/rlprivate.h 273complete.so: $(topdir)/rlprivate.h 274display.so: $(topdir)/rlprivate.h 275input.so: $(topdir)/rlprivate.h 276isearch.so: $(topdir)/rlprivate.h 277kill.so: $(topdir)/rlprivate.h 278macro.so: $(topdir)/rlprivate.h 279nls.so: $(topdir)/rlprivate.h 280parens.so: $(topdir)/rlprivate.h 281readline.so: $(topdir)/rlprivate.h 282rltty.so: $(topdir)/rlprivate.h 283search.so: $(topdir)/rlprivate.h 284signals.so: $(topdir)/rlprivate.h 285terminal.so: $(topdir)/rlprivate.h 286undo.so: $(topdir)/rlprivate.h 287util.so: $(topdir)/rlprivate.h 288vi_mode.so: $(topdir)/rlprivate.h 289 290bind.so: $(topdir)/xmalloc.h 291complete.so: $(topdir)/xmalloc.h 292display.so: $(topdir)/xmalloc.h 293funmap.so: $(topdir)/xmalloc.h 294histexpand.so: $(topdir)/xmalloc.h 295histfile.so: $(topdir)/xmalloc.h 296history.so: $(topdir)/xmalloc.h 297input.so: $(topdir)/xmalloc.h 298isearch.so: $(topdir)/xmalloc.h 299keymaps.so: $(topdir)/xmalloc.h 300kill.so: $(topdir)/xmalloc.h 301macro.so: $(topdir)/xmalloc.h 302readline.so: $(topdir)/xmalloc.h 303savestring.so: $(topdir)/xmalloc.h 304search.so: $(topdir)/xmalloc.h 305shell.so: $(topdir)/xmalloc.h 306tilde.so: $(topdir)/xmalloc.h 307tilde.so: $(topdir)/xmalloc.h 308util.so: $(topdir)/xmalloc.h 309vi_mode.so: $(topdir)/xmalloc.h 310 311readline.so: $(topdir)/readline.c 312vi_mode.so: $(topdir)/vi_mode.c 313funmap.so: $(topdir)/funmap.c 314keymaps.so: $(topdir)/keymaps.c 315parens.so: $(topdir)/parens.c 316search.so: $(topdir)/search.c 317rltty.so: $(topdir)/rltty.c 318complete.so: $(topdir)/complete.c 319bind.so: $(topdir)/bind.c 320isearch.so: $(topdir)/isearch.c 321display.so: $(topdir)/display.c 322signals.so: $(topdir)/signals.c 323util.so: $(topdir)/util.c 324kill.so: $(topdir)/kill.c 325undo.so: $(topdir)/undo.c 326macro.so: $(topdir)/macro.c 327input.so: $(topdir)/input.c 328callback.so: $(topdir)/callback.c 329terminal.so: $(topdir)/terminal.c 330nls.so: $(topdir)/nls.c 331xmalloc.so: $(topdir)/xmalloc.c 332history.so: $(topdir)/history.c 333histexpand.so: $(topdir)/histexpand.c 334histfile.so: $(topdir)/histfile.c 335histsearch.so: $(topdir)/histsearch.c 336savestring.so: $(topdir)/savestring.c 337shell.so: $(topdir)/shell.c 338tilde.so: $(topdir)/tilde.c 339 340readline.so: readline.c 341vi_mode.so: vi_mode.c 342funmap.so: funmap.c 343keymaps.so: keymaps.c 344parens.so: parens.c 345search.so: search.c 346rltty.so: rltty.c 347complete.so: complete.c 348bind.so: bind.c 349isearch.so: isearch.c 350display.so: display.c 351signals.so: signals.c 352util.so: util.c 353kill.so: kill.c 354undo.so: undo.c 355macro.so: macro.c 356input.so: input.c 357callback.so: callback.c 358terminal.so: terminal.c 359nls.so: nls.c 360xmalloc.so: xmalloc.c 361history.so: history.c 362histexpand.so: histexpand.c 363histfile.so: histfile.c 364histsearch.so: histsearch.c 365savestring.so: savestring.c 366shell.so: shell.c 367tilde.so: tilde.c 368