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)
|
2006-07-12 17:58:07 +00:00
|
|
|
INCLUDE = -I. -I../libvo -I..
|
2006-08-17 17:19:56 +00:00
|
|
|
CFLAGS = $(INCLUDE) $(OPTFLAGS) -DMPG12PLAY
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2006-07-19 05:34:26 +00:00
|
|
|
ifeq ($(TARGET_MMX),yes)
|
2004-08-24 17:24:31 +00:00
|
|
|
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
|