4387a54e71e17238520db2688212e9c819878749
[platform/upstream/bash.git] / lib / readline / Makefile.in
1 ## -*- text -*- #############################################################
2 #                                                                           #
3 # Makefile for the Bash versions of the GNU Readline and History Libraries. #
4 #                                                                           #
5 #############################################################################
6
7 # Copyright (C) 1994-2009 Free Software Foundation, Inc.
8
9 #   This program is free software: you can redistribute it and/or modify
10 #   it under the terms of the GNU General Public License as published by
11 #   the Free Software Foundation, either version 3 of the License, or
12 #   (at your option) any later version.
13
14 #   This program is distributed in the hope that it will be useful,
15 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
16 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 #   GNU General Public License for more details.
18
19 #   You should have received a copy of the GNU General Public License
20 #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
22 PACKAGE = @PACKAGE_NAME@
23 VERSION = @PACKAGE_VERSION@
24
25 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
26 PACKAGE_NAME = @PACKAGE_NAME@
27 PACKAGE_STRING = @PACKAGE_STRING@
28 PACKAGE_VERSION = @PACKAGE_VERSION@
29
30 srcdir = @srcdir@
31 VPATH = .:@srcdir@
32 topdir = @top_srcdir@
33 BUILD_DIR = @BUILD_DIR@
34
35 datarootdir = @datarootdir@
36
37 INSTALL = @INSTALL@
38 INSTALL_PROGRAM = @INSTALL_PROGRAM@
39 INSTALL_DATA = @INSTALL_DATA@
40
41 CC = @CC@
42 RANLIB = @RANLIB@
43 AR = @AR@
44 ARFLAGS = @ARFLAGS@
45 RM = rm -f
46 CP = cp
47 MV = mv
48
49 SHELL = @MAKE_SHELL@
50
51 # Programs to make tags files.
52 ETAGS = etags -tw
53 CTAGS = ctags -tw
54
55 CFLAGS = @CFLAGS@
56 LOCAL_CFLAGS = @LOCAL_CFLAGS@
57 CPPFLAGS = @CPPFLAGS@
58 LDFLAGS = @LDFLAGS@
59
60 DEFS = @DEFS@
61 LOCAL_DEFS = @LOCAL_DEFS@
62
63 INCLUDES = -I. -I$(BUILD_DIR) -I$(topdir) -I$(topdir)/lib
64
65 CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(APP_CFLAGS) $(CPPFLAGS) ${INCLUDES} $(LOCAL_CFLAGS) $(CFLAGS)
66
67 .c.o:
68         ${RM} $@
69         $(CC) -c $(CCFLAGS) $<
70
71 # The name of the main library target.
72 LIBRARY_NAME = libreadline.a
73
74 # The C code source files for this library.
75 CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(srcdir)/keymaps.c \
76            $(srcdir)/vi_mode.c $(srcdir)/parens.c $(srcdir)/rltty.c \
77            $(srcdir)/complete.c $(srcdir)/bind.c $(srcdir)/isearch.c \
78            $(srcdir)/display.c $(srcdir)/signals.c $(srcdir)/emacs_keymap.c \
79            $(srcdir)/vi_keymap.c $(srcdir)/util.c $(srcdir)/kill.c \
80            $(srcdir)/undo.c $(srcdir)/macro.c $(srcdir)/input.c \
81            $(srcdir)/callback.c $(srcdir)/terminal.c $(srcdir)/xmalloc.c \
82            $(srcdir)/history.c $(srcdir)/histsearch.c $(srcdir)/histexpand.c \
83            $(srcdir)/histfile.c $(srcdir)/nls.c $(srcdir)/search.c \
84            $(srcdir)/shell.c $(srcdir)/tilde.c $(srcdir)/savestring.c \
85            $(srcdir)/text.c $(srcdir)/misc.c $(srcdir)/compat.c \
86            $(srcdir)/mbutil.c $(srcdir)/xfree.c
87
88 # The header files for this library.
89 HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \
90            posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \
91            ansi_stdlib.h rlstdc.h tcap.h xmalloc.h rlprivate.h rlshell.h \
92            rltypedefs.h rlmbutil.h
93
94 HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.o savestring.o \
95           mbutil.o
96 TILDEOBJ = tilde.o
97 OBJECTS = readline.o vi_mode.o funmap.o keymaps.o parens.o search.o \
98           rltty.o complete.o bind.o isearch.o display.o signals.o \
99           util.o kill.o undo.o macro.o input.o callback.o terminal.o \
100           text.o nls.o misc.o $(HISTOBJ) $(TILDEOBJ) xmalloc.o xfree.o compat.o 
101
102 # The texinfo files which document this library.
103 DOCSOURCE = doc/rlman.texinfo doc/rltech.texinfo doc/rluser.texinfo
104 DOCOBJECT = doc/readline.dvi
105 DOCSUPPORT = doc/Makefile
106 DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
107
108 SUPPORT = Makefile ChangeLog $(DOCSUPPORT) examples/[-a-z.]*
109
110 SOURCES  = $(CSOURCES) $(HSOURCES) $(DOCSOURCE)
111
112 THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
113
114 INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \
115                     rlstdc.h rlconf.h rltypedefs.h
116
117 ##########################################################################
118
119 all: libreadline.a libhistory.a
120
121 libreadline.a: $(OBJECTS)
122         $(RM) $@
123         $(AR) $(ARFLAGS) $@ $(OBJECTS)
124         -test -n "$(RANLIB)" && $(RANLIB) $@
125
126 libhistory.a: $(HISTOBJ) xmalloc.o xfree.o
127         $(RM) $@
128         $(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o xfree.o
129         -test -n "$(RANLIB)" && $(RANLIB) $@
130
131 documentation: force
132         test -d doc || mkdir doc
133         -( cd doc && $(MAKE) $(MFLAGS) )
134
135 # Since tilde.c is shared between readline and bash, make sure we compile
136 # it with the right flags when it's built as part of readline
137 tilde.o:        tilde.c
138         rm -f $@
139         $(CC) $(CCFLAGS) -DREADLINE_LIBRARY -c $(srcdir)/tilde.c
140
141 force:
142
143 install:
144         @echo "This version of the readline library should not be installed."
145
146 uninstall:
147         @echo "This version of the readline library should not be installed."
148
149 TAGS:   force
150         $(ETAGS) $(CSOURCES) $(HSOURCES)
151
152 tags:   force
153         $(CTAGS) $(CSOURCES) $(HSOURCES)
154
155 clean:  force
156         $(RM) $(OBJECTS) *.a
157         -( cd doc && $(MAKE) $(MFLAGS) $@ )
158
159 mostlyclean: clean
160         -( cd doc && $(MAKE) $(MFLAGS) $@ )
161
162 distclean maintainer-clean: clean
163         -( cd doc && $(MAKE) $(MFLAGS) $@ )
164         $(RM) Makefile
165         $(RM) TAGS tags
166
167 # Dependencies
168 bind.o: ansi_stdlib.h posixstat.h
169 bind.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
170 bind.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
171 bind.o: history.h rlstdc.h
172 callback.o: rlconf.h ansi_stdlib.h
173 callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
174 callback.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
175 compat.o: rlstdc.h
176 complete.o: ansi_stdlib.h posixdir.h posixstat.h
177 complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
178 complete.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
179 display.o: ansi_stdlib.h posixstat.h
180 display.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
181 display.o: tcap.h
182 display.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
183 display.o: history.h rlstdc.h
184 funmap.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
185 funmap.o: rlconf.h ansi_stdlib.h rlstdc.h
186 funmap.o: ${BUILD_DIR}/config.h
187 histexpand.o: ansi_stdlib.h
188 histexpand.o: history.h histlib.h rlstdc.h
189 histexpand.o: ${BUILD_DIR}/config.h
190 histfile.o: ansi_stdlib.h
191 histfile.o: history.h histlib.h rlstdc.h
192 histfile.o: ${BUILD_DIR}/config.h
193 history.o: ansi_stdlib.h
194 history.o: history.h histlib.h rlstdc.h
195 history.o: ${BUILD_DIR}/config.h
196 histsearch.o: ansi_stdlib.h
197 histsearch.o: history.h histlib.h rlstdc.h
198 histsearch.o: ${BUILD_DIR}/config.h
199 input.o: ansi_stdlib.h
200 input.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
201 input.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
202 isearch.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
203 isearch.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
204 isearch.o: ansi_stdlib.h history.h rlstdc.h
205 keymaps.o: emacs_keymap.c vi_keymap.c
206 keymaps.o: keymaps.h rltypedefs.h chardefs.h rlconf.h ansi_stdlib.h
207 keymaps.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
208 keymaps.o: ${BUILD_DIR}/config.h rlstdc.h
209 kill.o: ansi_stdlib.h
210 kill.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
211 kill.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
212 kill.o: history.h rlstdc.h
213 macro.o: ansi_stdlib.h
214 macro.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
215 macro.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
216 macro.o: history.h rlstdc.h
217 mbutil.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h rlmbutil.h
218 mbutil.o: readline.h keymaps.h rltypedefs.h chardefs.h rlstdc.h
219 misc.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
220 misc.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
221 misc.o: history.h rlstdc.h ansi_stdlib.h
222 nls.o: ansi_stdlib.h
223 nls.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
224 nls.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
225 nls.o: history.h rlstdc.h
226 parens.o: rlconf.h
227 parens.o: ${BUILD_DIR}/config.h
228 parens.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
229 readline.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
230 readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
231 readline.o: history.h rlstdc.h
232 readline.o: posixstat.h ansi_stdlib.h posixjmp.h
233 rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
234 rltty.o: rltty.h
235 rltty.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
236 search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
237 search.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
238 search.o: ansi_stdlib.h history.h rlstdc.h
239 shell.o: ${BUILD_DIR}/config.h ansi_stdlib.h
240 signals.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
241 signals.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
242 signals.o: history.h rlstdc.h
243 terminal.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
244 terminal.o: tcap.h
245 terminal.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
246 terminal.o: history.h rlstdc.h
247 text.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
248 text.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
249 text.o: history.h rlstdc.h ansi_stdlib.h
250 rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
251 tilde.o: ansi_stdlib.h
252 tilde.o: ${BUILD_DIR}/config.h
253 tilde.o: tilde.h
254 undo.o: ansi_stdlib.h
255 undo.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
256 undo.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
257 undo.o: history.h rlstdc.h xmalloc.h
258 util.o: posixjmp.h ansi_stdlib.h
259 util.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
260 util.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
261 vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
262 vi_mode.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
263 vi_mode.o: history.h ansi_stdlib.h rlstdc.h
264 xmalloc.o: ${BUILD_DIR}/config.h ansi_stdlib.h
265 xfree.o: ${BUILD_DIR}/config.h ansi_stdlib.h
266
267 bind.o: rlshell.h
268 histfile.o: rlshell.h
269 nls.o: rlshell.h
270 readline.o: rlshell.h
271 shell.o: rlshell.h
272 terminal.o: rlshell.h
273 histexpand.o: rlshell.h
274
275 bind.o: rlprivate.h
276 callback.o: rlprivate.h
277 complete.o: rlprivate.h
278 display.o: rlprivate.h
279 input.o: rlprivate.h
280 isearch.o: rlprivate.h
281 kill.o: rlprivate.h
282 macro.o: rlprivate.h
283 mbutil.o: rlprivate.h
284 misc.o: rlprivate.h
285 nls.o: rlprivate.h
286 parens.o: rlprivate.h
287 readline.o: rlprivate.h
288 rltty.o: rlprivate.h
289 search.o: rlprivate.h
290 signals.o: rlprivate.h
291 terminal.o: rlprivate.h
292 text.o: rlprivate.h
293 undo.o: rlprivate.h
294 util.o: rlprivate.h
295 vi_mode.o: rlprivate.h
296
297 bind.o: xmalloc.h
298 complete.o: xmalloc.h  
299 display.o: xmalloc.h
300 funmap.o: xmalloc.h
301 histexpand.o: xmalloc.h   
302 histfile.o: xmalloc.h
303 history.o: xmalloc.h
304 input.o: xmalloc.h
305 isearch.o: xmalloc.h
306 keymaps.o: xmalloc.h
307 kill.o: xmalloc.h
308 macro.o: xmalloc.h
309 mbutil.o: xmalloc.h
310 misc.o: xmalloc.h  
311 readline.o: xmalloc.h   
312 savestring.o: xmalloc.h
313 search.o: xmalloc.h
314 shell.o: xmalloc.h   
315 terminal.o: xmalloc.h  
316 text.o: xmalloc.h
317 tilde.o: xmalloc.h 
318 undo.o: xmalloc.h
319 util.o: xmalloc.h
320 vi_mode.o: xmalloc.h 
321 xfree.o: xmalloc.h
322 xmalloc.o: xmalloc.h
323
324 complete.o: rlmbutil.h
325 display.o: rlmbutil.h
326 histexpand.o: rlmbutil.h
327 input.o: rlmbutil.h
328 isearch.o: rlmbutil.h
329 mbutil.o: rlmbutil.h
330 misc.o: rlmbutil.h
331 readline.o: rlmbutil.h
332 search.o: rlmbutil.h
333 text.o: rlmbutil.h
334 vi_mode.o: rlmbutil.h
335
336 # Rules for deficient makes, like SunOS and Solaris
337 bind.o: bind.c
338 callback.o: callback.c
339 compat.o: compat.c
340 complete.o: complete.c
341 display.o: display.c
342 funmap.o: funmap.c
343 input.o: input.c
344 isearch.o: isearch.c
345 keymaps.o: keymaps.c emacs_keymap.c vi_keymap.c
346 kill.o: kill.c
347 macro.o: macro.c
348 mbutil.o: mbutil.c
349 misc.o: misc.c
350 nls.o: nls.c
351 parens.o: parens.c
352 readline.o: readline.c
353 rltty.o: rltty.c
354 savestring.o: savestring.c
355 search.o: search.c
356 shell.o: shell.c
357 signals.o: signals.c
358 terminal.o: terminal.c
359 text.o: text.c
360 tilde.o: tilde.c
361 undo.o: undo.c
362 util.o: util.c
363 vi_mode.o: vi_mode.c
364 xfree.o: xfree.c
365 xmalloc.o: xmalloc.c
366
367 histexpand.o: histexpand.c
368 histfile.o: histfile.c
369 history.o: history.c
370 histsearch.o: histsearch.c