==> dejagnu/ChangeLog <==
[deliverable/binutils-gdb.git] / readline / Makefile.in
... / ...
CommitLineData
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.
18RL_LIBRARY_VERSION = @LIBVERSION@
19RL_LIBRARY_NAME = readline
20
21srcdir = @srcdir@
22VPATH = @srcdir@
23top_srcdir = @top_srcdir@
24BUILD_DIR = @BUILD_DIR@
25
26INSTALL = @INSTALL@
27INSTALL_PROGRAM = @INSTALL_PROGRAM@
28INSTALL_DATA = @INSTALL_DATA@
29
30CC = @CC@
31RANLIB = @RANLIB@
32AR = @AR@
33ARFLAGS = @ARFLAGS@
34RM = rm -f
35CP = cp
36MV = mv
37
38SHELL = @MAKE_SHELL@
39
40prefix = @prefix@
41exec_prefix = @exec_prefix@
42
43bindir = @bindir@
44libdir = @libdir@
45mandir = @mandir@
46includedir = @includedir@
47
48infodir = @infodir@
49
50man3dir = $(mandir)/man3
51
52# Programs to make tags files.
53ETAGS = etags -tw
54CTAGS = ctags -tw
55
56CFLAGS = @CFLAGS@
57LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
58CPPFLAGS = @CPPFLAGS@
59
60DEFS = @DEFS@
61LOCAL_DEFS = @LOCAL_DEFS@
62
63TERMCAP_LIB = @TERMCAP_LIB@
64
65# For libraries which include headers from other libraries.
66INCLUDES = -I. -I$(srcdir) -I$(includedir)
67
68CCFLAGS = $(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.
75LIBRARY_NAME = libreadline.a
76STATIC_LIBS = libreadline.a libhistory.a
77
78# The C code source files for this library.
79CSOURCES = $(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.
91HSOURCES = 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
95HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.o
96TILDEOBJ = tilde.o
97OBJECTS = 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.
103DOCSOURCE = doc/rlman.texinfo doc/rltech.texinfo doc/rluser.texinfo
104DOCOBJECT = doc/readline.dvi
105DOCSUPPORT = doc/Makefile
106DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
107
108CREATED_MAKEFILES = Makefile doc/Makefile examples/Makefile shlib/Makefile
109CREATED_CONFIGURE = config.status config.h config.cache config.log \
110 stamp-config stamp-h
111CREATED_TAGS = TAGS tags
112
113INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \
114 rlstdc.h rlconf.h
115
116##########################################################################
117
118all: static
119
120everything: static shared examples
121
122static: $(STATIC_LIBS)
123
124libreadline.a: $(OBJECTS)
125 $(RM) $@
126 $(AR) $(ARFLAGS) $@ $(OBJECTS)
127 -test -n "$(RANLIB)" && $(RANLIB) $@
128
129libhistory.a: $(HISTOBJ) xmalloc.o
130 $(RM) $@
131 $(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o
132 -test -n "$(RANLIB)" && $(RANLIB) $@
133
134readline: $(OBJECTS) readline.h rldefs.h chardefs.h ./libreadline.a
135 $(CC) $(CCFLAGS) -o $@ ./examples/rl.c ./libreadline.a ${TERMCAP_LIB}
136
137Makefile makefile: config.status $(srcdir)/Makefile.in
138 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
139
140Makefiles 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
145config.status: configure
146 $(SHELL) ./config.status --recheck
147
148config.h: stamp-h
149
150stamp-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
157shared: force
158 -test -d shlib || mkdir shlib
159 -( cd shlib ; ${MAKE} ${MFLAGS} all )
160
161documentation: force
162 -test -d doc || mkdir doc
163 -( cd doc && $(MAKE) $(MFLAGS) )
164
165examples: force
166 -test -d examples || mkdir examples
167 -(cd examples && ${MAKE} ${MFLAGS} all )
168
169force:
170
171install-headers: installdirs ${INSTALLED_HEADERS}
172 for f in ${INSTALLED_HEADERS}; do \
173 $(INSTALL_DATA) $(srcdir)/$$f $(includedir)/readline ; \
174 done
175
176uninstall-headers:
177 -test -n "$(includedir)" && cd $(includedir)/readline && \
178 ${RM} ${INSTALLED_HEADERS}
179
180maybe-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
190install:
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
204installdirs: $(srcdir)/support/mkdirs
205 -$(SHELL) $(srcdir)/support/mkdirs $(includedir) \
206 $(includedir)/readline $(libdir) $(infodir) $(man3dir)
207
208uninstall: uninstall-headers
209 -test -n "$(libdir)" && cd $(libdir) && \
210 ${RM} libreadline.a libreadline.old libhistory.a libhistory.old $(SHARED_LIBS)
211
212install-shared: installdirs install-headers shared
213 -( cd shlib ; ${MAKE} ${MFLAGS} install )
214
215uninstall-shared: maybe-uninstall-headers
216 -( cd shlib; ${MAKE} ${MFLAGS} uninstall )
217
218TAGS: force
219 $(ETAGS) $(CSOURCES) $(HSOURCES)
220
221tags: force
222 $(CTAGS) $(CSOURCES) $(HSOURCES)
223
224clean: 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
231mostlyclean: clean
232 -( cd shlib && $(MAKE) $(MFLAGS) $@ )
233 -( cd doc && $(MAKE) $(MFLAGS) $@ )
234 -( cd examples && $(MAKE) $(MFLAGS) $@ )
235
236distclean 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
244info dvi:
245 -( cd doc && $(MAKE) $(MFLAGS) $@ )
246
247install-info:
248check:
249installcheck:
250
251dist: 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
263bind.o: ansi_stdlib.h posixstat.h
264bind.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
265bind.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
266bind.o: history.h
267callback.o: rlconf.h
268callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
269callback.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
270complete.o: ansi_stdlib.h posixdir.h posixstat.h
271complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
272complete.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
273display.o: ansi_stdlib.h posixstat.h
274display.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
275display.o: tcap.h
276display.o: readline.h keymaps.h chardefs.h tilde.h
277display.o: history.h rlstdc.h
278funmap.o: readline.h keymaps.h chardefs.h tilde.h
279funmap.o: rlconf.h ansi_stdlib.h rlstdc.h
280funmap.o: ${BUILD_DIR}/config.h
281histexpand.o: ansi_stdlib.h
282histexpand.o: history.h histlib.h rlstdc.h
283histexpand.o: ${BUILD_DIR}/config.h
284histfile.o: ansi_stdlib.h
285histfile.o: history.h histlib.h rlstdc.h
286histfile.o: ${BUILD_DIR}/config.h
287history.o: ansi_stdlib.h
288history.o: history.h histlib.h rlstdc.h
289history.o: ${BUILD_DIR}/config.h
290histsearch.o: ansi_stdlib.h
291histsearch.o: history.h histlib.h rlstdc.h
292histsearch.o: ${BUILD_DIR}/config.h
293input.o: ansi_stdlib.h
294input.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
295input.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
296isearch.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
297isearch.o: readline.h keymaps.h chardefs.h tilde.h
298isearch.o: ansi_stdlib.h history.h rlstdc.h
299keymaps.o: emacs_keymap.c vi_keymap.c
300keymaps.o: keymaps.h chardefs.h rlconf.h ansi_stdlib.h
301keymaps.o: readline.h keymaps.h chardefs.h tilde.h
302keymaps.o: ${BUILD_DIR}/config.h rlstdc.h
303kill.o: ansi_stdlib.h
304kill.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
305kill.o: readline.h keymaps.h chardefs.h tilde.h
306kill.o: history.h rlstdc.h
307macro.o: ansi_stdlib.h
308macro.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
309macro.o: readline.h keymaps.h chardefs.h tilde.h
310macro.o: history.h rlstdc.h
311nls.o: ansi_stdlib.h
312nls.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
313nls.o: readline.h keymaps.h chardefs.h tilde.h
314nls.o: history.h rlstdc.h
315parens.o: rlconf.h
316parens.o: ${BUILD_DIR}/config.h
317parens.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
318readline.o: readline.h keymaps.h chardefs.h tilde.h
319readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
320readline.o: history.h rlstdc.h
321readline.o: posixstat.h ansi_stdlib.h posixjmp.h
322rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
323rltty.o: rltty.h
324rltty.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
325search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
326search.o: readline.h keymaps.h chardefs.h tilde.h
327search.o: ansi_stdlib.h history.h rlstdc.h
328shell.o: ${BUILD_DIR}/config.h
329shell.o: ansi_stdlib.h
330signals.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
331signals.o: readline.h keymaps.h chardefs.h tilde.h
332signals.o: history.h rlstdc.h
333terminal.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
334terminal.o: tcap.h
335terminal.o: readline.h keymaps.h chardefs.h tilde.h
336terminal.o: history.h rlstdc.h
337tilde.o: ansi_stdlib.h
338tilde.o: ${BUILD_DIR}/config.h
339tilde.o: tilde.h
340undo.o: ansi_stdlib.h
341undo.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
342undo.o: readline.h keymaps.h chardefs.h tilde.h
343undo.o: history.h rlstdc.h
344util.o: posixjmp.h ansi_stdlib.h
345util.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
346util.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
347vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
348vi_mode.o: readline.h keymaps.h chardefs.h tilde.h
349vi_mode.o: history.h ansi_stdlib.h rlstdc.h
350xmalloc.o: ${BUILD_DIR}/config.h
351xmalloc.o: ansi_stdlib.h
352
353bind.o: rlshell.h
354histfile.o: rlshell.h
355nls.o: rlshell.h
356readline.o: rlshell.h
357shell.o: rlshell.h
358terminal.o: rlshell.h
359histexpand.o: rlshell.h
360
361bind.o: rlprivate.h
362callback.o: rlprivate.h
363complete.o: rlprivate.h
364display.o: rlprivate.h
365input.o: rlprivate.h
366isearch.o: rlprivate.h
367kill.o: rlprivate.h
368macro.o: rlprivate.h
369nls.o: rlprivate.h
370parens.o: rlprivate.h
371readline.o: rlprivate.h
372rltty.o: rlprivate.h
373search.o: rlprivate.h
374signals.o: rlprivate.h
375terminal.o: rlprivate.h
376undo.o: rlprivate.h
377util.o: rlprivate.h
378vi_mode.o: rlprivate.h
379
380bind.o: xmalloc.h
381complete.o: xmalloc.h
382display.o: xmalloc.h
383funmap.o: xmalloc.h
384histexpand.o: xmalloc.h
385histfile.o: xmalloc.h
386history.o: xmalloc.h
387input.o: xmalloc.h
388isearch.o: xmalloc.h
389keymaps.o: xmalloc.h
390kill.o: xmalloc.h
391macro.o: xmalloc.h
392readline.o: xmalloc.h
393savestring.o: xmalloc.h
394search.o: xmalloc.h
395shell.o: xmalloc.h
396tilde.o: xmalloc.h
397tilde.o: xmalloc.h
398util.o: xmalloc.h
399vi_mode.o: xmalloc.h
400
401readline.o: $(srcdir)/readline.c
402vi_mode.o: $(srcdir)/vi_mode.c
403funmap.o: $(srcdir)/funmap.c
404keymaps.o: $(srcdir)/keymaps.c
405parens.o: $(srcdir)/parens.c
406search.o: $(srcdir)/search.c
407rltty.o: $(srcdir)/rltty.c
408complete.o: $(srcdir)/complete.c
409bind.o: $(srcdir)/bind.c
410isearch.o: $(srcdir)/isearch.c
411display.o: $(srcdir)/display.c
412signals.o: $(srcdir)/signals.c
413util.o: $(srcdir)/util.c
414kill.o: $(srcdir)/kill.c
415undo.o: $(srcdir)/undo.c
416macro.o: $(srcdir)/macro.c
417input.o: $(srcdir)/input.c
418callback.o: $(srcdir)/callback.c
419terminal.o: $(srcdir)/terminal.c
420nls.o: $(srcdir)/nls.c
421xmalloc.o: $(srcdir)/xmalloc.c
422history.o: $(srcdir)/history.c
423histexpand.o: $(srcdir)/histexpand.c
424histfile.o: $(srcdir)/histfile.c
425histsearch.o: $(srcdir)/histsearch.c
426savestring.o: $(srcdir)/savestring.c
427shell.o: $(srcdir)/shell.c
428tilde.o: $(srcdir)/tilde.c
429
430readline.o: readline.c
431vi_mode.o: vi_mode.c
432funmap.o: funmap.c
433keymaps.o: keymaps.c
434parens.o: parens.c
435search.o: search.c
436rltty.o: rltty.c
437complete.o: complete.c
438bind.o: bind.c
439isearch.o: isearch.c
440display.o: display.c
441signals.o: signals.c
442util.o: util.c
443kill.o: kill.c
444undo.o: undo.c
445macro.o: macro.c
446input.o: input.c
447callback.o: callback.c
448terminal.o: terminal.c
449nls.o: nls.c
450xmalloc.o: xmalloc.c
451history.o: history.c
452histexpand.o: histexpand.c
453histfile.o: histfile.c
454histsearch.o: histsearch.c
455savestring.o: savestring.c
456shell.o: shell.c
457tilde.o: tilde.c
This page took 0.025107 seconds and 4 git commands to generate.