2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
LIBNAME = libmpeg2.a
|
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
2004-08-02 11:26:43 +00:00
|
|
|
SRCS = alloc.c cpu_accel.c cpu_state.c decode.c header.c idct.c idct_alpha.c idct_mmx.c motion_comp.c motion_comp_alpha.c motion_comp_mmx.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
|
|
|
|
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
|
|
|
|
|
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 *~
|
|
|
|
|
|
|
|
distclean:
|
2001-03-02 22:05:04 +00:00
|
|
|
rm -f Makefile.bak *.o *.a *~ .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
|