|
|
@ -89,7 +89,6 @@ OBJS += ppc/dsputil_altivec.o ppc/mpegvideo_altivec.o ppc/idct_altivec.o \ |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S)
|
|
|
|
SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S)
|
|
|
|
DEPS := $(OBJS:.o=.d)
|
|
|
|
|
|
|
|
OBJS := $(OBJS) $(ASM_OBJS)
|
|
|
|
OBJS := $(OBJS) $(ASM_OBJS)
|
|
|
|
|
|
|
|
|
|
|
|
LIB= $(LIBPREF)avcodec$(LIBSUF)
|
|
|
|
LIB= $(LIBPREF)avcodec$(LIBSUF)
|
|
|
@ -102,14 +101,14 @@ all: $(LIB) $(SLIB) |
|
|
|
|
|
|
|
|
|
|
|
tests: apiexample cpuid_test $(TESTS) |
|
|
|
tests: apiexample cpuid_test $(TESTS) |
|
|
|
|
|
|
|
|
|
|
|
$(LIB): $(OBJS) |
|
|
|
$(LIB): .depend $(OBJS) |
|
|
|
rm -f $@
|
|
|
|
rm -f $@
|
|
|
|
$(AR) rc $@ $(OBJS)
|
|
|
|
$(AR) rc $@ $(OBJS)
|
|
|
|
ifneq ($(CONFIG_OS2),yes) |
|
|
|
ifneq ($(CONFIG_OS2),yes) |
|
|
|
$(RANLIB) $@
|
|
|
|
$(RANLIB) $@
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
$(SLIB): $(OBJS) |
|
|
|
$(SLIB): .depend $(OBJS) |
|
|
|
$(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS)
|
|
|
|
$(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS)
|
|
|
|
|
|
|
|
|
|
|
|
dsputil.o: dsputil.c dsputil.h |
|
|
|
dsputil.o: dsputil.c dsputil.h |
|
|
@ -117,12 +116,6 @@ dsputil.o: dsputil.c dsputil.h |
|
|
|
%.o: %.c |
|
|
|
%.o: %.c |
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
%.d: %.c |
|
|
|
|
|
|
|
@echo $@ \\ > $@
|
|
|
|
|
|
|
|
$(CC) $(CFLAGS) -MM $< >> $@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-include $(DEPS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%.o: %.S |
|
|
|
%.o: %.S |
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
@ -137,11 +130,12 @@ alpha/motion_est_alpha.o: alpha/motion_est_alpha.c |
|
|
|
$(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $<
|
|
|
|
$(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $<
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
# depend only used by mplayer now
|
|
|
|
.depend: $(SRCS) |
|
|
|
|
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
|
|
|
|
dep: depend |
|
|
|
dep: depend |
|
|
|
|
|
|
|
|
|
|
|
depend: |
|
|
|
depend: .depend |
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
clean: |
|
|
|
rm -f *.o *.d *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \
|
|
|
|
rm -f *.o *.d *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \
|
|
|
|