2 # Makefile for the GNU readline library shared library support.
4 # Copyright (C) 1998 Free Software Foundation, Inc.
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)
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.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
19 RL_LIBRARY_VERSION
= @LIBVERSION@
20 RL_LIBRARY_NAME
= readline
23 VPATH
= .
:@top_srcdir@
25 BUILD_DIR
= @BUILD_DIR@
28 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
29 INSTALL_DATA
= @INSTALL_DATA@
44 exec_prefix = @
exec_prefix@
48 LOCAL_CFLAGS
= @LOCAL_CFLAGS@
-DRL_LIBRARY_VERSION
='"$(RL_LIBRARY_VERSION)"'
50 LDFLAGS
= @LDFLAGS@ @LOCAL_LDFLAGS@ @CFLAGS@
53 LOCAL_DEFS
= @LOCAL_DEFS@
56 # These values are generated for configure by ${topdir}/support/shobj-conf.
57 # If your system is not supported by that script, but includes facilities for
58 # dynamic loading of shared objects, please update the script and send the
59 # changes to bash-maintainers@gnu.org.
62 SHOBJ_CFLAGS
= @SHOBJ_CFLAGS@
65 SHOBJ_LDFLAGS
= @SHOBJ_LDFLAGS@
66 SHOBJ_XLDFLAGS
= @SHOBJ_XLDFLAGS@
67 SHOBJ_LIBS
= @SHOBJ_LIBS@
69 SHLIB_XLDFLAGS
= @SHLIB_XLDFLAGS@
70 SHLIB_LIBS
= @SHLIB_LIBS@
71 SHLIB_LIBSUFF
= @SHLIB_LIBSUFF@
73 SHLIB_LIBVERSION
= @SHLIB_LIBVERSION@
75 SHLIB_STATUS
= @SHLIB_STATUS@
77 # shared library versioning
79 # shared library systems like SVR4's do not use minor versions
82 # For libraries which include headers from other libraries.
83 INCLUDES
= -I.
-I..
-I
$(topdir
) -I
$(includedir)
85 CCFLAGS
= $(DEFS
) $(LOCAL_DEFS
) $(CPPFLAGS
) $(INCLUDES
) $(LOCAL_CFLAGS
) $(CFLAGS
)
91 $(SHOBJ_CC
) -c
$(CCFLAGS
) $(SHOBJ_CFLAGS
) -o
$*.o
$<
94 # The name of the main library target.
96 SHARED_READLINE
= libreadline.
$(SHLIB_LIBVERSION
)
97 SHARED_HISTORY
= libhistory.
$(SHLIB_LIBVERSION
)
98 SHARED_LIBS
= $(SHARED_READLINE
) $(SHARED_HISTORY
)
100 # The C code source files for this library.
101 CSOURCES
= $(topdir
)/readline.c
$(topdir
)/funmap.c
$(topdir
)/keymaps.c \
102 $(topdir
)/vi_mode.c
$(topdir
)/parens.c
$(topdir
)/rltty.c \
103 $(topdir
)/complete.c
$(topdir
)/bind.c
$(topdir
)/isearch.c \
104 $(topdir
)/display.c
$(topdir
)/signals.c
$(topdir
)/emacs_keymap.c \
105 $(topdir
)/vi_keymap.c
$(topdir
)/util.c
$(topdir
)/kill.c \
106 $(topdir
)/undo.c
$(topdir
)/macro.c
$(topdir
)/input.c \
107 $(topdir
)/callback.c
$(topdir
)/terminal.c
$(topdir
)/xmalloc.c \
108 $(topdir
)/history.c
$(topdir
)/histsearch.c
$(topdir
)/histexpand.c \
109 $(topdir
)/histfile.c
$(topdir
)/nls.c
$(topdir
)/search.c \
110 $(topdir
)/shell.c
$(topdir
)/savestring.c
$(topdir
)/tilde.c
112 # The header files for this library.
113 HSOURCES
= readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \
114 posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \
117 SHARED_HISTOBJ
= history.so histexpand.so histfile.so histsearch.so
shell.so
118 SHARED_TILDEOBJ
= tilde.so
119 SHARED_OBJ
= readline.so vi_mode.so funmap.so keymaps.so parens.so search.so \
120 rltty.so complete.so bind.so isearch.so display.so signals.so \
121 util.so kill.so undo.so macro.so input.so callback.so terminal.so \
122 nls.so xmalloc.so
$(SHARED_HISTOBJ
) $(SHARED_TILDEOBJ
)
124 ##########################################################################
128 supported
: $(SHARED_LIBS
)
131 @echo
"Your system and compiler (${host_os}-${CC}) are not supported by the"
132 @echo
"${topdir}/support/shobj-conf script."
133 @echo
"If your operating system provides facilities for creating"
134 @echo
"shared libraries, please update the script and re-run configure.
135 @echo "Please send the changes you made to bash-maintainers@gnu.org
"
136 @echo "for inclusion in future bash and readline releases.
"
138 $(SHARED_READLINE): $(SHARED_OBJ)
140 $(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_OBJ) $(SHLIB_LIBS)
142 $(SHARED_HISTORY): $(SHARED_HISTOBJ) xmalloc.so
144 $(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_HISTOBJ) xmalloc.so $(SHLIB_LIBS)
146 installdirs: $(topdir)/support/mkdirs
147 -$(SHELL) $(topdir)/support/mkdirs $(libdir)
149 install: installdirs $(SHLIB_STATUS)
150 $(SHELL) $(topdir)/support/shlib-install -O $(host_os) -d $(libdir) -i "$(INSTALL_DATA
)" $(SHARED_HISTORY)
151 $(SHELL) $(topdir)/support/shlib-install -O $(host_os) -d $(libdir) -i "$(INSTALL_DATA
)" $(SHARED_READLINE)
152 @echo install: you may need to run ldconfig
155 $(SHELL) $(topdir)/support/shlib-install -O $(host_os) -d $(libdir) -U $(SHARED_HISTORY)
156 $(SHELL) $(topdir)/support/shlib-install -O $(host_os) -d $(libdir) -U $(SHARED_READLINE)
157 @echo uninstall: you may need to run ldconfig
159 clean mostlyclean: force
160 $(RM) $(SHARED_OBJ) $(SHARED_LIBS)
162 distclean maintainer-clean: clean
167 # Tell versions [3.59,3.63) of GNU make not to export all variables.
168 # Otherwise a system limit (for SysV at least) may be exceeded.
172 bind.so: $(topdir)/ansi_stdlib.h $(topdir)/posixstat.h
173 bind.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
174 bind.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
175 bind.so: $(topdir)/tilde.h $(topdir)/history.h
176 callback.so: $(topdir)/rlconf.h
177 callback.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h
178 callback.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
179 callback.so: $(topdir)/tilde.h
180 complete.so: $(topdir)/ansi_stdlib.h posixdir.h $(topdir)/posixstat.h
181 complete.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
182 complete.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
183 complete.so: $(topdir)/tilde.h
184 display.so: $(topdir)/ansi_stdlib.h $(topdir)/posixstat.h
185 display.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
186 display.so: $(topdir)/tcap.h
187 display.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
188 display.so: $(topdir)/tilde.h $(topdir)/history.h
189 funmap.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
190 funmap.so: $(topdir)/rlconf.h $(topdir)/ansi_stdlib.h
191 funmap.so: ${BUILD_DIR}/config.h $(topdir)/tilde.h
192 histexpand.so: $(topdir)/ansi_stdlib.h
193 histexpand.so: $(topdir)/history.h histlib.h
194 histexpand.so: ${BUILD_DIR}/config.h
195 histfile.so: $(topdir)/ansi_stdlib.h
196 histfile.so: $(topdir)/history.h histlib.h
197 histfile.so: ${BUILD_DIR}/config.h
198 history.so: $(topdir)/ansi_stdlib.h
199 history.so: $(topdir)/history.h histlib.h
200 history.so: ${BUILD_DIR}/config.h
201 histsearch.so: $(topdir)/ansi_stdlib.h
202 histsearch.so: $(topdir)/history.h histlib.h
203 histsearch.so: ${BUILD_DIR}/config.h
204 input.so: $(topdir)/ansi_stdlib.h
205 input.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
206 input.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
207 input.so: $(topdir)/tilde.h
208 isearch.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
209 isearch.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
210 isearch.so: $(topdir)/ansi_stdlib.h $(topdir)/history.h $(topdir)/tilde.h
211 keymaps.so: emacs_keymap.c vi_keymap.c
212 keymaps.so: $(topdir)/keymaps.h $(topdir)/chardefs.h $(topdir)/rlconf.h
213 keymaps.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
214 keymaps.so: ${BUILD_DIR}/config.h $(topdir)/ansi_stdlib.h $(topdir)/tilde.h
215 kill.so: $(topdir)/ansi_stdlib.h
216 kill.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
217 kill.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
218 kill.so: $(topdir)/tilde.h $(topdir)/history.h
219 macro.so: $(topdir)/ansi_stdlib.h
220 macro.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
221 macro.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
222 macro.so: $(topdir)/tilde.h $(topdir)/history.h
223 nls.so: $(topdir)/ansi_stdlib.h
224 nls.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
225 parens.so: $(topdir)/rlconf.h ${BUILD_DIR}/config.h
226 parens.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
227 parens.so: $(topdir)/tilde.h
228 readline.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
229 readline.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
230 readline.so: $(topdir)/history.h $(topdir)/tilde.h
231 readline.so: $(topdir)/posixstat.h $(topdir)/ansi_stdlib.h $(topdir)/posixjmp.h
232 rltty.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
233 rltty.so: $(topdir)/rltty.h $(topdir)/tilde.h
234 rltty.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
235 search.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
236 search.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
237 search.so: $(topdir)/ansi_stdlib.h $(topdir)/history.h $(topdir)/tilde.h
238 signals.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
239 signals.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
240 signals.so: $(topdir)/history.h $(topdir)/tilde.h
241 terminal.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
242 terminal.so: $(topdir)/tcap.h
243 terminal.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
244 terminal.so: $(topdir)/tilde.h $(topdir)/history.h
245 tilde.so: $(topdir)/ansi_stdlib.h ${BUILD_DIR}/config.h $(topdir)/tilde.h
246 undo.so: $(topdir)/ansi_stdlib.h
247 undo.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
248 undo.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
249 undo.so: $(topdir)/tilde.h $(topdir)/history.h
250 util.so: $(topdir)/posixjmp.h $(topdir)/ansi_stdlib.h
251 util.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
252 util.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
253 util.so: $(topdir)/tilde.h
254 vi_mode.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
255 vi_mode.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
256 vi_mode.so: $(topdir)/history.h $(topdir)/ansi_stdlib.h $(topdir)/tilde.h
257 xmalloc.so: ${BUILD_DIR}/config.h
258 xmalloc.so: $(topdir)/ansi_stdlib.h
260 readline.so: $(topdir)/readline.c
261 vi_mode.so: $(topdir)/vi_mode.c
262 funmap.so: $(topdir)/funmap.c
263 keymaps.so: $(topdir)/keymaps.c
264 parens.so: $(topdir)/parens.c
265 search.so: $(topdir)/search.c
266 rltty.so: $(topdir)/rltty.c
267 complete.so: $(topdir)/complete.c
268 bind.so: $(topdir)/bind.c
269 isearch.so: $(topdir)/isearch.c
270 display.so: $(topdir)/display.c
271 signals.so: $(topdir)/signals.c
272 util.so: $(topdir)/util.c
273 kill.so: $(topdir)/kill.c
274 undo.so: $(topdir)/undo.c
275 macro.so: $(topdir)/macro.c
276 input.so: $(topdir)/input.c
277 callback.so: $(topdir)/callback.c
278 terminal.so: $(topdir)/terminal.c
279 nls.so: $(topdir)/nls.c
280 xmalloc.so: $(topdir)/xmalloc.c
281 history.so: $(topdir)/history.c
282 histexpand.so: $(topdir)/histexpand.c
283 histfile.so: $(topdir)/histfile.c
284 histsearch.so: $(topdir)/histsearch.c
285 savestring.so: $(topdir)/savestring.c
286 shell.so: $(topdir)/shell.c
287 tilde.so: $(topdir)/tilde.c
289 readline.so: readline.c
290 vi_mode.so: vi_mode.c
292 keymaps.so: keymaps.c
296 complete.so: complete.c
298 isearch.so: isearch.c
299 display.so: display.c
300 signals.so: signals.c
306 callback.so: callback.c
307 terminal.so: terminal.c
309 xmalloc.so: xmalloc.c
310 history.so: history.c
311 histexpand.so: histexpand.c
312 histfile.so: histfile.c
313 histsearch.so: histsearch.c
314 savestring.so: savestring.c