Imported from ../bash-2.03.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 srcdir = @srcdir@
8 VPATH = .:@srcdir@
9 topdir = @top_srcdir@
10 BUILD_DIR = @BUILD_DIR@
11
12 INSTALL = @INSTALL@
13 INSTALL_PROGRAM = @INSTALL_PROGRAM@
14 INSTALL_DATA = @INSTALL_DATA@
15
16 CC = @CC@
17 RANLIB = @RANLIB@
18 AR = @AR@
19 ARFLAGS = @ARFLAGS@
20 RM = rm -f
21 CP = cp
22 MV = mv
23
24 SHELL = @MAKE_SHELL@
25
26 # Programs to make tags files.
27 ETAGS = etags -tw
28 CTAGS = ctags -tw
29
30 CFLAGS = @CFLAGS@
31 LOCAL_CFLAGS = @LOCAL_CFLAGS@
32 CPPFLAGS = @CPPFLAGS@
33 LDFLAGS = @LDFLAGS@
34
35 DEFS = @DEFS@
36 LOCAL_DEFS = @LOCAL_DEFS@
37
38 INCLUDES = -I. -I$(BUILD_DIR) -I$(topdir) -I$(topdir)/lib
39
40 CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(APP_CFLAGS) $(CPPFLAGS) ${INCLUDES} $(LOCAL_CFLAGS) $(CFLAGS)
41
42 .c.o:
43         ${RM} $@
44         $(CC) -c $(CCFLAGS) $<
45
46 # The name of the main library target.
47 LIBRARY_NAME = libreadline.a
48
49 # The C code source files for this library.
50 CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(srcdir)/keymaps.c \
51            $(srcdir)/vi_mode.c $(srcdir)/parens.c $(srcdir)/rltty.c \
52            $(srcdir)/complete.c $(srcdir)/bind.c $(srcdir)/isearch.c \
53            $(srcdir)/display.c $(srcdir)/signals.c $(srcdir)/emacs_keymap.c \
54            $(srcdir)/vi_keymap.c $(srcdir)/util.c $(srcdir)/kill.c \
55            $(srcdir)/undo.c $(srcdir)/macro.c $(srcdir)/input.c \
56            $(srcdir)/callback.c $(srcdir)/terminal.c $(srcdir)/xmalloc.c \
57            $(srcdir)/history.c $(srcdir)/histsearch.c $(srcdir)/histexpand.c \
58            $(srcdir)/histfile.c $(srcdir)/nls.c $(srcdir)/search.c \
59            $(srcdir)/shell.c $(srcdir)/tilde.c $(srcdir)/savestring.c
60
61 # The header files for this library.
62 HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \
63            posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \
64            ansi_stdlib.h rlstdc.h tcap.h
65
66 HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.o savestring.o
67 TILDEOBJ = tilde.o
68 OBJECTS = readline.o vi_mode.o funmap.o keymaps.o parens.o search.o \
69           rltty.o complete.o bind.o isearch.o display.o signals.o \
70           util.o kill.o undo.o macro.o input.o callback.o terminal.o \
71           nls.o $(HISTOBJ) $(TILDEOBJ) xmalloc.o
72
73 # The texinfo files which document this library.
74 DOCSOURCE = doc/rlman.texinfo doc/rltech.texinfo doc/rluser.texinfo
75 DOCOBJECT = doc/readline.dvi
76 DOCSUPPORT = doc/Makefile
77 DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
78
79 SUPPORT = Makefile ChangeLog $(DOCSUPPORT) examples/[-a-z.]*
80
81 SOURCES  = $(CSOURCES) $(HSOURCES) $(DOCSOURCE)
82
83 THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
84
85 INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h
86
87 ##########################################################################
88
89 all: libreadline.a libhistory.a
90
91 libreadline.a: $(OBJECTS)
92         $(RM) $@
93         $(AR) $(ARFLAGS) $@ $(OBJECTS)
94         -test -n "$(RANLIB)" && $(RANLIB) $@
95
96 libhistory.a: $(HISTOBJ) xmalloc.o
97         $(RM) $@
98         $(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o
99         -test -n "$(RANLIB)" && $(RANLIB) $@
100
101 documentation: force
102         test -d doc || mkdir doc
103         -( cd doc && $(MAKE) $(MFLAGS) )
104
105 force:
106
107 install:
108         @echo "This version of the readline library should not be installed."
109
110 uninstall:
111         @echo "This version of the readline library should not be installed."
112
113 TAGS:   force
114         $(ETAGS) $(CSOURCES) $(HSOURCES)
115
116 tags:   force
117         $(CTAGS) $(CSOURCES) $(HSOURCES)
118
119 clean:  force
120         $(RM) $(OBJECTS) *.a
121         -( cd doc && $(MAKE) $(MFLAGS) $@ )
122
123 mostlyclean: clean
124         -( cd doc && $(MAKE) $(MFLAGS) $@ )
125
126 distclean maintainer-clean: clean
127         -( cd doc && $(MAKE) $(MFLAGS) $@ )
128         $(RM) Makefile
129         $(RM) TAGS tags
130
131 # Dependencies
132 bind.o: ansi_stdlib.h posixstat.h
133 bind.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
134 bind.o: readline.h keymaps.h chardefs.h tilde.h
135 bind.o: history.h rlstdc.h
136 callback.o: rlconf.h
137 callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
138 callback.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
139 complete.o: ansi_stdlib.h posixdir.h posixstat.h
140 complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
141 complete.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
142 display.o: ansi_stdlib.h posixstat.h
143 display.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
144 display.o: tcap.h
145 display.o: readline.h keymaps.h chardefs.h tilde.h
146 display.o: history.h rlstdc.h
147 funmap.o: readline.h keymaps.h chardefs.h tilde.h
148 funmap.o: rlconf.h ansi_stdlib.h rlstdc.h
149 funmap.o: ${BUILD_DIR}/config.h
150 histexpand.o: ansi_stdlib.h
151 histexpand.o: history.h histlib.h rlstdc.h
152 histexpand.o: ${BUILD_DIR}/config.h
153 histfile.o: ansi_stdlib.h
154 histfile.o: history.h histlib.h rlstdc.h
155 histfile.o: ${BUILD_DIR}/config.h
156 history.o: ansi_stdlib.h
157 history.o: history.h histlib.h rlstdc.h
158 history.o: ${BUILD_DIR}/config.h
159 histsearch.o: ansi_stdlib.h
160 histsearch.o: history.h histlib.h rlstdc.h
161 histsearch.o: ${BUILD_DIR}/config.h
162 input.o: ansi_stdlib.h
163 input.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
164 input.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
165 isearch.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
166 isearch.o: readline.h keymaps.h chardefs.h tilde.h
167 isearch.o: ansi_stdlib.h history.h rlstdc.h
168 keymaps.o: emacs_keymap.c vi_keymap.c
169 keymaps.o: keymaps.h chardefs.h rlconf.h ansi_stdlib.h
170 keymaps.o: readline.h keymaps.h chardefs.h tilde.h
171 keymaps.o: ${BUILD_DIR}/config.h rlstdc.h
172 kill.o: ansi_stdlib.h
173 kill.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
174 kill.o: readline.h keymaps.h chardefs.h tilde.h
175 kill.o: history.h rlstdc.h
176 macro.o: ansi_stdlib.h
177 macro.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
178 macro.o: readline.h keymaps.h chardefs.h tilde.h
179 macro.o: history.h rlstdc.h
180 nls.o: ansi_stdlib.h
181 nls.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
182 parens.o: rlconf.h
183 parens.o: ${BUILD_DIR}/config.h
184 parens.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
185 readline.o: readline.h keymaps.h chardefs.h tilde.h
186 readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
187 readline.o: history.h rlstdc.h
188 readline.o: posixstat.h ansi_stdlib.h posixjmp.h
189 rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
190 rltty.o: rltty.h
191 rltty.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
192 search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
193 search.o: readline.h keymaps.h chardefs.h tilde.h
194 search.o: ansi_stdlib.h history.h rlstdc.h
195 shell.o: ${BUILD_DIR}/config.h ansi_stdlib.h
196 signals.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
197 signals.o: readline.h keymaps.h chardefs.h tilde.h
198 signals.o: history.h rlstdc.h
199 terminal.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
200 terminal.o: tcap.h
201 terminal.o: readline.h keymaps.h chardefs.h tilde.h
202 terminal.o: history.h rlstdc.h
203 tilde.o: ansi_stdlib.h
204 tilde.o: ${BUILD_DIR}/config.h
205 tilde.o: tilde.h
206 undo.o: ansi_stdlib.h
207 undo.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
208 undo.o: readline.h keymaps.h chardefs.h tilde.h
209 undo.o: history.h rlstdc.h
210 util.o: posixjmp.h ansi_stdlib.h
211 util.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
212 util.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
213 vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
214 vi_mode.o: readline.h keymaps.h chardefs.h tilde.h
215 vi_mode.o: history.h ansi_stdlib.h rlstdc.h
216 xmalloc.o: ${BUILD_DIR}/config.h
217 xmalloc.o: ansi_stdlib.h
218
219 # Rules for deficient makes, like SunOS and Solaris
220 bind.o: bind.c
221 callback.o: callback.c
222 complete.o: complete.c
223 display.o: display.c
224 funmap.o: funmap.c
225 histexpand.o: histexpand.c
226 histfile.o: histfile.c
227 history.o: history.c
228 histsearch.o: histsearch.c
229 input.o: input.c
230 isearch.o: isearch.c
231 keymaps.o: keymaps.c emacs_keymap.c vi_keymap.c
232 kill.o: kill.c
233 macro.o: macro.c
234 nls.o: nls.c
235 parens.o: parens.c
236 readline.o: readline.c
237 rltty.o: rltty.c
238 savestring.o: savestring.c
239 search.o: search.c
240 shell.o: shell.c
241 signals.o: signals.c
242 terminal.o: terminal.c
243 tilde.o: tilde.c
244 undo.o: undo.c
245 util.o: util.c
246 vi_mode.o: vi_mode.c
247 xmalloc.o: xmalloc.c