changeset 1010:3c110cba4b29 libavcodec

- 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...
author arpi_esp
date Fri, 17 Jan 2003 22:40:00 +0000
parents 3b7cc8e4b83f
children 3b7fcfb9c551
files Makefile
diffstat 1 files changed, 6 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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/*~ \