comparison liba52/Makefile @ 9122:5ba896a38d75

The two attached patches *should* allow for proper compilation of the AltiVec stuff on both Darwin and non-Darwin system. They've only been tested for compilation on Debian using Debian's gcc-3.2. Romain Dolbeau <dolbeau@irisa.fr>
author arpi
date Mon, 27 Jan 2003 21:47:25 +0000
parents 01a9cf43074c
children d7ec2e2bb0da
comparison
equal deleted inserted replaced
9121:57605e30cda4 9122:5ba896a38d75
6 SRCS = crc.c resample.c bit_allocate.c bitstream.c downmix.c imdct.c imdct_mlib.c parse.c 6 SRCS = crc.c resample.c bit_allocate.c bitstream.c downmix.c imdct.c imdct_mlib.c parse.c
7 OBJS = $(SRCS:.c=.o) 7 OBJS = $(SRCS:.c=.o)
8 8
9 CFLAGS = $(MLIB_INC) $(OPTFLAGS) 9 CFLAGS = $(MLIB_INC) $(OPTFLAGS)
10 ifeq ($(TARGET_ALTIVEC),yes) 10 ifeq ($(TARGET_ALTIVEC),yes)
11 ifeq ($(TARGET_OS),Darwin)
11 CFLAGS+= -faltivec 12 CFLAGS+= -faltivec
13 else
14 CFLAGS+= -maltivec -mabi=altivec
15 endif
12 endif 16 endif
13 17
14 .SUFFIXES: .c .o 18 .SUFFIXES: .c .o
15 19
16 # .PHONY: all clean 20 # .PHONY: all clean