mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
2011-02-11 Yao Qi <yao@codesourcery.com>
* Makefile.in: Remove signals.o from COMMON_OBS. Link libcommon.a. * configure.ac: Add common to sub dir. * configure: Regenerate. common/ 2011-02-11 Yao Qi <yao@codesourcery.com> Build libcommon.a. * Makefile.in: New. * configure.ac: New. * aclocal.m4: New. * configure: Generate. gdbserver/ 2011-02-11 Yao Qi <yao@codesourcery.com> * configure.ac: Call AC_PROG_RANLIB. * Makefile.in: Remove signals.o from OBS. Link libcommon.a. * configure: Regenerate.
This commit is contained in:
parent
00a9652c1b
commit
4f3e6fb7a0
@ -1,3 +1,10 @@
|
||||
2011-02-11 Yao Qi <yao@codesourcery.com>
|
||||
|
||||
* Makefile.in: Remove signals.o from COMMON_OBS. Link
|
||||
libcommon.a.
|
||||
* configure.ac: Add common to sub dir.
|
||||
* configure: Regenerate.
|
||||
|
||||
2011-02-10 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
|
||||
|
@ -88,6 +88,8 @@ DEPMODE = @CCDEPMODE@
|
||||
DEPDIR = @DEPDIR@
|
||||
depcomp = $(SHELL) $(srcdir)/../depcomp
|
||||
|
||||
PWD_COMMAND = $${PWDCMD-pwd}
|
||||
|
||||
# Note that these are overridden by GNU make-specific code below if
|
||||
# GNU make is used. The overrides implement dependency tracking.
|
||||
COMPILE.pre = $(CC)
|
||||
@ -140,6 +142,10 @@ LIBDECNUMBER = $(LIBDECNUMBER_DIR)/libdecnumber.a
|
||||
LIBDECNUMBER_SRC = $(srcdir)/$(LIBDECNUMBER_DIR)
|
||||
LIBDECNUMBER_CFLAGS = -I$(LIBDECNUMBER_DIR) -I$(LIBDECNUMBER_SRC)
|
||||
|
||||
LIBCOMMON_DIR = common
|
||||
LIBCOMMON = $(LIBCOMMON_DIR)/libcommon.a
|
||||
LIBCOMMON_SRC = $(srcdir)/$(LIBCOMMON_DIR)
|
||||
|
||||
# Where is the READLINE library? Typically in ../readline.
|
||||
READLINE_DIR = ../readline
|
||||
READLINE_SRC = $(srcdir)/$(READLINE_DIR)
|
||||
@ -331,7 +337,6 @@ SUBDIR_PYTHON_DEPS =
|
||||
SUBDIR_PYTHON_LDFLAGS=
|
||||
SUBDIR_PYTHON_CFLAGS=
|
||||
|
||||
|
||||
# Opcodes currently live in one of two places. Either they are in the
|
||||
# opcode library, typically ../opcodes, or they are in a header file
|
||||
# in INCLUDE_DIR.
|
||||
@ -473,9 +478,10 @@ INSTALLED_LIBS=-lbfd -lreadline -lopcodes -liberty -ldecnumber \
|
||||
CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(INTL) $(LIBIBERTY) $(LIBDECNUMBER) \
|
||||
$(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ @PYTHON_LIBS@ \
|
||||
$(LIBEXPAT) \
|
||||
$(LIBIBERTY) $(WIN32LIBS) $(LIBGNU)
|
||||
$(LIBIBERTY) $(WIN32LIBS) $(LIBGNU) $(LIBCOMMON)
|
||||
CDEPS = $(XM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) \
|
||||
$(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU)
|
||||
$(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU) \
|
||||
$(LIBCOMMON)
|
||||
|
||||
ADD_FILES = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
|
||||
ADD_DEPS = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
|
||||
@ -860,7 +866,6 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
|
||||
memattr.o mem-break.o target.o parse.o language.o buildsym.o \
|
||||
findcmd.o \
|
||||
std-regs.o \
|
||||
signals.o \
|
||||
exec.o reverse.o \
|
||||
bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o \
|
||||
dbxread.o coffread.o coff-pe-read.o \
|
||||
@ -897,13 +902,13 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
|
||||
TSOBS = inflow.o
|
||||
|
||||
SUBDIRS = doc @subdirs@ data-directory
|
||||
CLEANDIRS = $(SUBDIRS) gnulib
|
||||
CLEANDIRS = $(SUBDIRS) gnulib common
|
||||
|
||||
# List of subdirectories in the build tree that must exist.
|
||||
# This is used to force build failures in existing trees when
|
||||
# a new directory is added.
|
||||
# The format here is for the `case' shell command.
|
||||
REQUIRED_SUBDIRS = doc | testsuite | gnulib | data-directory
|
||||
REQUIRED_SUBDIRS = doc | testsuite | gnulib | data-directory | common
|
||||
|
||||
# For now, shortcut the "configure GDB for fewer languages" stuff.
|
||||
YYFILES = c-exp.c \
|
||||
@ -1170,6 +1175,26 @@ all-lib: gnulib/Makefile
|
||||
@$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=gnulib subdir_do
|
||||
.PHONY: all-lib
|
||||
|
||||
#
|
||||
$(LIBCOMMON): $(LIBCOMMON_DIR)/Makefile
|
||||
@$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=common subdir_do
|
||||
|
||||
configure-common:
|
||||
@: $(MAKE); $(unstage)
|
||||
@r=`${PWD_COMMAND}`; export r; \
|
||||
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
|
||||
test ! -f common/Makefile || exit 0; \
|
||||
$(SHELL) $(srcdir)/../mkinstalldirs common ; \
|
||||
$(HOST_EXPORTS) \
|
||||
echo Configuring in common; \
|
||||
cd "common" || exit 1; \
|
||||
commondir="$$s/common"; \
|
||||
srcdiroption="--srcdir=$${commondir}"; \
|
||||
$(SHELL) $${commondir}/configure --enable-gdbserver=no \
|
||||
$(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
|
||||
--target=${target_alias} $${srcdiroption} \
|
||||
|| exit 1
|
||||
|
||||
# Convenience rule to handle recursion.
|
||||
.PHONY: all-data-directory
|
||||
all-data-directory: data-directory/Makefile
|
||||
@ -1305,6 +1330,13 @@ data-directory/Makefile: data-directory/Makefile.in config.status @frags@
|
||||
CONFIG_LINKS= \
|
||||
$(SHELL) config.status
|
||||
|
||||
common/Makefile: configure-common common/Makefile.in config.status @frags@
|
||||
CONFIG_FILES="common/Makefile" \
|
||||
CONFIG_COMMANDS="depfiles" \
|
||||
CONFIG_HEADERS= \
|
||||
CONFIG_LINKS= \
|
||||
$(SHELL) config.status
|
||||
|
||||
config.h: stamp-h ; @true
|
||||
stamp-h: $(srcdir)/config.in config.status
|
||||
CONFIG_HEADERS=config.h:config.in \
|
||||
@ -1905,16 +1937,6 @@ mi-common.o: $(srcdir)/mi/mi-common.c
|
||||
$(COMPILE) $(srcdir)/mi/mi-common.c
|
||||
$(POSTCOMPILE)
|
||||
|
||||
#
|
||||
# gdb/common/ dependencies
|
||||
#
|
||||
# Need to explicitly specify the compile rule as make will do nothing
|
||||
# or try to compile the object file into the sub-directory.
|
||||
|
||||
signals.o: $(srcdir)/common/signals.c
|
||||
$(COMPILE) $(srcdir)/common/signals.c
|
||||
$(POSTCOMPILE)
|
||||
|
||||
#
|
||||
# gdb/tui/ dependencies
|
||||
#
|
||||
|
9
gdb/common/ChangeLog
Normal file
9
gdb/common/ChangeLog
Normal file
@ -0,0 +1,9 @@
|
||||
2011-02-11 Yao Qi <yao@codesourcery.com>
|
||||
|
||||
Build libcommon.a.
|
||||
|
||||
* Makefile.in: New.
|
||||
* configure.ac: New.
|
||||
* aclocal.m4: New.
|
||||
* configure: Generate.
|
||||
|
76
gdb/common/Makefile.in
Normal file
76
gdb/common/Makefile.in
Normal file
@ -0,0 +1,76 @@
|
||||
|
||||
srcdir = @srcdir@
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
RANLIB = @RANLIB@
|
||||
COMMON_CPU_OBJ = @COMMON_CPU_OBJ@
|
||||
|
||||
BFD_DIR = ../../bfd
|
||||
BFD_SRC = $(srcdir)/$(BFD_DIR)
|
||||
BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
|
||||
|
||||
INCLUDES = -I. -I../ -I$(srcdir) -I$(srcdir)/../../include @GDB_INCLUDE@
|
||||
|
||||
libcommon_a_OBJS = signals.o $(COMMON_CPU_OBJ)
|
||||
libcommon_a_SOURCES = signals.c $(COMMON_CPU_SRC)
|
||||
|
||||
all: libcommon.a
|
||||
|
||||
signals.o: $(srcdir)/signals.c
|
||||
$(COMPILE) $(srcdir)/signals.c
|
||||
|
||||
COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) @GDB_FLAGS@ $(CPPFLAGS) $(ALL_CFLAGS) -c
|
||||
|
||||
# Implicit rules
|
||||
|
||||
.c.o:
|
||||
$(COMPILE) $(srcdir)/$<
|
||||
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o .obj
|
||||
|
||||
libcommon.a: $(libcommon_a_OBJS)
|
||||
-rm -f $@
|
||||
$(AR) $(ARFLAGS) $@ $(libcommon_a_OBJS)
|
||||
$(RANLIB) $@
|
||||
|
||||
# Rules to rebuild the configuration
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in config.status
|
||||
$(SHELL) ./config.status Makefile
|
||||
|
||||
config.status: $(srcdir)/configure
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
$(srcdir)/configure: $(srcdir)/aclocal.m4
|
||||
cd $(srcdir) && $(AUTOCONF)
|
||||
|
||||
aclocal_deps = \
|
||||
$(srcdir)/../../config/stdint.m4 \
|
||||
$(srcdir)/../../config/warnings.m4 \
|
||||
$(srcdir)/../../config/override.m4 \
|
||||
$(srcdir)/configure.ac
|
||||
|
||||
$(srcdir)/aclocal.m4: $(aclocal_deps)
|
||||
cd $(srcdir) && $(ACLOCAL) -I ../config
|
||||
|
||||
config.h: stamp-h1
|
||||
test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
|
||||
|
||||
stamp-h1: $(srcdir)/config.in config.status
|
||||
-rm -f stamp-h1
|
||||
$(SHELL) ./config.status config.h
|
||||
|
||||
$(srcdir)/config.in: $(srcdir)/configure
|
||||
cd $(srcdir) && $(AUTOHEADER)
|
||||
-rm -f stamp-h1
|
||||
|
||||
clean mostlyclean:
|
||||
-rm -f *~ *.o a.out
|
||||
-rm libcommon.a
|
||||
|
||||
distclean maintainer-clean realclean: clean
|
||||
-rm -f *~
|
||||
-rm -f Makefile config.status config.log
|
68
gdb/common/aclocal.m4
vendored
Normal file
68
gdb/common/aclocal.m4
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
||||
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
# AM_CONDITIONAL -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 9
|
||||
|
||||
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
||||
# -------------------------------------
|
||||
# Define a conditional.
|
||||
AC_DEFUN([AM_CONDITIONAL],
|
||||
[AC_PREREQ(2.52)dnl
|
||||
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
||||
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
||||
AC_SUBST([$1_TRUE])dnl
|
||||
AC_SUBST([$1_FALSE])dnl
|
||||
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
||||
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
||||
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
||||
if $2; then
|
||||
$1_TRUE=
|
||||
$1_FALSE='#'
|
||||
else
|
||||
$1_TRUE='#'
|
||||
$1_FALSE=
|
||||
fi
|
||||
AC_CONFIG_COMMANDS_PRE(
|
||||
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
||||
AC_MSG_ERROR([[conditional "$1" was never defined.
|
||||
Usually this means the macro was only invoked conditionally.]])
|
||||
fi])])
|
||||
|
||||
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 2
|
||||
|
||||
# _AM_SUBST_NOTMAKE(VARIABLE)
|
||||
# ---------------------------
|
||||
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
||||
# This macro is traced by Automake.
|
||||
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
||||
|
||||
# AM_SUBST_NOTMAKE(VARIABLE)
|
||||
# ---------------------------
|
||||
# Public sister of _AM_SUBST_NOTMAKE.
|
||||
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
||||
|
4146
gdb/common/configure
vendored
Executable file
4146
gdb/common/configure
vendored
Executable file
File diff suppressed because it is too large
Load Diff
74
gdb/common/configure.ac
Normal file
74
gdb/common/configure.ac
Normal file
@ -0,0 +1,74 @@
|
||||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
# Copyright 2011
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT(.)
|
||||
|
||||
AC_CANONICAL_BUILD
|
||||
AC_CANONICAL_HOST
|
||||
AC_CANONICAL_TARGET
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_RANLIB
|
||||
|
||||
AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
|
||||
AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
|
||||
AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
|
||||
|
||||
# Check for the 'make' the user wants to use.
|
||||
AC_CHECK_PROGS(MAKE, make)
|
||||
MAKE_IS_GNU=
|
||||
case "`$MAKE --version 2>&1 | sed 1q`" in
|
||||
*GNU*)
|
||||
MAKE_IS_GNU=yes
|
||||
;;
|
||||
esac
|
||||
AM_CONDITIONAL(GMAKE, test "$MAKE_IS_GNU" = yes)
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
AC_SUBST(COMMON_CPU_OBJ)
|
||||
AC_SUBST(COMMON_CPU_SRC)
|
||||
|
||||
# Add different object files to libcommon.a according to different host_cpu.
|
||||
case "$host_cpu" in
|
||||
*)
|
||||
COMMON_CPU_OBJ=""
|
||||
COMMON_CPU_SRC=""
|
||||
;;
|
||||
esac
|
||||
|
||||
# Determine whether or not build libcommon.a for gdbserver
|
||||
AC_ARG_ENABLE(gdbserver,
|
||||
[ --enable-gdbserver build libcommon.a for gdbserver],
|
||||
[], [enable_gdbserver=no])
|
||||
|
||||
if test x"$enable_gdbserver" = xyes; then
|
||||
GDB_FLAGS="-DGDBSERVER"
|
||||
GDB_INCLUDE="-I\$(srcdir)/../gdbserver/"
|
||||
else
|
||||
GDB_FLAGS=""
|
||||
GDB_INCLUDE="-I\$(srcdir)/../ -I\$(BFD_DIR)"
|
||||
fi
|
||||
|
||||
AC_SUBST(GDB_FLAGS)
|
||||
AC_SUBST(GDB_INCLUDE)
|
||||
|
||||
AC_EXEEXT
|
||||
|
||||
AC_OUTPUT([Makefile])
|
3
gdb/configure
vendored
3
gdb/configure
vendored
@ -993,6 +993,7 @@ YACC
|
||||
YFLAGS
|
||||
XMKMF'
|
||||
ac_subdirs_all='testsuite
|
||||
common
|
||||
gdbtk
|
||||
multi-ice
|
||||
gdbserver'
|
||||
@ -7888,6 +7889,8 @@ fi
|
||||
|
||||
subdirs="$subdirs testsuite"
|
||||
|
||||
subdirs="$subdirs common"
|
||||
|
||||
|
||||
# Check whether to support alternative target configurations
|
||||
# Check whether --enable-targets was given.
|
||||
|
@ -109,6 +109,7 @@ AS_HELP_STRING([--with-relocated-sources=PATH], [automatically relocate this pat
|
||||
])
|
||||
|
||||
AC_CONFIG_SUBDIRS(testsuite)
|
||||
AC_CONFIG_SUBDIRS(common)
|
||||
|
||||
# Check whether to support alternative target configurations
|
||||
AC_ARG_ENABLE(targets,
|
||||
|
@ -1,3 +1,9 @@
|
||||
2011-02-11 Yao Qi <yao@codesourcery.com>
|
||||
|
||||
* configure.ac: Call AC_PROG_RANLIB.
|
||||
* Makefile.in: Remove signals.o from OBS. Link libcommon.a.
|
||||
* configure: Regenerate.
|
||||
|
||||
2011-02-07 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* server.c (gdb_read_memory): Change return semantics to allow
|
||||
|
@ -45,6 +45,8 @@ includedir = @includedir@
|
||||
|
||||
SHELL = /bin/sh
|
||||
EXEEXT = @EXEEXT@
|
||||
PWD_COMMAND = $${PWDCMD-pwd}
|
||||
RANLIB = @RANLIB@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
@ -130,10 +132,14 @@ DEPFILES = @GDBSERVER_DEPFILES@
|
||||
|
||||
LIBOBJS = @LIBOBJS@
|
||||
|
||||
LIBCOMMON_DIR = common
|
||||
LIBCOMMON = $(LIBCOMMON_DIR)/libcommon.a
|
||||
LIBCOMMON_SRC = $(srcdir)/$(LIBCOMMON_DIR)
|
||||
|
||||
SOURCES = $(SFILES)
|
||||
TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
|
||||
|
||||
OBS = inferiors.o regcache.o remote-utils.o server.o signals.o target.o \
|
||||
OBS = inferiors.o regcache.o remote-utils.o server.o target.o \
|
||||
utils.o version.o \
|
||||
mem-break.o hostio.o event-loop.o tracepoint.o \
|
||||
$(XML_BUILTIN) \
|
||||
@ -190,6 +196,32 @@ FLAGS_TO_PASS = \
|
||||
|
||||
all: gdbserver$(EXEEXT) gdbreplay$(EXEEXT) $(extra_libraries)
|
||||
|
||||
$(LIBCOMMON): $(LIBCOMMON_DIR)/Makefile
|
||||
@$(MAKE) $(FLAGS_TO_PASS) DO=all --directory=common
|
||||
|
||||
common/Makefile: configure-common config.status
|
||||
CONFIG_FILES="common/Makefile" \
|
||||
CONFIG_COMMANDS="depfiles" \
|
||||
CONFIG_HEADERS= \
|
||||
CONFIG_LINKS= \
|
||||
$(SHELL) config.status
|
||||
|
||||
configure-common:
|
||||
@: $(MAKE); $(unstage)
|
||||
@r=`${PWD_COMMAND}`; export r; \
|
||||
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
|
||||
test ! -f common/Makefile || exit 0; \
|
||||
$(SHELL) $(srcdir)/../../mkinstalldirs common ; \
|
||||
$(HOST_EXPORTS) \
|
||||
echo Configuring in common; \
|
||||
cd "common" || exit 1; \
|
||||
commondir="$$s/../common"; \
|
||||
srcdiroption="--srcdir=$${commondir}"; \
|
||||
$(SHELL) $${commondir}/configure --enable-gdbserver=yes \
|
||||
$(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
|
||||
--target=${target_alias} $${srcdiroption} \
|
||||
|| exit 1
|
||||
|
||||
# Traditionally "install" depends on "all". But it may be useful
|
||||
# not to; for example, if the user has made some trivial change to a
|
||||
# source file and doesn't care about rebuilding or just wants to save the
|
||||
@ -224,10 +256,10 @@ html:
|
||||
install-html:
|
||||
clean-info:
|
||||
|
||||
gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS}
|
||||
gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS} $(LIBCOMMON)
|
||||
rm -f gdbserver$(EXEEXT)
|
||||
${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbserver$(EXEEXT) $(OBS) \
|
||||
$(GDBSERVER_LIBS) $(XM_CLIBS)
|
||||
$(LIBCOMMON) $(GDBSERVER_LIBS) $(XM_CLIBS)
|
||||
|
||||
gdbreplay$(EXEEXT): $(GDBREPLAY_OBS)
|
||||
rm -f gdbreplay$(EXEEXT)
|
||||
@ -382,9 +414,6 @@ tracepoint.o: tracepoint.c $(server_h)
|
||||
utils.o: utils.c $(server_h)
|
||||
gdbreplay.o: gdbreplay.c config.h
|
||||
|
||||
signals.o: ../common/signals.c $(server_h) $(signals_def)
|
||||
$(CC) -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $< -DGDBSERVER
|
||||
|
||||
# We build memmem.c without -Werror because this file is not under
|
||||
# our control. On LynxOS, the compiler generates some warnings
|
||||
# because str-two-way.h uses a constant (MAX_SIZE) whose definition
|
||||
|
93
gdb/gdbserver/configure
vendored
93
gdb/gdbserver/configure
vendored
@ -625,6 +625,7 @@ build
|
||||
EGREP
|
||||
GREP
|
||||
CPP
|
||||
RANLIB
|
||||
OBJEXT
|
||||
EXEEXT
|
||||
ac_ct_CC
|
||||
@ -2985,6 +2986,98 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
if test -n "$ac_tool_prefix"; then
|
||||
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
||||
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
$as_echo_n "checking for $ac_word... " >&6; }
|
||||
if test "${ac_cv_prog_RANLIB+set}" = set; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
if test -n "$RANLIB"; then
|
||||
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
||||
else
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
fi
|
||||
fi
|
||||
RANLIB=$ac_cv_prog_RANLIB
|
||||
if test -n "$RANLIB"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
||||
$as_echo "$RANLIB" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
if test -z "$ac_cv_prog_RANLIB"; then
|
||||
ac_ct_RANLIB=$RANLIB
|
||||
# Extract the first word of "ranlib", so it can be a program name with args.
|
||||
set dummy ranlib; ac_word=$2
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
$as_echo_n "checking for $ac_word... " >&6; }
|
||||
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
if test -n "$ac_ct_RANLIB"; then
|
||||
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
||||
else
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
fi
|
||||
fi
|
||||
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
||||
if test -n "$ac_ct_RANLIB"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
||||
$as_echo "$ac_ct_RANLIB" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
if test "x$ac_ct_RANLIB" = x; then
|
||||
RANLIB=":"
|
||||
else
|
||||
case $cross_compiling:$ac_tool_warned in
|
||||
yes:)
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
||||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
||||
ac_tool_warned=yes ;;
|
||||
esac
|
||||
RANLIB=$ac_ct_RANLIB
|
||||
fi
|
||||
else
|
||||
RANLIB="$ac_cv_prog_RANLIB"
|
||||
fi
|
||||
|
||||
|
||||
ac_ext=c
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
|
@ -26,6 +26,7 @@ AC_CONFIG_HEADER(config.h:config.in)
|
||||
AC_CONFIG_LIBOBJ_DIR(../gnulib)
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_RANLIB
|
||||
AC_GNU_SOURCE
|
||||
|
||||
AC_CANONICAL_SYSTEM
|
||||
|
Loading…
Reference in New Issue
Block a user