Commit 0e1977a7 authored by kabi's avatar kabi

* dependency for static linking


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@202 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b5382e7d
...@@ -20,8 +20,10 @@ endif ...@@ -20,8 +20,10 @@ endif
ifeq ($(BUILD_SHARED),yes) ifeq ($(BUILD_SHARED),yes)
FFMPEG_LIB=-Llibavcodec -lffmpeg FFMPEG_LIB=-Llibavcodec -lffmpeg
DEP_FFMPEG_LIB=
else else
FFMPEG_LIB=libavcodec/libavcodec.a FFMPEG_LIB=libavcodec/libavcodec.a
DEP_FFMPEG_LIB=libavcodec/libavcodec.a
endif endif
all: lib $(PROG) all: lib $(PROG)
...@@ -30,10 +32,10 @@ lib: ...@@ -30,10 +32,10 @@ lib:
$(MAKE) -C libavcodec all $(MAKE) -C libavcodec all
$(MAKE) -C libav all $(MAKE) -C libav all
ffmpeg$(EXE): ffmpeg.o libav/libav.a ffmpeg$(EXE): ffmpeg.o libav/libav.a $(DEP_FFMPEG_LIB)
$(CC) $(LDFLAGS) -lm -o $@ $^ $(FFMPEG_LIB) $(CC) $(LDFLAGS) -lm -o $@ $^ $(FFMPEG_LIB)
ffserver$(EXE): ffserver.o libav/libav.a ffserver$(EXE): ffserver.o libav/libav.a $(DEP_FFMPEG_LIB)
$(CC) $(LDFLAGS) -lm -o $@ $^ $(FFMPEG_LIB) $(CC) $(LDFLAGS) -lm -o $@ $^ $(FFMPEG_LIB)
ffplay: ffmpeg$(EXE) ffplay: ffmpeg$(EXE)
......
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