summaryrefslogtreecommitdiffstats
path: root/libavcodec/Makefile
diff options
context:
space:
mode:
authorArpi <arpi@thot.banki.hu>2003-01-17 22:40:00 +0000
committerArpi <arpi@thot.banki.hu>2003-01-17 22:40:00 +0000
commite51d4defe06c0acbfb56b5256cefae3b39a7d5c1 (patch)
tree435b792956f9e1dd43a8d63afea8a685244a2496 /libavcodec/Makefile
parent7ed2dd2db4ed103151254a42627213426353b06a (diff)
downloadffmpeg-streaming-e51d4defe06c0acbfb56b5256cefae3b39a7d5c1.zip
ffmpeg-streaming-e51d4defe06c0acbfb56b5256cefae3b39a7d5c1.tar.gz
- 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
Diffstat (limited to 'libavcodec/Makefile')
-rw-r--r--libavcodec/Makefile18
1 files changed, 6 insertions, 12 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index bf6aecd..99cc021 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/*~ \
OpenPOWER on IntegriCloud