Imported from ../bash-2.04.tar.gz.
[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
77 # The header files for this library.
78 HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \
79            posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \
80            ansi_stdlib.h rlstdc.h tcap.h rlprivate.h rlshell.h
81
82 HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.o savestring.o
83 TILDEOBJ = tilde.o
84 OBJECTS = readline.o vi_mode.o funmap.o keymaps.o parens.o search.o \
85           rltty.o complete.o bind.o isearch.o display.o signals.o \
86           util.o kill.o undo.o macro.o input.o callback.o terminal.o \
87           nls.o $(HISTOBJ) $(TILDEOBJ) xmalloc.o
88
89 # The texinfo files which document this library.
90 DOCSOURCE = doc/rlman.texinfo doc/rltech.texinfo doc/rluser.texinfo
91 DOCOBJECT = doc/readline.dvi
92 DOCSUPPORT = doc/Makefile
93 DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
94
95 SUPPORT = Makefile ChangeLog $(DOCSUPPORT) examples/[-a-z.]*
96
97 SOURCES  = $(CSOURCES) $(HSOURCES) $(DOCSOURCE)
98
99 THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
100
101 INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h
102
103 ##########################################################################
104
105 all: libreadline.a libhistory.a
106
107 libreadline.a: $(OBJECTS)
108         $(RM) $@
109         $(AR) $(ARFLAGS) $@ $(OBJECTS)
110         -test -n "$(RANLIB)" && $(RANLIB) $@
111
112 libhistory.a: $(HISTOBJ) xmalloc.o
113         $(RM) $@
114         $(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o
115         -test -n "$(RANLIB)" && $(RANLIB) $@
116
117 documentation: force
118         test -d doc || mkdir doc
119         -( cd doc && $(MAKE) $(MFLAGS) )
120
121 force:
122
123 install:
124         @echo "This version of the readline library should not be installed."
125
126 uninstall:
127         @echo "This version of the readline library should not be installed."
128
129 TAGS:   force
130         $(ETAGS) $(CSOURCES) $(HSOURCES)
131
132 tags:   force
133         $(CTAGS) $(CSOURCES) $(HSOURCES)
134
135 clean:  force
136         $(RM) $(OBJECTS) *.a
137         -( cd doc && $(MAKE) $(MFLAGS) $@ )
138
139 mostlyclean: clean
140         -( cd doc && $(MAKE) $(MFLAGS) $@ )
141
142 distclean maintainer-clean: clean
143         -( cd doc && $(MAKE) $(MFLAGS) $@ )
144         $(RM) Makefile
145         $(RM) TAGS tags
146
147 # Dependencies
148 bind.o: ansi_stdlib.h posixstat.h
149 bind.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
150 bind.o: readline.h keymaps.h chardefs.h tilde.h
151 bind.o: history.h rlstdc.h
152 callback.o: rlconf.h
153 callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
154 callback.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
155 complete.o: ansi_stdlib.h posixdir.h posixstat.h
156 complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
157 complete.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
158 display.o: ansi_stdlib.h posixstat.h
159 display.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
160 display.o: tcap.h
161 display.o: readline.h keymaps.h chardefs.h tilde.h
162 display.o: history.h rlstdc.h
163 funmap.o: readline.h keymaps.h chardefs.h tilde.h
164 funmap.o: rlconf.h ansi_stdlib.h rlstdc.h
165 funmap.o: ${BUILD_DIR}/config.h
166 histexpand.o: ansi_stdlib.h
167 histexpand.o: history.h histlib.h rlstdc.h
168 histexpand.o: ${BUILD_DIR}/config.h
169 histfile.o: ansi_stdlib.h
170 histfile.o: history.h histlib.h rlstdc.h
171 histfile.o: ${BUILD_DIR}/config.h
172 history.o: ansi_stdlib.h
173 history.o: history.h histlib.h rlstdc.h
174 history.o: ${BUILD_DIR}/config.h
175 histsearch.o: ansi_stdlib.h
176 histsearch.o: history.h histlib.h rlstdc.h
177 histsearch.o: ${BUILD_DIR}/config.h
178 input.o: ansi_stdlib.h
179 input.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
180 input.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
181 isearch.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
182 isearch.o: readline.h keymaps.h chardefs.h tilde.h
183 isearch.o: ansi_stdlib.h history.h rlstdc.h
184 keymaps.o: emacs_keymap.c vi_keymap.c
185 keymaps.o: keymaps.h chardefs.h rlconf.h ansi_stdlib.h
186 keymaps.o: readline.h keymaps.h chardefs.h tilde.h
187 keymaps.o: ${BUILD_DIR}/config.h rlstdc.h
188 kill.o: ansi_stdlib.h
189 kill.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
190 kill.o: readline.h keymaps.h chardefs.h tilde.h
191 kill.o: history.h rlstdc.h
192 macro.o: ansi_stdlib.h
193 macro.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
194 macro.o: readline.h keymaps.h chardefs.h tilde.h
195 macro.o: history.h rlstdc.h
196 nls.o: ansi_stdlib.h
197 nls.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
198 nls.o: readline.h keymaps.h chardefs.h tilde.h
199 nls.o: history.h rlstdc.h
200 parens.o: rlconf.h
201 parens.o: ${BUILD_DIR}/config.h
202 parens.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
203 readline.o: readline.h keymaps.h chardefs.h tilde.h
204 readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
205 readline.o: history.h rlstdc.h
206 readline.o: posixstat.h ansi_stdlib.h posixjmp.h
207 rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
208 rltty.o: rltty.h
209 rltty.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
210 search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
211 search.o: readline.h keymaps.h chardefs.h tilde.h
212 search.o: ansi_stdlib.h history.h rlstdc.h
213 shell.o: ${BUILD_DIR}/config.h ansi_stdlib.h
214 signals.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
215 signals.o: readline.h keymaps.h chardefs.h tilde.h
216 signals.o: history.h rlstdc.h
217 terminal.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
218 terminal.o: tcap.h
219 terminal.o: readline.h keymaps.h chardefs.h tilde.h
220 terminal.o: history.h rlstdc.h
221 tilde.o: ansi_stdlib.h
222 tilde.o: ${BUILD_DIR}/config.h
223 tilde.o: tilde.h
224 undo.o: ansi_stdlib.h
225 undo.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
226 undo.o: readline.h keymaps.h chardefs.h tilde.h
227 undo.o: history.h rlstdc.h
228 util.o: posixjmp.h ansi_stdlib.h
229 util.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
230 util.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
231 vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
232 vi_mode.o: readline.h keymaps.h chardefs.h tilde.h
233 vi_mode.o: history.h ansi_stdlib.h rlstdc.h
234 xmalloc.o: ${BUILD_DIR}/config.h ansi_stdlib.h
235
236 bind.o: rlshell.h
237 histfile.o: rlshell.h
238 nls.o: rlshell.h
239 readline.o: rlshell.h
240 shell.o: rlshell.h
241 terminal.o: rlshell.h
242 histexpand.o: rlshell.h
243
244 bind.o: rlprivate.h
245 callback.o: rlprivate.h
246 complete.o: rlprivate.h
247 display.o: rlprivate.h
248 input.o: rlprivate.h
249 isearch.o: rlprivate.h
250 kill.o: rlprivate.h
251 macro.o: rlprivate.h
252 nls.o: rlprivate.h
253 parens.o: rlprivate.h
254 readline.o: rlprivate.h
255 rltty.o: rlprivate.h
256 search.o: rlprivate.h
257 signals.o: rlprivate.h
258 terminal.o: rlprivate.h
259 undo.o: rlprivate.h
260 util.o: rlprivate.h
261 vi_mode.o: rlprivate.h
262
263 bind.o: xmalloc.h
264 complete.o: xmalloc.h  
265 display.o: xmalloc.h
266 funmap.o: xmalloc.h
267 histexpand.o: xmalloc.h   
268 histfile.o: xmalloc.h
269 history.o: xmalloc.h
270 input.o: xmalloc.h
271 isearch.o: xmalloc.h
272 keymaps.o: xmalloc.h
273 kill.o: xmalloc.h
274 macro.o: xmalloc.h
275 readline.o: xmalloc.h   
276 savestring.o: xmalloc.h
277 search.o: xmalloc.h
278 shell.o: xmalloc.h   
279 tilde.o: xmalloc.h  
280 tilde.o: xmalloc.h 
281 util.o: xmalloc.h
282 vi_mode.o: xmalloc.h 
283
284 # Rules for deficient makes, like SunOS and Solaris
285 bind.o: bind.c
286 callback.o: callback.c
287 complete.o: complete.c
288 display.o: display.c
289 funmap.o: funmap.c
290 histexpand.o: histexpand.c
291 histfile.o: histfile.c
292 history.o: history.c
293 histsearch.o: histsearch.c
294 input.o: input.c
295 isearch.o: isearch.c
296 keymaps.o: keymaps.c emacs_keymap.c vi_keymap.c
297 kill.o: kill.c
298 macro.o: macro.c
299 nls.o: nls.c
300 parens.o: parens.c
301 readline.o: readline.c
302 rltty.o: rltty.c
303 savestring.o: savestring.c
304 search.o: search.c
305 shell.o: shell.c
306 signals.o: signals.c
307 terminal.o: terminal.c
308 tilde.o: tilde.c
309 undo.o: undo.c
310 util.o: util.c
311 vi_mode.o: vi_mode.c
312 xmalloc.o: xmalloc.c