1 # Copyright (C) 1989-2016 Free Software Foundation, Inc.
3 # This file is part of GDB.
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 3 of the License, or
8 # (at your option) any later version.
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.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 exec_prefix = @
exec_prefix@
21 host_alias
= @host_alias@
22 target_alias
= @target_alias@
23 program_transform_name
= @program_transform_name@
26 tooldir
= $(libdir)/$(target_alias
)
29 localedir
= @localedir@
31 man1dir = $(mandir)/man1
32 man2dir = $(mandir)/man2
33 man3dir = $(mandir)/man3
34 man4dir = $(mandir)/man4
35 man5dir = $(mandir)/man5
36 man6dir = $(mandir)/man6
37 man7dir = $(mandir)/man7
38 man8dir = $(mandir)/man8
39 man9dir = $(mandir)/man9
41 datarootdir
= @datarootdir@
45 includedir = @
includedir@
51 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
52 INSTALL_DATA
= @INSTALL_DATA@
62 CLEANDIRS
= $(SUBDIRS
)
63 REQUIRED_SUBDIRS
= $(SUBDIRS
)
65 # If you are compiling with GCC, make sure that either 1) You have the
66 # fixed include files where GCC can reach them, or 2) You use the
67 # -traditional flag. Otherwise the ioctl calls in inflow.c
68 # will be incorrectly compiled. The "fixincludes" script in the gcc
69 # distribution will fix your include files up.
72 # Directory containing source files.
78 # CFLAGS is specifically reserved for setting from the command line
79 # when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
82 # LDFLAGS is specifically reserved for setting from the command line
88 "exec_prefix=$(exec_prefix)" \
89 "infodir=$(infodir)" \
90 "datarootdir=$(datarootdir)" \
92 "htmldir=$(htmldir)" \
96 "datadir=$(datadir)" \
97 "includedir=$(includedir)" \
98 "against=$(against)" \
99 "DESTDIR=$(DESTDIR)" \
101 "AR_FLAGS=$(AR_FLAGS)" \
105 "CXXFLAGS=$(CXXFLAGS)" \
106 "DLLTOOL=$(DLLTOOL)" \
107 "LDFLAGS=$(LDFLAGS)" \
109 "MAKEINFO=$(MAKEINFO)" \
110 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
111 "MAKEINFO_EXTRA_FLAGS=$(MAKEINFO_EXTRA_FLAGS)" \
112 "MAKEHTML=$(MAKEHTML)" \
113 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
114 "INSTALL=$(INSTALL)" \
115 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
116 "INSTALL_DATA=$(INSTALL_DATA)" \
117 "RUNTEST=$(RUNTEST)" \
118 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
120 all installcheck check info install-info clean-info
dvi pdf install-pdf html install-html
: force
121 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
123 # Traditionally "install" depends on "all". But it may be useful
124 # not to; for example, if the user has made some trivial change to a
125 # source file and doesn't care about rebuilding or just wants to save the
126 # time it takes for make to check that all is up to date.
127 # install-only is intended to address that need.
129 @
$(MAKE
) $(FLAGS_TO_PASS
) install-only
131 install-only
: $(CONFIG_INSTALL
)
132 @
$(MAKE
) DO
=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS
) subdir_do
134 uninstall: force $(CONFIG_UNINSTALL
)
135 @
$(MAKE
) DO
=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS
) subdir_do
137 # Convenience rule to handle recursion.
138 $(LIBGNU
) $(GNULIB_H
): all-lib
139 all-lib
: import
/Makefile
140 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=all DODIRS
=import subdir_do
143 clean mostlyclean: $(CONFIG_CLEAN
)
144 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=clean "DODIRS=$(CLEANDIRS)" subdir_do
147 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=distclean "DODIRS=$(CLEANDIRS)" subdir_do
148 rm -f config.status config.h stamp-h
149 rm -f config.log config.cache
153 maintainer-clean
: local-maintainer-clean do-maintainer-clean
distclean
154 realclean: maintainer-clean
156 local-maintainer-clean
:
157 @echo
"This command is intended for maintainers to use;"
158 @echo
"it deletes files that may require special tools to rebuild."
162 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=maintainer-clean
"DODIRS=$(CLEANDIRS)" \
166 @for i in
$(DODIRS
); do \
168 $(REQUIRED_SUBDIRS
)) \
169 if
[ ! -f .
/$$i/Makefile
] ; then \
170 echo
"Missing $$i/Makefile" >&2 ; \
174 if
[ -f .
/$$i/Makefile
] ; then \
176 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
181 Makefile
: Makefile.in config.status
182 # Regenerate the Makefile.
183 CONFIG_FILES
="Makefile" \
186 $(SHELL
) config.status
188 gnulib
/Makefile
: gnulib
/Makefile.in config.status
189 CONFIG_FILES
="gnulib/Makefile" \
190 CONFIG_COMMANDS
="depfiles" \
193 $(SHELL
) config.status
195 config.h
: stamp-h
; @true
196 stamp-h
: $(srcdir)/config.in config.status
197 CONFIG_HEADERS
=config.h
:config.in \
198 CONFIG_COMMANDS
="default depdir" \
201 $(SHELL
) config.status
203 config.status
: $(srcdir)/configure
204 $(SHELL
) config.status
--recheck
207 ACLOCAL_AMFLAGS
= -I import
/m4
-I ..
/..
/config
210 import
/m4
/00gnulib.m4 \
211 import
/m4
/alloca.m4 \
212 import
/m4
/codeset.m4 \
213 import
/m4
/configmake.m4 \
214 import
/m4
/extensions.m4 \
215 import
/m4
/fcntl-o.m4 \
216 import
/m4
/fnmatch.m4 \
217 import
/m4
/glibc21.m4 \
218 import
/m4
/gnulib-cache.m4 \
219 import
/m4
/gnulib-common.m4 \
220 import
/m4
/gnulib-comp.m4 \
221 import
/m4
/gnulib-tool.m4 \
222 import
/m4
/include_next.m4 \
223 import
/m4
/inttypes-pri.m4 \
224 import
/m4
/inttypes.m4 \
225 import
/m4
/localcharset.m4 \
226 import
/m4
/locale-fr.m4 \
227 import
/m4
/locale-ja.m4 \
228 import
/m4
/locale-zh.m4 \
229 import
/m4
/longlong.m4 \
230 import
/m4
/mbrtowc.m4 \
231 import
/m4
/mbsinit.m4 \
232 import
/m4
/mbsrtowcs.m4 \
233 import
/m4
/mbstate_t.m4 \
234 import
/m4
/memchr.m4 \
235 import
/m4
/memmem.m4 \
236 import
/m4
/mmap-anon.m4 \
237 import
/m4
/multiarch.m4 \
239 import
/m4
/pathmax.m4 \
240 import
/m4
/ssize_t.m4 \
241 import
/m4
/stdbool.m4 \
242 import
/m4
/stddef_h.m4 \
243 import
/m4
/stdint.m4 \
244 import
/m4
/string_h.m4 \
245 import
/m4
/strtok_r.m4 \
246 import
/m4
/sys_types_h.m4 \
247 import
/m4
/unistd_h.m4 \
248 import
/m4
/warn-on-use.m4 \
249 import
/m4
/wchar_h.m4 \
250 import
/m4
/wchar_t.m4 \
251 import
/m4
/wctype_h.m4 \
254 $(srcdir)/aclocal.m4
: @MAINTAINER_MODE_TRUE@
$(aclocal_m4_deps
)
255 cd
$(srcdir) && $(ACLOCAL
) $(ACLOCAL_AMFLAGS
)
258 configure_deps
= $(srcdir)/configure.ac
$(srcdir)/aclocal.m4
259 $(srcdir)/configure
: @MAINTAINER_MODE_TRUE@
$(configure_deps
)
260 cd
$(srcdir) && $(AUTOCONF
)
262 AUTOHEADER
= autoheader
263 $(srcdir)/config.in
: @MAINTAINER_MODE_TRUE@
$(configure_deps
)
264 cd
$(srcdir) && $(AUTOHEADER
)
268 # automatic rebuilding in automake-generated Makefiles requires
269 # this rule in the toplevel Makefile, which, with GNU make, causes
270 # the desired updates through the implicit regeneration of the Makefile
271 # and all of its prerequisites.
279 # GNU Make has an annoying habit of putting *all* the Makefile variables
280 # into the environment, unless you include this target as a circumvention.
281 # Rumor is that this will be fixed (and this target can be removed)
285 # GNU Make 3.63 has a different problem: it keeps tacking command line
286 # overrides onto the definition of $(MAKE). This variable setting
290 ### end of the libgnu Makefile.in.