[__GO32__]: Don't undef HANDLE_SIGNALS for DJGPP v2.x.
[deliverable/binutils-gdb.git] / readline / Makefile.in
CommitLineData
d60d9f65
SS
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., 675 Mass Ave, Cambridge, MA 02139, USA.
18RL_LIBRARY_VERSION = @LIBVERSION@
19RL_LIBRARY_NAME = readline
20
21srcdir = @srcdir@
771578d1 22VPATH = @srcdir@
d60d9f65
SS
23top_srcdir = @top_srcdir@
24BUILD_DIR = @BUILD_DIR@
25
26INSTALL = @INSTALL@
27INSTALL_PROGRAM = @INSTALL_PROGRAM@
28INSTALL_DATA = @INSTALL_DATA@
29
30CC = @CC@
d60d9f65 31RANLIB = @RANLIB@
c862e87b
JM
32AR = @AR@
33ARFLAGS = @ARFLAGS@
d60d9f65
SS
34RM = rm -f
35CP = cp
36MV = mv
37
c862e87b
JM
38SHELL = @MAKE_SHELL@
39
d60d9f65
SS
40prefix = @prefix@
41exec_prefix = @exec_prefix@
42
43bindir = @bindir@
44libdir = @libdir@
45mandir = @mandir@
46includedir = @includedir@
47
48infodir = @infodir@
49
50man3dir = $(mandir)/man3
51
d60d9f65
SS
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@
d60d9f65
SS
59
60DEFS = @DEFS@
61LOCAL_DEFS = @LOCAL_DEFS@
62
63# For libraries which include headers from other libraries.
64INCLUDES = -I. -I$(srcdir) -I$(includedir)
65
66CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) $(INCLUDES) $(LOCAL_CFLAGS) $(CFLAGS)
67
d60d9f65 68.c.o:
c862e87b 69 ${RM} $@
d60d9f65
SS
70 $(CC) -c $(CCFLAGS) $<
71
d60d9f65
SS
72# The name of the main library target.
73LIBRARY_NAME = libreadline.a
74STATIC_LIBS = libreadline.a libhistory.a
75
d60d9f65
SS
76# The C code source files for this library.
77CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(srcdir)/keymaps.c \
78 $(srcdir)/vi_mode.c $(srcdir)/parens.c $(srcdir)/rltty.c \
79 $(srcdir)/complete.c $(srcdir)/bind.c $(srcdir)/isearch.c \
80 $(srcdir)/display.c $(srcdir)/signals.c $(srcdir)/emacs_keymap.c \
81 $(srcdir)/vi_keymap.c $(srcdir)/util.c $(srcdir)/kill.c \
82 $(srcdir)/undo.c $(srcdir)/macro.c $(srcdir)/input.c \
83 $(srcdir)/callback.c $(srcdir)/terminal.c $(srcdir)/xmalloc.c \
84 $(srcdir)/history.c $(srcdir)/histsearch.c $(srcdir)/histexpand.c \
85 $(srcdir)/histfile.c $(srcdir)/nls.c $(srcdir)/search.c \
c862e87b 86 $(srcdir)/shell.c $(srcdir)/savestring.c $(srcdir)/tilde.c
d60d9f65
SS
87
88# The header files for this library.
89HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \
90 posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \
c862e87b 91 ansi_stdlib.h tcap.h rlstdc.h
d60d9f65 92
c862e87b 93HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.o
d60d9f65
SS
94TILDEOBJ = tilde.o
95OBJECTS = readline.o vi_mode.o funmap.o keymaps.o parens.o search.o \
96 rltty.o complete.o bind.o isearch.o display.o signals.o \
97 util.o kill.o undo.o macro.o input.o callback.o terminal.o \
98 nls.o xmalloc.o $(HISTOBJ) $(TILDEOBJ)
99
d60d9f65
SS
100# The texinfo files which document this library.
101DOCSOURCE = doc/rlman.texinfo doc/rltech.texinfo doc/rluser.texinfo
102DOCOBJECT = doc/readline.dvi
103DOCSUPPORT = doc/Makefile
104DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
105
c862e87b 106CREATED_MAKEFILES = Makefile doc/Makefile examples/Makefile shlib/Makefile
d60d9f65
SS
107CREATED_CONFIGURE = config.status config.h config.cache config.log \
108 stamp-config stamp-h
109CREATED_TAGS = TAGS tags
110
c862e87b
JM
111INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \
112 rlstdc.h rlconf.h
d60d9f65
SS
113
114##########################################################################
115
116all: static
117
118static: $(STATIC_LIBS)
d60d9f65
SS
119
120libreadline.a: $(OBJECTS)
121 $(RM) $@
c862e87b 122 $(AR) $(ARFLAGS) $@ $(OBJECTS)
d60d9f65
SS
123 -test -n "$(RANLIB)" && $(RANLIB) $@
124
125libhistory.a: $(HISTOBJ) xmalloc.o
126 $(RM) $@
c862e87b 127 $(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o
d60d9f65
SS
128 -test -n "$(RANLIB)" && $(RANLIB) $@
129
d60d9f65
SS
130readline: $(OBJECTS) readline.h rldefs.h chardefs.h
131 $(CC) $(CCFLAGS) -o $@ ./examples/rl.c ./libreadline.a -ltermcap
132
133Makefile makefile: config.status $(srcdir)/Makefile.in
134 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
135
136Makefiles makefiles: config.status $(srcdir)/Makefile.in
137 @for mf in $(CREATED_MAKEFILES); do \
138 CONFIG_FILES=$$mf CONFIG_HEADERS= $(SHELL) ./config.status ; \
139 done
140
141config.status: configure
142 $(SHELL) ./config.status --recheck
143
144config.h: stamp-h
145
146stamp-h: config.status $(srcdir)/config.h.in
147 CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
148 echo > $@
149
150# CYGNUS LOCAL: Never run autoconf.
151#$(srcdir)/configure: $(srcdir)/configure.in Comment-me-out in distribution
152# cd $(srcdir) && autoconf Comment-me-out in distribution
153
c862e87b
JM
154shared: force
155 -test -d shlib || mkdir shlib
156 -( cd shlib ; ${MAKE} ${MFLAGS} all )
157
d60d9f65
SS
158documentation: force
159 -test -d doc || mkdir doc
160 -( cd doc && $(MAKE) $(MFLAGS) )
161
162examples: force
163 -test -d examples || mkdir examples
164 -(cd examples && ${MAKE} ${MFLAGS} all )
165
166force:
167
771578d1
SS
168## CYGNUS LOCAL
169## Don't mess with people's installed readline's.
170## This tries to install this version of readline over whatever
171## version is already installed on the system (which could be a
172## newer version). There is no real reason for us to install
173## readline along with GDB. GDB links statically against readline,
174## so it doesn't depend on us installing it on the system.
175
176install:
177
178#install: installdirs $(STATIC_LIBS)
179# for f in ${INSTALLED_HEADERS}; do \
180# $(INSTALL_DATA) $(srcdir)/$$f $(includedir)/readline ; \
181# done
182# -( if test -f $(libdir)/libreadline.a ; then $(MV) $(libdir)/libreadline.a $(libdir)/libreadline.old; fi )
183# $(INSTALL_DATA) libreadline.a $(libdir)/libreadline.a
184# -test -n "$(RANLIB)" && $(RANLIB) -t $(libdir)/libreadline.a
185# -( if test -f $(libdir)/libhistory.a; then $(MV) $(libdir)/libhistory.a $(libdir)/libhistory.old; fi )
186# $(INSTALL_DATA) libhistory.a $(libdir)/libhistory.a
187# -test -n "$(RANLIB)" && $(RANLIB) -t $(libdir)/libhistory.a
188# -( if test -d doc ; then \
189# cd doc && \
190# ${MAKE} ${MFLAGS} infodir=$(infodir) $@; \
191# fi )
d60d9f65
SS
192
193installdirs: $(srcdir)/support/mkdirs
194 -$(SHELL) $(srcdir)/support/mkdirs $(includedir) \
195 $(includedir)/readline $(libdir) $(infodir) $(man3dir)
196
197uninstall:
198 -test -n "$(includedir)" && cd $(includedir)/readline && \
199 ${RM} ${INSTALLED_HEADERS}
200 -test -n "$(libdir)" && cd $(libdir) && \
201 ${RM} libreadline.a libreadline.old libhistory.a libhistory.old $(SHARED_LIBS)
202
203install-shared: installdirs shared
c862e87b 204 -( cd shlib ; ${MAKE} ${MFLAGS} install )
d60d9f65
SS
205
206uninstall-shared:
c862e87b 207 -( cd shlib; ${MAKE} ${MFLAGS} uninstall )
d60d9f65
SS
208
209TAGS: force
210 $(ETAGS) $(CSOURCES) $(HSOURCES)
211
212tags: force
213 $(CTAGS) $(CSOURCES) $(HSOURCES)
214
215clean: force
216 $(RM) $(OBJECTS) $(STATIC_LIBS)
c862e87b 217 -( cd shlib && $(MAKE) $(MFLAGS) $@ )
d60d9f65
SS
218 -( cd doc && $(MAKE) $(MFLAGS) $@ )
219 -( cd examples && $(MAKE) $(MFLAGS) $@ )
220
221mostlyclean: clean
c862e87b 222 -( cd shlib && $(MAKE) $(MFLAGS) $@ )
d60d9f65
SS
223 -( cd doc && $(MAKE) $(MFLAGS) $@ )
224 -( cd examples && $(MAKE) $(MFLAGS) $@ )
225
226distclean maintainer-clean: clean
c862e87b 227 -( cd shlib && $(MAKE) $(MFLAGS) $@ )
d60d9f65
SS
228 -( cd doc && $(MAKE) $(MFLAGS) $@ )
229 -( cd examples && $(MAKE) $(MFLAGS) $@ )
230 $(RM) Makefile
231 $(RM) $(CREATED_CONFIGURE)
232 $(RM) $(CREATED_TAGS)
233
234info dvi:
235 -( cd doc && $(MAKE) $(MFLAGS) $@ )
236
237install-info:
238check:
239installcheck:
240
241dist: force
242 @echo Readline distributions are created using $(srcdir)/support/mkdist.
243 @echo Here is a sample of the necessary commands:
244 @echo bash $(srcdir)/support/mkdist -m $(srcdir)/MANIFEST -s $(srcdir) -r $(RL_LIBRARY_NAME)-$(RL_LIBRARY_VERSION)
245 @echo tar cf $(RL_LIBRARY_NAME)-${RL_LIBRARY_VERSION}.tar ${RL_LIBRARY_NAME}-$(RL_LIBRARY_VERSION)
246 @echo gzip $(RL_LIBRARY_NAME)-$(RL_LIBRARY_VERSION).tar
247
248# Tell versions [3.59,3.63) of GNU make not to export all variables.
249# Otherwise a system limit (for SysV at least) may be exceeded.
250.NOEXPORT:
251
252# Dependencies
253bind.o: ansi_stdlib.h posixstat.h
254bind.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
c862e87b 255bind.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
d60d9f65
SS
256bind.o: history.h
257callback.o: rlconf.h
258callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
c862e87b 259callback.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
d60d9f65
SS
260complete.o: ansi_stdlib.h posixdir.h posixstat.h
261complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
c862e87b 262complete.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
d60d9f65
SS
263display.o: ansi_stdlib.h posixstat.h
264display.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
265display.o: tcap.h
266display.o: readline.h keymaps.h chardefs.h tilde.h
c862e87b 267display.o: history.h rlstdc.h
d60d9f65 268funmap.o: readline.h keymaps.h chardefs.h tilde.h
c862e87b 269funmap.o: rlconf.h ansi_stdlib.h rlstdc.h
d60d9f65
SS
270funmap.o: ${BUILD_DIR}/config.h
271histexpand.o: ansi_stdlib.h
c862e87b 272histexpand.o: history.h histlib.h rlstdc.h
d60d9f65
SS
273histexpand.o: ${BUILD_DIR}/config.h
274histfile.o: ansi_stdlib.h
c862e87b 275histfile.o: history.h histlib.h rlstdc.h
d60d9f65
SS
276histfile.o: ${BUILD_DIR}/config.h
277history.o: ansi_stdlib.h
c862e87b 278history.o: history.h histlib.h rlstdc.h
d60d9f65
SS
279history.o: ${BUILD_DIR}/config.h
280histsearch.o: ansi_stdlib.h
c862e87b 281histsearch.o: history.h histlib.h rlstdc.h
d60d9f65
SS
282histsearch.o: ${BUILD_DIR}/config.h
283input.o: ansi_stdlib.h
284input.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
c862e87b 285input.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
d60d9f65
SS
286isearch.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
287isearch.o: readline.h keymaps.h chardefs.h tilde.h
c862e87b 288isearch.o: ansi_stdlib.h history.h rlstdc.h
d60d9f65
SS
289keymaps.o: emacs_keymap.c vi_keymap.c
290keymaps.o: keymaps.h chardefs.h rlconf.h ansi_stdlib.h
291keymaps.o: readline.h keymaps.h chardefs.h tilde.h
c862e87b 292keymaps.o: ${BUILD_DIR}/config.h rlstdc.h
d60d9f65
SS
293kill.o: ansi_stdlib.h
294kill.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
295kill.o: readline.h keymaps.h chardefs.h tilde.h
c862e87b 296kill.o: history.h rlstdc.h
d60d9f65
SS
297macro.o: ansi_stdlib.h
298macro.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
299macro.o: readline.h keymaps.h chardefs.h tilde.h
c862e87b 300macro.o: history.h rlstdc.h
d60d9f65
SS
301nls.o: ansi_stdlib.h
302nls.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
303parens.o: rlconf.h
304parens.o: ${BUILD_DIR}/config.h
c862e87b 305parens.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
d60d9f65
SS
306readline.o: readline.h keymaps.h chardefs.h tilde.h
307readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
c862e87b 308readline.o: history.h rlstdc.h
d60d9f65
SS
309readline.o: posixstat.h ansi_stdlib.h posixjmp.h
310rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
311rltty.o: rltty.h
c862e87b 312rltty.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
d60d9f65
SS
313search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
314search.o: readline.h keymaps.h chardefs.h tilde.h
c862e87b 315search.o: ansi_stdlib.h history.h rlstdc.h
d60d9f65
SS
316shell.o: ${BUILD_DIR}/config.h
317shell.o: ansi_stdlib.h
318signals.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
319signals.o: readline.h keymaps.h chardefs.h tilde.h
c862e87b 320signals.o: history.h rlstdc.h
d60d9f65
SS
321terminal.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
322terminal.o: tcap.h
323terminal.o: readline.h keymaps.h chardefs.h tilde.h
c862e87b 324terminal.o: history.h rlstdc.h
d60d9f65
SS
325tilde.o: ansi_stdlib.h
326tilde.o: ${BUILD_DIR}/config.h
327tilde.o: tilde.h
328undo.o: ansi_stdlib.h
329undo.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
330undo.o: readline.h keymaps.h chardefs.h tilde.h
c862e87b 331undo.o: history.h rlstdc.h
d60d9f65
SS
332util.o: posixjmp.h ansi_stdlib.h
333util.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
c862e87b 334util.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
d60d9f65
SS
335vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
336vi_mode.o: readline.h keymaps.h chardefs.h tilde.h
c862e87b 337vi_mode.o: history.h ansi_stdlib.h rlstdc.h
d60d9f65
SS
338xmalloc.o: ${BUILD_DIR}/config.h
339xmalloc.o: ansi_stdlib.h
340
341readline.o: $(srcdir)/readline.c
342vi_mode.o: $(srcdir)/vi_mode.c
343funmap.o: $(srcdir)/funmap.c
344keymaps.o: $(srcdir)/keymaps.c
345parens.o: $(srcdir)/parens.c
346search.o: $(srcdir)/search.c
347rltty.o: $(srcdir)/rltty.c
348complete.o: $(srcdir)/complete.c
349bind.o: $(srcdir)/bind.c
350isearch.o: $(srcdir)/isearch.c
351display.o: $(srcdir)/display.c
352signals.o: $(srcdir)/signals.c
353util.o: $(srcdir)/util.c
354kill.o: $(srcdir)/kill.c
355undo.o: $(srcdir)/undo.c
356macro.o: $(srcdir)/macro.c
357input.o: $(srcdir)/input.c
358callback.o: $(srcdir)/callback.c
359terminal.o: $(srcdir)/terminal.c
360nls.o: $(srcdir)/nls.c
361xmalloc.o: $(srcdir)/xmalloc.c
362history.o: $(srcdir)/history.c
363histexpand.o: $(srcdir)/histexpand.c
364histfile.o: $(srcdir)/histfile.c
365histsearch.o: $(srcdir)/histsearch.c
c862e87b 366savestring.o: $(srcdir)/savestring.c
d60d9f65
SS
367shell.o: $(srcdir)/shell.c
368tilde.o: $(srcdir)/tilde.c
369
d60d9f65
SS
370readline.o: readline.c
371vi_mode.o: vi_mode.c
372funmap.o: funmap.c
373keymaps.o: keymaps.c
374parens.o: parens.c
375search.o: search.c
376rltty.o: rltty.c
377complete.o: complete.c
378bind.o: bind.c
379isearch.o: isearch.c
380display.o: display.c
381signals.o: signals.c
382util.o: util.c
383kill.o: kill.c
384undo.o: undo.c
385macro.o: macro.c
386input.o: input.c
387callback.o: callback.c
388terminal.o: terminal.c
389nls.o: nls.c
390xmalloc.o: xmalloc.c
391history.o: history.c
392histexpand.o: histexpand.c
393histfile.o: histfile.c
394histsearch.o: histsearch.c
c862e87b 395savestring.o: savestring.c
d60d9f65
SS
396shell.o: shell.c
397tilde.o: tilde.c
This page took 0.050752 seconds and 4 git commands to generate.