patch-Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --- libx264-1.0.1.orig/Makefile 2014-01-22 11:20:21.000000000 +0100
  2. +++ libx264-1.0.1/Makefile 2014-02-23 19:45:12.000000000 +0100
  3. @@ -85,13 +85,13 @@ X86SRC0 += sad-a.asm
  4. endif
  5. X86SRC = $(X86SRC0:%=common/x86/%)
  6. -ifeq ($(ARCH),X86)
  7. +ifeq ($(XARCH),X86)
  8. ARCH_X86 = yes
  9. ASMSRC = $(X86SRC) common/x86/pixel-32.asm
  10. ASFLAGS += -DARCH_X86_64=0
  11. endif
  12. -ifeq ($(ARCH),X86_64)
  13. +ifeq ($(XARCH),X86_64)
  14. ARCH_X86 = yes
  15. ASMSRC = $(X86SRC:-32.asm=-64.asm) common/x86/trellis-64.asm
  16. ASFLAGS += -DARCH_X86_64=1
  17. @@ -107,7 +107,7 @@ endif
  18. endif
  19. # AltiVec optims
  20. -ifeq ($(ARCH),PPC)
  21. +ifeq ($(XARCH),PPC)
  22. ifneq ($(AS),)
  23. SRCS += common/ppc/mc.c common/ppc/pixel.c common/ppc/dct.c \
  24. common/ppc/quant.c common/ppc/deblock.c \
  25. @@ -116,7 +116,7 @@ endif
  26. endif
  27. # NEON optims
  28. -ifeq ($(ARCH),ARM)
  29. +ifeq ($(XARCH),ARM)
  30. ifneq ($(AS),)
  31. ASMSRC += common/arm/cpu-a.S common/arm/pixel-a.S common/arm/mc-a.S \
  32. common/arm/dct-a.S common/arm/quant-a.S common/arm/deblock-a.S \
  33. @@ -127,7 +127,7 @@ endif
  34. endif
  35. # VIS optims
  36. -ifeq ($(ARCH),UltraSPARC)
  37. +ifeq ($(XARCH),UltraSPARC)
  38. ifeq ($(findstring HIGH_BIT_DEPTH, $(CONFIG)),)
  39. ASMSRC += common/sparc/pixel.asm
  40. OBJASM = $(ASMSRC:%.asm=%.o)