ref: 77552551f76ee607da92dbd1bdfe83023867903b
parent: a1dbf6ab13d22dc83896f7f69aabde426445d3a5
author: zhuiling <[email protected]>
date: Fri Sep 12 05:39:14 EDT 2014
py improvement according to Martin's sugesstion
--- a/build/mktargets.py
+++ b/build/mktargets.py
@@ -156,21 +156,20 @@
f.write("\t$(%s_SRCDIR)/%s\\\n"%(PREFIX, c))
f.write("\n")
f.write("%s_OBJSARM64 += $(%s_ASM_ARM64_SRCS:.S=.$(OBJ))\n\n"%(PREFIX, PREFIX))
-
-f.write("ifeq ($(ASM_ARCH), x86)\n")
-f.write("%s_OBJS += $(%s_OBJSASM)\n"%(PREFIX,PREFIX))
-f.write("endif\n\n")
-f.write("ifeq ($(ASM_ARCH), arm)\n")
-f.write("%s_OBJS += $(%s_OBJSARM)\n"%(PREFIX,PREFIX))
-f.write("endif\n\n")
-f.write("ifeq ($(ASM_ARCH), arm64)\n")
-f.write("%s_OBJS += $(%s_OBJSARM64)\n"%(PREFIX,PREFIX))
-f.write("endif\n\n")
+ f.write("ifeq ($(ASM_ARCH), x86)\n")
+ f.write("%s_OBJS += $(%s_OBJSASM)\n"%(PREFIX,PREFIX))
+ f.write("endif\n\n")
+ f.write("ifeq ($(ASM_ARCH), arm)\n")
+ f.write("%s_OBJS += $(%s_OBJSARM)\n"%(PREFIX,PREFIX))
+ f.write("endif\n\n")
+ f.write("ifeq ($(ASM_ARCH), arm64)\n")
+ f.write("%s_OBJS += $(%s_OBJSARM64)\n"%(PREFIX,PREFIX))
+ f.write("endif\n\n")
-f.write("OBJS += $(%s_OBJSASM)\n\n"%(PREFIX))
-f.write("OBJS += $(%s_OBJSARM)\n\n"%(PREFIX))
-f.write("OBJS += $(%s_OBJSARM64)\n\n"%(PREFIX))
-f.write("OBJS += $(%s_OBJS)\n\n"%(PREFIX))
+ f.write("OBJS += $(%s_OBJSASM)\n"%(PREFIX))
+ f.write("OBJS += $(%s_OBJSARM)\n"%(PREFIX))
+ f.write("OBJS += $(%s_OBJSARM64)\n"%(PREFIX))
+f.write("OBJS += $(%s_OBJS)\n"%(PREFIX))
write_cpp_rule_pattern(f)