Mercurial > mplayer.hg
comparison libmpeg2/Makefile @ 10268:f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
Make sure the correct flags are passed to CC
Altivec files should only be compiled when altivec is enabled.
author | arpi |
---|---|
date | Mon, 09 Jun 2003 12:11:09 +0000 |
parents | 47984e3f54ce |
children | d7ec2e2bb0da |
comparison
equal
deleted
inserted
replaced
10267:d953763cc555 | 10268:f486ad4016ad |
---|---|
1 | 1 |
2 LIBNAME = libmpeg2.a | 2 LIBNAME = libmpeg2.a |
3 | 3 |
4 include ../config.mak | 4 include ../config.mak |
5 | 5 |
6 SRCS = alloc.c cpu_accel.c cpu_state.c decode.c header.c idct.c idct_alpha.c idct_altivec.c idct_mlib.c idct_mmx.c motion_comp.c motion_comp_alpha.c motion_comp_altivec.c motion_comp_mlib.c motion_comp_mmx.c slice.c | 6 SRCS = alloc.c cpu_accel.c cpu_state.c decode.c header.c idct.c idct_alpha.c idct_mlib.c idct_mmx.c motion_comp.c motion_comp_alpha.c motion_comp_mlib.c motion_comp_mmx.c slice.c |
7 | 7 |
8 OBJS = $(SRCS:.c=.o) | 8 OBJS = $(SRCS:.c=.o) |
9 INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC) $(MLIB_INC) | 9 INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC) $(MLIB_INC) |
10 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY | 10 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY |
11 | |
12 ifeq ($(TARGET_ALTIVEC),yes) | |
13 ifeq ($(TARGET_OS),Darwin) | |
14 CFLAGS += -faltivec | |
15 else | |
16 CFLAGS += -maltivec -mabi=altivec | |
17 endif | |
18 SRCS += motion_comp_altivec.c idct_altivec.c | |
19 endif | |
11 | 20 |
12 .SUFFIXES: .c .o | 21 .SUFFIXES: .c .o |
13 | 22 |
14 # .PHONY: all clean | 23 # .PHONY: all clean |
15 | 24 |