comparison libmpeg2/Makefile @ 10572:d7ec2e2bb0da

Simplified/fixed altivec/altivec.h detection on Linux and Darwin (and others). Patch by Magnus Damm <damm@opensource.se>
author alex
date Mon, 11 Aug 2003 20:52:53 +0000
parents f486ad4016ad
children 80973aa180a5
comparison
equal deleted inserted replaced
10571:07cfe1e1a2c9 10572:d7ec2e2bb0da
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 11
12 ifeq ($(TARGET_ALTIVEC),yes) 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 13 SRCS += motion_comp_altivec.c idct_altivec.c
19 endif 14 endif
20 15
21 .SUFFIXES: .c .o 16 .SUFFIXES: .c .o
22 17