diff options
author | Yao Qi <yao@codesourcery.com> | 2011-02-11 09:57:25 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-02-11 09:57:25 +0000 |
commit | 4f3e6fb7a0a03de50862ea7f19a45de4303bcdc1 (patch) | |
tree | 1db0a19e62952ad71aa38816b03cd51362754bc5 /gdb/gdbserver/Makefile.in | |
parent | 00a9652c1bb9e6720587b9a3133518b7de8f8623 (diff) | |
download | gdb-4f3e6fb7a0a03de50862ea7f19a45de4303bcdc1.zip gdb-4f3e6fb7a0a03de50862ea7f19a45de4303bcdc1.tar.gz gdb-4f3e6fb7a0a03de50862ea7f19a45de4303bcdc1.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbserver/Makefile.in')
-rw-r--r-- | gdb/gdbserver/Makefile.in | 41 |
1 files changed, 35 insertions, 6 deletions
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index 2d2d27f..07e020f 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -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 |