Commit 55140d33 authored by bellard's avatar bellard

dependencies are only build with make depend


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1531 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 69e76990
...@@ -61,7 +61,7 @@ lib: ...@@ -61,7 +61,7 @@ lib:
$(MAKE) -C libavcodec all $(MAKE) -C libavcodec all
$(MAKE) -C libavformat all $(MAKE) -C libavformat all
ffmpeg_g$(EXE): .depend ffmpeg.o $(DEP_LIBS) ffmpeg_g$(EXE): ffmpeg.o $(DEP_LIBS)
$(CC) $(LDFLAGS) -o $@ ffmpeg.o -L./libavcodec -L./libavformat \ $(CC) $(LDFLAGS) -o $@ ffmpeg.o -L./libavcodec -L./libavformat \
-lavformat -lavcodec $(EXTRALIBS) -lavformat -lavcodec $(EXTRALIBS)
...@@ -102,6 +102,11 @@ installlib: ...@@ -102,6 +102,11 @@ installlib:
dep: depend dep: depend
depend: .depend depend: .depend
make -C libavcodec depend
make -C libavformat depend
ifeq ($(BUILD_VHOOK),yes)
make -C vhook depend
endif
.depend: $(SRCS) .depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend $(CC) -MM $(CFLAGS) $^ 1>.depend
......
...@@ -113,14 +113,14 @@ all: $(LIB) $(SLIB) ...@@ -113,14 +113,14 @@ all: $(LIB) $(SLIB)
tests: apiexample cpuid_test $(TESTS) tests: apiexample cpuid_test $(TESTS)
$(LIB): .depend $(OBJS) $(LIB): $(OBJS)
rm -f $@ rm -f $@
$(AR) rc $@ $(OBJS) $(AR) rc $@ $(OBJS)
ifneq ($(CONFIG_OS2),yes) ifneq ($(CONFIG_OS2),yes)
$(RANLIB) $@ $(RANLIB) $@
endif endif
$(SLIB): .depend $(OBJS) $(SLIB): $(OBJS)
$(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS)
dsputil.o: dsputil.c dsputil.h dsputil.o: dsputil.c dsputil.h
...@@ -142,13 +142,11 @@ alpha/motion_est_alpha.o: alpha/motion_est_alpha.c ...@@ -142,13 +142,11 @@ 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: $(SRCS) depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend $(CC) -MM $(CFLAGS) $^ 1>.depend
dep: depend dep: depend
depend: .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/*~ \
armv4l/*.o armv4l/*~ \ armv4l/*.o armv4l/*~ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment