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