| 1 | # Copyright (C) 1989-2020 Free Software Foundation, Inc. |
| 2 | |
| 3 | # This file is part of GDB. |
| 4 | |
| 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. |
| 9 | # |
| 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. |
| 14 | # |
| 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/>. |
| 17 | |
| 18 | # Please keep lists in this file sorted alphabetically, with one item per line. |
| 19 | # Here are the general guidelines for ordering files and directories: |
| 20 | # |
| 21 | # - Files come before directories. |
| 22 | # - The extensions are not taken into account when comparing filenames, except |
| 23 | # if the filenames are otherwise equal. |
| 24 | # - A filename that is a prefix of another one comes before. |
| 25 | # - Underscores and dashes are treated equally, and come before alphanumeric |
| 26 | # characters. |
| 27 | # |
| 28 | # For example: |
| 29 | # |
| 30 | # SOME_FILES = \ |
| 31 | # foo.c \ |
| 32 | # foo.h \ |
| 33 | # foo-bar.c \ |
| 34 | # foobar.c \ |
| 35 | # foo/bar.c |
| 36 | |
| 37 | prefix = @prefix@ |
| 38 | exec_prefix = @exec_prefix@ |
| 39 | |
| 40 | host_alias = @host_alias@ |
| 41 | target_alias = @target_alias@ |
| 42 | program_transform_name = @program_transform_name@ |
| 43 | bindir = @bindir@ |
| 44 | libdir = @libdir@ |
| 45 | tooldir = $(libdir)/$(target_alias) |
| 46 | |
| 47 | datadir = @datadir@ |
| 48 | localedir = @localedir@ |
| 49 | mandir = @mandir@ |
| 50 | man1dir = $(mandir)/man1 |
| 51 | man2dir = $(mandir)/man2 |
| 52 | man3dir = $(mandir)/man3 |
| 53 | man4dir = $(mandir)/man4 |
| 54 | man5dir = $(mandir)/man5 |
| 55 | man6dir = $(mandir)/man6 |
| 56 | man7dir = $(mandir)/man7 |
| 57 | man8dir = $(mandir)/man8 |
| 58 | man9dir = $(mandir)/man9 |
| 59 | infodir = @infodir@ |
| 60 | datarootdir = @datarootdir@ |
| 61 | docdir = @docdir@ |
| 62 | htmldir = @htmldir@ |
| 63 | pdfdir = @pdfdir@ |
| 64 | includedir = @includedir@ |
| 65 | |
| 66 | install_sh = @install_sh@ |
| 67 | |
| 68 | # This can be referenced by `LIBINTL' as computed by |
| 69 | # ZW_GNU_GETTEXT_SISTER_DIR. |
| 70 | top_builddir = . |
| 71 | |
| 72 | SHELL = @SHELL@ |
| 73 | EXEEXT = @EXEEXT@ |
| 74 | |
| 75 | AWK = @AWK@ |
| 76 | LN_S = @LN_S@ |
| 77 | |
| 78 | INSTALL = @INSTALL@ |
| 79 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 80 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
| 81 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
| 82 | INSTALL_DATA = @INSTALL_DATA@ |
| 83 | |
| 84 | DESTDIR = |
| 85 | |
| 86 | AR = @AR@ |
| 87 | AR_FLAGS = qv |
| 88 | RANLIB = @RANLIB@ |
| 89 | DLLTOOL = @DLLTOOL@ |
| 90 | WINDRES = @WINDRES@ |
| 91 | MIG = @MIG@ |
| 92 | STRIP = @STRIP@ |
| 93 | |
| 94 | XGETTEXT = @XGETTEXT@ |
| 95 | GMSGFMT = @GMSGFMT@ |
| 96 | MSGMERGE = msgmerge |
| 97 | |
| 98 | PACKAGE = @PACKAGE@ |
| 99 | CATALOGS = @CATALOGS@ |
| 100 | |
| 101 | CC = @CC@ |
| 102 | CXX = @CXX@ |
| 103 | CXX_DIALECT = @CXX_DIALECT@ |
| 104 | |
| 105 | # Dependency tracking information. |
| 106 | DEPMODE = @CCDEPMODE@ |
| 107 | DEPDIR = @DEPDIR@ |
| 108 | depcomp = $(SHELL) $(srcdir)/../depcomp |
| 109 | |
| 110 | # Directory containing source files. |
| 111 | srcdir = @srcdir@ |
| 112 | VPATH = @srcdir@ |
| 113 | top_srcdir = @top_srcdir@ |
| 114 | |
| 115 | include $(srcdir)/silent-rules.mk |
| 116 | |
| 117 | # Note that these are overridden by GNU make-specific code below if |
| 118 | # GNU make is used. The overrides implement dependency tracking. |
| 119 | COMPILE.pre = $(CXX) -x c++ $(CXX_DIALECT) |
| 120 | COMPILE.post = -c -o $@ |
| 121 | COMPILE = $(ECHO_CXX) $(COMPILE.pre) $(INTERNAL_CFLAGS) $(COMPILE.post) |
| 122 | POSTCOMPILE = @true |
| 123 | |
| 124 | YACC = @YACC@ |
| 125 | |
| 126 | # This is used to rebuild ada-lex.c from ada-lex.l. If the program is |
| 127 | # not defined, but ada-lex.c is present, compilation will continue, |
| 128 | # possibly with a warning. |
| 129 | FLEX = flex |
| 130 | |
| 131 | YLWRAP = $(srcdir)/../ylwrap |
| 132 | |
| 133 | # where to find makeinfo, preferably one designed for texinfo-2 |
| 134 | MAKEINFO = @MAKEINFO@ |
| 135 | MAKEINFOFLAGS = @MAKEINFOFLAGS@ |
| 136 | MAKEINFO_EXTRA_FLAGS = @MAKEINFO_EXTRA_FLAGS@ |
| 137 | MAKEINFO_CMD = $(MAKEINFO) $(MAKEINFOFLAGS) $(MAKEINFO_EXTRA_FLAGS) |
| 138 | |
| 139 | MAKEHTML = $(MAKEINFO_CMD) --html |
| 140 | MAKEHTMLFLAGS = |
| 141 | |
| 142 | # Set this up with gcc if you have gnu ld and the loader will print out |
| 143 | # line numbers for undefined references. |
| 144 | #CC_LD = g++ -static |
| 145 | CC_LD = $(CXX) $(CXX_DIALECT) |
| 146 | |
| 147 | # Where is our "include" directory? Typically $(srcdir)/../include. |
| 148 | # This is essentially the header file directory for the library |
| 149 | # routines in libiberty. |
| 150 | INCLUDE_DIR = $(srcdir)/../include |
| 151 | INCLUDE_CFLAGS = -I$(INCLUDE_DIR) |
| 152 | |
| 153 | # Where is the "-liberty" library? Typically in ../libiberty. |
| 154 | LIBIBERTY = ../libiberty/libiberty.a |
| 155 | |
| 156 | # Where is the CTF library? Typically in ../libctf. |
| 157 | LIBCTF = @LIBCTF@ |
| 158 | CTF_DEPS = @CTF_DEPS@ |
| 159 | |
| 160 | # Where is the BFD library? Typically in ../bfd. |
| 161 | BFD_DIR = ../bfd |
| 162 | BFD = $(BFD_DIR)/libbfd.a |
| 163 | BFD_SRC = $(srcdir)/$(BFD_DIR) |
| 164 | BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC) |
| 165 | |
| 166 | # This is where we get zlib from. zlibdir is -L../zlib and zlibinc is |
| 167 | # -I../zlib, unless we were configured with --with-system-zlib, in which |
| 168 | # case both are empty. |
| 169 | ZLIB = @zlibdir@ -lz |
| 170 | ZLIBINC = @zlibinc@ |
| 171 | |
| 172 | # Where is the decnumber library? Typically in ../libdecnumber. |
| 173 | LIBDECNUMBER_DIR = ../libdecnumber |
| 174 | LIBDECNUMBER = $(LIBDECNUMBER_DIR)/libdecnumber.a |
| 175 | LIBDECNUMBER_SRC = $(srcdir)/$(LIBDECNUMBER_DIR) |
| 176 | LIBDECNUMBER_CFLAGS = -I$(LIBDECNUMBER_DIR) -I$(LIBDECNUMBER_SRC) |
| 177 | |
| 178 | # Where is the READLINE library? Typically in ../readline/readline. |
| 179 | READLINE_DIR = ../readline/readline |
| 180 | READLINE_SRC = $(srcdir)/$(READLINE_DIR) |
| 181 | READLINE = @READLINE@ |
| 182 | READLINE_DEPS = @READLINE_DEPS@ |
| 183 | READLINE_CFLAGS = @READLINE_CFLAGS@ |
| 184 | |
| 185 | # Where is expat? This will be empty if expat was not available. |
| 186 | LIBEXPAT = @LIBEXPAT@ |
| 187 | |
| 188 | # Where is lzma? This will be empty if lzma was not available. |
| 189 | LIBLZMA = @LIBLZMA@ |
| 190 | |
| 191 | # Where is libbabeltrace? This will be empty if libbabeltrace was not |
| 192 | # available. |
| 193 | LIBBABELTRACE = @LIBBABELTRACE@ |
| 194 | |
| 195 | # Where is libxxhash? This will be empty if libxxhash was not |
| 196 | # available. |
| 197 | LIBXXHASH = @LIBXXHASH@ |
| 198 | |
| 199 | # Where is libipt? This will be empty if libipt was not available. |
| 200 | LIBIPT = @LIBIPT@ |
| 201 | |
| 202 | # Where is libmpfr? This will be empty if libmpfr was not available. |
| 203 | LIBMPFR = @LIBMPFR@ |
| 204 | |
| 205 | # GNU source highlight library. |
| 206 | SRCHIGH_LIBS = @SRCHIGH_LIBS@ |
| 207 | SRCHIGH_CFLAGS = @SRCHIGH_CFLAGS@ |
| 208 | |
| 209 | WARN_CFLAGS = @WARN_CFLAGS@ |
| 210 | WERROR_CFLAGS = @WERROR_CFLAGS@ |
| 211 | GDB_WARN_CFLAGS = $(WARN_CFLAGS) |
| 212 | GDB_WERROR_CFLAGS = $(WERROR_CFLAGS) |
| 213 | |
| 214 | PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ |
| 215 | PTHREAD_LIBS = @PTHREAD_LIBS@ |
| 216 | |
| 217 | RDYNAMIC = @RDYNAMIC@ |
| 218 | |
| 219 | # Where is the INTL library? Typically in ../intl. |
| 220 | INTL = @LIBINTL@ |
| 221 | INTL_DEPS = @LIBINTL_DEP@ |
| 222 | INTL_CFLAGS = @INCINTL@ |
| 223 | |
| 224 | # Where is the ICONV library? This will be empty if in libc or not available. |
| 225 | LIBICONV = @LIBICONV@ |
| 226 | |
| 227 | # Did the user give us a --with-gdb-datadir option? |
| 228 | GDB_DATADIR = @GDB_DATADIR@ |
| 229 | |
| 230 | # Code signing. |
| 231 | CODESIGN = codesign |
| 232 | CODESIGN_CERT = @CODESIGN_CERT@ |
| 233 | |
| 234 | # Flags to pass to gdb when invoked with "make run". |
| 235 | GDBFLAGS = |
| 236 | |
| 237 | # Helper code from gnulib. |
| 238 | GNULIB_BUILDDIR = ../gnulib |
| 239 | LIBGNU = $(GNULIB_BUILDDIR)/import/libgnu.a |
| 240 | INCGNU = -I$(srcdir)/../gnulib/import -I$(GNULIB_BUILDDIR)/import |
| 241 | |
| 242 | SUPPORT = ../gdbsupport |
| 243 | LIBSUPPORT = $(SUPPORT)/libgdbsupport.a |
| 244 | INCSUPPORT = -I$(srcdir)/.. -I.. |
| 245 | |
| 246 | # |
| 247 | # CLI sub directory definitons |
| 248 | # |
| 249 | SUBDIR_CLI_SRCS = \ |
| 250 | cli/cli-cmds.c \ |
| 251 | cli/cli-decode.c \ |
| 252 | cli/cli-dump.c \ |
| 253 | cli/cli-interp.c \ |
| 254 | cli/cli-logging.c \ |
| 255 | cli/cli-option.c \ |
| 256 | cli/cli-script.c \ |
| 257 | cli/cli-setshow.c \ |
| 258 | cli/cli-style.c \ |
| 259 | cli/cli-utils.c |
| 260 | |
| 261 | SUBDIR_CLI_OBS = $(patsubst %.c,%.o,$(SUBDIR_CLI_SRCS)) |
| 262 | |
| 263 | # |
| 264 | # MI sub directory definitons |
| 265 | # |
| 266 | SUBDIR_MI_SRCS = \ |
| 267 | mi/mi-cmd-break.c \ |
| 268 | mi/mi-cmd-catch.c \ |
| 269 | mi/mi-cmd-disas.c \ |
| 270 | mi/mi-cmd-env.c \ |
| 271 | mi/mi-cmd-file.c \ |
| 272 | mi/mi-cmd-info.c \ |
| 273 | mi/mi-cmd-stack.c \ |
| 274 | mi/mi-cmd-target.c \ |
| 275 | mi/mi-cmd-var.c \ |
| 276 | mi/mi-cmds.c \ |
| 277 | mi/mi-console.c \ |
| 278 | mi/mi-getopt.c \ |
| 279 | mi/mi-interp.c \ |
| 280 | mi/mi-main.c \ |
| 281 | mi/mi-out.c \ |
| 282 | mi/mi-parse.c \ |
| 283 | mi/mi-symbol-cmds.c |
| 284 | |
| 285 | SUBDIR_MI_OBS = $(patsubst %.c,%.o,$(SUBDIR_MI_SRCS)) |
| 286 | |
| 287 | SUBDIR_MI_DEPS = |
| 288 | SUBDIR_MI_LDFLAGS = |
| 289 | SUBDIR_MI_CFLAGS = |
| 290 | |
| 291 | # |
| 292 | # TUI sub directory definitions |
| 293 | # |
| 294 | SUBDIR_TUI_SRCS = \ |
| 295 | tui/tui.c \ |
| 296 | tui/tui-command.c \ |
| 297 | tui/tui-data.c \ |
| 298 | tui/tui-disasm.c \ |
| 299 | tui/tui-file.c \ |
| 300 | tui/tui-hooks.c \ |
| 301 | tui/tui-interp.c \ |
| 302 | tui/tui-io.c \ |
| 303 | tui/tui-layout.c \ |
| 304 | tui/tui-out.c \ |
| 305 | tui/tui-regs.c \ |
| 306 | tui/tui-source.c \ |
| 307 | tui/tui-stack.c \ |
| 308 | tui/tui-win.c \ |
| 309 | tui/tui-wingeneral.c \ |
| 310 | tui/tui-winsource.c |
| 311 | |
| 312 | SUBDIR_TUI_OBS = $(patsubst %.c,%.o,$(SUBDIR_TUI_SRCS)) |
| 313 | |
| 314 | SUBDIR_TUI_DEPS = |
| 315 | SUBDIR_TUI_LDFLAGS = |
| 316 | SUBDIR_TUI_CFLAGS = -DTUI=1 |
| 317 | |
| 318 | # |
| 319 | # GCC Compile support sub-directory definitions |
| 320 | # |
| 321 | SUBDIR_GCC_COMPILE_SRCS = \ |
| 322 | compile/compile.c \ |
| 323 | compile/compile-c-support.c \ |
| 324 | compile/compile-c-symbols.c \ |
| 325 | compile/compile-c-types.c \ |
| 326 | compile/compile-cplus-symbols.c \ |
| 327 | compile/compile-cplus-types.c \ |
| 328 | compile/compile-loc2c.c \ |
| 329 | compile/compile-object-load.c \ |
| 330 | compile/compile-object-run.c |
| 331 | |
| 332 | SUBDIR_GCC_COMPILE_OBS = $(patsubst %.c,%.o,$(filter %.c,$(SUBDIR_GCC_COMPILE_SRCS))) |
| 333 | |
| 334 | # |
| 335 | # Guile sub directory definitons for guile support. |
| 336 | # |
| 337 | SUBDIR_GUILE_SRCS = \ |
| 338 | guile/guile.c \ |
| 339 | guile/scm-arch.c \ |
| 340 | guile/scm-auto-load.c \ |
| 341 | guile/scm-block.c \ |
| 342 | guile/scm-breakpoint.c \ |
| 343 | guile/scm-cmd.c \ |
| 344 | guile/scm-disasm.c \ |
| 345 | guile/scm-exception.c \ |
| 346 | guile/scm-frame.c \ |
| 347 | guile/scm-gsmob.c \ |
| 348 | guile/scm-iterator.c \ |
| 349 | guile/scm-lazy-string.c \ |
| 350 | guile/scm-math.c \ |
| 351 | guile/scm-objfile.c \ |
| 352 | guile/scm-param.c \ |
| 353 | guile/scm-ports.c \ |
| 354 | guile/scm-pretty-print.c \ |
| 355 | guile/scm-progspace.c \ |
| 356 | guile/scm-safe-call.c \ |
| 357 | guile/scm-string.c \ |
| 358 | guile/scm-symbol.c \ |
| 359 | guile/scm-symtab.c \ |
| 360 | guile/scm-type.c \ |
| 361 | guile/scm-utils.c \ |
| 362 | guile/scm-value.c |
| 363 | |
| 364 | SUBDIR_GUILE_OBS = $(patsubst %.c,%.o,$(SUBDIR_GUILE_SRCS)) |
| 365 | |
| 366 | SUBDIR_GUILE_DEPS = |
| 367 | SUBDIR_GUILE_LDFLAGS = |
| 368 | SUBDIR_GUILE_CFLAGS = |
| 369 | |
| 370 | # |
| 371 | # python sub directory definitons |
| 372 | # |
| 373 | SUBDIR_PYTHON_SRCS = \ |
| 374 | python/py-arch.c \ |
| 375 | python/py-auto-load.c \ |
| 376 | python/py-block.c \ |
| 377 | python/py-bpevent.c \ |
| 378 | python/py-breakpoint.c \ |
| 379 | python/py-cmd.c \ |
| 380 | python/py-continueevent.c \ |
| 381 | python/py-event.c \ |
| 382 | python/py-evtregistry.c \ |
| 383 | python/py-evts.c \ |
| 384 | python/py-exitedevent.c \ |
| 385 | python/py-finishbreakpoint.c \ |
| 386 | python/py-frame.c \ |
| 387 | python/py-framefilter.c \ |
| 388 | python/py-function.c \ |
| 389 | python/py-gdb-readline.c \ |
| 390 | python/py-inferior.c \ |
| 391 | python/py-infevents.c \ |
| 392 | python/py-infthread.c \ |
| 393 | python/py-instruction.c \ |
| 394 | python/py-lazy-string.c \ |
| 395 | python/py-linetable.c \ |
| 396 | python/py-newobjfileevent.c \ |
| 397 | python/py-objfile.c \ |
| 398 | python/py-param.c \ |
| 399 | python/py-prettyprint.c \ |
| 400 | python/py-progspace.c \ |
| 401 | python/py-record.c \ |
| 402 | python/py-record-btrace.c \ |
| 403 | python/py-record-full.c \ |
| 404 | python/py-registers.c \ |
| 405 | python/py-signalevent.c \ |
| 406 | python/py-stopevent.c \ |
| 407 | python/py-symbol.c \ |
| 408 | python/py-symtab.c \ |
| 409 | python/py-threadevent.c \ |
| 410 | python/py-tui.c \ |
| 411 | python/py-type.c \ |
| 412 | python/py-unwind.c \ |
| 413 | python/py-utils.c \ |
| 414 | python/py-value.c \ |
| 415 | python/py-varobj.c \ |
| 416 | python/py-xmethods.c \ |
| 417 | python/python.c |
| 418 | |
| 419 | SUBDIR_PYTHON_OBS = $(patsubst %.c,%.o,$(SUBDIR_PYTHON_SRCS)) |
| 420 | |
| 421 | SUBDIR_PYTHON_DEPS = |
| 422 | SUBDIR_PYTHON_LDFLAGS = |
| 423 | SUBDIR_PYTHON_CFLAGS = |
| 424 | |
| 425 | SELFTESTS_SRCS = \ |
| 426 | disasm-selftests.c \ |
| 427 | gdbarch-selftests.c \ |
| 428 | selftest-arch.c \ |
| 429 | unittests/array-view-selftests.c \ |
| 430 | unittests/child-path-selftests.c \ |
| 431 | unittests/cli-utils-selftests.c \ |
| 432 | unittests/command-def-selftests.c \ |
| 433 | unittests/common-utils-selftests.c \ |
| 434 | unittests/copy_bitwise-selftests.c \ |
| 435 | unittests/environ-selftests.c \ |
| 436 | unittests/filtered_iterator-selftests.c \ |
| 437 | unittests/format_pieces-selftests.c \ |
| 438 | unittests/function-view-selftests.c \ |
| 439 | unittests/lookup_name_info-selftests.c \ |
| 440 | unittests/memory-map-selftests.c \ |
| 441 | unittests/memrange-selftests.c \ |
| 442 | unittests/offset-type-selftests.c \ |
| 443 | unittests/observable-selftests.c \ |
| 444 | unittests/optional-selftests.c \ |
| 445 | unittests/parse-connection-spec-selftests.c \ |
| 446 | unittests/ptid-selftests.c \ |
| 447 | unittests/main-thread-selftests.c \ |
| 448 | unittests/mkdir-recursive-selftests.c \ |
| 449 | unittests/rsp-low-selftests.c \ |
| 450 | unittests/scoped_fd-selftests.c \ |
| 451 | unittests/scoped_mmap-selftests.c \ |
| 452 | unittests/scoped_restore-selftests.c \ |
| 453 | unittests/string_view-selftests.c \ |
| 454 | unittests/style-selftests.c \ |
| 455 | unittests/tracepoint-selftests.c \ |
| 456 | unittests/tui-selftests.c \ |
| 457 | unittests/unpack-selftests.c \ |
| 458 | unittests/utils-selftests.c \ |
| 459 | unittests/vec-utils-selftests.c \ |
| 460 | unittests/xml-utils-selftests.c |
| 461 | |
| 462 | SELFTESTS_OBS = $(patsubst %.c,%.o,$(SELFTESTS_SRCS)) |
| 463 | |
| 464 | SUBDIR_TARGET_SRCS = target/waitstatus.c |
| 465 | SUBDIR_TARGET_OBS = $(patsubst %.c,%.o,$(SUBDIR_TARGET_SRCS)) |
| 466 | |
| 467 | |
| 468 | # Opcodes currently live in one of two places. Either they are in the |
| 469 | # opcode library, typically ../opcodes, or they are in a header file |
| 470 | # in INCLUDE_DIR. |
| 471 | # Where is the "-lopcodes" library, with (some of) the opcode tables and |
| 472 | # disassemblers? |
| 473 | OPCODES_DIR = ../opcodes |
| 474 | OPCODES_SRC = $(srcdir)/$(OPCODES_DIR) |
| 475 | OPCODES = $(OPCODES_DIR)/libopcodes.a |
| 476 | # Where are the other opcode tables which only have header file |
| 477 | # versions? |
| 478 | OP_INCLUDE = $(INCLUDE_DIR)/opcode |
| 479 | # See TOP_CFLAGS as well. |
| 480 | OPCODES_CFLAGS = -I$(OP_INCLUDE) |
| 481 | |
| 482 | # Allow includes like "opcodes/mumble.h". |
| 483 | TOP_CFLAGS = -I$(top_srcdir)/.. |
| 484 | |
| 485 | # The simulator is usually nonexistent; targets that include one |
| 486 | # should set this to list all the .o or .a files to be linked in. |
| 487 | SIM = @SIM@ |
| 488 | |
| 489 | WIN32LIBS = @WIN32LIBS@ |
| 490 | |
| 491 | # Tcl et al cflags and libraries |
| 492 | TCL = @TCL_LIBRARY@ |
| 493 | TCL_CFLAGS = @TCL_INCLUDE@ |
| 494 | GDBTKLIBS = @GDBTKLIBS@ |
| 495 | # Extra flags that the GDBTK files need: |
| 496 | GDBTK_CFLAGS = @GDBTK_CFLAGS@ |
| 497 | |
| 498 | TK = @TK_LIBRARY@ |
| 499 | TK_CFLAGS = @TK_INCLUDE@ |
| 500 | |
| 501 | X11_CFLAGS = @TK_XINCLUDES@ |
| 502 | X11_LDFLAGS = |
| 503 | X11_LIBS = |
| 504 | |
| 505 | WIN32LDAPP = @WIN32LDAPP@ |
| 506 | |
| 507 | LIBGUI = @LIBGUI@ |
| 508 | GUI_CFLAGS_X = @GUI_CFLAGS_X@ |
| 509 | IDE_CFLAGS = $(GUI_CFLAGS_X) $(IDE_CFLAGS_X) |
| 510 | |
| 511 | ALL_TCL_CFLAGS = $(TCL_CFLAGS) $(TK_CFLAGS) |
| 512 | |
| 513 | # The version of gdbtk we're building. This should be kept |
| 514 | # in sync with GDBTK_VERSION and friends in gdbtk.h. |
| 515 | GDBTK_VERSION = 1.0 |
| 516 | GDBTK_LIBRARY = $(datadir)/insight$(GDBTK_VERSION) |
| 517 | |
| 518 | # Gdbtk requires an absolute path to the source directory or |
| 519 | # the testsuite won't run properly. |
| 520 | GDBTK_SRC_DIR = @GDBTK_SRC_DIR@ |
| 521 | |
| 522 | SUBDIR_GDBTK_OBS = \ |
| 523 | gdbtk.o \ |
| 524 | gdbtk-bp.o \ |
| 525 | gdbtk-cmds.o \ |
| 526 | gdbtk-hooks.o \ |
| 527 | gdbtk-interp.o \ |
| 528 | gdbtk-register.o \ |
| 529 | gdbtk-stack.o \ |
| 530 | gdbtk-varobj.o \ |
| 531 | gdbtk-wrapper.o |
| 532 | |
| 533 | SUBDIR_GDBTK_SRCS = \ |
| 534 | gdbtk/generic/gdbtk.c \ |
| 535 | gdbtk/generic/gdbtk-bp.c \ |
| 536 | gdbtk/generic/gdbtk-cmds.c \ |
| 537 | gdbtk/generic/gdbtk-hooks.c \ |
| 538 | gdbtk/generic/gdbtk-interp.c \ |
| 539 | gdbtk/generic/gdbtk-main.c \ |
| 540 | gdbtk/generic/gdbtk-register.c \ |
| 541 | gdbtk/generic/gdbtk-stack.c \ |
| 542 | gdbtk/generic/gdbtk-varobj.c \ |
| 543 | gdbtk/generic/gdbtk-wrapper.c |
| 544 | |
| 545 | SUBDIR_GDBTK_DEPS = $(LIBGUI) $(TCL_DEPS) $(TK_DEPS) |
| 546 | SUBDIR_GDBTK_LDFLAGS = |
| 547 | SUBDIR_GDBTK_CFLAGS = -DGDBTK |
| 548 | |
| 549 | CONFIG_OBS = @CONFIG_OBS@ |
| 550 | CONFIG_SRCS = @CONFIG_SRCS@ |
| 551 | CONFIG_DEPS = @CONFIG_DEPS@ |
| 552 | CONFIG_LDFLAGS = @CONFIG_LDFLAGS@ |
| 553 | ENABLE_CFLAGS = @ENABLE_CFLAGS@ |
| 554 | CONFIG_ALL = @CONFIG_ALL@ |
| 555 | CONFIG_CLEAN = @CONFIG_CLEAN@ |
| 556 | CONFIG_INSTALL = @CONFIG_INSTALL@ |
| 557 | CONFIG_UNINSTALL = @CONFIG_UNINSTALL@ |
| 558 | HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@ |
| 559 | |
| 560 | CONFIG_SRC_SUBDIR = arch cli dwarf2 mi compile tui unittests guile python \ |
| 561 | target nat |
| 562 | CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR)) |
| 563 | |
| 564 | # -I. for config files. |
| 565 | # -I$(srcdir) for gdb internal headers. |
| 566 | # -I$(srcdir)/config for more generic config files. |
| 567 | |
| 568 | # It is also possible that you will need to add -I/usr/include/sys if |
| 569 | # your system doesn't have fcntl.h in /usr/include (which is where it |
| 570 | # should be according to Posix). |
| 571 | DEFS = @DEFS@ |
| 572 | GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config \ |
| 573 | -DLOCALEDIR="\"$(localedir)\"" $(DEFS) |
| 574 | |
| 575 | # MH_CFLAGS, if defined, has host-dependent CFLAGS from the config directory. |
| 576 | GLOBAL_CFLAGS = $(MH_CFLAGS) |
| 577 | |
| 578 | PROFILE_CFLAGS = @PROFILE_CFLAGS@ |
| 579 | |
| 580 | # These are specifically reserved for setting from the command line |
| 581 | # when running make. I.E.: "make CFLAGS=-Wmissing-prototypes". |
| 582 | CFLAGS = @CFLAGS@ |
| 583 | CXXFLAGS = @CXXFLAGS@ |
| 584 | CPPFLAGS = @CPPFLAGS@ |
| 585 | |
| 586 | # Set by configure, for e.g. expat. Python installations are such that |
| 587 | # C headers are included using their basename (for example, we #include |
| 588 | # <Python.h> rather than, say, <python/Python.h>). Since the file names |
| 589 | # are sometimes a little generic, we think that the risk of collision |
| 590 | # with other header files is high. If that happens, we try to mitigate |
| 591 | # a bit the consequences by putting the Python includes last in the list. |
| 592 | INTERNAL_CPPFLAGS = $(CPPFLAGS) @GUILE_CPPFLAGS@ @PYTHON_CPPFLAGS@ \ |
| 593 | @LARGEFILE_CPPFLAGS@ |
| 594 | |
| 595 | # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. |
| 596 | INTERNAL_CFLAGS_BASE = \ |
| 597 | $(CXXFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \ |
| 598 | $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) $(ZLIBINC) \ |
| 599 | $(BFD_CFLAGS) $(INCLUDE_CFLAGS) $(LIBDECNUMBER_CFLAGS) \ |
| 600 | $(INTL_CFLAGS) $(INCGNU) $(INCSUPPORT) $(ENABLE_CFLAGS) \ |
| 601 | $(INTERNAL_CPPFLAGS) $(SRCHIGH_CFLAGS) $(TOP_CFLAGS) $(PTHREAD_CFLAGS) |
| 602 | INTERNAL_WARN_CFLAGS = $(INTERNAL_CFLAGS_BASE) $(GDB_WARN_CFLAGS) |
| 603 | INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS) |
| 604 | |
| 605 | # LDFLAGS is specifically reserved for setting from the command line |
| 606 | # when running make. |
| 607 | LDFLAGS = @LDFLAGS@ |
| 608 | |
| 609 | # Profiling options need to go here to work. |
| 610 | # I think it's perfectly reasonable for a user to set -pg in CFLAGS |
| 611 | # and have it work; that's why CFLAGS is here. |
| 612 | # PROFILE_CFLAGS is _not_ included, however, because we use monstartup. |
| 613 | INTERNAL_LDFLAGS = \ |
| 614 | $(CXXFLAGS) $(GLOBAL_CFLAGS) $(MH_LDFLAGS) \ |
| 615 | $(LDFLAGS) $(CONFIG_LDFLAGS) $(PTHREAD_CFLAGS) |
| 616 | |
| 617 | # Libraries and corresponding dependencies for compiling gdb. |
| 618 | # XM_CLIBS, defined in *config files, have host-dependent libs. |
| 619 | # LIBIBERTY appears twice on purpose. |
| 620 | CLIBS = $(SIM) $(READLINE) $(OPCODES) $(LIBCTF) $(BFD) $(ZLIB) \ |
| 621 | $(LIBSUPPORT) $(INTL) $(LIBIBERTY) $(LIBDECNUMBER) \ |
| 622 | $(XM_CLIBS) $(GDBTKLIBS) \ |
| 623 | @LIBS@ @GUILE_LIBS@ @PYTHON_LIBS@ \ |
| 624 | $(LIBEXPAT) $(LIBLZMA) $(LIBBABELTRACE) $(LIBIPT) \ |
| 625 | $(WIN32LIBS) $(LIBGNU) $(LIBICONV) \ |
| 626 | $(LIBMPFR) $(SRCHIGH_LIBS) $(LIBXXHASH) $(PTHREAD_LIBS) \ |
| 627 | @DEBUGINFOD_LIBS@ |
| 628 | CDEPS = $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) $(CTF_DEPS) \ |
| 629 | $(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU) \ |
| 630 | $(LIBSUPPORT) |
| 631 | |
| 632 | DIST = gdb |
| 633 | |
| 634 | RUNTEST = runtest |
| 635 | RUNTESTFLAGS = |
| 636 | |
| 637 | # XML files to build in to GDB. |
| 638 | XMLFILES = \ |
| 639 | $(srcdir)/features/btrace.dtd \ |
| 640 | $(srcdir)/features/btrace-conf.dtd \ |
| 641 | $(srcdir)/features/gdb-target.dtd \ |
| 642 | $(srcdir)/features/library-list.dtd \ |
| 643 | $(srcdir)/features/library-list-aix.dtd \ |
| 644 | $(srcdir)/features/library-list-svr4.dtd \ |
| 645 | $(srcdir)/features/osdata.dtd \ |
| 646 | $(srcdir)/features/threads.dtd \ |
| 647 | $(srcdir)/features/traceframe-info.dtd \ |
| 648 | $(srcdir)/features/xinclude.dtd |
| 649 | |
| 650 | # Build the ser-*.o files the host supports. This includes ser-unix.o |
| 651 | # for any system that supports a POSIX interface to the serial port. |
| 652 | # See configure.ac. |
| 653 | SER_HARDWIRE = @SER_HARDWIRE@ |
| 654 | |
| 655 | # This is remote-sim.o if a simulator is to be linked in. |
| 656 | SIM_OBS = @SIM_OBS@ |
| 657 | |
| 658 | # Target-dependent object files. |
| 659 | TARGET_OBS = @TARGET_OBS@ |
| 660 | |
| 661 | # All target-dependent objects files that require 64-bit CORE_ADDR |
| 662 | # (used with --enable-targets=all --enable-64-bit-bfd). |
| 663 | ALL_64_TARGET_OBS = \ |
| 664 | aarch64-fbsd-tdep.o \ |
| 665 | aarch64-linux-tdep.o \ |
| 666 | aarch64-newlib-tdep.o \ |
| 667 | aarch64-ravenscar-thread.o \ |
| 668 | aarch64-tdep.o \ |
| 669 | alpha-bsd-tdep.o \ |
| 670 | alpha-linux-tdep.o \ |
| 671 | alpha-mdebug-tdep.o \ |
| 672 | alpha-nbsd-tdep.o \ |
| 673 | alpha-obsd-tdep.o \ |
| 674 | alpha-tdep.o \ |
| 675 | amd64-darwin-tdep.o \ |
| 676 | amd64-dicos-tdep.o \ |
| 677 | amd64-fbsd-tdep.o \ |
| 678 | amd64-linux-tdep.o \ |
| 679 | amd64-nbsd-tdep.o \ |
| 680 | amd64-obsd-tdep.o \ |
| 681 | amd64-sol2-tdep.o \ |
| 682 | amd64-tdep.o \ |
| 683 | amd64-windows-tdep.o \ |
| 684 | arch/aarch64.o \ |
| 685 | arch/aarch64-insn.o \ |
| 686 | arch/amd64.o \ |
| 687 | ia64-linux-tdep.o \ |
| 688 | ia64-tdep.o \ |
| 689 | ia64-vms-tdep.o \ |
| 690 | mips64-obsd-tdep.o \ |
| 691 | sparc64-fbsd-tdep.o \ |
| 692 | sparc64-linux-tdep.o \ |
| 693 | sparc64-nbsd-tdep.o \ |
| 694 | sparc64-obsd-tdep.o \ |
| 695 | sparc64-sol2-tdep.o \ |
| 696 | sparc64-tdep.o |
| 697 | |
| 698 | # All other target-dependent objects files (used with --enable-targets=all). |
| 699 | ALL_TARGET_OBS = \ |
| 700 | aarch32-tdep.o \ |
| 701 | arc-tdep.o \ |
| 702 | arch/aarch32.o \ |
| 703 | arch/arc.o \ |
| 704 | arch/arm.o \ |
| 705 | arch/arm-get-next-pcs.o \ |
| 706 | arch/arm-linux.o \ |
| 707 | arch/i386.o \ |
| 708 | arch/ppc-linux-common.o \ |
| 709 | arch/riscv.o \ |
| 710 | arm-bsd-tdep.o \ |
| 711 | arm-fbsd-tdep.o \ |
| 712 | arm-linux-tdep.o \ |
| 713 | arm-nbsd-tdep.o \ |
| 714 | arm-obsd-tdep.o \ |
| 715 | arm-pikeos-tdep.o \ |
| 716 | arm-symbian-tdep.o \ |
| 717 | arm-tdep.o \ |
| 718 | arm-wince-tdep.o \ |
| 719 | avr-tdep.o \ |
| 720 | bfin-linux-tdep.o \ |
| 721 | bfin-tdep.o \ |
| 722 | bpf-tdep.o \ |
| 723 | bsd-uthread.o \ |
| 724 | cris-linux-tdep.o \ |
| 725 | cris-tdep.o \ |
| 726 | csky-linux-tdep.o \ |
| 727 | csky-tdep.o \ |
| 728 | dicos-tdep.o \ |
| 729 | fbsd-tdep.o \ |
| 730 | frv-linux-tdep.o \ |
| 731 | frv-tdep.o \ |
| 732 | ft32-tdep.o \ |
| 733 | glibc-tdep.o \ |
| 734 | h8300-tdep.o \ |
| 735 | hppa-bsd-tdep.o \ |
| 736 | hppa-linux-tdep.o \ |
| 737 | hppa-nbsd-tdep.o \ |
| 738 | hppa-obsd-tdep.o \ |
| 739 | hppa-tdep.o \ |
| 740 | i386-bsd-tdep.o \ |
| 741 | i386-darwin-tdep.o \ |
| 742 | i386-dicos-tdep.o \ |
| 743 | i386-fbsd-tdep.o \ |
| 744 | i386-gnu-tdep.o \ |
| 745 | i386-go32-tdep.o \ |
| 746 | i386-linux-tdep.o \ |
| 747 | i386-nbsd-tdep.o \ |
| 748 | i386-nto-tdep.o \ |
| 749 | i386-obsd-tdep.o \ |
| 750 | i386-sol2-tdep.o \ |
| 751 | i386-tdep.o \ |
| 752 | i386-windows-tdep.o \ |
| 753 | i387-tdep.o \ |
| 754 | iq2000-tdep.o \ |
| 755 | linux-record.o \ |
| 756 | linux-tdep.o \ |
| 757 | lm32-tdep.o \ |
| 758 | m32c-tdep.o \ |
| 759 | m32r-linux-tdep.o \ |
| 760 | m32r-tdep.o \ |
| 761 | m68hc11-tdep.o \ |
| 762 | m68k-bsd-tdep.o \ |
| 763 | m68k-linux-tdep.o \ |
| 764 | m68k-tdep.o \ |
| 765 | mep-tdep.o \ |
| 766 | microblaze-linux-tdep.o \ |
| 767 | microblaze-tdep.o \ |
| 768 | mips-fbsd-tdep.o \ |
| 769 | mips-linux-tdep.o \ |
| 770 | mips-nbsd-tdep.o \ |
| 771 | mips-sde-tdep.o \ |
| 772 | mips-tdep.o \ |
| 773 | mn10300-linux-tdep.o \ |
| 774 | mn10300-tdep.o \ |
| 775 | moxie-tdep.o \ |
| 776 | msp430-tdep.o \ |
| 777 | nbsd-tdep.o \ |
| 778 | nds32-tdep.o \ |
| 779 | nios2-linux-tdep.o \ |
| 780 | nios2-tdep.o \ |
| 781 | nto-tdep.o \ |
| 782 | obsd-tdep.o \ |
| 783 | or1k-linux-tdep.o \ |
| 784 | or1k-tdep.o \ |
| 785 | ppc-fbsd-tdep.o \ |
| 786 | ppc-linux-tdep.o \ |
| 787 | ppc-nbsd-tdep.o \ |
| 788 | ppc-obsd-tdep.o \ |
| 789 | ppc-ravenscar-thread.o \ |
| 790 | ppc-sysv-tdep.o \ |
| 791 | ppc64-tdep.o \ |
| 792 | ravenscar-thread.o \ |
| 793 | riscv-fbsd-tdep.o \ |
| 794 | riscv-linux-tdep.o \ |
| 795 | riscv-ravenscar-thread.o \ |
| 796 | riscv-tdep.o \ |
| 797 | rl78-tdep.o \ |
| 798 | rs6000-aix-tdep.o \ |
| 799 | rs6000-lynx178-tdep.o \ |
| 800 | rs6000-tdep.o \ |
| 801 | rx-tdep.o \ |
| 802 | s12z-tdep.o \ |
| 803 | s390-linux-tdep.o \ |
| 804 | s390-tdep.o \ |
| 805 | score-tdep.o \ |
| 806 | sh-linux-tdep.o \ |
| 807 | sh-nbsd-tdep.o \ |
| 808 | sh-tdep.o \ |
| 809 | sol2-tdep.o \ |
| 810 | solib-aix.o \ |
| 811 | solib-darwin.o \ |
| 812 | solib-dsbt.o \ |
| 813 | solib-frv.o \ |
| 814 | solib-svr4.o \ |
| 815 | sparc-linux-tdep.o \ |
| 816 | sparc-nbsd-tdep.o \ |
| 817 | sparc-obsd-tdep.o \ |
| 818 | sparc-ravenscar-thread.o \ |
| 819 | sparc-sol2-tdep.o \ |
| 820 | sparc-tdep.o \ |
| 821 | symfile-mem.o \ |
| 822 | tic6x-linux-tdep.o \ |
| 823 | tic6x-tdep.o \ |
| 824 | tilegx-linux-tdep.o \ |
| 825 | tilegx-tdep.o \ |
| 826 | v850-tdep.o \ |
| 827 | vax-nbsd-tdep.o \ |
| 828 | vax-tdep.o \ |
| 829 | windows-tdep.o \ |
| 830 | x86-tdep.o \ |
| 831 | xcoffread.o \ |
| 832 | xstormy16-tdep.o \ |
| 833 | xtensa-config.o \ |
| 834 | xtensa-linux-tdep.o \ |
| 835 | xtensa-tdep.o |
| 836 | |
| 837 | # The following native-target dependent variables are defined on |
| 838 | # configure.nat. |
| 839 | NAT_FILE = @NAT_FILE@ |
| 840 | NATDEPFILES = @NATDEPFILES@ |
| 841 | NAT_CDEPS = @NAT_CDEPS@ |
| 842 | LOADLIBES = @LOADLIBES@ |
| 843 | MH_CFLAGS = @MH_CFLAGS@ |
| 844 | XM_CLIBS = @XM_CLIBS@ |
| 845 | NAT_GENERATED_FILES = @NAT_GENERATED_FILES@ |
| 846 | NM_H = @NM_H@ |
| 847 | HAVE_NATIVE_GCORE_HOST = @HAVE_NATIVE_GCORE_HOST@ |
| 848 | |
| 849 | # Native-target dependent makefile fragment comes in here. |
| 850 | @nat_makefile_frag@ |
| 851 | |
| 852 | # End of native-target dependent variables. |
| 853 | |
| 854 | FLAGS_TO_PASS = \ |
| 855 | "prefix=$(prefix)" \ |
| 856 | "exec_prefix=$(exec_prefix)" \ |
| 857 | "infodir=$(infodir)" \ |
| 858 | "datarootdir=$(datarootdir)" \ |
| 859 | "docdir=$(docdir)" \ |
| 860 | "htmldir=$(htmldir)" \ |
| 861 | "pdfdir=$(pdfdir)" \ |
| 862 | "libdir=$(libdir)" \ |
| 863 | "mandir=$(mandir)" \ |
| 864 | "datadir=$(datadir)" \ |
| 865 | "includedir=$(includedir)" \ |
| 866 | "against=$(against)" \ |
| 867 | "DESTDIR=$(DESTDIR)" \ |
| 868 | "AR=$(AR)" \ |
| 869 | "AR_FLAGS=$(AR_FLAGS)" \ |
| 870 | "CC=$(CC)" \ |
| 871 | "CFLAGS=$(CFLAGS)" \ |
| 872 | "CXX=$(CXX)" \ |
| 873 | "CXX_DIALECT=$(CXX_DIALECT)" \ |
| 874 | "CXXFLAGS=$(CXXFLAGS)" \ |
| 875 | "DLLTOOL=$(DLLTOOL)" \ |
| 876 | "LDFLAGS=$(LDFLAGS)" \ |
| 877 | "RANLIB=$(RANLIB)" \ |
| 878 | "MAKEINFO=$(MAKEINFO)" \ |
| 879 | "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \ |
| 880 | "MAKEINFO_EXTRA_FLAGS=$(MAKEINFO_EXTRA_FLAGS)" \ |
| 881 | "MAKEHTML=$(MAKEHTML)" \ |
| 882 | "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \ |
| 883 | "INSTALL=$(INSTALL)" \ |
| 884 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ |
| 885 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ |
| 886 | "INSTALL_DATA=$(INSTALL_DATA)" \ |
| 887 | "RUNTEST=$(RUNTEST)" \ |
| 888 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" |
| 889 | |
| 890 | # Flags that we pass when building the testsuite. |
| 891 | |
| 892 | # empty for native, $(target_alias)/ for cross |
| 893 | target_subdir = @target_subdir@ |
| 894 | |
| 895 | CC_FOR_TARGET = ` \ |
| 896 | if [ -f $${rootme}/../gcc/xgcc ] ; then \ |
| 897 | if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \ |
| 898 | echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/$(target_subdir)newlib/targ-include -idirafter $${rootsrc}/../$(target_subdir)newlib/libc/include -nostdinc -B$${rootme}/../$(target_subdir)newlib/; \ |
| 899 | else \ |
| 900 | echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \ |
| 901 | fi; \ |
| 902 | else \ |
| 903 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
| 904 | echo $(CC); \ |
| 905 | else \ |
| 906 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ |
| 907 | fi; \ |
| 908 | fi` |
| 909 | |
| 910 | CXX_FOR_TARGET = ` \ |
| 911 | if [ -f $${rootme}/../gcc/xg++ ] ; then \ |
| 912 | if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \ |
| 913 | echo $${rootme}/../gcc/xg++ -B$${rootme}/../gcc/ -idirafter $${rootme}/$(target_subdir)newlib/targ-include -idirafter $${rootsrc}/../$(target_subdir)newlib/libc/include -nostdinc -B$${rootme}/../$(target_subdir)newlib/; \ |
| 914 | else \ |
| 915 | echo $${rootme}/../gcc/xg++ -B$${rootme}/../gcc/; \ |
| 916 | fi; \ |
| 917 | else \ |
| 918 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
| 919 | echo $(CXX); \ |
| 920 | else \ |
| 921 | t='$(program_transform_name)'; echo g++ | sed -e '' $$t; \ |
| 922 | fi; \ |
| 923 | fi` |
| 924 | |
| 925 | # The use of $$(x_FOR_TARGET) reduces the command line length by not |
| 926 | # duplicating the lengthy definition. |
| 927 | TARGET_FLAGS_TO_PASS = \ |
| 928 | "prefix=$(prefix)" \ |
| 929 | "exec_prefix=$(exec_prefix)" \ |
| 930 | "against=$(against)" \ |
| 931 | 'CC=$$(CC_FOR_TARGET)' \ |
| 932 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ |
| 933 | "CFLAGS=$(CFLAGS)" \ |
| 934 | 'CXX=$$(CXX_FOR_TARGET)' \ |
| 935 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ |
| 936 | "CXXFLAGS=$(CXXFLAGS)" \ |
| 937 | "INSTALL=$(INSTALL)" \ |
| 938 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ |
| 939 | "INSTALL_DATA=$(INSTALL_DATA)" \ |
| 940 | "MAKEINFO=$(MAKEINFO)" \ |
| 941 | "MAKEHTML=$(MAKEHTML)" \ |
| 942 | "RUNTEST=$(RUNTEST)" \ |
| 943 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ |
| 944 | "FORCE_PARALLEL=$(FORCE_PARALLEL)" \ |
| 945 | "TESTS=$(TESTS)" |
| 946 | |
| 947 | # All source files that go into linking GDB. |
| 948 | |
| 949 | # Files that should wind up in SFILES and whose corresponding .o |
| 950 | # should be in COMMON_OBS. |
| 951 | COMMON_SFILES = \ |
| 952 | ada-lang.c \ |
| 953 | ada-tasks.c \ |
| 954 | ada-typeprint.c \ |
| 955 | ada-valprint.c \ |
| 956 | ada-varobj.c \ |
| 957 | addrmap.c \ |
| 958 | agent.c \ |
| 959 | alloc.c \ |
| 960 | annotate.c \ |
| 961 | arch-utils.c \ |
| 962 | async-event.c \ |
| 963 | auto-load.c \ |
| 964 | auxv.c \ |
| 965 | ax-gdb.c \ |
| 966 | ax-general.c \ |
| 967 | bcache.c \ |
| 968 | bfd-target.c \ |
| 969 | block.c \ |
| 970 | blockframe.c \ |
| 971 | break-catch-sig.c \ |
| 972 | break-catch-syscall.c \ |
| 973 | break-catch-throw.c \ |
| 974 | breakpoint.c \ |
| 975 | btrace.c \ |
| 976 | build-id.c \ |
| 977 | buildsym-legacy.c \ |
| 978 | buildsym.c \ |
| 979 | c-lang.c \ |
| 980 | c-typeprint.c \ |
| 981 | c-valprint.c \ |
| 982 | c-varobj.c \ |
| 983 | charset.c \ |
| 984 | cli-out.c \ |
| 985 | coff-pe-read.c \ |
| 986 | coffread.c \ |
| 987 | complaints.c \ |
| 988 | completer.c \ |
| 989 | continuations.c \ |
| 990 | copying.c \ |
| 991 | corefile.c \ |
| 992 | corelow.c \ |
| 993 | cp-abi.c \ |
| 994 | cp-namespace.c \ |
| 995 | cp-support.c \ |
| 996 | cp-valprint.c \ |
| 997 | ctfread.c \ |
| 998 | d-lang.c \ |
| 999 | d-namespace.c \ |
| 1000 | d-valprint.c \ |
| 1001 | dbxread.c \ |
| 1002 | dcache.c \ |
| 1003 | debug.c \ |
| 1004 | debuginfod-support.c \ |
| 1005 | dictionary.c \ |
| 1006 | disasm.c \ |
| 1007 | dummy-frame.c \ |
| 1008 | dwarf2/abbrev.c \ |
| 1009 | dwarf2/attribute.c \ |
| 1010 | dwarf2/comp-unit.c \ |
| 1011 | dwarf2/dwz.c \ |
| 1012 | dwarf2/expr.c \ |
| 1013 | dwarf2/frame-tailcall.c \ |
| 1014 | dwarf2/frame.c \ |
| 1015 | dwarf2/index-cache.c \ |
| 1016 | dwarf2/index-common.c \ |
| 1017 | dwarf2/index-write.c \ |
| 1018 | dwarf2/leb.c \ |
| 1019 | dwarf2/line-header.c \ |
| 1020 | dwarf2/loc.c \ |
| 1021 | dwarf2/macro.c \ |
| 1022 | dwarf2/read.c \ |
| 1023 | dwarf2/section.c \ |
| 1024 | dwarf2/stringify.c \ |
| 1025 | eval.c \ |
| 1026 | event-top.c \ |
| 1027 | exceptions.c \ |
| 1028 | exec.c \ |
| 1029 | expprint.c \ |
| 1030 | extension.c \ |
| 1031 | f-lang.c \ |
| 1032 | f-typeprint.c \ |
| 1033 | f-valprint.c \ |
| 1034 | filename-seen-cache.c \ |
| 1035 | filesystem.c \ |
| 1036 | findcmd.c \ |
| 1037 | findvar.c \ |
| 1038 | frame.c \ |
| 1039 | frame-base.c \ |
| 1040 | frame-unwind.c \ |
| 1041 | gcore.c \ |
| 1042 | gdb-demangle.c \ |
| 1043 | gdb_bfd.c \ |
| 1044 | gdb_obstack.c \ |
| 1045 | gdb_regex.c \ |
| 1046 | gdbarch.c \ |
| 1047 | gdbtypes.c \ |
| 1048 | gnu-v2-abi.c \ |
| 1049 | gnu-v3-abi.c \ |
| 1050 | go-lang.c \ |
| 1051 | go-typeprint.c \ |
| 1052 | go-valprint.c \ |
| 1053 | inf-child.c \ |
| 1054 | inf-loop.c \ |
| 1055 | infcall.c \ |
| 1056 | infcmd.c \ |
| 1057 | inferior.c \ |
| 1058 | inflow.c \ |
| 1059 | infrun.c \ |
| 1060 | inline-frame.c \ |
| 1061 | interps.c \ |
| 1062 | jit.c \ |
| 1063 | language.c \ |
| 1064 | linespec.c \ |
| 1065 | location.c \ |
| 1066 | m2-lang.c \ |
| 1067 | m2-typeprint.c \ |
| 1068 | m2-valprint.c \ |
| 1069 | macrocmd.c \ |
| 1070 | macroexp.c \ |
| 1071 | macroscope.c \ |
| 1072 | macrotab.c \ |
| 1073 | main.c \ |
| 1074 | maint.c \ |
| 1075 | maint-test-options.c \ |
| 1076 | maint-test-settings.c \ |
| 1077 | mdebugread.c \ |
| 1078 | mem-break.c \ |
| 1079 | memattr.c \ |
| 1080 | memory-map.c \ |
| 1081 | memrange.c \ |
| 1082 | minidebug.c \ |
| 1083 | minsyms.c \ |
| 1084 | mipsread.c \ |
| 1085 | namespace.c \ |
| 1086 | objc-lang.c \ |
| 1087 | objfiles.c \ |
| 1088 | observable.c \ |
| 1089 | opencl-lang.c \ |
| 1090 | osabi.c \ |
| 1091 | osdata.c \ |
| 1092 | p-lang.c \ |
| 1093 | p-typeprint.c \ |
| 1094 | p-valprint.c \ |
| 1095 | parse.c \ |
| 1096 | printcmd.c \ |
| 1097 | probe.c \ |
| 1098 | process-stratum-target.c \ |
| 1099 | producer.c \ |
| 1100 | progspace.c \ |
| 1101 | progspace-and-thread.c \ |
| 1102 | prologue-value.c \ |
| 1103 | psymtab.c \ |
| 1104 | record.c \ |
| 1105 | record-btrace.c \ |
| 1106 | record-full.c \ |
| 1107 | regcache.c \ |
| 1108 | regcache-dump.c \ |
| 1109 | reggroups.c \ |
| 1110 | registry.c \ |
| 1111 | remote.c \ |
| 1112 | remote-fileio.c \ |
| 1113 | remote-notif.c \ |
| 1114 | reverse.c \ |
| 1115 | run-on-main-thread.c \ |
| 1116 | rust-lang.c \ |
| 1117 | sentinel-frame.c \ |
| 1118 | ser-event.c \ |
| 1119 | serial.c \ |
| 1120 | skip.c \ |
| 1121 | solib.c \ |
| 1122 | solib-target.c \ |
| 1123 | source.c \ |
| 1124 | source-cache.c \ |
| 1125 | stabsread.c \ |
| 1126 | stack.c \ |
| 1127 | std-regs.c \ |
| 1128 | symfile.c \ |
| 1129 | symfile-debug.c \ |
| 1130 | symmisc.c \ |
| 1131 | symtab.c \ |
| 1132 | target.c \ |
| 1133 | target-connection.c \ |
| 1134 | target-dcache.c \ |
| 1135 | target-descriptions.c \ |
| 1136 | target-memory.c \ |
| 1137 | test-target.c \ |
| 1138 | thread.c \ |
| 1139 | thread-iter.c \ |
| 1140 | tid-parse.c \ |
| 1141 | top.c \ |
| 1142 | tracectf.c \ |
| 1143 | tracefile.c \ |
| 1144 | tracefile-tfile.c \ |
| 1145 | tracepoint.c \ |
| 1146 | trad-frame.c \ |
| 1147 | tramp-frame.c \ |
| 1148 | target-float.c \ |
| 1149 | type-stack.c \ |
| 1150 | typeprint.c \ |
| 1151 | ui-file.c \ |
| 1152 | ui-out.c \ |
| 1153 | ui-style.c \ |
| 1154 | user-regs.c \ |
| 1155 | utils.c \ |
| 1156 | valarith.c \ |
| 1157 | valops.c \ |
| 1158 | valprint.c \ |
| 1159 | value.c \ |
| 1160 | varobj.c \ |
| 1161 | xml-support.c \ |
| 1162 | xml-syscall.c \ |
| 1163 | xml-tdesc.c |
| 1164 | |
| 1165 | # Links made at configuration time should not be specified here, since |
| 1166 | # SFILES is used in building the distribution archive. |
| 1167 | SFILES = \ |
| 1168 | ada-exp.y \ |
| 1169 | arch/i386.c \ |
| 1170 | c-exp.y \ |
| 1171 | cp-name-parser.y \ |
| 1172 | d-exp.y \ |
| 1173 | dtrace-probe.c \ |
| 1174 | elfread.c \ |
| 1175 | f-exp.y \ |
| 1176 | gdb.c \ |
| 1177 | go-exp.y \ |
| 1178 | m2-exp.y \ |
| 1179 | p-exp.y \ |
| 1180 | proc-service.list \ |
| 1181 | rust-exp.y \ |
| 1182 | ser-base.c \ |
| 1183 | ser-unix.c \ |
| 1184 | sol-thread.c \ |
| 1185 | stap-probe.c \ |
| 1186 | stub-termcap.c \ |
| 1187 | symfile-mem.c \ |
| 1188 | ui-file.h \ |
| 1189 | mi/mi-common.c \ |
| 1190 | $(SUBDIR_CLI_SRCS) \ |
| 1191 | $(SUBDIR_TARGET_SRCS) \ |
| 1192 | $(COMMON_SFILES) \ |
| 1193 | $(SUBDIR_GCC_COMPILE_SRCS) |
| 1194 | |
| 1195 | # Header files that need to have srcdir added. Note that in the cases |
| 1196 | # where we use a macro like $(gdbcmd_h), things are carefully arranged |
| 1197 | # so that each .h file is listed exactly once (M-x tags-search works |
| 1198 | # wrong if TAGS has files twice). Because this is tricky to get |
| 1199 | # right, it is probably easiest just to list .h files here directly. |
| 1200 | |
| 1201 | HFILES_NO_SRCDIR = \ |
| 1202 | aarch32-tdep.h \ |
| 1203 | aarch64-ravenscar-thread.h \ |
| 1204 | aarch64-tdep.h \ |
| 1205 | ada-lang.h \ |
| 1206 | addrmap.h \ |
| 1207 | alpha-bsd-tdep.h \ |
| 1208 | alpha-tdep.h \ |
| 1209 | amd64-darwin-tdep.h \ |
| 1210 | amd64-linux-tdep.h \ |
| 1211 | amd64-nat.h \ |
| 1212 | amd64-tdep.h \ |
| 1213 | annotate.h \ |
| 1214 | arc-tdep.h \ |
| 1215 | arch-utils.h \ |
| 1216 | arm-linux-tdep.h \ |
| 1217 | arm-nbsd-tdep.h \ |
| 1218 | arm-tdep.h \ |
| 1219 | async-event.h \ |
| 1220 | auto-load.h \ |
| 1221 | auxv.h \ |
| 1222 | ax.h \ |
| 1223 | ax-gdb.h \ |
| 1224 | bcache.h \ |
| 1225 | bfd-target.h \ |
| 1226 | bfin-tdep.h \ |
| 1227 | block.h \ |
| 1228 | breakpoint.h \ |
| 1229 | bsd-kvm.h \ |
| 1230 | bsd-uthread.h \ |
| 1231 | build-id.h \ |
| 1232 | buildsym-legacy.h \ |
| 1233 | buildsym.h \ |
| 1234 | c-lang.h \ |
| 1235 | charset.h \ |
| 1236 | charset-list.h \ |
| 1237 | cli-out.h \ |
| 1238 | coff-pe-read.h \ |
| 1239 | command.h \ |
| 1240 | complaints.h \ |
| 1241 | completer.h \ |
| 1242 | cp-abi.h \ |
| 1243 | cp-support.h \ |
| 1244 | csky-tdep.h \ |
| 1245 | d-lang.h \ |
| 1246 | darwin-nat.h \ |
| 1247 | dcache.h \ |
| 1248 | defs.h \ |
| 1249 | dicos-tdep.h \ |
| 1250 | dictionary.h \ |
| 1251 | disasm.h \ |
| 1252 | dummy-frame.h \ |
| 1253 | dwarf2/frame-tailcall.h \ |
| 1254 | dwarf2/frame.h \ |
| 1255 | dwarf2/expr.h \ |
| 1256 | dwarf2/index-cache.h \ |
| 1257 | dwarf2/index-common.h \ |
| 1258 | dwarf2/loc.h \ |
| 1259 | dwarf2/read.h \ |
| 1260 | event-top.h \ |
| 1261 | exceptions.h \ |
| 1262 | exec.h \ |
| 1263 | expression.h \ |
| 1264 | extension.h \ |
| 1265 | extension-priv.h \ |
| 1266 | f-lang.h \ |
| 1267 | fbsd-nat.h \ |
| 1268 | fbsd-tdep.h \ |
| 1269 | filesystem.h \ |
| 1270 | frame.h \ |
| 1271 | frame-base.h \ |
| 1272 | frame-unwind.h \ |
| 1273 | frv-tdep.h \ |
| 1274 | ft32-tdep.h \ |
| 1275 | gcore.h \ |
| 1276 | gdb_bfd.h \ |
| 1277 | gdb_curses.h \ |
| 1278 | gdb_expat.h \ |
| 1279 | gdb_obstack.h \ |
| 1280 | gdb_proc_service.h \ |
| 1281 | gdb_regex.h \ |
| 1282 | gdb_select.h \ |
| 1283 | gdb-stabs.h \ |
| 1284 | gdb_vfork.h \ |
| 1285 | gdb_wchar.h \ |
| 1286 | gdbarch.h \ |
| 1287 | gdbcmd.h \ |
| 1288 | gdbcore.h \ |
| 1289 | gdbthread.h \ |
| 1290 | gdbtypes.h \ |
| 1291 | glibc-tdep.h \ |
| 1292 | gnu-nat.h \ |
| 1293 | go-lang.h \ |
| 1294 | gregset.h \ |
| 1295 | hppa-bsd-tdep.h \ |
| 1296 | hppa-linux-offsets.h \ |
| 1297 | hppa-tdep.h \ |
| 1298 | i386-bsd-nat.h \ |
| 1299 | i386-darwin-tdep.h \ |
| 1300 | i386-linux-nat.h \ |
| 1301 | i386-linux-tdep.h \ |
| 1302 | i386-tdep.h \ |
| 1303 | i387-tdep.h \ |
| 1304 | ia64-libunwind-tdep.h \ |
| 1305 | ia64-tdep.h \ |
| 1306 | inf-child.h \ |
| 1307 | inf-loop.h \ |
| 1308 | inf-ptrace.h \ |
| 1309 | infcall.h \ |
| 1310 | inferior.h \ |
| 1311 | inflow.h \ |
| 1312 | inline-frame.h \ |
| 1313 | interps.h \ |
| 1314 | jit.h \ |
| 1315 | language.h \ |
| 1316 | linespec.h \ |
| 1317 | linux-fork.h \ |
| 1318 | linux-nat.h \ |
| 1319 | linux-record.h \ |
| 1320 | linux-tdep.h \ |
| 1321 | location.h \ |
| 1322 | m2-lang.h \ |
| 1323 | m32r-tdep.h \ |
| 1324 | m68k-tdep.h \ |
| 1325 | macroexp.h \ |
| 1326 | macroscope.h \ |
| 1327 | macrotab.h \ |
| 1328 | main.h \ |
| 1329 | mdebugread.h \ |
| 1330 | memattr.h \ |
| 1331 | memory-map.h \ |
| 1332 | memrange.h \ |
| 1333 | microblaze-tdep.h \ |
| 1334 | mips-linux-tdep.h \ |
| 1335 | mips-nbsd-tdep.h \ |
| 1336 | mips-tdep.h \ |
| 1337 | mn10300-tdep.h \ |
| 1338 | moxie-tdep.h \ |
| 1339 | nbsd-nat.h \ |
| 1340 | nbsd-tdep.h \ |
| 1341 | nds32-tdep.h \ |
| 1342 | nios2-tdep.h \ |
| 1343 | nto-tdep.h \ |
| 1344 | objc-lang.h \ |
| 1345 | objfiles.h \ |
| 1346 | obsd-nat.h \ |
| 1347 | obsd-tdep.h \ |
| 1348 | osabi.h \ |
| 1349 | osdata.h \ |
| 1350 | p-lang.h \ |
| 1351 | parser-defs.h \ |
| 1352 | ppc-fbsd-tdep.h \ |
| 1353 | ppc-linux-tdep.h \ |
| 1354 | ppc-nbsd-tdep.h \ |
| 1355 | ppc-obsd-tdep.h \ |
| 1356 | ppc-ravenscar-thread.h \ |
| 1357 | ppc-tdep.h \ |
| 1358 | ppc64-tdep.h \ |
| 1359 | probe.h \ |
| 1360 | proc-utils.h \ |
| 1361 | procfs.h \ |
| 1362 | progspace.h \ |
| 1363 | progspace-and-thread.h \ |
| 1364 | prologue-value.h \ |
| 1365 | psympriv.h \ |
| 1366 | psymtab.h \ |
| 1367 | ravenscar-thread.h \ |
| 1368 | record.h \ |
| 1369 | record-full.h \ |
| 1370 | regcache.h \ |
| 1371 | reggroups.h \ |
| 1372 | regset.h \ |
| 1373 | remote.h \ |
| 1374 | remote-fileio.h \ |
| 1375 | remote-notif.h \ |
| 1376 | riscv-fbsd-tdep.h \ |
| 1377 | riscv-ravenscar-thread.h \ |
| 1378 | riscv-tdep.h \ |
| 1379 | rs6000-aix-tdep.h \ |
| 1380 | rs6000-tdep.h \ |
| 1381 | run-on-main-thread.h \ |
| 1382 | s390-linux-tdep.h \ |
| 1383 | s390-tdep.h \ |
| 1384 | score-tdep.h \ |
| 1385 | selftest-arch.h \ |
| 1386 | sentinel-frame.h \ |
| 1387 | ser-base.h \ |
| 1388 | ser-event.h \ |
| 1389 | ser-tcp.h \ |
| 1390 | ser-unix.h \ |
| 1391 | serial.h \ |
| 1392 | sh-tdep.h \ |
| 1393 | sim-regno.h \ |
| 1394 | skip.h \ |
| 1395 | sol2-tdep.h \ |
| 1396 | solib.h \ |
| 1397 | solib-aix.h \ |
| 1398 | solib-darwin.h \ |
| 1399 | solib-svr4.h \ |
| 1400 | solib-target.h \ |
| 1401 | solist.h \ |
| 1402 | source.h \ |
| 1403 | source-cache.h \ |
| 1404 | sparc-nat.h \ |
| 1405 | sparc-ravenscar-thread.h \ |
| 1406 | sparc-tdep.h \ |
| 1407 | sparc64-tdep.h \ |
| 1408 | stabsread.h \ |
| 1409 | stack.h \ |
| 1410 | stap-probe.h \ |
| 1411 | symfile.h \ |
| 1412 | symtab.h \ |
| 1413 | target.h \ |
| 1414 | target-dcache.h \ |
| 1415 | target-descriptions.h \ |
| 1416 | terminal.h \ |
| 1417 | tid-parse.h \ |
| 1418 | top.h \ |
| 1419 | tracectf.h \ |
| 1420 | tracefile.h \ |
| 1421 | tracepoint.h \ |
| 1422 | trad-frame.h \ |
| 1423 | target-float.h \ |
| 1424 | tramp-frame.h \ |
| 1425 | type-stack.h \ |
| 1426 | typeprint.h \ |
| 1427 | ui-file.h \ |
| 1428 | ui-out.h \ |
| 1429 | ui-style.h \ |
| 1430 | user-regs.h \ |
| 1431 | utils.h \ |
| 1432 | valprint.h \ |
| 1433 | value.h \ |
| 1434 | varobj.h \ |
| 1435 | varobj-iter.h \ |
| 1436 | vax-tdep.h \ |
| 1437 | windows-nat.h \ |
| 1438 | windows-tdep.h \ |
| 1439 | x86-bsd-nat.h \ |
| 1440 | x86-linux-nat.h \ |
| 1441 | x86-nat.h \ |
| 1442 | xcoffread.h \ |
| 1443 | xml-builtin.h \ |
| 1444 | xml-support.h \ |
| 1445 | xml-syscall.h \ |
| 1446 | xml-tdesc.h \ |
| 1447 | xtensa-tdep.h \ |
| 1448 | arch/aarch32.h \ |
| 1449 | arch/aarch64.h \ |
| 1450 | arch/aarch64-insn.h \ |
| 1451 | arch/arc.h \ |
| 1452 | arch/arm.h \ |
| 1453 | arch/i386.h \ |
| 1454 | arch/ppc-linux-common.h \ |
| 1455 | arch/ppc-linux-tdesc.h \ |
| 1456 | arch/riscv.h \ |
| 1457 | cli/cli-cmds.h \ |
| 1458 | cli/cli-decode.h \ |
| 1459 | cli/cli-script.h \ |
| 1460 | cli/cli-setshow.h \ |
| 1461 | cli/cli-style.h \ |
| 1462 | cli/cli-utils.h \ |
| 1463 | compile/compile.h \ |
| 1464 | compile/compile-c.h \ |
| 1465 | compile/compile-cplus.h \ |
| 1466 | compile/compile-internal.h \ |
| 1467 | compile/compile-object-load.h \ |
| 1468 | compile/compile-object-run.h \ |
| 1469 | compile/gcc-c-plugin.h \ |
| 1470 | compile/gcc-cp-plugin.h \ |
| 1471 | config/nm-linux.h \ |
| 1472 | config/nm-nto.h \ |
| 1473 | config/djgpp/langinfo.h \ |
| 1474 | config/djgpp/nl_types.h \ |
| 1475 | config/i386/nm-i386gnu.h \ |
| 1476 | config/sparc/nm-sol2.h \ |
| 1477 | mi/mi-cmds.h \ |
| 1478 | mi/mi-common.h \ |
| 1479 | mi/mi-console.h \ |
| 1480 | mi/mi-getopt.h \ |
| 1481 | mi/mi-main.h \ |
| 1482 | mi/mi-out.h \ |
| 1483 | mi/mi-parse.h \ |
| 1484 | nat/aarch64-linux.h \ |
| 1485 | nat/aarch64-linux-hw-point.h \ |
| 1486 | nat/aarch64-sve-linux-ptrace.h \ |
| 1487 | nat/amd64-linux-siginfo.h \ |
| 1488 | nat/gdb_ptrace.h \ |
| 1489 | nat/gdb_thread_db.h \ |
| 1490 | nat/fork-inferior.h \ |
| 1491 | nat/linux-btrace.h \ |
| 1492 | nat/linux-namespaces.h \ |
| 1493 | nat/linux-nat.h \ |
| 1494 | nat/linux-osdata.h \ |
| 1495 | nat/linux-personality.h \ |
| 1496 | nat/linux-ptrace.h \ |
| 1497 | nat/linux-waitpid.h \ |
| 1498 | nat/mips-linux-watch.h \ |
| 1499 | nat/ppc-linux.h \ |
| 1500 | nat/x86-cpuid.h \ |
| 1501 | nat/x86-dregs.h \ |
| 1502 | nat/x86-gcc-cpuid.h \ |
| 1503 | nat/x86-linux.h \ |
| 1504 | nat/x86-linux-dregs.h \ |
| 1505 | python/py-event.h \ |
| 1506 | python/py-events.h \ |
| 1507 | python/py-stopevent.h \ |
| 1508 | python/python.h \ |
| 1509 | python/python-internal.h \ |
| 1510 | regformats/regdef.h \ |
| 1511 | target/resume.h \ |
| 1512 | target/target.h \ |
| 1513 | target/wait.h \ |
| 1514 | target/waitstatus.h \ |
| 1515 | tui/tui.h \ |
| 1516 | tui/tui-command.h \ |
| 1517 | tui/tui-data.h \ |
| 1518 | tui/tui-disasm.h \ |
| 1519 | tui/tui-file.h \ |
| 1520 | tui/tui-hooks.h \ |
| 1521 | tui/tui-io.h \ |
| 1522 | tui/tui-layout.h \ |
| 1523 | tui/tui-regs.h \ |
| 1524 | tui/tui-source.h \ |
| 1525 | tui/tui-stack.h \ |
| 1526 | tui/tui-win.h \ |
| 1527 | tui/tui-windata.h \ |
| 1528 | tui/tui-wingeneral.h \ |
| 1529 | tui/tui-winsource.h \ |
| 1530 | x86-tdep.h |
| 1531 | |
| 1532 | # Header files that already have srcdir in them, or which are in objdir. |
| 1533 | |
| 1534 | HFILES_WITH_SRCDIR = \ |
| 1535 | ../bfd/bfd.h \ |
| 1536 | jit-reader.h |
| 1537 | |
| 1538 | # {X,T,NAT}DEPFILES are something of a pain in that it's hard to |
| 1539 | # default their values the way we do for SER_HARDWIRE; in the future |
| 1540 | # maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other |
| 1541 | # variables analogous to SER_HARDWIRE which get defaulted in this |
| 1542 | # Makefile.in |
| 1543 | |
| 1544 | DEPFILES = $(TARGET_OBS) $(SER_HARDWIRE) $(NATDEPFILES) $(SIM_OBS) |
| 1545 | |
| 1546 | SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES) $(CONFIG_SRCS) |
| 1547 | # Don't include YYFILES (*.c) because we already include *.y in SFILES, |
| 1548 | # and it's more useful to see it in the .y file. |
| 1549 | TAGFILES_NO_SRCDIR = $(SFILES) $(HFILES_NO_SRCDIR) $(ALLDEPFILES) \ |
| 1550 | $(CONFIG_SRCS) |
| 1551 | TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR) |
| 1552 | |
| 1553 | COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \ |
| 1554 | mi/mi-common.o \ |
| 1555 | version.o \ |
| 1556 | xml-builtin.o \ |
| 1557 | $(patsubst %.c,%.o,$(COMMON_SFILES)) \ |
| 1558 | $(SUBDIR_CLI_OBS) \ |
| 1559 | $(SUBDIR_TARGET_OBS) \ |
| 1560 | $(SUBDIR_GCC_COMPILE_OBS) |
| 1561 | |
| 1562 | SUBDIRS = doc @subdirs@ data-directory |
| 1563 | CLEANDIRS = $(SUBDIRS) |
| 1564 | |
| 1565 | # List of subdirectories in the build tree that must exist. |
| 1566 | # This is used to force build failures in existing trees when |
| 1567 | # a new directory is added. |
| 1568 | # The format here is for the `case' shell command. |
| 1569 | REQUIRED_SUBDIRS = doc | testsuite | data-directory |
| 1570 | |
| 1571 | # Parser intermediate files. |
| 1572 | YYFILES = \ |
| 1573 | ada-exp.c \ |
| 1574 | ada-lex.c \ |
| 1575 | c-exp.c \ |
| 1576 | cp-name-parser.c \ |
| 1577 | d-exp.c \ |
| 1578 | f-exp.c \ |
| 1579 | go-exp.c \ |
| 1580 | m2-exp.c \ |
| 1581 | p-exp.c \ |
| 1582 | rust-exp.c |
| 1583 | |
| 1584 | # ada-lex.c is included by another file, so it shouldn't wind up as a |
| 1585 | # .o itself. |
| 1586 | YYOBJ = $(filter-out ada-lex.o,$(patsubst %.c,%.o,$(YYFILES))) |
| 1587 | |
| 1588 | # Things which need to be built when making a distribution. |
| 1589 | |
| 1590 | DISTSTUFF = $(YYFILES) |
| 1591 | |
| 1592 | |
| 1593 | # All generated files which can be included by another file. |
| 1594 | generated_files = \ |
| 1595 | ada-lex.c \ |
| 1596 | config.h \ |
| 1597 | jit-reader.h \ |
| 1598 | $(NAT_GENERATED_FILES) \ |
| 1599 | $(NM_H) |
| 1600 | |
| 1601 | # Flags needed to compile Python code |
| 1602 | PYTHON_CFLAGS = @PYTHON_CFLAGS@ |
| 1603 | |
| 1604 | all: gdb$(EXEEXT) $(CONFIG_ALL) gdb-gdb.py gdb-gdb.gdb |
| 1605 | @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do |
| 1606 | |
| 1607 | # Rule for compiling .c files in the top-level gdb directory. |
| 1608 | # The order-only dependencies ensure that we create the build subdirectories. |
| 1609 | %.o: %.c | $(CONFIG_DEP_SUBDIR) |
| 1610 | $(COMPILE) $< |
| 1611 | $(POSTCOMPILE) |
| 1612 | |
| 1613 | $(CONFIG_DEP_SUBDIR): |
| 1614 | $(SHELL) $(srcdir)/../mkinstalldirs $@ |
| 1615 | |
| 1616 | # Python files need special flags. |
| 1617 | python/%.o: INTERNAL_CFLAGS += $(PYTHON_CFLAGS) |
| 1618 | |
| 1619 | # Rules for compiling .c files in the various source subdirectories. |
| 1620 | %.o: $(srcdir)/gdbtk/generic/%.c |
| 1621 | $(COMPILE) $(all_gdbtk_cflags) $< |
| 1622 | $(POSTCOMPILE) |
| 1623 | |
| 1624 | installcheck: |
| 1625 | |
| 1626 | # The check target can not use subdir_do, because subdir_do does not |
| 1627 | # use TARGET_FLAGS_TO_PASS. |
| 1628 | check: force |
| 1629 | @if [ -f testsuite/Makefile ]; then \ |
| 1630 | rootme=`pwd`; export rootme; \ |
| 1631 | rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ |
| 1632 | cd testsuite; \ |
| 1633 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \ |
| 1634 | else true; fi |
| 1635 | |
| 1636 | check-perf: force |
| 1637 | @if [ -f testsuite/Makefile ]; then \ |
| 1638 | rootme=`pwd`; export rootme; \ |
| 1639 | rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ |
| 1640 | cd testsuite; \ |
| 1641 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check-perf; \ |
| 1642 | else true; fi |
| 1643 | |
| 1644 | check-read1: force |
| 1645 | @if [ -f testsuite/Makefile ]; then \ |
| 1646 | rootme=`pwd`; export rootme; \ |
| 1647 | rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ |
| 1648 | cd testsuite; \ |
| 1649 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check-read1; \ |
| 1650 | else true; fi |
| 1651 | |
| 1652 | check-parallel: force |
| 1653 | @if [ -f testsuite/Makefile ]; then \ |
| 1654 | rootme=`pwd`; export rootme; \ |
| 1655 | rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ |
| 1656 | cd testsuite; \ |
| 1657 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check-parallel; \ |
| 1658 | else true; fi |
| 1659 | |
| 1660 | # The idea is to parallelize testing of multilibs, for example: |
| 1661 | # make -j3 check//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu} |
| 1662 | # will run 3 concurrent sessions of check, eventually testing all 10 |
| 1663 | # combinations. GNU make is required for the % pattern to work, as is |
| 1664 | # a shell that expands alternations within braces. If GNU make is not |
| 1665 | # used, this rule will harmlessly fail to match. Used FORCE_PARALLEL to |
| 1666 | # prevent serialized checking due to the passed RUNTESTFLAGS. |
| 1667 | # FIXME: use config.status --config not --version, when available. |
| 1668 | check//%: force |
| 1669 | @if [ -f testsuite/config.status ]; then \ |
| 1670 | rootme=`pwd`; export rootme; \ |
| 1671 | rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ |
| 1672 | target=`echo "$@" | sed 's,//.*,,'`; \ |
| 1673 | variant=`echo "$@" | sed 's,^[^/]*//,,'`; \ |
| 1674 | vardots=`echo "$$variant" | sed 's,/,.,g'`; \ |
| 1675 | testdir=testsuite.$$vardots; \ |
| 1676 | if [ ! -f $$testdir/Makefile ] && [ -f testsuite/config.status ]; then \ |
| 1677 | configargs=`cd testsuite && ./config.status --version | \ |
| 1678 | sed -n -e 's,"$$,,' -e 's,^ *with options ",,p'`; \ |
| 1679 | $(SHELL) $(srcdir)/../mkinstalldirs $$testdir && \ |
| 1680 | (cd $$testdir && \ |
| 1681 | eval $(SHELL) "\"\$$rootsrc/testsuite/configure\" $$configargs" \ |
| 1682 | "\"--srcdir=\$$rootsrc/testsuite\"" \ |
| 1683 | ); \ |
| 1684 | else :; fi && cd $$testdir && \ |
| 1685 | $(MAKE) $(TARGET_FLAGS_TO_PASS) \ |
| 1686 | RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \ |
| 1687 | FORCE_PARALLEL=$(if $(FORCE_PARALLEL),1,$(if $(RUNTESTFLAGS),,1)) \ |
| 1688 | "$$target"; \ |
| 1689 | else true; fi |
| 1690 | |
| 1691 | # The set of headers checked by 'check-headers' by default. |
| 1692 | CHECK_HEADERS = $(HFILES_NO_SRCDIR) |
| 1693 | |
| 1694 | # Try to compile each header in isolation, thus ensuring headers are |
| 1695 | # self-contained. |
| 1696 | # |
| 1697 | # Defaults to checking all $HFILES_NO_SRCDIR headers. |
| 1698 | # |
| 1699 | # Do: |
| 1700 | # |
| 1701 | # make check-headers CHECK_HEADERS="header.h list.h" |
| 1702 | # |
| 1703 | # to check specific headers. |
| 1704 | # |
| 1705 | check-headers: |
| 1706 | @echo Checking headers. |
| 1707 | for i in $(CHECK_HEADERS) ; do \ |
| 1708 | $(CXX) $(CXX_DIALECT) -x c++-header -c -fsyntax-only \ |
| 1709 | $(INTERNAL_CFLAGS) -include defs.h $(srcdir)/$$i ; \ |
| 1710 | done |
| 1711 | .PHONY: check-headers |
| 1712 | |
| 1713 | info install-info clean-info dvi pdf install-pdf html install-html: force |
| 1714 | @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do |
| 1715 | |
| 1716 | # Traditionally "install" depends on "all". But it may be useful |
| 1717 | # not to; for example, if the user has made some trivial change to a |
| 1718 | # source file and doesn't care about rebuilding or just wants to save the |
| 1719 | # time it takes for make to check that all is up to date. |
| 1720 | # install-only is intended to address that need. |
| 1721 | install: all |
| 1722 | @$(MAKE) $(FLAGS_TO_PASS) install-only |
| 1723 | |
| 1724 | install-only: $(CONFIG_INSTALL) |
| 1725 | transformed_name=`t='$(program_transform_name)'; \ |
| 1726 | echo gdb | sed -e "$$t"` ; \ |
| 1727 | if test "x$$transformed_name" = x; then \ |
| 1728 | transformed_name=gdb ; \ |
| 1729 | else \ |
| 1730 | true ; \ |
| 1731 | fi ; \ |
| 1732 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \ |
| 1733 | $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) gdb$(EXEEXT) \ |
| 1734 | $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \ |
| 1735 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(includedir)/gdb ; \ |
| 1736 | $(INSTALL_DATA) jit-reader.h $(DESTDIR)$(includedir)/gdb/jit-reader.h |
| 1737 | if test "x$(HAVE_NATIVE_GCORE_TARGET)$(HAVE_NATIVE_GCORE_HOST)" != x; \ |
| 1738 | then \ |
| 1739 | transformed_name=`t='$(program_transform_name)'; \ |
| 1740 | echo gcore | sed -e "$$t"` ; \ |
| 1741 | if test "x$$transformed_name" = x; then \ |
| 1742 | transformed_name=gcore ; \ |
| 1743 | else \ |
| 1744 | true ; \ |
| 1745 | fi ; \ |
| 1746 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \ |
| 1747 | $(INSTALL_SCRIPT) gcore \ |
| 1748 | $(DESTDIR)$(bindir)/$$transformed_name; \ |
| 1749 | fi |
| 1750 | transformed_name=`t='$(program_transform_name)'; \ |
| 1751 | echo gdb-add-index | sed -e "$$t"` ; \ |
| 1752 | if test "x$$transformed_name" = x; then \ |
| 1753 | transformed_name=gdb-add-index ; \ |
| 1754 | else \ |
| 1755 | true ; \ |
| 1756 | fi ; \ |
| 1757 | $(INSTALL_SCRIPT) $(srcdir)/contrib/gdb-add-index.sh \ |
| 1758 | $(DESTDIR)$(bindir)/$$transformed_name |
| 1759 | @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do |
| 1760 | |
| 1761 | install-strip: |
| 1762 | $(MAKE) $(FLAGS_TO_PASS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
| 1763 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ |
| 1764 | `test -z '$(STRIP)' || \ |
| 1765 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install-only |
| 1766 | |
| 1767 | install-guile: |
| 1768 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/guile/gdb |
| 1769 | |
| 1770 | install-python: |
| 1771 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb |
| 1772 | |
| 1773 | uninstall: force $(CONFIG_UNINSTALL) |
| 1774 | transformed_name=`t='$(program_transform_name)'; \ |
| 1775 | echo gdb | sed -e $$t` ; \ |
| 1776 | if test "x$$transformed_name" = x; then \ |
| 1777 | transformed_name=gdb ; \ |
| 1778 | else \ |
| 1779 | true ; \ |
| 1780 | fi ; \ |
| 1781 | rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) \ |
| 1782 | $(DESTDIR)$(man1dir)/$$transformed_name.1 |
| 1783 | if test "x$(HAVE_NATIVE_GCORE_TARGET)$(HAVE_NATIVE_GCORE_HOST)" != x; \ |
| 1784 | then \ |
| 1785 | transformed_name=`t='$(program_transform_name)'; \ |
| 1786 | echo gcore | sed -e "$$t"` ; \ |
| 1787 | if test "x$$transformed_name" = x; then \ |
| 1788 | transformed_name=gcore ; \ |
| 1789 | else \ |
| 1790 | true ; \ |
| 1791 | fi ; \ |
| 1792 | rm -f $(DESTDIR)$(bindir)/$$transformed_name; \ |
| 1793 | fi |
| 1794 | @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do |
| 1795 | |
| 1796 | # The C++ name parser can be built standalone for testing. |
| 1797 | test-cp-name-parser.o: cp-name-parser.c |
| 1798 | $(COMPILE) -DTEST_CPNAMES cp-name-parser.c |
| 1799 | $(POSTCOMPILE) |
| 1800 | |
| 1801 | test-cp-name-parser$(EXEEXT): test-cp-name-parser.o $(LIBIBERTY) |
| 1802 | $(ECHO_CXXLD) $(CC_LD) $(INTERNAL_LDFLAGS) \ |
| 1803 | -o test-cp-name-parser$(EXEEXT) test-cp-name-parser.o \ |
| 1804 | $(LIBIBERTY) |
| 1805 | |
| 1806 | # We do this by grepping through sources. If that turns out to be too slow, |
| 1807 | # maybe we could just require every .o file to have an initialization routine |
| 1808 | # of a given name (top.o -> _initialize_top, etc.). |
| 1809 | # |
| 1810 | # Formatting conventions: The name of the _initialize_* routines must start |
| 1811 | # in column zero, and must not be inside #if. |
| 1812 | # |
| 1813 | # Note that the set of files with init functions might change, or the names |
| 1814 | # of the functions might change, so this files needs to depend on all the |
| 1815 | # source files that will be linked into gdb. However, due to the way |
| 1816 | # this Makefile has generally been written, we do this indirectly, by |
| 1817 | # computing the list of source files from the list of object files. |
| 1818 | |
| 1819 | INIT_FILES = \ |
| 1820 | $(patsubst %.o,%.c, \ |
| 1821 | $(patsubst %-exp.o,%-exp.y, \ |
| 1822 | $(filter-out init.o version.o %_S.o %_U.o,\ |
| 1823 | $(COMMON_OBS)))) |
| 1824 | |
| 1825 | init.c: stamp-init; @true |
| 1826 | stamp-init: $(INIT_FILES) |
| 1827 | @$(ECHO_INIT_C) echo "Making init.c" |
| 1828 | @rm -f init.c-tmp init.l-tmp |
| 1829 | @touch init.c-tmp |
| 1830 | @-for f in $(INIT_FILES); do \ |
| 1831 | sed -n -e 's/^_initialize_\([a-z_0-9A-Z]*\).*/\1/p' \ |
| 1832 | $(srcdir)/$$f 2>/dev/null; \ |
| 1833 | done > init.l-tmp |
| 1834 | @echo '/* Do not modify this file. */' >>init.c-tmp |
| 1835 | @echo '/* It is created automatically by the Makefile. */'>>init.c-tmp |
| 1836 | @echo '#include "defs.h" /* For initialize_file_ftype. */' >>init.c-tmp |
| 1837 | @echo 'extern void initialize_all_files(void);' >>init.c-tmp |
| 1838 | @sed -e 's/\(.*\)/extern initialize_file_ftype _initialize_\1;/' <init.l-tmp >>init.c-tmp |
| 1839 | @echo 'void' >>init.c-tmp |
| 1840 | @echo 'initialize_all_files (void)' >>init.c-tmp |
| 1841 | @echo '{' >>init.c-tmp |
| 1842 | @sed -e 's/\(.*\)/ _initialize_\1 ();/' <init.l-tmp >>init.c-tmp |
| 1843 | @echo '}' >>init.c-tmp |
| 1844 | @$(SHELL) $(srcdir)/../move-if-change init.c-tmp init.c |
| 1845 | @echo stamp > stamp-init |
| 1846 | |
| 1847 | .PRECIOUS: init.c |
| 1848 | |
| 1849 | # Create a library of the gdb object files and build GDB by linking |
| 1850 | # against that. |
| 1851 | # |
| 1852 | # init.o is very important. It pulls in the rest of GDB. |
| 1853 | LIBGDB_OBS = $(sort $(COMMON_OBS)) init.o |
| 1854 | libgdb.a: $(LIBGDB_OBS) |
| 1855 | -rm -f libgdb.a |
| 1856 | $(AR) q libgdb.a $(LIBGDB_OBS) |
| 1857 | $(RANLIB) libgdb.a |
| 1858 | |
| 1859 | # Removing the old gdb first works better if it is running, at least on SunOS. |
| 1860 | gdb$(EXEEXT): gdb.o $(LIBGDB_OBS) $(CDEPS) $(TDEPLIBS) |
| 1861 | $(SILENCE) rm -f gdb$(EXEEXT) |
| 1862 | $(ECHO_CXXLD) $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \ |
| 1863 | -o gdb$(EXEEXT) gdb.o $(LIBGDB_OBS) \ |
| 1864 | $(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES) |
| 1865 | ifneq ($(CODESIGN_CERT),) |
| 1866 | $(ECHO_SIGN) $(CODESIGN) -s $(CODESIGN_CERT) gdb$(EXEEXT) |
| 1867 | endif |
| 1868 | |
| 1869 | # Convenience rule to handle recursion. |
| 1870 | .PHONY: all-data-directory |
| 1871 | all-data-directory: data-directory/Makefile |
| 1872 | @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=data-directory subdir_do |
| 1873 | |
| 1874 | # This is useful when debugging GDB, because some Unix's don't let you run GDB |
| 1875 | # on itself without copying the executable. So "make gdb1" will make |
| 1876 | # gdb and put a copy in gdb1, and you can run it with "gdb gdb1". |
| 1877 | # Removing gdb1 before the copy is the right thing if gdb1 is open |
| 1878 | # in another process. |
| 1879 | gdb1$(EXEEXT): gdb$(EXEEXT) |
| 1880 | rm -f gdb1$(EXEEXT) |
| 1881 | cp gdb$(EXEEXT) gdb1$(EXEEXT) |
| 1882 | |
| 1883 | # Put the proper machine-specific files first, so M-. on a machine |
| 1884 | # specific routine gets the one for the correct machine. (FIXME: those |
| 1885 | # files go in twice; we should be removing them from the main list). |
| 1886 | |
| 1887 | # TAGS depends on all the files that go into it so you can rebuild TAGS |
| 1888 | # with `make TAGS' and not have to say `rm TAGS' first. |
| 1889 | |
| 1890 | GDB_NM_FILE = @GDB_NM_FILE@ |
| 1891 | TAGS: $(TAGFILES_NO_SRCDIR) $(TAGFILES_WITH_SRCDIR) |
| 1892 | @echo Making TAGS |
| 1893 | etags `(test -n "$(GDB_NM_FILE)" && echo "$(srcdir)/$(GDB_NM_FILE)")` \ |
| 1894 | `(for i in $(DEPFILES) $(TAGFILES_NO_SRCDIR); do \ |
| 1895 | echo $(srcdir)/$$i ; \ |
| 1896 | done ; for i in $(TAGFILES_WITH_SRCDIR); do \ |
| 1897 | echo $$i ; \ |
| 1898 | done) | sed -e 's/\.o$$/\.c/'` \ |
| 1899 | `find $(srcdir)/config -name '*.h' -print` |
| 1900 | |
| 1901 | tags: TAGS |
| 1902 | |
| 1903 | clean mostlyclean: $(CONFIG_CLEAN) |
| 1904 | @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(CLEANDIRS)" subdir_do |
| 1905 | rm -f *.o *.a *~ init.c-tmp init.l-tmp version.c-tmp |
| 1906 | rm -f init.c stamp-init version.c stamp-version |
| 1907 | rm -f gdb$(EXEEXT) core make.log |
| 1908 | rm -f gdb[0-9]$(EXEEXT) |
| 1909 | rm -f test-cp-name-parser$(EXEEXT) |
| 1910 | rm -f xml-builtin.c stamp-xml |
| 1911 | rm -f $(DEPDIR)/* |
| 1912 | for i in $(CONFIG_SRC_SUBDIR); do \ |
| 1913 | rm -f $$i/*.o; \ |
| 1914 | rm -f $$i/$(DEPDIR)/*; \ |
| 1915 | done |
| 1916 | |
| 1917 | # This used to depend on c-exp.c m2-exp.c TAGS |
| 1918 | # I believe this is wrong; the makefile standards for distclean just |
| 1919 | # describe removing files; the only sort of "re-create a distribution" |
| 1920 | # functionality described is if the distributed files are unmodified. |
| 1921 | distclean: clean |
| 1922 | @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(CLEANDIRS)" subdir_do |
| 1923 | rm -f nm.h config.status config.h stamp-h b jit-reader.h |
| 1924 | rm -f gdb-gdb.py gdb-gdb.gdb |
| 1925 | rm -f y.output yacc.acts yacc.tmp y.tab.h |
| 1926 | rm -f config.log config.cache |
| 1927 | rm -f Makefile |
| 1928 | rm -rf $(DEPDIR) |
| 1929 | for i in $(CONFIG_SRC_SUBDIR); do \ |
| 1930 | if test -d $$i/$(DEPDIR); then rmdir $$i/$(DEPDIR); fi \ |
| 1931 | done |
| 1932 | |
| 1933 | maintainer-clean: local-maintainer-clean do-maintainer-clean distclean |
| 1934 | realclean: maintainer-clean |
| 1935 | |
| 1936 | local-maintainer-clean: |
| 1937 | @echo "This command is intended for maintainers to use;" |
| 1938 | @echo "it deletes files that may require special tools to rebuild." |
| 1939 | rm -f c-exp.c \ |
| 1940 | cp-name-parser.c \ |
| 1941 | ada-lex.c ada-exp.c \ |
| 1942 | d-exp.c f-exp.c go-exp.c m2-exp.c p-exp.c rust-exp.c |
| 1943 | rm -f TAGS |
| 1944 | rm -f $(YYFILES) |
| 1945 | rm -f nm.h config.status |
| 1946 | |
| 1947 | do-maintainer-clean: |
| 1948 | @$(MAKE) $(FLAGS_TO_PASS) DO=maintainer-clean "DODIRS=$(CLEANDIRS)" \ |
| 1949 | subdir_do |
| 1950 | |
| 1951 | diststuff: $(DISTSTUFF) $(PACKAGE).pot $(CATALOGS) |
| 1952 | cd doc; $(MAKE) $(MFLAGS) diststuff |
| 1953 | |
| 1954 | subdir_do: force |
| 1955 | @for i in $(DODIRS); do \ |
| 1956 | case $$i in \ |
| 1957 | $(REQUIRED_SUBDIRS)) \ |
| 1958 | if [ ! -f ./$$i/Makefile ] ; then \ |
| 1959 | echo "Missing $$i/Makefile" >&2 ; \ |
| 1960 | exit 1 ; \ |
| 1961 | fi ;; \ |
| 1962 | esac ; \ |
| 1963 | if [ -f ./$$i/Makefile ] ; then \ |
| 1964 | if (cd ./$$i; \ |
| 1965 | $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ |
| 1966 | else exit 1 ; fi ; \ |
| 1967 | else true ; fi ; \ |
| 1968 | done |
| 1969 | |
| 1970 | Makefile: Makefile.in config.status |
| 1971 | $(SHELL) config.status $@ |
| 1972 | |
| 1973 | data-directory/Makefile: data-directory/Makefile.in config.status |
| 1974 | $(SHELL) config.status $@ |
| 1975 | |
| 1976 | .PHONY: run |
| 1977 | run: Makefile |
| 1978 | ./gdb$(EXEEXT) --data-directory=`pwd`/data-directory $(GDBFLAGS) |
| 1979 | |
| 1980 | jit-reader.h: $(srcdir)/jit-reader.in |
| 1981 | $(SHELL) config.status $@ |
| 1982 | |
| 1983 | gcore: $(srcdir)/gcore.in |
| 1984 | $(SHELL) config.status $@ |
| 1985 | |
| 1986 | gdb-gdb.py: $(srcdir)/gdb-gdb.py.in |
| 1987 | $(SHELL) config.status $@ |
| 1988 | |
| 1989 | gdb-gdb.gdb: $(srcdir)/gdb-gdb.gdb.in |
| 1990 | $(SHELL) config.status $@ |
| 1991 | |
| 1992 | config.h: stamp-h ; @true |
| 1993 | stamp-h: $(srcdir)/config.in config.status |
| 1994 | $(SHELL) config.status config.h |
| 1995 | |
| 1996 | nm.h: stamp-nmh ; @true |
| 1997 | stamp-nmh: config.status |
| 1998 | $(SHELL) config.status nm.h |
| 1999 | |
| 2000 | config.status: $(srcdir)/configure configure.nat configure.tgt configure.host ../bfd/development.sh |
| 2001 | $(SHELL) config.status --recheck |
| 2002 | |
| 2003 | ACLOCAL = aclocal |
| 2004 | ACLOCAL_AMFLAGS = -I ../config |
| 2005 | |
| 2006 | # Keep these in sync with the includes in acinclude.m4. |
| 2007 | aclocal_m4_deps = \ |
| 2008 | configure.ac \ |
| 2009 | acx_configure_dir.m4 \ |
| 2010 | transform.m4 \ |
| 2011 | ../bfd/bfd.m4 \ |
| 2012 | ../config/acinclude.m4 \ |
| 2013 | ../config/enable.m4 \ |
| 2014 | ../config/plugins.m4 \ |
| 2015 | ../config/lead-dot.m4 \ |
| 2016 | ../config/override.m4 \ |
| 2017 | ../config/largefile.m4 \ |
| 2018 | ../config/gettext-sister.m4 \ |
| 2019 | ../config/lib-ld.m4 \ |
| 2020 | ../config/lib-prefix.m4 \ |
| 2021 | ../config/lib-link.m4 \ |
| 2022 | ../config/acx.m4 \ |
| 2023 | ../config/tcl.m4 \ |
| 2024 | ../config/depstand.m4 \ |
| 2025 | ../config/lcmessage.m4 \ |
| 2026 | ../config/codeset.m4 \ |
| 2027 | ../config/zlib.m4 \ |
| 2028 | ../config/ax_pthread.m4 |
| 2029 | |
| 2030 | $(srcdir)/aclocal.m4: @MAINTAINER_MODE_TRUE@ $(aclocal_m4_deps) |
| 2031 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
| 2032 | |
| 2033 | AUTOCONF = autoconf |
| 2034 | configure_deps = $(srcdir)/configure.ac $(srcdir)/aclocal.m4 |
| 2035 | $(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(configure_deps) |
| 2036 | cd $(srcdir) && $(AUTOCONF) |
| 2037 | |
| 2038 | AUTOHEADER = autoheader |
| 2039 | $(srcdir)/config.in: @MAINTAINER_MODE_TRUE@ $(configure_deps) |
| 2040 | cd $(srcdir) && $(AUTOHEADER) |
| 2041 | rm -f stamp-h |
| 2042 | touch $@ |
| 2043 | |
| 2044 | # automatic rebuilding in automake-generated Makefiles requires |
| 2045 | # this rule in the toplevel Makefile, which, with GNU make, causes |
| 2046 | # the desired updates through the implicit regeneration of the Makefile |
| 2047 | # and all of its prerequisites. |
| 2048 | am--refresh: |
| 2049 | @: |
| 2050 | |
| 2051 | force: |
| 2052 | |
| 2053 | # Documentation! |
| 2054 | # GDB QUICK REFERENCE (TeX dvi file, CM fonts) |
| 2055 | doc/refcard.dvi: |
| 2056 | cd doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS) |
| 2057 | |
| 2058 | # GDB QUICK REFERENCE (PostScript output, common PS fonts) |
| 2059 | doc/refcard.ps: |
| 2060 | cd doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS) |
| 2061 | |
| 2062 | # GDB MANUAL: TeX dvi file |
| 2063 | doc/gdb.dvi: |
| 2064 | cd doc; $(MAKE) gdb.dvi $(FLAGS_TO_PASS) |
| 2065 | |
| 2066 | # GDB MANUAL: info file |
| 2067 | doc/gdb.info: |
| 2068 | cd doc; $(MAKE) gdb.info $(FLAGS_TO_PASS) |
| 2069 | |
| 2070 | # Make copying.c from COPYING |
| 2071 | $(srcdir)/copying.c: @MAINTAINER_MODE_TRUE@ $(srcdir)/../COPYING3 $(srcdir)/copying.awk |
| 2072 | awk -f $(srcdir)/copying.awk \ |
| 2073 | < $(srcdir)/../COPYING3 > $(srcdir)/copying.tmp |
| 2074 | mv $(srcdir)/copying.tmp $(srcdir)/copying.c |
| 2075 | |
| 2076 | version.c: stamp-version; @true |
| 2077 | # Note that the obvious names for the temp file are taken by |
| 2078 | # create-version.sh. |
| 2079 | stamp-version: Makefile version.in $(srcdir)/../bfd/version.h $(srcdir)/../gdbsupport/create-version.sh |
| 2080 | $(ECHO_GEN) $(SHELL) $(srcdir)/../gdbsupport/create-version.sh $(srcdir) \ |
| 2081 | $(host_alias) $(target_alias) version-t.t |
| 2082 | @$(SHELL) $(srcdir)/../move-if-change version-t.t version.c |
| 2083 | @echo stamp > stamp-version |
| 2084 | |
| 2085 | |
| 2086 | gdb.cxref: $(SFILES) |
| 2087 | cxref -I. $(SFILES) >gdb.cxref |
| 2088 | |
| 2089 | force_update: |
| 2090 | |
| 2091 | # GNU Make has an annoying habit of putting *all* the Makefile variables |
| 2092 | # into the environment, unless you include this target as a circumvention. |
| 2093 | # Rumor is that this will be fixed (and this target can be removed) |
| 2094 | # in GNU Make 4.0. |
| 2095 | .NOEXPORT: |
| 2096 | |
| 2097 | # GNU Make 3.63 has a different problem: it keeps tacking command line |
| 2098 | # overrides onto the definition of $(MAKE). This variable setting |
| 2099 | # will remove them. |
| 2100 | MAKEOVERRIDES = |
| 2101 | |
| 2102 | ALLDEPFILES = \ |
| 2103 | aarch32-tdep.c \ |
| 2104 | aarch64-fbsd-nat.c \ |
| 2105 | aarch64-fbsd-tdep.c \ |
| 2106 | aarch64-linux-nat.c \ |
| 2107 | aarch64-linux-tdep.c \ |
| 2108 | aarch64-newlib-tdep.c \ |
| 2109 | aarch64-ravenscar-thread.c \ |
| 2110 | aarch64-tdep.c \ |
| 2111 | aix-thread.c \ |
| 2112 | alpha-bsd-nat.c \ |
| 2113 | alpha-bsd-tdep.c \ |
| 2114 | alpha-linux-nat.c \ |
| 2115 | alpha-linux-tdep.c \ |
| 2116 | alpha-mdebug-tdep.c \ |
| 2117 | alpha-nbsd-tdep.c \ |
| 2118 | alpha-obsd-tdep.c \ |
| 2119 | alpha-tdep.c \ |
| 2120 | amd64-bsd-nat.c \ |
| 2121 | amd64-darwin-tdep.c \ |
| 2122 | amd64-dicos-tdep.c \ |
| 2123 | amd64-fbsd-nat.c \ |
| 2124 | amd64-fbsd-tdep.c \ |
| 2125 | amd64-linux-nat.c \ |
| 2126 | amd64-linux-tdep.c \ |
| 2127 | amd64-nat.c \ |
| 2128 | amd64-nbsd-nat.c \ |
| 2129 | amd64-nbsd-tdep.c \ |
| 2130 | amd64-obsd-nat.c \ |
| 2131 | amd64-obsd-tdep.c \ |
| 2132 | amd64-sol2-tdep.c \ |
| 2133 | amd64-tdep.c \ |
| 2134 | arc-tdep.c \ |
| 2135 | arm.c \ |
| 2136 | arm-bsd-tdep.c \ |
| 2137 | arm-fbsd-nat.c \ |
| 2138 | arm-fbsd-tdep.c \ |
| 2139 | arm-get-next-pcs.c \ |
| 2140 | arm-linux.c \ |
| 2141 | arm-linux-nat.c \ |
| 2142 | arm-linux-tdep.c \ |
| 2143 | arm-nbsd-nat.c \ |
| 2144 | arm-nbsd-tdep.c \ |
| 2145 | arm-obsd-tdep.c \ |
| 2146 | arm-symbian-tdep.c \ |
| 2147 | arm-tdep.c \ |
| 2148 | avr-tdep.c \ |
| 2149 | bfin-linux-tdep.c \ |
| 2150 | bfin-tdep.c \ |
| 2151 | bpf-tdep.c \ |
| 2152 | bsd-kvm.c \ |
| 2153 | bsd-uthread.c \ |
| 2154 | csky-linux-tdep.c \ |
| 2155 | csky-tdep.c \ |
| 2156 | darwin-nat.c \ |
| 2157 | dicos-tdep.c \ |
| 2158 | fbsd-nat.c \ |
| 2159 | fbsd-tdep.c \ |
| 2160 | fork-child.c \ |
| 2161 | ft32-tdep.c \ |
| 2162 | glibc-tdep.c \ |
| 2163 | go32-nat.c \ |
| 2164 | h8300-tdep.c \ |
| 2165 | hppa-bsd-tdep.c \ |
| 2166 | hppa-linux-nat.c \ |
| 2167 | hppa-linux-tdep.c \ |
| 2168 | hppa-nbsd-nat.c \ |
| 2169 | hppa-nbsd-tdep.c \ |
| 2170 | hppa-obsd-nat.c \ |
| 2171 | hppa-obsd-tdep.c \ |
| 2172 | hppa-tdep.c \ |
| 2173 | i386-bsd-nat.c \ |
| 2174 | i386-bsd-tdep.c \ |
| 2175 | i386-darwin-nat.c \ |
| 2176 | i386-darwin-tdep.c \ |
| 2177 | i386-dicos-tdep.c \ |
| 2178 | i386-fbsd-nat.c \ |
| 2179 | i386-fbsd-tdep.c \ |
| 2180 | i386-gnu-nat.c \ |
| 2181 | i386-gnu-tdep.c \ |
| 2182 | i386-linux-nat.c \ |
| 2183 | i386-linux-tdep.c \ |
| 2184 | i386-nbsd-nat.c \ |
| 2185 | i386-nbsd-tdep.c \ |
| 2186 | i386-obsd-nat.c \ |
| 2187 | i386-obsd-tdep.c \ |
| 2188 | i386-sol2-nat.c \ |
| 2189 | i386-sol2-tdep.c \ |
| 2190 | i386-tdep.c \ |
| 2191 | i386-windows-tdep.c \ |
| 2192 | i387-tdep.c \ |
| 2193 | ia64-libunwind-tdep.c \ |
| 2194 | ia64-linux-nat.c \ |
| 2195 | ia64-linux-tdep.c \ |
| 2196 | ia64-tdep.c \ |
| 2197 | ia64-vms-tdep.c \ |
| 2198 | inf-ptrace.c \ |
| 2199 | linux-fork.c \ |
| 2200 | linux-record.c \ |
| 2201 | linux-tdep.c \ |
| 2202 | lm32-tdep.c \ |
| 2203 | m32r-linux-nat.c \ |
| 2204 | m32r-linux-tdep.c \ |
| 2205 | m32r-tdep.c \ |
| 2206 | m68hc11-tdep.c \ |
| 2207 | m68k-bsd-nat.c \ |
| 2208 | m68k-bsd-tdep.c \ |
| 2209 | m68k-linux-nat.c \ |
| 2210 | m68k-linux-tdep.c \ |
| 2211 | m68k-tdep.c \ |
| 2212 | microblaze-linux-tdep.c \ |
| 2213 | microblaze-tdep.c \ |
| 2214 | mingw-hdep.c \ |
| 2215 | mips-fbsd-nat.c \ |
| 2216 | mips-fbsd-tdep.c \ |
| 2217 | mips-linux-nat.c \ |
| 2218 | mips-linux-tdep.c \ |
| 2219 | mips-nbsd-nat.c \ |
| 2220 | mips-nbsd-tdep.c \ |
| 2221 | mips-sde-tdep.c \ |
| 2222 | mips-tdep.c \ |
| 2223 | mips64-obsd-nat.c \ |
| 2224 | mips64-obsd-tdep.c \ |
| 2225 | msp430-tdep.c \ |
| 2226 | nbsd-nat.c \ |
| 2227 | nbsd-tdep.c \ |
| 2228 | nds32-tdep.c \ |
| 2229 | nios2-linux-tdep.c \ |
| 2230 | nios2-tdep.c \ |
| 2231 | obsd-nat.c \ |
| 2232 | obsd-tdep.c \ |
| 2233 | posix-hdep.c \ |
| 2234 | ppc-fbsd-nat.c \ |
| 2235 | ppc-fbsd-tdep.c \ |
| 2236 | ppc-linux-nat.c \ |
| 2237 | ppc-linux-tdep.c \ |
| 2238 | ppc-nbsd-nat.c \ |
| 2239 | ppc-nbsd-tdep.c \ |
| 2240 | ppc-obsd-nat.c \ |
| 2241 | ppc-obsd-tdep.c \ |
| 2242 | ppc-ravenscar-thread.c \ |
| 2243 | ppc-sysv-tdep.c \ |
| 2244 | ppc64-tdep.c \ |
| 2245 | procfs.c \ |
| 2246 | ravenscar-thread.c \ |
| 2247 | remote-sim.c \ |
| 2248 | riscv-fbsd-nat.c \ |
| 2249 | riscv-fbsd-tdep.c \ |
| 2250 | riscv-linux-nat.c \ |
| 2251 | riscv-linux-tdep.c \ |
| 2252 | riscv-ravenscar-thread.c \ |
| 2253 | riscv-tdep.c \ |
| 2254 | rl78-tdep.c \ |
| 2255 | rs6000-lynx178-tdep.c \ |
| 2256 | rs6000-nat.c \ |
| 2257 | rs6000-tdep.c \ |
| 2258 | rx-tdep.c \ |
| 2259 | s390-linux-nat.c \ |
| 2260 | s390-linux-tdep.c \ |
| 2261 | s390-tdep.c \ |
| 2262 | score-tdep.c \ |
| 2263 | ser-go32.c \ |
| 2264 | ser-mingw.c \ |
| 2265 | ser-pipe.c \ |
| 2266 | ser-tcp.c \ |
| 2267 | ser-uds.c \ |
| 2268 | sh-nbsd-nat.c \ |
| 2269 | sh-nbsd-tdep.c \ |
| 2270 | sh-tdep.c \ |
| 2271 | sol2-tdep.c \ |
| 2272 | solib-aix.c \ |
| 2273 | solib-svr4.c \ |
| 2274 | sparc-linux-nat.c \ |
| 2275 | sparc-linux-tdep.c \ |
| 2276 | sparc-nat.c \ |
| 2277 | sparc-nbsd-nat.c \ |
| 2278 | sparc-nbsd-tdep.c \ |
| 2279 | sparc-obsd-tdep.c \ |
| 2280 | sparc-ravenscar-thread.c \ |
| 2281 | sparc-sol2-nat.c \ |
| 2282 | sparc-sol2-tdep.c \ |
| 2283 | sparc-tdep.c \ |
| 2284 | sparc64-fbsd-nat.c \ |
| 2285 | sparc64-fbsd-tdep.c \ |
| 2286 | sparc64-linux-nat.c \ |
| 2287 | sparc64-linux-tdep.c \ |
| 2288 | sparc64-nat.c \ |
| 2289 | sparc64-nbsd-nat.c \ |
| 2290 | sparc64-nbsd-tdep.c \ |
| 2291 | sparc64-obsd-nat.c \ |
| 2292 | sparc64-obsd-tdep.c \ |
| 2293 | sparc64-sol2-tdep.c \ |
| 2294 | sparc64-tdep.c \ |
| 2295 | tilegx-linux-nat.c \ |
| 2296 | tilegx-linux-tdep.c \ |
| 2297 | tilegx-tdep.c \ |
| 2298 | v850-tdep.c \ |
| 2299 | vax-bsd-nat.c \ |
| 2300 | vax-nbsd-tdep.c \ |
| 2301 | vax-tdep.c \ |
| 2302 | windows-nat.c \ |
| 2303 | windows-tdep.c \ |
| 2304 | x86-nat.c \ |
| 2305 | x86-tdep.c \ |
| 2306 | xcoffread.c \ |
| 2307 | xstormy16-tdep.c \ |
| 2308 | xtensa-config.c \ |
| 2309 | xtensa-linux-nat.c \ |
| 2310 | xtensa-linux-tdep.c \ |
| 2311 | xtensa-tdep.c \ |
| 2312 | xtensa-xtregs.c |
| 2313 | |
| 2314 | # Some files need explicit build rules (due to -Werror problems) or due |
| 2315 | # to sub-directory fun 'n' games. |
| 2316 | |
| 2317 | # ada-exp.c can appear in srcdir, for releases; or in ., for |
| 2318 | # development builds. |
| 2319 | ADA_EXP_C = `if test -f ada-exp.c; then echo ada-exp.c; else echo $(srcdir)/ada-exp.c; fi` |
| 2320 | |
| 2321 | ada-exp.o: ada-exp.c |
| 2322 | $(COMPILE) $(ADA_EXP_C) |
| 2323 | $(POSTCOMPILE) |
| 2324 | |
| 2325 | # Message files. Based on code in gcc/Makefile.in. |
| 2326 | |
| 2327 | # Rules for generating translated message descriptions. Disabled by |
| 2328 | # autoconf if the tools are not available. |
| 2329 | |
| 2330 | .PHONY: all-po install-po uninstall-po clean-po update-po $(PACKAGE).pot |
| 2331 | |
| 2332 | all-po: $(CATALOGS) |
| 2333 | |
| 2334 | # This notation should be acceptable to all Make implementations used |
| 2335 | # by people who are interested in updating .po files. |
| 2336 | update-po: $(CATALOGS:.gmo=.pox) |
| 2337 | |
| 2338 | # N.B. We do not attempt to copy these into $(srcdir). The snapshot |
| 2339 | # script does that. |
| 2340 | %.gmo: %.po |
| 2341 | -test -d po || mkdir po |
| 2342 | $(GMSGFMT) --statistics -o $@ $< |
| 2343 | |
| 2344 | # The new .po has to be gone over by hand, so we deposit it into |
| 2345 | # build/po with a different extension. If build/po/$(PACKAGE).pot |
| 2346 | # exists, use it (it was just created), else use the one in srcdir. |
| 2347 | %.pox: %.po |
| 2348 | -test -d po || mkdir po |
| 2349 | $(MSGMERGE) $< `if test -f po/$(PACKAGE).pot; \ |
| 2350 | then echo po/$(PACKAGE).pot; \ |
| 2351 | else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@ |
| 2352 | |
| 2353 | # This rule has to look for .gmo modules in both srcdir and the cwd, |
| 2354 | # and has to check that we actually have a catalog for each language, |
| 2355 | # in case they weren't built or included with the distribution. |
| 2356 | install-po: |
| 2357 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(datadir) |
| 2358 | cats="$(CATALOGS)"; for cat in $$cats; do \ |
| 2359 | lang=`basename $$cat | sed 's/\.gmo$$//'`; \ |
| 2360 | if [ -f $$cat ]; then :; \ |
| 2361 | elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \ |
| 2362 | else continue; \ |
| 2363 | fi; \ |
| 2364 | dir=$(localedir)/$$lang/LC_MESSAGES; \ |
| 2365 | echo $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$$dir; \ |
| 2366 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$$dir || exit 1; \ |
| 2367 | echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ |
| 2368 | $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ |
| 2369 | done |
| 2370 | uninstall-po: |
| 2371 | cats="$(CATALOGS)"; for cat in $$cats; do \ |
| 2372 | lang=`basename $$cat | sed 's/\.gmo$$//'`; \ |
| 2373 | if [ -f $$cat ]; then :; \ |
| 2374 | elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \ |
| 2375 | else continue; \ |
| 2376 | fi; \ |
| 2377 | dir=$(localedir)/$$lang/LC_MESSAGES; \ |
| 2378 | rm -f $(DESTDIR)$$dir/$(PACKAGE).mo; \ |
| 2379 | done |
| 2380 | # Delete po/*.gmo only if we are not building in the source directory. |
| 2381 | clean-po: |
| 2382 | -if [ ! -f Makefile.in ]; then rm -f po/*.gmo; fi |
| 2383 | |
| 2384 | # Rule for regenerating the message template (gdb.pot). Instead of |
| 2385 | # forcing everyone to edit POTFILES.in, which proved impractical, this |
| 2386 | # rule has no dependencies and always regenerates gdb.pot. This is |
| 2387 | # relatively harmless since the .po files do not directly depend on |
| 2388 | # it. The .pot file is left in the build directory. Since GDB's |
| 2389 | # Makefile lacks a cannonical list of sources (missing xm, tm and nm |
| 2390 | # files) force this rule. |
| 2391 | $(PACKAGE).pot: po/$(PACKAGE).pot |
| 2392 | po/$(PACKAGE).pot: force |
| 2393 | -test -d po || mkdir po |
| 2394 | sh -e $(srcdir)/po/gdbtext $(XGETTEXT) $(PACKAGE) . $(srcdir) |
| 2395 | |
| 2396 | |
| 2397 | # |
| 2398 | # YACC/LEX dependencies |
| 2399 | # |
| 2400 | # LANG-exp.c is generated in objdir from LANG-exp.y if it doesn't |
| 2401 | # exist in srcdir, then compiled in objdir to LANG-exp.o. If we |
| 2402 | # said LANG-exp.c rather than ./c-exp.c some makes would |
| 2403 | # sometimes re-write it into $(srcdir)/c-exp.c. Remove bogus |
| 2404 | # decls for malloc/realloc/free which conflict with everything else. |
| 2405 | # Strictly speaking c-exp.c should therefore depend on |
| 2406 | # Makefile.in, but that was a pretty big annoyance. |
| 2407 | |
| 2408 | %.c: %.y |
| 2409 | $(ECHO_YACC) $(SHELL) $(YLWRAP) $< y.tab.c $@.tmp -- \ |
| 2410 | $(YACC) $(YFLAGS) || (rm -f $@.tmp; false) |
| 2411 | @sed -e '/extern.*malloc/d' \ |
| 2412 | -e '/extern.*realloc/d' \ |
| 2413 | -e '/extern.*free/d' \ |
| 2414 | -e '/include.*malloc.h/d' \ |
| 2415 | -e 's/\([^x]\)malloc/\1xmalloc/g' \ |
| 2416 | -e 's/\([^x]\)realloc/\1xrealloc/g' \ |
| 2417 | -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \ |
| 2418 | -e 's/\([ \t;,(]\)free$$/\1xfree/g' \ |
| 2419 | -e '/^#line.*y.tab.c/d' \ |
| 2420 | -e 's/YY_NULL/YY_NULLPTR/g' \ |
| 2421 | < $@.tmp > $@.new && \ |
| 2422 | rm -f $@.tmp && \ |
| 2423 | mv $@.new $@ |
| 2424 | %.c: %.l |
| 2425 | $(ECHO_LEX) $(FLEX) -t $< \ |
| 2426 | | sed -e '/extern.*malloc/d' \ |
| 2427 | -e '/extern.*realloc/d' \ |
| 2428 | -e '/extern.*free/d' \ |
| 2429 | -e '/include.*malloc.h/d' \ |
| 2430 | -e 's/\([^x]\)malloc/\1xmalloc/g' \ |
| 2431 | -e 's/\([^x]\)realloc/\1xrealloc/g' \ |
| 2432 | -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \ |
| 2433 | -e 's/\([ \t;,(]\)free$$/\1xfree/g' \ |
| 2434 | -e 's/yy_flex_xrealloc/yyxrealloc/g' \ |
| 2435 | > $@.new && \ |
| 2436 | mv $@.new $@ |
| 2437 | |
| 2438 | .PRECIOUS: ada-lex.c |
| 2439 | |
| 2440 | # XML rules |
| 2441 | |
| 2442 | xml-builtin.c: stamp-xml; @true |
| 2443 | stamp-xml: $(srcdir)/features/feature_to_c.sh Makefile $(XMLFILES) |
| 2444 | $(SILENCE) rm -f xml-builtin.tmp |
| 2445 | $(ECHO_GEN_XML_BUILTIN) AWK="$(AWK)" \ |
| 2446 | $(SHELL) $(srcdir)/features/feature_to_c.sh \ |
| 2447 | xml-builtin.tmp $(XMLFILES) |
| 2448 | $(SILENCE) $(SHELL) $(srcdir)/../move-if-change xml-builtin.tmp xml-builtin.c |
| 2449 | $(SILENCE) echo stamp > stamp-xml |
| 2450 | |
| 2451 | .PRECIOUS: xml-builtin.c |
| 2452 | |
| 2453 | # |
| 2454 | # GDBTK sub-directory |
| 2455 | # |
| 2456 | |
| 2457 | all-gdbtk: insight$(EXEEXT) |
| 2458 | |
| 2459 | install-gdbtk: |
| 2460 | transformed_name=`t='$(program_transform_name)'; \ |
| 2461 | echo insight | sed -e $$t` ; \ |
| 2462 | if test "x$$transformed_name" = x; then \ |
| 2463 | transformed_name=insight ; \ |
| 2464 | else \ |
| 2465 | true ; \ |
| 2466 | fi ; \ |
| 2467 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir); \ |
| 2468 | $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) insight$(EXEEXT) \ |
| 2469 | $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \ |
| 2470 | $(SHELL) $(srcdir)/../mkinstalldirs \ |
| 2471 | $(DESTDIR)$(GDBTK_LIBRARY) ; \ |
| 2472 | $(SHELL) $(srcdir)/../mkinstalldirs \ |
| 2473 | $(DESTDIR)$(libdir)/insight$(GDBTK_VERSION) ; \ |
| 2474 | $(INSTALL_DATA) $(srcdir)/gdbtk/plugins/plugins.tcl \ |
| 2475 | $(DESTDIR)$(libdir)/insight$(GDBTK_VERSION)/plugins.tcl ; \ |
| 2476 | $(SHELL) $(srcdir)/../mkinstalldirs \ |
| 2477 | $(DESTDIR)$(GDBTK_LIBRARY)/images \ |
| 2478 | $(DESTDIR)$(GDBTK_LIBRARY)/images2 ; \ |
| 2479 | $(SHELL) $(srcdir)/../mkinstalldirs \ |
| 2480 | $(DESTDIR)$(GDBTK_LIBRARY)/help \ |
| 2481 | $(DESTDIR)$(GDBTK_LIBRARY)/help/images \ |
| 2482 | $(DESTDIR)$(GDBTK_LIBRARY)/help/trace ; \ |
| 2483 | cd $(srcdir)/gdbtk/library ; \ |
| 2484 | for i in *.tcl *.itcl *.ith *.itb images/*.gif images2/*.gif images/icons.txt images2/icons.txt tclIndex help/*.html help/trace/*.html help/trace/index.toc help/images/*.gif help/images/*.png; \ |
| 2485 | do \ |
| 2486 | $(INSTALL_DATA) $$i $(DESTDIR)$(GDBTK_LIBRARY)/$$i ; \ |
| 2487 | done ; |
| 2488 | |
| 2489 | uninstall-gdbtk: |
| 2490 | transformed_name=`t='$(program_transform_name)'; \ |
| 2491 | echo insight | sed -e $$t` ; \ |
| 2492 | if test "x$$transformed_name" = x; then \ |
| 2493 | transformed_name=insight ; \ |
| 2494 | else \ |
| 2495 | true ; \ |
| 2496 | fi ; \ |
| 2497 | rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \ |
| 2498 | rm -rf $(DESTDIR)$(GDBTK_LIBRARY) |
| 2499 | |
| 2500 | clean-gdbtk: |
| 2501 | rm -f insight$(EXEEXT) |
| 2502 | |
| 2503 | # Removing the old gdb first works better if it is running, at least on SunOS. |
| 2504 | insight$(EXEEXT): gdbtk-main.o libgdb.a $(CDEPS) $(TDEPLIBS) |
| 2505 | rm -f insight$(EXEEXT) |
| 2506 | $(ECHO_CXXLD) $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \ |
| 2507 | -o insight$(EXEEXT) gdbtk-main.o libgdb.a \ |
| 2508 | $(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES) |
| 2509 | |
| 2510 | gdbres.o: $(srcdir)/gdbtk/gdb.rc $(srcdir)/gdbtk/gdbtool.ico |
| 2511 | $(WINDRES) --include $(srcdir)/gdbtk $(srcdir)/gdbtk/gdb.rc gdbres.o |
| 2512 | |
| 2513 | all_gdbtk_cflags = $(IDE_CFLAGS) $(ITCL_CFLAGS) \ |
| 2514 | $(ITK_CFLAGS) $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \ |
| 2515 | $(GDBTK_CFLAGS) \ |
| 2516 | -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\" \ |
| 2517 | -DSRC_DIR=\"$(GDBTK_SRC_DIR)\" |
| 2518 | |
| 2519 | # |
| 2520 | # Dependency tracking. |
| 2521 | # |
| 2522 | |
| 2523 | ifeq ($(DEPMODE),depmode=gcc3) |
| 2524 | # Note that we put the dependencies into a .Tpo file, then move them |
| 2525 | # into place if the compile succeeds. We need this because gcc does |
| 2526 | # not atomically write the dependency output file. |
| 2527 | override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \ |
| 2528 | -MF $(@D)/$(DEPDIR)/$(basename $(@F)).Tpo |
| 2529 | override POSTCOMPILE = @mv $(@D)/$(DEPDIR)/$(basename $(@F)).Tpo \ |
| 2530 | $(@D)/$(DEPDIR)/$(basename $(@F)).Po |
| 2531 | else |
| 2532 | override COMPILE.pre = source='$<' object='$@' libtool=no \ |
| 2533 | DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) \ |
| 2534 | $(CXX) -x c++ $(CXX_DIALECT) |
| 2535 | # depcomp handles atomicity for us, so we don't need a postcompile |
| 2536 | # step. |
| 2537 | override POSTCOMPILE = |
| 2538 | endif |
| 2539 | |
| 2540 | # A list of all the objects we might care about in this build, for |
| 2541 | # dependency tracking. |
| 2542 | all_object_files = gdb.o $(LIBGDB_OBS) gdbtk-main.o \ |
| 2543 | test-cp-name-parser.o |
| 2544 | |
| 2545 | # All the .deps files to include. |
| 2546 | all_deps_files = $(foreach dep,$(patsubst %.o,%.Po,$(all_object_files)),\ |
| 2547 | $(dir $(dep))/$(DEPDIR)/$(notdir $(dep))) |
| 2548 | |
| 2549 | # Ensure that generated files are created early. Use order-only |
| 2550 | # dependencies if available. They require GNU make 3.80 or newer, |
| 2551 | # and the .VARIABLES variable was introduced at the same time. |
| 2552 | ifdef .VARIABLES |
| 2553 | $(all_object_files): | $(generated_files) |
| 2554 | else |
| 2555 | $(all_object_files) : $(generated_files) |
| 2556 | endif |
| 2557 | |
| 2558 | # Dependencies. |
| 2559 | -include $(all_deps_files) |
| 2560 | |
| 2561 | # Disable implicit make rules. |
| 2562 | include $(srcdir)/disable-implicit-rules.mk |
| 2563 | |
| 2564 | ### end of the gdb Makefile.in. |