Mercurial > libavcodec.hg
comparison Makefile @ 1465:52254c2f9cae libavcodec
Use asms instead of builtins when compiling for generic Alpha. Less
ugly.
author | mellum |
---|---|
date | Sat, 13 Sep 2003 10:07:46 +0000 |
parents | 357c19b0b27b |
children | dc1aebe51742 |
comparison
equal
deleted
inserted
replaced
1464:51239e385475 | 1465:52254c2f9cae |
---|---|
168 %.o: %.c | 168 %.o: %.c |
169 $(CC) $(CFLAGS) -c -o $@ $< | 169 $(CC) $(CFLAGS) -c -o $@ $< |
170 | 170 |
171 %.o: %.S | 171 %.o: %.S |
172 $(CC) $(CFLAGS) -c -o $@ $< | 172 $(CC) $(CFLAGS) -c -o $@ $< |
173 | |
174 # motion_est_alpha uses the MVI extension, which is not available with | |
175 # -mcpu=ev4 (default) or ev5/ev56. Thus, force -mcpu=pca56 in those | |
176 # cases. | |
177 ifeq ($(TARGET_ARCH_ALPHA),yes) | |
178 alpha/motion_est_alpha.o: alpha/motion_est_alpha.c | |
179 cpu=`echo "$(CFLAGS)" | sed -n 's,.*-mcpu=\([a-zA-Z0-9]*\).*,\1,p'`; \ | |
180 case x"$$cpu" in x|xev[45]*) newcpu=pca56;; *) newcpu=$$cpu;; esac; \ | |
181 echo $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $<;\ | |
182 $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $< | |
183 endif | |
184 | 173 |
185 depend: $(SRCS) | 174 depend: $(SRCS) |
186 $(CC) -MM $(CFLAGS) $^ 1>.depend | 175 $(CC) -MM $(CFLAGS) $^ 1>.depend |
187 | 176 |
188 dep: depend | 177 dep: depend |