1 ## -*- text -*- #############################################################
3 # Makefile for the Bash versions of the GNU Readline and History Libraries. #
5 #############################################################################
10 BUILD_DIR
= @BUILD_DIR@
13 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
14 INSTALL_DATA
= @INSTALL_DATA@
25 # Programs to make tags files.
30 LOCAL_CFLAGS
= @LOCAL_CFLAGS@
35 LOCAL_DEFS
= @LOCAL_DEFS@
37 INCLUDES
= -I.
-I
$(BUILD_DIR
) -I
$(topdir
) -I
$(topdir
)/lib
39 CCFLAGS
= $(DEFS
) $(LOCAL_DEFS
) $(APP_CFLAGS
) $(CPPFLAGS
) ${INCLUDES} $(LOCAL_CFLAGS
) $(CFLAGS
)
42 $(CC
) -c
$(CCFLAGS
) $<
44 # The name of the main library target.
45 LIBRARY_NAME
= libreadline.a
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
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 \
64 HISTOBJ
= history.o histexpand.o histfile.o histsearch.o
shell.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
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
)
77 SUPPORT
= Makefile ChangeLog
$(DOCSUPPORT
) examples
/[-a-z.
]*
79 SOURCES
= $(CSOURCES
) $(HSOURCES
) $(DOCSOURCE
)
81 THINGS_TO_TAR
= $(SOURCES
) $(SUPPORT
)
83 INSTALLED_HEADERS
= readline.h chardefs.h keymaps.h history.h tilde.h
85 ##########################################################################
87 all: libreadline.a libhistory.a
89 libreadline.a
: $(OBJECTS
)
91 $(AR
) cr
$@
$(OBJECTS
)
92 -test -n
"$(RANLIB)" && $(RANLIB
) $@
94 libhistory.a
: $(HISTOBJ
) xmalloc.o
96 $(AR
) cr
$@
$(HISTOBJ
) xmalloc.o
97 -test -n
"$(RANLIB)" && $(RANLIB
) $@
100 test -d doc || mkdir doc
101 -( cd doc
&& $(MAKE
) $(MFLAGS
) )
106 @echo
"This version of the readline library should not be installed."
109 @echo
"This version of the readline library should not be installed."
112 $(ETAGS
) $(CSOURCES
) $(HSOURCES
)
115 $(CTAGS
) $(CSOURCES
) $(HSOURCES
)
119 -( cd doc
&& $(MAKE
) $(MFLAGS
) $@
)
122 -( cd doc
&& $(MAKE
) $(MFLAGS
) $@
)
124 distclean maintainer-clean
: clean
125 -( cd doc
&& $(MAKE
) $(MFLAGS
) $@
)
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
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
143 display.o
: readline.h keymaps.h chardefs.h tilde.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
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
179 nls.o
: rldefs.h
${BUILD_DIR}/config.h 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
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
197 terminal.o
: rldefs.h
${BUILD_DIR}/config.h rlconf.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
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
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
217 # Rules for deficient makes, like SunOS and Solaris
219 callback.o
: callback.c
220 complete.o
: complete.c
223 histexpand.o
: histexpand.c
224 histfile.o
: histfile.c
226 histsearch.o
: histsearch.c
229 keymaps.o
: keymaps.c emacs_keymap.c vi_keymap.c
234 readline.o
: readline.c
239 terminal.o
: terminal.c