# HG changeset patch # User arpi_esp # Date 1042843200 0 # Node ID 3c110cba4b29bc2fecd5e75c649a394d8e6c0210 # Parent 3b7cc8e4b83f4fa2498ff340a38ec325c3a59a92 - 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... diff -r 3b7cc8e4b83f -r 3c110cba4b29 Makefile --- a/Makefile Thu Jan 16 21:54:55 2003 +0000 +++ b/Makefile Fri Jan 17 22:40:00 2003 +0000 @@ -89,7 +89,6 @@ 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 @@ 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 @@ %.o: %.c $(CC) $(CFLAGS) -c -o $@ $< -%.d: %.c - @echo $@ \\ > $@ - $(CC) $(CFLAGS) -MM $< >> $@ - --include $(DEPS) - %.o: %.S $(CC) $(CFLAGS) -c -o $@ $< @@ -137,11 +130,12 @@ $(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/*~ \