1 # Copyright (C) 1989-2018 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
/flexmember.m4 \
211 import
/m4
/eealloc.m4 \
214 import
/m4
/unistd-safer.m4 \
215 import
/m4
/inttypes-pri.m4 \
216 import
/m4
/chdir-long.m4 \
217 import
/m4
/gnulib-common.m4 \
218 import
/m4
/readdir.m4 \
219 import
/m4
/stdlib_h.m4 \
220 import
/m4
/getlogin_r.m4 \
221 import
/m4
/warn-on-use.m4 \
222 import
/m4
/getdtablesize.m4 \
223 import
/m4
/rewinddir.m4 \
224 import
/m4
/string_h.m4 \
225 import
/m4
/closedir.m4 \
226 import
/m4
/canonicalize.m4 \
227 import
/m4
/stdio_h.m4 \
228 import
/m4
/fdopendir.m4 \
229 import
/m4
/getcwd-abort-bug.m4 \
230 import
/m4
/alloca.m4 \
231 import
/m4
/strstr.m4 \
232 import
/m4
/stat-time.m4 \
233 import
/m4
/builtin-expect.m4 \
234 import
/m4
/rawmemchr.m4 \
235 import
/m4
/msvc-nothrow.m4 \
236 import
/m4
/absolute-header.m4 \
237 import
/m4
/isnanl.m4 \
238 import
/m4
/stddef_h.m4 \
239 import
/m4
/gnulib-tool.m4 \
240 import
/m4
/realloc.m4 \
241 import
/m4
/d-type.m4 \
243 import
/m4
/getcwd-path-max.m4 \
245 import
/m4
/strtok_r.m4 \
246 import
/m4
/exponentd.m4 \
247 import
/m4
/std-gnu11.m4 \
248 import
/m4
/locale-ja.m4 \
249 import
/m4
/gettimeofday.m4 \
250 import
/m4
/time_h.m4 \
251 import
/m4
/malloc.m4 \
252 import
/m4
/fnmatch_h.m4 \
253 import
/m4
/codeset.m4 \
254 import
/m4
/getcwd.m4 \
255 import
/m4
/readlink.m4 \
256 import
/m4
/locale-zh.m4 \
257 import
/m4
/stdint.m4 \
258 import
/m4
/memrchr.m4 \
259 import
/m4
/onceonly.m4 \
260 import
/m4
/pathmax.m4 \
261 import
/m4
/rename.m4 \
264 import
/m4
/errno_h.m4 \
265 import
/m4
/mbrtowc.m4 \
266 import
/m4
/environ.m4 \
267 import
/m4
/wchar_h.m4 \
268 import
/m4
/strchrnul.m4 \
269 import
/m4
/fcntl_h.m4 \
270 import
/m4
/getpagesize.m4 \
271 import
/m4
/largefile.m4 \
272 import
/m4
/openat.m4 \
273 import
/m4
/save-cwd.m4 \
275 import
/m4
/include_next.m4 \
276 import
/m4
/mmap-anon.m4 \
277 import
/m4
/mode_t.m4 \
278 import
/m4
/exponentl.m4 \
279 import
/m4
/sys_types_h.m4 \
280 import
/m4
/fcntl-o.m4 \
281 import
/m4
/stdbool.m4 \
282 import
/m4
/float_h.m4 \
283 import
/m4
/msvc-inval.m4 \
284 import
/m4
/wctype_h.m4 \
285 import
/m4
/gnulib-cache.m4 \
286 import
/m4
/mbsrtowcs.m4 \
287 import
/m4
/limits-h.m4 \
288 import
/m4
/locale-fr.m4 \
289 import
/m4
/fstatat.m4 \
290 import
/m4
/inttypes.m4 \
291 import
/m4
/memchr.m4 \
294 import
/m4
/sys_stat_h.m4 \
296 import
/m4
/strdup.m4 \
297 import
/m4
/ssize_t.m4 \
298 import
/m4
/math_h.m4 \
299 import
/m4
/unistd_h.m4 \
300 import
/m4
/fpieee.m4 \
301 import
/m4
/mempcpy.m4 \
302 import
/m4
/wint_t.m4 \
304 import
/m4
/setenv.m4 \
305 import
/m4
/open-cloexec.m4 \
306 import
/m4
/longlong.m4 \
307 import
/m4
/multiarch.m4 \
308 import
/m4
/filenamecat.m4 \
309 import
/m4
/gnulib-comp.m4 \
310 import
/m4
/mkstemp.m4 \
312 import
/m4
/getlogin.m4 \
313 import
/m4
/signal_h.m4 \
314 import
/m4
/sys_socket_h.m4 \
315 import
/m4
/dirname.m4 \
316 import
/m4
/00gnulib.m4 \
317 import
/m4
/dirent_h.m4 \
318 import
/m4
/opendir.m4 \
320 import
/m4
/extensions.m4 \
321 import
/m4
/fchdir.m4 \
322 import
/m4
/mbsinit.m4 \
323 import
/m4
/__inline.m4 \
324 import
/m4
/extern-inline.m4 \
325 import
/m4
/fnmatch.m4 \
327 import
/m4
/nocrash.m4 \
328 import
/m4
/sys_time_h.m4 \
329 import
/m4
/localcharset.m4 \
331 import
/m4
/localtime-buffer.m4 \
332 import
/m4
/getprogname.m4 \
333 import
/m4
/wchar_t.m4 \
334 import
/m4
/isnand.m4 \
335 import
/m4
/double-slash-root.m4 \
336 import
/m4
/malloca.m4 \
338 import
/m4
/frexpl.m4 \
339 import
/m4
/strerror.m4 \
340 import
/m4
/glob_h.m4 \
341 import
/m4
/tempname.m4 \
342 import
/m4
/memmem.m4 \
343 import
/m4
/mbstate_t.m4
345 $(srcdir)/aclocal.m4
: @MAINTAINER_MODE_TRUE@
$(aclocal_m4_deps
)
346 cd
$(srcdir) && $(ACLOCAL
) $(ACLOCAL_AMFLAGS
)
349 configure_deps
= $(srcdir)/configure.ac
$(srcdir)/aclocal.m4
350 $(srcdir)/configure
: @MAINTAINER_MODE_TRUE@
$(configure_deps
)
351 cd
$(srcdir) && $(AUTOCONF
)
353 AUTOHEADER
= autoheader
354 $(srcdir)/config.in
: @MAINTAINER_MODE_TRUE@
$(configure_deps
)
355 cd
$(srcdir) && $(AUTOHEADER
)
359 # automatic rebuilding in automake-generated Makefiles requires
360 # this rule in the toplevel Makefile, which, with GNU make, causes
361 # the desired updates through the implicit regeneration of the Makefile
362 # and all of its prerequisites.
370 # GNU Make has an annoying habit of putting *all* the Makefile variables
371 # into the environment, unless you include this target as a circumvention.
372 # Rumor is that this will be fixed (and this target can be removed)
376 # GNU Make 3.63 has a different problem: it keeps tacking command line
377 # overrides onto the definition of $(MAKE). This variable setting
381 # Disable implicit make rules.
382 include $(srcdir)/..
/disable-implicit-rules.mk
384 ### end of the libgnu Makefile.in.