comparison Makefile @ 683:aad2dedb8b6a libavcodec

* Remove -finline-limit=8000 (not supported by gcc 2.95) * Hack to force correct gcc arch flags for motion_est_alpha.c
author mellum
date Thu, 19 Sep 2002 16:06:25 +0000
parents f53e17dec13f
children efcbfbd18864
comparison
equal deleted inserted replaced
682:8be211ca9db9 683:aad2dedb8b6a
67 67
68 # alpha specific stuff 68 # alpha specific stuff
69 ifeq ($(TARGET_ARCH_ALPHA),yes) 69 ifeq ($(TARGET_ARCH_ALPHA),yes)
70 OBJS += alpha/dsputil_alpha.o alpha/mpegvideo_alpha.o alpha/motion_est_alpha.o 70 OBJS += alpha/dsputil_alpha.o alpha/mpegvideo_alpha.o alpha/motion_est_alpha.o
71 ASM_OBJS += alpha/dsputil_alpha_asm.o 71 ASM_OBJS += alpha/dsputil_alpha_asm.o
72 CFLAGS += -Wa,-mpca56 -finline-limit=8000 -fforce-addr -freduce-all-givs 72 CFLAGS += -fforce-addr -freduce-all-givs
73 endif 73 endif
74 74
75 ifeq ($(TARGET_ARCH_POWERPC),yes) 75 ifeq ($(TARGET_ARCH_POWERPC),yes)
76 OBJS += ppc/dsputil_ppc.o 76 OBJS += ppc/dsputil_ppc.o
77 endif 77 endif
107 %.o: %.c 107 %.o: %.c
108 $(CC) $(CFLAGS) -c -o $@ $< 108 $(CC) $(CFLAGS) -c -o $@ $<
109 109
110 %.o: %.S 110 %.o: %.S
111 $(CC) $(CFLAGS) -c -o $@ $< 111 $(CC) $(CFLAGS) -c -o $@ $<
112
113 # motion_est_alpha uses the MVI extension, which is not available with
114 # -mcpu=ev4 (default) or ev5/ev56. Thus, force -mcpu=pca56 in those
115 # cases.
116 ifeq ($(TARGET_ARCH_ALPHA),yes)
117 alpha/motion_est_alpha.o: alpha/motion_est_alpha.c
118 cpu=`echo "$(CFLAGS)" | sed -n 's,.*-mcpu=\([a-zA-Z0-9]*\).*,\1,p'`; \
119 case x"$$cpu" in x|xev[45]*) newcpu=pca56;; *) newcpu=$$cpu;; esac; \
120 echo $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $<;\
121 $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $<
122 endif
112 123
113 # depend only used by mplayer now 124 # depend only used by mplayer now
114 dep: depend 125 dep: depend
115 126
116 depend: 127 depend: