Fix make 3.81 build errors
authorAlan Hayward <alan.hayward@arm.com>
Tue, 20 Feb 2018 10:03:56 +0000 (10:03 +0000)
committerAlan Hayward <alan.hayward@arm.com>
Tue, 20 Feb 2018 10:04:30 +0000 (10:04 +0000)
gdbserver/
* Makefile.in: Switch order of make rules.

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

index b7e017c..f105efa 100644 (file)
@@ -1,3 +1,8 @@
+2018-02-20  Alan Hayward  <alan.hayward@arm.com>
+           Simon Marchi  <simon.marchi@ericsson.com>
+
+       * Makefile.in: Switch order of make rules.
+
 2018-02-19  Alan Hayward  <alan.hayward@arm.com>
 
        * Makefile.in: Add common directory in build.
index fcb6e1e..2dbf9ae 100644 (file)
@@ -537,11 +537,15 @@ ax.o: ax.c
        $(COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
        $(POSTCOMPILE)
 
-arch/%.o: ../arch/%.c
-       $(COMPILE) $<
+# Rules for objects that go in the in-process agent.
+
+arch/%-ipa.o: ../arch/%.c
+       $(IPAGENT_COMPILE) $<
        $(POSTCOMPILE)
 
-# Rules for objects that go in the in-process agent.
+common/%-ipa.o: ../common/%.c
+       $(IPAGENT_COMPILE) $<
+       $(POSTCOMPILE)
 
 %-ipa.o: %-generated.c
        $(IPAGENT_COMPILE) $<
@@ -562,25 +566,21 @@ arch/%.o: ../arch/%.c
        $(IPAGENT_COMPILE) $<
        $(POSTCOMPILE)
 
-common/%-ipa.o: ../common/%.c
-       $(IPAGENT_COMPILE) $<
-       $(POSTCOMPILE)
+# Rules for objects that go in the gdbserver binary.
 
-arch/%-ipa.o: ../arch/%.c
-       $(IPAGENT_COMPILE) $<
+arch/%.o: ../arch/%.c
+       $(COMPILE) $<
        $(POSTCOMPILE)
 
-# Rules for objects that go in the gdbserver binary.
-
-%.o: %-generated.c
+common/%.o: ../common/%.c
        $(COMPILE) $<
        $(POSTCOMPILE)
 
-%.o: %.c
+%.o: %-generated.c
        $(COMPILE) $<
        $(POSTCOMPILE)
 
-common/%.o: ../common/%.c
+%.o: %.c
        $(COMPILE) $<
        $(POSTCOMPILE)