1 # Copyright (C) 1989-2019 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
)
67 # Directory containing source files.
73 # CFLAGS is specifically reserved for setting from the command line
74 # when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
77 # LDFLAGS is specifically reserved for setting from the command line
83 "exec_prefix=$(exec_prefix)" \
84 "infodir=$(infodir)" \
85 "datarootdir=$(datarootdir)" \
87 "htmldir=$(htmldir)" \
91 "datadir=$(datadir)" \
92 "includedir=$(includedir)" \
93 "against=$(against)" \
94 "DESTDIR=$(DESTDIR)" \
96 "AR_FLAGS=$(AR_FLAGS)" \
100 "CXXFLAGS=$(CXXFLAGS)" \
101 "DLLTOOL=$(DLLTOOL)" \
102 "LDFLAGS=$(LDFLAGS)" \
104 "MAKEINFO=$(MAKEINFO)" \
105 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
106 "MAKEINFO_EXTRA_FLAGS=$(MAKEINFO_EXTRA_FLAGS)" \
107 "MAKEHTML=$(MAKEHTML)" \
108 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
109 "INSTALL=$(INSTALL)" \
110 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
111 "INSTALL_DATA=$(INSTALL_DATA)" \
112 "RUNTEST=$(RUNTEST)" \
113 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
115 all installcheck check info install-info clean-info
dvi pdf install-pdf html install-html
: force
116 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
118 # Traditionally "install" depends on "all". But it may be useful
119 # not to; for example, if the user has made some trivial change to a
120 # source file and doesn't care about rebuilding or just wants to save the
121 # time it takes for make to check that all is up to date.
122 # install-only is intended to address that need.
124 @
$(MAKE
) $(FLAGS_TO_PASS
) install-only
126 install-only
: $(CONFIG_INSTALL
)
127 @
$(MAKE
) DO
=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS
) subdir_do
129 uninstall: force $(CONFIG_UNINSTALL
)
130 @
$(MAKE
) DO
=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS
) subdir_do
132 # Convenience rule to handle recursion.
133 $(LIBGNU
) $(GNULIB_H
): all-lib
134 all-lib
: import
/Makefile
135 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=all DODIRS
=import subdir_do
138 clean mostlyclean: $(CONFIG_CLEAN
)
139 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=clean "DODIRS=$(CLEANDIRS)" subdir_do
142 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=distclean "DODIRS=$(CLEANDIRS)" subdir_do
143 rm -f config.status config.h stamp-h
144 rm -f config.log config.cache
148 maintainer-clean
: local-maintainer-clean do-maintainer-clean
distclean
149 realclean: maintainer-clean
151 local-maintainer-clean
:
152 @echo
"This command is intended for maintainers to use;"
153 @echo
"it deletes files that may require special tools to rebuild."
157 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=maintainer-clean
"DODIRS=$(CLEANDIRS)" \
161 @for i in
$(DODIRS
); do \
163 $(REQUIRED_SUBDIRS
)) \
164 if
[ ! -f .
/$$i/Makefile
] ; then \
165 echo
"Missing $$i/Makefile" >&2 ; \
169 if
[ -f .
/$$i/Makefile
] ; then \
171 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
176 Makefile
: Makefile.in config.status
177 # Regenerate the Makefile.
178 CONFIG_FILES
="Makefile" \
181 $(SHELL
) config.status
183 gnulib
/Makefile
: gnulib
/Makefile.in config.status
184 CONFIG_FILES
="gnulib/Makefile" \
185 CONFIG_COMMANDS
="depfiles" \
188 $(SHELL
) config.status
190 config.h
: stamp-h
; @true
191 stamp-h
: $(srcdir)/config.in config.status
192 CONFIG_HEADERS
=config.h
:config.in \
193 CONFIG_COMMANDS
="default depdir" \
196 $(SHELL
) config.status
198 config.status
: $(srcdir)/configure
199 $(SHELL
) config.status
--recheck
202 ACLOCAL_AMFLAGS
= -I import
/m4
-I ..
/..
/config
204 include $(srcdir)/aclocal-m4-deps.mk
206 $(srcdir)/aclocal.m4
: @MAINTAINER_MODE_TRUE@ configure.ac
$(aclocal_m4_deps
)
207 cd
$(srcdir) && $(ACLOCAL
) $(ACLOCAL_AMFLAGS
)
210 configure_deps
= $(srcdir)/configure.ac
$(srcdir)/aclocal.m4
211 $(srcdir)/configure
: @MAINTAINER_MODE_TRUE@
$(configure_deps
)
212 cd
$(srcdir) && $(AUTOCONF
)
214 AUTOHEADER
= autoheader
215 $(srcdir)/config.in
: @MAINTAINER_MODE_TRUE@
$(configure_deps
)
216 cd
$(srcdir) && $(AUTOHEADER
)
220 # automatic rebuilding in automake-generated Makefiles requires
221 # this rule in the toplevel Makefile, which, with GNU make, causes
222 # the desired updates through the implicit regeneration of the Makefile
223 # and all of its prerequisites.
231 # GNU Make has an annoying habit of putting *all* the Makefile variables
232 # into the environment, unless you include this target as a circumvention.
233 # Rumor is that this will be fixed (and this target can be removed)
237 # GNU Make 3.63 has a different problem: it keeps tacking command line
238 # overrides onto the definition of $(MAKE). This variable setting
242 # Disable implicit make rules.
243 include $(srcdir)/..
/disable-implicit-rules.mk
245 ### end of the libgnu Makefile.in.