gdbserver: Use pattern rule for objects from target/
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 13 Mar 2017 22:44:02 +0000 (18:44 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 13 Mar 2017 22:44:02 +0000 (18:44 -0400)
gdb/gdbserver/ChangeLog:

* Makefile.in (%.o: ../target/%.c): New rule.
(waitstatus.o: ../target/waitstatus.c): Remove.

gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in

index 60ed76e9507f363482fa192c5551fd2cddc88444..521a3392761fb9b200888042939b215694d73fc9 100644 (file)
@@ -1,3 +1,8 @@
+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
index 85138e09c59a37569ff4040e53412edc1e453bca..f814366a012a39b6976df36d8abd491bc5a1b954 100644 (file)
@@ -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)
This page took 0.03751 seconds and 4 git commands to generate.