readline:
[deliverable/binutils-gdb.git] / readline / Makefile.in
1 ## -*- text -*- ##
2 # Master Makefile for the GNU readline library.
3 # Copyright (C) 1994, 1998 Free Software Foundation, Inc.
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
18 RL_LIBRARY_VERSION = @LIBVERSION@
19 RL_LIBRARY_NAME = readline
20
21 srcdir = @srcdir@
22 VPATH = @srcdir@
23 top_srcdir = @top_srcdir@
24 BUILD_DIR = @BUILD_DIR@
25
26 INSTALL = @INSTALL@
27 INSTALL_PROGRAM = @INSTALL_PROGRAM@
28 INSTALL_DATA = @INSTALL_DATA@
29
30 CC = @CC@
31 RANLIB = @RANLIB@
32 AR = @AR@
33 ARFLAGS = @ARFLAGS@
34 RM = rm -f
35 CP = cp
36 MV = mv
37
38 SHELL = @MAKE_SHELL@
39
40 prefix = @prefix@
41 exec_prefix = @exec_prefix@
42
43 bindir = @bindir@
44 libdir = @libdir@
45 mandir = @mandir@
46 includedir = @includedir@
47
48 infodir = @infodir@
49
50 man3dir = $(mandir)/man3
51
52 # Programs to make tags files.
53 ETAGS = etags -tw
54 CTAGS = ctags -tw
55
56 CFLAGS = @CFLAGS@
57 LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
58 CPPFLAGS = @CPPFLAGS@
59
60 DEFS = @DEFS@
61 LOCAL_DEFS = @LOCAL_DEFS@
62
63 TERMCAP_LIB = @TERMCAP_LIB@
64
65 # For libraries which include headers from other libraries.
66 INCLUDES = -I. -I$(srcdir) -I$(includedir)
67
68 CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) $(INCLUDES) $(LOCAL_CFLAGS) $(CFLAGS)
69
70 .c.o:
71 ${RM} $@
72 $(CC) -c $(CCFLAGS) $<
73
74 # The name of the main library target.
75 LIBRARY_NAME = libreadline.a
76 STATIC_LIBS = libreadline.a libhistory.a
77
78 # The C code source files for this library.
79 CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(srcdir)/keymaps.c \
80 $(srcdir)/vi_mode.c $(srcdir)/parens.c $(srcdir)/rltty.c \
81 $(srcdir)/complete.c $(srcdir)/bind.c $(srcdir)/isearch.c \
82 $(srcdir)/display.c $(srcdir)/signals.c $(srcdir)/emacs_keymap.c \
83 $(srcdir)/vi_keymap.c $(srcdir)/util.c $(srcdir)/kill.c \
84 $(srcdir)/undo.c $(srcdir)/macro.c $(srcdir)/input.c \
85 $(srcdir)/callback.c $(srcdir)/terminal.c $(srcdir)/xmalloc.c \
86 $(srcdir)/history.c $(srcdir)/histsearch.c $(srcdir)/histexpand.c \
87 $(srcdir)/histfile.c $(srcdir)/nls.c $(srcdir)/search.c \
88 $(srcdir)/shell.c $(srcdir)/savestring.c $(srcdir)/tilde.c
89
90 # The header files for this library.
91 HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \
92 posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \
93 ansi_stdlib.h tcap.h rlstdc.h xmalloc.h rlprivate.h rlshell.h
94
95 HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.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 nls.o xmalloc.o $(HISTOBJ) $(TILDEOBJ)
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 CREATED_MAKEFILES = Makefile doc/Makefile examples/Makefile shlib/Makefile
109 CREATED_CONFIGURE = config.status config.h config.cache config.log \
110 stamp-config stamp-h
111 CREATED_TAGS = TAGS tags
112
113 INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \
114 rlstdc.h rlconf.h
115
116 ##########################################################################
117
118 all: static
119
120 everything: static shared examples
121
122 static: $(STATIC_LIBS)
123
124 libreadline.a: $(OBJECTS)
125 $(RM) $@
126 $(AR) $(ARFLAGS) $@ $(OBJECTS)
127 -test -n "$(RANLIB)" && $(RANLIB) $@
128
129 libhistory.a: $(HISTOBJ) xmalloc.o
130 $(RM) $@
131 $(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o
132 -test -n "$(RANLIB)" && $(RANLIB) $@
133
134 readline: $(OBJECTS) readline.h rldefs.h chardefs.h ./libreadline.a
135 $(CC) $(CCFLAGS) -o $@ ./examples/rl.c ./libreadline.a ${TERMCAP_LIB}
136
137 Makefile makefile: config.status $(srcdir)/Makefile.in
138 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
139
140 Makefiles makefiles: config.status $(srcdir)/Makefile.in
141 @for mf in $(CREATED_MAKEFILES); do \
142 CONFIG_FILES=$$mf CONFIG_HEADERS= $(SHELL) ./config.status ; \
143 done
144
145 config.status: configure
146 $(SHELL) ./config.status --recheck
147
148 config.h: stamp-h
149
150 stamp-h: config.status $(srcdir)/config.h.in
151 CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
152 echo > $@
153
154 #$(srcdir)/configure: $(srcdir)/configure.in ## Comment-me-out in distribution
155 # cd $(srcdir) && autoconf ## Comment-me-out in distribution
156
157 shared: force
158 -test -d shlib || mkdir shlib
159 -( cd shlib ; ${MAKE} ${MFLAGS} all )
160
161 documentation: force
162 -test -d doc || mkdir doc
163 -( cd doc && $(MAKE) $(MFLAGS) )
164
165 examples: force
166 -test -d examples || mkdir examples
167 -(cd examples && ${MAKE} ${MFLAGS} all )
168
169 force:
170
171 install-headers: installdirs ${INSTALLED_HEADERS}
172 for f in ${INSTALLED_HEADERS}; do \
173 $(INSTALL_DATA) $(srcdir)/$$f $(includedir)/readline ; \
174 done
175
176 uninstall-headers:
177 -test -n "$(includedir)" && cd $(includedir)/readline && \
178 ${RM} ${INSTALLED_HEADERS}
179
180 maybe-uninstall-headers: uninstall-headers
181
182 ## CYGNUS LOCAL
183 ## Don't mess with people's installed readline's.
184 ## This tries to install this version of readline over whatever
185 ## version is already installed on the system (which could be a
186 ## newer version). There is no real reason for us to install
187 ## readline along with GDB. GDB links statically against readline,
188 ## so it doesn't depend on us installing it on the system.
189
190 install:
191
192 #install: installdirs $(STATIC_LIBS) install-headers
193 # -$(MV) $(libdir)/libreadline.a $(libdir)/libreadline.old
194 # $(INSTALL_DATA) libreadline.a $(libdir)/libreadline.a
195 # -test -n "$(RANLIB)" && $(RANLIB) -t $(libdir)/libreadline.a
196 # -$(MV) $(libdir)/libhistory.a $(libdir)/libhistory.old
197 # $(INSTALL_DATA) libhistory.a $(libdir)/libhistory.a
198 # -test -n "$(RANLIB)" && $(RANLIB) -t $(libdir)/libhistory.a
199 # -( if test -d doc ; then \
200 # cd doc && \
201 # ${MAKE} ${MFLAGS} infodir=$(infodir) $@; \
202 # fi )
203
204 installdirs: $(srcdir)/support/mkdirs
205 -$(SHELL) $(srcdir)/support/mkdirs $(includedir) \
206 $(includedir)/readline $(libdir) $(infodir) $(man3dir)
207
208 uninstall: uninstall-headers
209 -test -n "$(libdir)" && cd $(libdir) && \
210 ${RM} libreadline.a libreadline.old libhistory.a libhistory.old $(SHARED_LIBS)
211
212 install-shared: installdirs install-headers shared
213 -( cd shlib ; ${MAKE} ${MFLAGS} install )
214
215 uninstall-shared: maybe-uninstall-headers
216 -( cd shlib; ${MAKE} ${MFLAGS} uninstall )
217
218 TAGS: force
219 $(ETAGS) $(CSOURCES) $(HSOURCES)
220
221 tags: force
222 $(CTAGS) $(CSOURCES) $(HSOURCES)
223
224 clean: force
225 $(RM) $(OBJECTS) $(STATIC_LIBS)
226 $(RM) readline readline.exe
227 -( cd shlib && $(MAKE) $(MFLAGS) $@ )
228 -( cd doc && $(MAKE) $(MFLAGS) $@ )
229 -( cd examples && $(MAKE) $(MFLAGS) $@ )
230
231 mostlyclean: clean
232 -( cd shlib && $(MAKE) $(MFLAGS) $@ )
233 -( cd doc && $(MAKE) $(MFLAGS) $@ )
234 -( cd examples && $(MAKE) $(MFLAGS) $@ )
235
236 distclean maintainer-clean: clean
237 -( cd shlib && $(MAKE) $(MFLAGS) $@ )
238 -( cd doc && $(MAKE) $(MFLAGS) $@ )
239 -( cd examples && $(MAKE) $(MFLAGS) $@ )
240 $(RM) Makefile
241 $(RM) $(CREATED_CONFIGURE)
242 $(RM) $(CREATED_TAGS)
243
244 info dvi:
245 -( cd doc && $(MAKE) $(MFLAGS) $@ )
246
247 install-info:
248 check:
249 installcheck:
250
251 dist: force
252 @echo Readline distributions are created using $(srcdir)/support/mkdist.
253 @echo Here is a sample of the necessary commands:
254 @echo bash $(srcdir)/support/mkdist -m $(srcdir)/MANIFEST -s $(srcdir) -r $(RL_LIBRARY_NAME) $(RL_LIBRARY_VERSION)
255 @echo tar cf $(RL_LIBRARY_NAME)-${RL_LIBRARY_VERSION}.tar ${RL_LIBRARY_NAME}-$(RL_LIBRARY_VERSION)
256 @echo gzip $(RL_LIBRARY_NAME)-$(RL_LIBRARY_VERSION).tar
257
258 # Tell versions [3.59,3.63) of GNU make not to export all variables.
259 # Otherwise a system limit (for SysV at least) may be exceeded.
260 .NOEXPORT:
261
262 # Dependencies
263 bind.o: ansi_stdlib.h posixstat.h
264 bind.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
265 bind.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
266 bind.o: history.h
267 callback.o: rlconf.h
268 callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
269 callback.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
270 complete.o: ansi_stdlib.h posixdir.h posixstat.h
271 complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
272 complete.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
273 display.o: ansi_stdlib.h posixstat.h
274 display.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
275 display.o: tcap.h
276 display.o: readline.h keymaps.h chardefs.h tilde.h
277 display.o: history.h rlstdc.h
278 funmap.o: readline.h keymaps.h chardefs.h tilde.h
279 funmap.o: rlconf.h ansi_stdlib.h rlstdc.h
280 funmap.o: ${BUILD_DIR}/config.h
281 histexpand.o: ansi_stdlib.h
282 histexpand.o: history.h histlib.h rlstdc.h
283 histexpand.o: ${BUILD_DIR}/config.h
284 histfile.o: ansi_stdlib.h
285 histfile.o: history.h histlib.h rlstdc.h
286 histfile.o: ${BUILD_DIR}/config.h
287 history.o: ansi_stdlib.h
288 history.o: history.h histlib.h rlstdc.h
289 history.o: ${BUILD_DIR}/config.h
290 histsearch.o: ansi_stdlib.h
291 histsearch.o: history.h histlib.h rlstdc.h
292 histsearch.o: ${BUILD_DIR}/config.h
293 input.o: ansi_stdlib.h
294 input.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
295 input.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
296 isearch.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
297 isearch.o: readline.h keymaps.h chardefs.h tilde.h
298 isearch.o: ansi_stdlib.h history.h rlstdc.h
299 keymaps.o: emacs_keymap.c vi_keymap.c
300 keymaps.o: keymaps.h chardefs.h rlconf.h ansi_stdlib.h
301 keymaps.o: readline.h keymaps.h chardefs.h tilde.h
302 keymaps.o: ${BUILD_DIR}/config.h rlstdc.h
303 kill.o: ansi_stdlib.h
304 kill.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
305 kill.o: readline.h keymaps.h chardefs.h tilde.h
306 kill.o: history.h rlstdc.h
307 macro.o: ansi_stdlib.h
308 macro.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
309 macro.o: readline.h keymaps.h chardefs.h tilde.h
310 macro.o: history.h rlstdc.h
311 nls.o: ansi_stdlib.h
312 nls.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
313 nls.o: readline.h keymaps.h chardefs.h tilde.h
314 nls.o: history.h rlstdc.h
315 parens.o: rlconf.h
316 parens.o: ${BUILD_DIR}/config.h
317 parens.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
318 readline.o: readline.h keymaps.h chardefs.h tilde.h
319 readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
320 readline.o: history.h rlstdc.h
321 readline.o: posixstat.h ansi_stdlib.h posixjmp.h
322 rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
323 rltty.o: rltty.h
324 rltty.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
325 search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
326 search.o: readline.h keymaps.h chardefs.h tilde.h
327 search.o: ansi_stdlib.h history.h rlstdc.h
328 shell.o: ${BUILD_DIR}/config.h
329 shell.o: ansi_stdlib.h
330 signals.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
331 signals.o: readline.h keymaps.h chardefs.h tilde.h
332 signals.o: history.h rlstdc.h
333 terminal.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
334 terminal.o: tcap.h
335 terminal.o: readline.h keymaps.h chardefs.h tilde.h
336 terminal.o: history.h rlstdc.h
337 tilde.o: ansi_stdlib.h
338 tilde.o: ${BUILD_DIR}/config.h
339 tilde.o: tilde.h
340 undo.o: ansi_stdlib.h
341 undo.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
342 undo.o: readline.h keymaps.h chardefs.h tilde.h
343 undo.o: history.h rlstdc.h
344 util.o: posixjmp.h ansi_stdlib.h
345 util.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
346 util.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
347 vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
348 vi_mode.o: readline.h keymaps.h chardefs.h tilde.h
349 vi_mode.o: history.h ansi_stdlib.h rlstdc.h
350 xmalloc.o: ${BUILD_DIR}/config.h
351 xmalloc.o: ansi_stdlib.h
352
353 bind.o: rlshell.h
354 histfile.o: rlshell.h
355 nls.o: rlshell.h
356 readline.o: rlshell.h
357 shell.o: rlshell.h
358 terminal.o: rlshell.h
359 histexpand.o: rlshell.h
360
361 bind.o: rlprivate.h
362 callback.o: rlprivate.h
363 complete.o: rlprivate.h
364 display.o: rlprivate.h
365 input.o: rlprivate.h
366 isearch.o: rlprivate.h
367 kill.o: rlprivate.h
368 macro.o: rlprivate.h
369 nls.o: rlprivate.h
370 parens.o: rlprivate.h
371 readline.o: rlprivate.h
372 rltty.o: rlprivate.h
373 search.o: rlprivate.h
374 signals.o: rlprivate.h
375 terminal.o: rlprivate.h
376 undo.o: rlprivate.h
377 util.o: rlprivate.h
378 vi_mode.o: rlprivate.h
379
380 bind.o: xmalloc.h
381 complete.o: xmalloc.h
382 display.o: xmalloc.h
383 funmap.o: xmalloc.h
384 histexpand.o: xmalloc.h
385 histfile.o: xmalloc.h
386 history.o: xmalloc.h
387 input.o: xmalloc.h
388 isearch.o: xmalloc.h
389 keymaps.o: xmalloc.h
390 kill.o: xmalloc.h
391 macro.o: xmalloc.h
392 readline.o: xmalloc.h
393 savestring.o: xmalloc.h
394 search.o: xmalloc.h
395 shell.o: xmalloc.h
396 tilde.o: xmalloc.h
397 tilde.o: xmalloc.h
398 util.o: xmalloc.h
399 vi_mode.o: xmalloc.h
400
401 readline.o: $(srcdir)/readline.c
402 vi_mode.o: $(srcdir)/vi_mode.c
403 funmap.o: $(srcdir)/funmap.c
404 keymaps.o: $(srcdir)/keymaps.c
405 parens.o: $(srcdir)/parens.c
406 search.o: $(srcdir)/search.c
407 rltty.o: $(srcdir)/rltty.c
408 complete.o: $(srcdir)/complete.c
409 bind.o: $(srcdir)/bind.c
410 isearch.o: $(srcdir)/isearch.c
411 display.o: $(srcdir)/display.c
412 signals.o: $(srcdir)/signals.c
413 util.o: $(srcdir)/util.c
414 kill.o: $(srcdir)/kill.c
415 undo.o: $(srcdir)/undo.c
416 macro.o: $(srcdir)/macro.c
417 input.o: $(srcdir)/input.c
418 callback.o: $(srcdir)/callback.c
419 terminal.o: $(srcdir)/terminal.c
420 nls.o: $(srcdir)/nls.c
421 xmalloc.o: $(srcdir)/xmalloc.c
422 history.o: $(srcdir)/history.c
423 histexpand.o: $(srcdir)/histexpand.c
424 histfile.o: $(srcdir)/histfile.c
425 histsearch.o: $(srcdir)/histsearch.c
426 savestring.o: $(srcdir)/savestring.c
427 shell.o: $(srcdir)/shell.c
428 tilde.o: $(srcdir)/tilde.c
429
430 readline.o: readline.c
431 vi_mode.o: vi_mode.c
432 funmap.o: funmap.c
433 keymaps.o: keymaps.c
434 parens.o: parens.c
435 search.o: search.c
436 rltty.o: rltty.c
437 complete.o: complete.c
438 bind.o: bind.c
439 isearch.o: isearch.c
440 display.o: display.c
441 signals.o: signals.c
442 util.o: util.c
443 kill.o: kill.c
444 undo.o: undo.c
445 macro.o: macro.c
446 input.o: input.c
447 callback.o: callback.c
448 terminal.o: terminal.c
449 nls.o: nls.c
450 xmalloc.o: xmalloc.c
451 history.o: history.c
452 histexpand.o: histexpand.c
453 histfile.o: histfile.c
454 histsearch.o: histsearch.c
455 savestring.o: savestring.c
456 shell.o: shell.c
457 tilde.o: tilde.c
This page took 0.03913 seconds and 5 git commands to generate.