Imported from ../bash-2.05a.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            $(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 # Since tilde.c is shared between readline and bash, make sure we compile
125 # it with the right flags when it's built as part of readline
126 tilde.o:        tilde.c
127         rm -f $@
128         $(CC) $(CCFLAGS) -DREADLINE_LIBRARY -c $(srcdir)/tilde.c
129
130 force:
131
132 install:
133         @echo "This version of the readline library should not be installed."
134
135 uninstall:
136         @echo "This version of the readline library should not be installed."
137
138 TAGS:   force
139         $(ETAGS) $(CSOURCES) $(HSOURCES)
140
141 tags:   force
142         $(CTAGS) $(CSOURCES) $(HSOURCES)
143
144 clean:  force
145         $(RM) $(OBJECTS) *.a
146         -( cd doc && $(MAKE) $(MFLAGS) $@ )
147
148 mostlyclean: clean
149         -( cd doc && $(MAKE) $(MFLAGS) $@ )
150
151 distclean maintainer-clean: clean
152         -( cd doc && $(MAKE) $(MFLAGS) $@ )
153         $(RM) Makefile
154         $(RM) TAGS tags
155
156 # Dependencies
157 bind.o: ansi_stdlib.h posixstat.h
158 bind.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
159 bind.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
160 bind.o: history.h rlstdc.h
161 callback.o: rlconf.h ansi_stdlib.h
162 callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
163 callback.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
164 compat.o: rlstdc.h
165 complete.o: ansi_stdlib.h posixdir.h posixstat.h
166 complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
167 complete.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
168 display.o: ansi_stdlib.h posixstat.h
169 display.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
170 display.o: tcap.h
171 display.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
172 display.o: history.h rlstdc.h
173 funmap.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
174 funmap.o: rlconf.h ansi_stdlib.h rlstdc.h
175 funmap.o: ${BUILD_DIR}/config.h
176 histexpand.o: ansi_stdlib.h
177 histexpand.o: history.h histlib.h rlstdc.h
178 histexpand.o: ${BUILD_DIR}/config.h
179 histfile.o: ansi_stdlib.h
180 histfile.o: history.h histlib.h rlstdc.h
181 histfile.o: ${BUILD_DIR}/config.h
182 history.o: ansi_stdlib.h
183 history.o: history.h histlib.h rlstdc.h
184 history.o: ${BUILD_DIR}/config.h
185 histsearch.o: ansi_stdlib.h
186 histsearch.o: history.h histlib.h rlstdc.h
187 histsearch.o: ${BUILD_DIR}/config.h
188 input.o: ansi_stdlib.h
189 input.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
190 input.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
191 isearch.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
192 isearch.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
193 isearch.o: ansi_stdlib.h history.h rlstdc.h
194 keymaps.o: emacs_keymap.c vi_keymap.c
195 keymaps.o: keymaps.h rltypedefs.h chardefs.h rlconf.h ansi_stdlib.h
196 keymaps.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
197 keymaps.o: ${BUILD_DIR}/config.h rlstdc.h
198 kill.o: ansi_stdlib.h
199 kill.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
200 kill.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
201 kill.o: history.h rlstdc.h
202 macro.o: ansi_stdlib.h
203 macro.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
204 macro.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
205 macro.o: history.h rlstdc.h
206 nls.o: ansi_stdlib.h
207 nls.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
208 nls.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
209 nls.o: history.h rlstdc.h
210 parens.o: rlconf.h
211 parens.o: ${BUILD_DIR}/config.h
212 parens.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
213 readline.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
214 readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
215 readline.o: history.h rlstdc.h
216 readline.o: posixstat.h ansi_stdlib.h posixjmp.h
217 rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
218 rltty.o: rltty.h
219 rltty.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
220 search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
221 search.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
222 search.o: ansi_stdlib.h history.h rlstdc.h
223 shell.o: ${BUILD_DIR}/config.h ansi_stdlib.h
224 signals.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
225 signals.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
226 signals.o: history.h rlstdc.h
227 terminal.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
228 terminal.o: tcap.h
229 terminal.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
230 terminal.o: history.h rlstdc.h
231 tilde.o: ansi_stdlib.h
232 tilde.o: ${BUILD_DIR}/config.h
233 tilde.o: tilde.h
234 undo.o: ansi_stdlib.h
235 undo.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
236 undo.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
237 undo.o: history.h rlstdc.h xmalloc.h
238 util.o: posixjmp.h ansi_stdlib.h
239 util.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
240 util.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h rlstdc.h
241 vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
242 vi_mode.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
243 vi_mode.o: history.h ansi_stdlib.h rlstdc.h
244 xmalloc.o: ${BUILD_DIR}/config.h ansi_stdlib.h
245
246 bind.o: rlshell.h
247 histfile.o: rlshell.h
248 nls.o: rlshell.h
249 readline.o: rlshell.h
250 shell.o: rlshell.h
251 terminal.o: rlshell.h
252 histexpand.o: rlshell.h
253
254 bind.o: rlprivate.h
255 callback.o: rlprivate.h
256 complete.o: rlprivate.h
257 display.o: rlprivate.h
258 input.o: rlprivate.h
259 isearch.o: rlprivate.h
260 kill.o: rlprivate.h
261 macro.o: rlprivate.h
262 nls.o: rlprivate.h
263 parens.o: rlprivate.h
264 readline.o: rlprivate.h
265 rltty.o: rlprivate.h
266 search.o: rlprivate.h
267 signals.o: rlprivate.h
268 terminal.o: rlprivate.h
269 undo.o: rlprivate.h
270 util.o: rlprivate.h
271 vi_mode.o: rlprivate.h
272
273 bind.o: xmalloc.h
274 complete.o: xmalloc.h  
275 display.o: xmalloc.h
276 funmap.o: xmalloc.h
277 histexpand.o: xmalloc.h   
278 histfile.o: xmalloc.h
279 history.o: xmalloc.h
280 input.o: xmalloc.h
281 isearch.o: xmalloc.h
282 keymaps.o: xmalloc.h
283 kill.o: xmalloc.h
284 macro.o: xmalloc.h
285 readline.o: xmalloc.h   
286 savestring.o: xmalloc.h
287 search.o: xmalloc.h
288 shell.o: xmalloc.h   
289 tilde.o: xmalloc.h  
290 tilde.o: xmalloc.h 
291 util.o: xmalloc.h
292 vi_mode.o: xmalloc.h 
293
294 # Rules for deficient makes, like SunOS and Solaris
295 bind.o: bind.c
296 callback.o: callback.c
297 compat.o: compat.c
298 complete.o: complete.c
299 display.o: display.c
300 funmap.o: funmap.c
301 histexpand.o: histexpand.c
302 histfile.o: histfile.c
303 history.o: history.c
304 histsearch.o: histsearch.c
305 input.o: input.c
306 isearch.o: isearch.c
307 keymaps.o: keymaps.c emacs_keymap.c vi_keymap.c
308 kill.o: kill.c
309 macro.o: macro.c
310 nls.o: nls.c
311 parens.o: parens.c
312 readline.o: readline.c
313 rltty.o: rltty.c
314 savestring.o: savestring.c
315 search.o: search.c
316 shell.o: shell.c
317 signals.o: signals.c
318 terminal.o: terminal.c
319 tilde.o: tilde.c
320 undo.o: undo.c
321 util.o: util.c
322 vi_mode.o: vi_mode.c
323 xmalloc.o: xmalloc.c