From e51d4defe06c0acbfb56b5256cefae3b39a7d5c1 Mon Sep 17 00:00:00 2001 From: Arpi Date: Fri, 17 Jan 2003 22:40:00 +0000 Subject: [PATCH] - removed nonsense *.d dependancy stuff, there was already a better 'make dep' support in it - enabled .depend generation by default, so no need to 'make dep' then... Originally committed as revision 1468 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/Makefile | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index bf6aecda98..99cc021148 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -89,7 +89,6 @@ OBJS += ppc/dsputil_altivec.o ppc/mpegvideo_altivec.o ppc/idct_altivec.o \ endif SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S) -DEPS := $(OBJS:.o=.d) OBJS := $(OBJS) $(ASM_OBJS) LIB= $(LIBPREF)avcodec$(LIBSUF) @@ -102,14 +101,14 @@ all: $(LIB) $(SLIB) tests: apiexample cpuid_test $(TESTS) -$(LIB): $(OBJS) +$(LIB): .depend $(OBJS) rm -f $@ $(AR) rc $@ $(OBJS) ifneq ($(CONFIG_OS2),yes) $(RANLIB) $@ endif -$(SLIB): $(OBJS) +$(SLIB): .depend $(OBJS) $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) dsputil.o: dsputil.c dsputil.h @@ -117,12 +116,6 @@ dsputil.o: dsputil.c dsputil.h %.o: %.c $(CC) $(CFLAGS) -c -o $@ $< -%.d: %.c - @echo $@ \\ > $@ - $(CC) $(CFLAGS) -MM $< >> $@ - --include $(DEPS) - %.o: %.S $(CC) $(CFLAGS) -c -o $@ $< @@ -137,11 +130,12 @@ alpha/motion_est_alpha.o: alpha/motion_est_alpha.c $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $< endif -# depend only used by mplayer now +.depend: $(SRCS) + $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend + dep: depend -depend: - $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend +depend: .depend clean: rm -f *.o *.d *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \