diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2017-03-13 18:44:02 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-03-13 18:44:02 -0400 |
commit | 21122961ecea30b3be7c788e09179d297e3233f0 (patch) | |
tree | 29ae87e7136766700e3b84c2d4462551370a0cea /gdb/gdbserver | |
parent | c362e6217b556ce932250c340218f1ca16391070 (diff) | |
download | gdb-21122961ecea30b3be7c788e09179d297e3233f0.zip gdb-21122961ecea30b3be7c788e09179d297e3233f0.tar.gz gdb-21122961ecea30b3be7c788e09179d297e3233f0.tar.bz2 |
gdbserver: Use pattern rule for objects from target/
gdb/gdbserver/ChangeLog:
* Makefile.in (%.o: ../target/%.c): New rule.
(waitstatus.o: ../target/waitstatus.c): Remove.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/Makefile.in | 17 |
2 files changed, 15 insertions, 7 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 60ed76e..521a339 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> + * Makefile.in (%.o: ../target/%.c): New rule. + (waitstatus.o: ../target/waitstatus.c): Remove. + +2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> + * Makefile.in (%.c: ../regformats/%.dat, (%.c: ../regformats/arm/%.dat, diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index 85138e0..f814366 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -328,10 +328,6 @@ FLAGS_TO_PASS = \ # All generated files which can be included by another file. generated_files = config.h $(GNULIB_H) -%.o: %.c - $(COMPILE) $< - $(POSTCOMPILE) - all: gdbserver$(EXEEXT) gdbreplay$(EXEEXT) $(extra_libraries) @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do @@ -796,9 +792,6 @@ cleanups.o: ../common/cleanups.c common-exceptions.o: ../common/common-exceptions.c $(COMPILE) $< $(POSTCOMPILE) -waitstatus.o: ../target/waitstatus.c - $(COMPILE) $< - $(POSTCOMPILE) fileio.o: ../common/fileio.c $(COMPILE) $< $(POSTCOMPILE) @@ -881,6 +874,16 @@ aarch64-insn.o: ../arch/aarch64-insn.c $(COMPILE) $< $(POSTCOMPILE) +# Rules for objects that go in the gdbserver binary. + +%.o: %.c + $(COMPILE) $< + $(POSTCOMPILE) + +%.o: ../target/%.c + $(COMPILE) $< + $(POSTCOMPILE) + # Rules for register format descriptions. %.c: ../regformats/%.dat | $(regdat_sh) |