alpha: merge build rules of division routines
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 11 Sep 2016 07:42:15 +0000 (16:42 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 3 May 2017 05:00:55 +0000 (14:00 +0900)
These four objects are generated by the same build rule, with
different compile options.  The build rules can be merged.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/alpha/lib/Makefile

index 7b694fed382c5f8224023c914b858f835ce5960c..5f12e9dcd623d2f88e28b14cda5a082f08eedb85 100644 (file)
@@ -46,11 +46,6 @@ AFLAGS___remqu.o =       -DREM
 AFLAGS___divlu.o = -DDIV       -DINTSIZE
 AFLAGS___remlu.o =       -DREM -DINTSIZE
 
-$(obj)/__divqu.o: $(src)/$(ev6-y)divide.S
-       $(cmd_as_o_S)
-$(obj)/__remqu.o: $(src)/$(ev6-y)divide.S
-       $(cmd_as_o_S)
-$(obj)/__divlu.o: $(src)/$(ev6-y)divide.S
-       $(cmd_as_o_S)
-$(obj)/__remlu.o: $(src)/$(ev6-y)divide.S
+$(addprefix $(obj)/,__divqu.o __remqu.o __divlu.o __remlu.o): \
+                                                       $(src)/$(ev6-y)divide.S
        $(cmd_as_o_S)