7bfcffdad4ab86c0aa7dc52ca2f65d4cae18326d
[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 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 2, or (at your option)
12 # 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, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
22
23 srcdir = @srcdir@
24 VPATH = .:@srcdir@
25 topdir = @top_srcdir@
26 BUILD_DIR = @BUILD_DIR@
27
28 INSTALL = @INSTALL@
29 INSTALL_PROGRAM = @INSTALL_PROGRAM@
30 INSTALL_DATA = @INSTALL_DATA@
31
32 CC = @CC@
33 RANLIB = @RANLIB@
34 AR = @AR@
35 ARFLAGS = @ARFLAGS@
36 RM = rm -f
37 CP = cp
38 MV = mv
39
40 SHELL = @MAKE_SHELL@
41
42 # Programs to make tags files.
43 ETAGS = etags -tw
44 CTAGS = ctags -tw
45
46 CFLAGS = @CFLAGS@
47 LOCAL_CFLAGS = @LOCAL_CFLAGS@
48 CPPFLAGS = @CPPFLAGS@
49 LDFLAGS = @LDFLAGS@
50
51 DEFS = @DEFS@
52 LOCAL_DEFS = @LOCAL_DEFS@
53
54 INCLUDES = -I. -I$(BUILD_DIR) -I$(topdir) -I$(topdir)/lib
55
56 CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(APP_CFLAGS) $(CPPFLAGS) ${INCLUDES} $(LOCAL_CFLAGS) $(CFLAGS)
57
58 .c.o:
59         ${RM} $@
60         $(CC) -c $(CCFLAGS) $<
61
62 # The name of the main library target.
63 LIBRARY_NAME = libreadline.a
64
65 # The C code source files for this library.
66 CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(srcdir)/keymaps.c \
67            $(srcdir)/vi_mode.c $(srcdir)/parens.c $(srcdir)/rltty.c \
68            $(srcdir)/complete.c $(srcdir)/bind.c $(srcdir)/isearch.c \
69            $(srcdir)/display.c $(srcdir)/signals.c $(srcdir)/emacs_keymap.c \
70            $(srcdir)/vi_keymap.c $(srcdir)/util.c $(srcdir)/kill.c \
71            $(srcdir)/undo.c $(srcdir)/macro.c $(srcdir)/input.c \
72            $(srcdir)/callback.c $(srcdir)/terminal.c $(srcdir)/xmalloc.c \
73            $(srcdir)/history.c $(srcdir)/histsearch.c $(srcdir)/histexpand.c \
74            $(srcdir)/histfile.c $(srcdir)/nls.c $(srcdir)/search.c \
75            $(srcdir)/shell.c $(srcdir)/tilde.c $(srcdir)/savestring.c \
76            $(srcdir)/compat.c
77
78 # The header files for this library.
79 HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \
80            posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \
81            ansi_stdlib.h rlstdc.h tcap.h xmalloc.h rlprivate.h rlshell.h \
82            rltypedefs.h
83
84 HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.o savestring.o
85 TILDEOBJ = tilde.o
86 OBJECTS = readline.o vi_mode.o funmap.o keymaps.o parens.o search.o \
87           rltty.o complete.o bind.o isearch.o display.o signals.o \
88           util.o kill.o undo.o macro.o input.o callback.o terminal.o \
89           nls.o $(HISTOBJ) $(TILDEOBJ) xmalloc.o compat.o
90
91 # The texinfo files which document this library.
92 DOCSOURCE = doc/rlman.texinfo doc/rltech.texinfo doc/rluser.texinfo
93 DOCOBJECT = doc/readline.dvi
94 DOCSUPPORT = doc/Makefile
95 DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
96
97 SUPPORT = Makefile ChangeLog $(DOCSUPPORT) examples/[-a-z.]*
98
99 SOURCES  = $(CSOURCES) $(HSOURCES) $(DOCSOURCE)
100
101 THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
102
103 INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \
104                     rlstdc.h rlconf.h rltypedefs.h
105
106 ##########################################################################
107
108 all: libreadline.a libhistory.a
109
110 libreadline.a: $(OBJECTS)
111         $(RM) $@
112         $(AR) $(ARFLAGS) $@ $(OBJECTS)
113         -test -n "$(RANLIB)" && $(RANLIB) $@
114
115 libhistory.a: $(HISTOBJ) xmalloc.o
116         $(RM) $@
117         $(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o
118         -test -n "$(RANLIB)" && $(RANLIB) $@
119
120 documentation: force
121         test -d doc || mkdir doc
122         -( cd doc && $(MAKE) $(MFLAGS) )
123
124 force:
125
126 install:
127         @echo "This version of the readline library should not be installed."
128
129 uninstall:
130         @echo "This version of the readline library should not be installed."
131
132 TAGS:   force
133         $(ETAGS) $(CSOURCES) $(HSOURCES)
134
135 tags:   force
136         $(CTAGS) $(CSOURCES) $(HSOURCES)
137
138 clean:  force
139         $(RM) $(OBJECTS) *.a
140         -( cd doc && $(MAKE) $(MFLAGS) $@ )
141
142 mostlyclean: clean
143         -( cd doc && $(MAKE) $(MFLAGS) $@ )
144
145 distclean maintainer-clean: clean
146         -( cd doc && $(MAKE) $(MFLAGS) $@ )
147         $(RM) Makefile
148         $(RM) TAGS tags
149
150 # Dependencies
151 bind.o: ansi_stdlib.h posixstat.h
152 bind.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
153 bind.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
154 bind.o: history.h rlstdc.h
155 callback.o: rlconf.h
156 callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
157 callback.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
158 compat.o: rlstdc.h
159 complete.o: ansi_stdlib.h posixdir.h posixstat.h
160 complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
161 complete.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
162 display.o: ansi_stdlib.h posixstat.h
163 display.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
164 display.o: tcap.h
165 display.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
166 display.o: history.h rlstdc.h
167 funmap.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
168 funmap.o: rlconf.h ansi_stdlib.h rlstdc.h
169 funmap.o: ${BUILD_DIR}/config.h
170 histexpand.o: ansi_stdlib.h
171 histexpand.o: history.h histlib.h rlstdc.h
172 histexpand.o: ${BUILD_DIR}/config.h
173 histfile.o: ansi_stdlib.h
174 histfile.o: history.h histlib.h rlstdc.h
175 histfile.o: ${BUILD_DIR}/config.h
176 history.o: ansi_stdlib.h
177 history.o: history.h histlib.h rlstdc.h
178 history.o: ${BUILD_DIR}/config.h
179 histsearch.o: ansi_stdlib.h
180 histsearch.o: history.h histlib.h rlstdc.h
181 histsearch.o: ${BUILD_DIR}/config.h
182 input.o: ansi_stdlib.h
183 input.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
184 input.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
185 isearch.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
186 isearch.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
187 isearch.o: ansi_stdlib.h history.h rlstdc.h
188 keymaps.o: emacs_keymap.c vi_keymap.c
189 keymaps.o: keymaps.h rltypedefs.h chardefs.h rlconf.h ansi_stdlib.h
190 keymaps.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
191 keymaps.o: ${BUILD_DIR}/config.h rlstdc.h
192 kill.o: ansi_stdlib.h
193 kill.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
194 kill.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
195 kill.o: history.h rlstdc.h
196 macro.o: ansi_stdlib.h
197 macro.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
198 macro.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
199 macro.o: history.h rlstdc.h
200 nls.o: ansi_stdlib.h
201 nls.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
202 nls.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
203 nls.o: history.h rlstdc.h
204 parens.o: rlconf.h
205 parens.o: ${BUILD_DIR}/config.h
206 parens.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
207 readline.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
208 readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
209 readline.o: history.h rlstdc.h
210 readline.o: posixstat.h ansi_stdlib.h posixjmp.h
211 rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
212 rltty.o: rltty.h
213 rltty.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
214 search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
215 search.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
216 search.o: ansi_stdlib.h history.h rlstdc.h
217 shell.o: ${BUILD_DIR}/config.h ansi_stdlib.h
218 signals.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
219 signals.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
220 signals.o: history.h rlstdc.h
221 terminal.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
222 terminal.o: tcap.h
223 terminal.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
224 terminal.o: history.h rlstdc.h
225 tilde.o: ansi_stdlib.h
226 tilde.o: ${BUILD_DIR}/config.h
227 tilde.o: tilde.h
228 undo.o: ansi_stdlib.h
229 undo.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
230 undo.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
231 undo.o: history.h rlstdc.h
232 util.o: posixjmp.h ansi_stdlib.h
233 util.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
234 util.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
235 vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
236 vi_mode.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
237 vi_mode.o: history.h ansi_stdlib.h rlstdc.h
238 xmalloc.o: ${BUILD_DIR}/config.h ansi_stdlib.h
239
240 bind.o: rlshell.h
241 histfile.o: rlshell.h
242 nls.o: rlshell.h
243 readline.o: rlshell.h
244 shell.o: rlshell.h
245 terminal.o: rlshell.h
246 histexpand.o: rlshell.h
247
248 bind.o: rlprivate.h
249 callback.o: rlprivate.h
250 complete.o: rlprivate.h
251 display.o: rlprivate.h
252 input.o: rlprivate.h
253 isearch.o: rlprivate.h
254 kill.o: rlprivate.h
255 macro.o: rlprivate.h
256 nls.o: rlprivate.h
257 parens.o: rlprivate.h
258 readline.o: rlprivate.h
259 rltty.o: rlprivate.h
260 search.o: rlprivate.h
261 signals.o: rlprivate.h
262 terminal.o: rlprivate.h
263 undo.o: rlprivate.h
264 util.o: rlprivate.h
265 vi_mode.o: rlprivate.h
266
267 bind.o: xmalloc.h
268 complete.o: xmalloc.h  
269 display.o: xmalloc.h
270 funmap.o: xmalloc.h
271 histexpand.o: xmalloc.h   
272 histfile.o: xmalloc.h
273 history.o: xmalloc.h
274 input.o: xmalloc.h
275 isearch.o: xmalloc.h
276 keymaps.o: xmalloc.h
277 kill.o: xmalloc.h
278 macro.o: xmalloc.h
279 readline.o: xmalloc.h   
280 savestring.o: xmalloc.h
281 search.o: xmalloc.h
282 shell.o: xmalloc.h   
283 tilde.o: xmalloc.h  
284 tilde.o: xmalloc.h 
285 util.o: xmalloc.h
286 vi_mode.o: xmalloc.h 
287
288 # Rules for deficient makes, like SunOS and Solaris
289 bind.o: bind.c
290 callback.o: callback.c
291 compat.o: compat.c
292 complete.o: complete.c
293 display.o: display.c
294 funmap.o: funmap.c
295 histexpand.o: histexpand.c
296 histfile.o: histfile.c
297 history.o: history.c
298 histsearch.o: histsearch.c
299 input.o: input.c
300 isearch.o: isearch.c
301 keymaps.o: keymaps.c emacs_keymap.c vi_keymap.c
302 kill.o: kill.c
303 macro.o: macro.c
304 nls.o: nls.c
305 parens.o: parens.c
306 readline.o: readline.c
307 rltty.o: rltty.c
308 savestring.o: savestring.c
309 search.o: search.c
310 shell.o: shell.c
311 signals.o: signals.c
312 terminal.o: terminal.c
313 tilde.o: tilde.c
314 undo.o: undo.c
315 util.o: util.c
316 vi_mode.o: vi_mode.c
317 xmalloc.o: xmalloc.c