source: trunk/third/readline/shlib/Makefile.in @ 12992

Revision 12992, 11.7 KB checked in by kcr, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12991, which included commits to RCS files with non-trunk default branches.
Line 
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., 675 Mass Ave, Cambridge, MA 02139, USA.
19RL_LIBRARY_VERSION = @LIBVERSION@
20RL_LIBRARY_NAME = readline
21
22srcdir = @srcdir@
23VPATH = .:@top_srcdir@
24topdir = @top_srcdir@
25BUILD_DIR = @BUILD_DIR@
26
27INSTALL = @INSTALL@
28INSTALL_PROGRAM = @INSTALL_PROGRAM@
29INSTALL_DATA = @INSTALL_DATA@
30
31CC = @CC@
32RANLIB = @RANLIB@
33AR = @AR@
34ARFLAGS = @ARFLAGS@
35RM = rm -f
36CP = cp
37MV = mv
38
39SHELL = @MAKE_SHELL@
40
41host_os = @host_os@
42
43prefix = @prefix@
44exec_prefix = @exec_prefix@
45libdir = @libdir@
46
47CFLAGS = @CFLAGS@
48LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
49CPPFLAGS = @CPPFLAGS@
50LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@ @CFLAGS@
51
52DEFS = @DEFS@
53LOCAL_DEFS = @LOCAL_DEFS@
54
55#
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.
60#
61SHOBJ_CC = @SHOBJ_CC@
62SHOBJ_CFLAGS = @SHOBJ_CFLAGS@
63SHOBJ_LD = @SHOBJ_LD@
64
65SHOBJ_LDFLAGS = @SHOBJ_LDFLAGS@
66SHOBJ_XLDFLAGS = @SHOBJ_XLDFLAGS@
67SHOBJ_LIBS = @SHOBJ_LIBS@
68
69SHLIB_XLDFLAGS = @SHLIB_XLDFLAGS@
70SHLIB_LIBS = @SHLIB_LIBS@
71SHLIB_LIBSUFF = @SHLIB_LIBSUFF@
72
73SHLIB_LIBVERSION = @SHLIB_LIBVERSION@
74
75SHLIB_STATUS = @SHLIB_STATUS@
76
77# shared library versioning
78SHLIB_MAJOR=            4
79# shared library systems like SVR4's do not use minor versions
80SHLIB_MINOR=            .0
81
82# For libraries which include headers from other libraries.
83INCLUDES = -I. -I.. -I$(topdir) -I$(includedir)
84
85CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) $(INCLUDES) $(LOCAL_CFLAGS) $(CFLAGS)
86
87.SUFFIXES:      .so
88
89.c.so:
90        ${RM} $@
91        $(SHOBJ_CC) -c $(CCFLAGS) $(SHOBJ_CFLAGS) -o $*.o $<
92        $(MV) $*.o $@
93
94# The name of the main library target.
95
96SHARED_READLINE = libreadline.$(SHLIB_LIBVERSION)
97SHARED_HISTORY = libhistory.$(SHLIB_LIBVERSION)
98SHARED_LIBS = $(SHARED_READLINE) $(SHARED_HISTORY)
99
100# The C code source files for this library.
101CSOURCES = $(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
111
112# The header files for this library.
113HSOURCES = 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 \
115           ansi_stdlib.h tcap.h
116
117SHARED_HISTOBJ = history.so histexpand.so histfile.so histsearch.so shell.so
118SHARED_TILDEOBJ = tilde.so
119SHARED_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)
123
124##########################################################################
125
126all: $(SHLIB_STATUS)
127
128supported: $(SHARED_LIBS)
129
130unsupported:
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."
137
138$(SHARED_READLINE):     $(SHARED_OBJ)
139        $(RM) $@
140        $(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_OBJ) $(SHLIB_LIBS)
141
142$(SHARED_HISTORY):      $(SHARED_HISTOBJ) xmalloc.so
143        $(RM) $@
144        $(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_HISTOBJ) xmalloc.so $(SHLIB_LIBS)
145
146installdirs: $(topdir)/support/mkdirs
147        -$(SHELL) $(topdir)/support/mkdirs $(libdir)
148
149install: 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
153
154uninstall:
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
158
159clean mostlyclean:      force
160        $(RM) $(SHARED_OBJ) $(SHARED_LIBS)
161
162distclean maintainer-clean: clean
163        $(RM) Makefile
164
165force:
166
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.
169.NOEXPORT:
170
171# Dependencies
172bind.so: $(topdir)/ansi_stdlib.h $(topdir)/posixstat.h
173bind.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
174bind.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
175bind.so: $(topdir)/tilde.h $(topdir)/history.h
176callback.so: $(topdir)/rlconf.h
177callback.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h
178callback.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
179callback.so: $(topdir)/tilde.h
180complete.so: $(topdir)/ansi_stdlib.h posixdir.h $(topdir)/posixstat.h
181complete.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
182complete.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
183complete.so: $(topdir)/tilde.h
184display.so: $(topdir)/ansi_stdlib.h $(topdir)/posixstat.h
185display.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
186display.so: $(topdir)/tcap.h
187display.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
188display.so: $(topdir)/tilde.h $(topdir)/history.h
189funmap.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
190funmap.so: $(topdir)/rlconf.h $(topdir)/ansi_stdlib.h
191funmap.so: ${BUILD_DIR}/config.h $(topdir)/tilde.h
192histexpand.so: $(topdir)/ansi_stdlib.h
193histexpand.so: $(topdir)/history.h histlib.h
194histexpand.so: ${BUILD_DIR}/config.h
195histfile.so: $(topdir)/ansi_stdlib.h
196histfile.so: $(topdir)/history.h histlib.h
197histfile.so: ${BUILD_DIR}/config.h
198history.so: $(topdir)/ansi_stdlib.h
199history.so: $(topdir)/history.h histlib.h
200history.so: ${BUILD_DIR}/config.h
201histsearch.so: $(topdir)/ansi_stdlib.h
202histsearch.so: $(topdir)/history.h histlib.h
203histsearch.so: ${BUILD_DIR}/config.h
204input.so: $(topdir)/ansi_stdlib.h
205input.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
206input.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
207input.so: $(topdir)/tilde.h
208isearch.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
209isearch.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
210isearch.so: $(topdir)/ansi_stdlib.h $(topdir)/history.h $(topdir)/tilde.h
211keymaps.so: emacs_keymap.c vi_keymap.c
212keymaps.so: $(topdir)/keymaps.h $(topdir)/chardefs.h $(topdir)/rlconf.h
213keymaps.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
214keymaps.so: ${BUILD_DIR}/config.h $(topdir)/ansi_stdlib.h $(topdir)/tilde.h
215kill.so: $(topdir)/ansi_stdlib.h
216kill.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
217kill.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
218kill.so: $(topdir)/tilde.h $(topdir)/history.h
219macro.so: $(topdir)/ansi_stdlib.h
220macro.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
221macro.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
222macro.so: $(topdir)/tilde.h $(topdir)/history.h
223nls.so: $(topdir)/ansi_stdlib.h
224nls.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
225parens.so: $(topdir)/rlconf.h ${BUILD_DIR}/config.h
226parens.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
227parens.so: $(topdir)/tilde.h
228readline.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
229readline.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
230readline.so: $(topdir)/history.h $(topdir)/tilde.h
231readline.so: $(topdir)/posixstat.h $(topdir)/ansi_stdlib.h $(topdir)/posixjmp.h
232rltty.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
233rltty.so: $(topdir)/rltty.h $(topdir)/tilde.h
234rltty.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
235search.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
236search.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
237search.so: $(topdir)/ansi_stdlib.h $(topdir)/history.h $(topdir)/tilde.h
238signals.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
239signals.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
240signals.so: $(topdir)/history.h $(topdir)/tilde.h
241terminal.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
242terminal.so: $(topdir)/tcap.h
243terminal.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
244terminal.so: $(topdir)/tilde.h $(topdir)/history.h
245tilde.so: $(topdir)/ansi_stdlib.h ${BUILD_DIR}/config.h $(topdir)/tilde.h
246undo.so: $(topdir)/ansi_stdlib.h
247undo.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
248undo.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
249undo.so: $(topdir)/tilde.h $(topdir)/history.h
250util.so: $(topdir)/posixjmp.h $(topdir)/ansi_stdlib.h
251util.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
252util.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
253util.so: $(topdir)/tilde.h
254vi_mode.so: $(topdir)/rldefs.h ${BUILD_DIR}/config.h $(topdir)/rlconf.h
255vi_mode.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h
256vi_mode.so: $(topdir)/history.h $(topdir)/ansi_stdlib.h $(topdir)/tilde.h
257xmalloc.so: ${BUILD_DIR}/config.h
258xmalloc.so: $(topdir)/ansi_stdlib.h
259
260readline.so: $(topdir)/readline.c
261vi_mode.so: $(topdir)/vi_mode.c
262funmap.so: $(topdir)/funmap.c
263keymaps.so: $(topdir)/keymaps.c
264parens.so: $(topdir)/parens.c
265search.so: $(topdir)/search.c
266rltty.so: $(topdir)/rltty.c
267complete.so: $(topdir)/complete.c
268bind.so: $(topdir)/bind.c
269isearch.so: $(topdir)/isearch.c
270display.so: $(topdir)/display.c
271signals.so: $(topdir)/signals.c
272util.so: $(topdir)/util.c
273kill.so: $(topdir)/kill.c
274undo.so: $(topdir)/undo.c
275macro.so: $(topdir)/macro.c
276input.so: $(topdir)/input.c
277callback.so: $(topdir)/callback.c
278terminal.so: $(topdir)/terminal.c
279nls.so: $(topdir)/nls.c
280xmalloc.so: $(topdir)/xmalloc.c
281history.so: $(topdir)/history.c
282histexpand.so: $(topdir)/histexpand.c
283histfile.so: $(topdir)/histfile.c
284histsearch.so: $(topdir)/histsearch.c
285savestring.so: $(topdir)/savestring.c
286shell.so: $(topdir)/shell.c
287tilde.so: $(topdir)/tilde.c
288
289readline.so: readline.c
290vi_mode.so: vi_mode.c
291funmap.so: funmap.c
292keymaps.so: keymaps.c
293parens.so: parens.c
294search.so: search.c
295rltty.so: rltty.c
296complete.so: complete.c
297bind.so: bind.c
298isearch.so: isearch.c
299display.so: display.c
300signals.so: signals.c
301util.so: util.c
302kill.so: kill.c
303undo.so: undo.c
304macro.so: macro.c
305input.so: input.c
306callback.so: callback.c
307terminal.so: terminal.c
308nls.so: nls.c
309xmalloc.so: xmalloc.c
310history.so: history.c
311histexpand.so: histexpand.c
312histfile.so: histfile.c
313histsearch.so: histsearch.c
314savestring.so: savestring.c
315shell.so: shell.c
316tilde.so: tilde.c
Note: See TracBrowser for help on using the repository browser.