2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
LIBNAME = libmpeg2.a
|
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
2006-03-25 10:38:37 +00:00
|
|
|
SRCS = alloc.c \
|
|
|
|
cpu_accel.c\
|
|
|
|
cpu_state.c \
|
|
|
|
decode.c \
|
|
|
|
header.c \
|
|
|
|
idct.c \
|
|
|
|
motion_comp.c \
|
|
|
|
slice.c \
|
2003-04-06 16:36:02 +00:00
|
|
|
|
2001-05-24 21:09:13 +00:00
|
|
|
OBJS = $(SRCS:.c=.o)
|
2004-08-02 11:26:43 +00:00
|
|
|
INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC)
|
2001-03-02 22:05:04 +00:00
|
|
|
CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2004-08-24 17:24:31 +00:00
|
|
|
ifeq ($(TARGET_ARCH_X86),yes)
|
|
|
|
SRCS += idct_mmx.c motion_comp_mmx.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH_X86_64),yes)
|
|
|
|
SRCS += idct_mmx.c motion_comp_mmx.c
|
|
|
|
endif
|
|
|
|
|
2003-06-09 12:11:09 +00:00
|
|
|
ifeq ($(TARGET_ALTIVEC),yes)
|
|
|
|
SRCS += motion_comp_altivec.c idct_altivec.c
|
|
|
|
endif
|
|
|
|
|
2004-08-14 15:17:39 +00:00
|
|
|
ifeq ($(TARGET_VIS),yes)
|
|
|
|
SRCS += motion_comp_vis.c
|
|
|
|
endif
|
|
|
|
|
2004-08-24 17:24:31 +00:00
|
|
|
ifeq ($(TARGET_ARCH_ALPHA),yes)
|
|
|
|
SRCS += idct_alpha.c motion_comp_alpha.c
|
|
|
|
endif
|
|
|
|
|
2001-02-24 20:28:24 +00:00
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
2001-03-02 22:05:04 +00:00
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2001-06-04 19:33:28 +00:00
|
|
|
$(LIBNAME): $(OBJS)
|
2001-02-24 20:28:24 +00:00
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
2004-06-24 12:52:17 +00:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
2006-01-27 00:06:42 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f .depend
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2001-03-02 22:05:04 +00:00
|
|
|
dep: depend
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2001-06-04 19:33:28 +00:00
|
|
|
depend:
|
2001-05-24 21:09:13 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2001-03-02 22:05:04 +00:00
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|