*** Makefile.old	2011-05-17 23:45:06.000000000 +0300
--- Makefile	2011-05-18 13:08:03.968750000 +0300
***************
*** 95,103 ****
  # AltiVec optims
  ifeq ($(ARCH),PPC)
  ifneq ($(AS),)
! SRCS += common/ppc/mc.c common/ppc/pixel.c common/ppc/dct.c \
!         common/ppc/quant.c common/ppc/deblock.c \
!         common/ppc/predict.c
  endif
  endif
  
--- 95,105 ----
  # AltiVec optims
  ifeq ($(ARCH),PPC)
  ifneq ($(AS),)
! ALTIVECSRC = common/ppc/mc.c common/ppc/pixel.c common/ppc/dct.c \
!              common/ppc/quant.c common/ppc/deblock.c \
!              common/ppc/predict.c
! SRCS += $(ALTIVECSRC)
! OBJALTIVEC = $(ALTIVECSRC:%.c=%.o)
  endif
  endif
  
***************
*** 143,148 ****
--- 145,152 ----
  lib-static: $(LIBX264)
  lib-shared: $(SONAME)
  
+ .depend $(OBJALTIVEC): CFLAGS += $(ALTIVECFLAGS)
+ 
  $(LIBX264): .depend $(OBJS) $(OBJASM)
  	$(AR)$@ $(OBJS) $(OBJASM)
  	$(if $(RANLIB), $(RANLIB) $@)
