py improvement according to Martin's sugesstion

This commit is contained in:
zhuiling 2014-09-12 09:39:14 +08:00
parent a1dbf6ab13
commit 77552551f7

View File

@ -156,21 +156,20 @@ if len(arm64files) > 0:
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)