summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-05-25 22:22:57 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-05-25 22:22:57 +0000
commita1b63811c310ff036278ca971a4cc18356c94925 (patch)
tree5eeeb41b45870381962982fdb4f91e335092796e /Makefile
parent23642d8e54ab1d94c2f0654de5ac2b72be8e461d (diff)
downloadffmpeg-streaming-a1b63811c310ff036278ca971a4cc18356c94925.zip
ffmpeg-streaming-a1b63811c310ff036278ca971a4cc18356c94925.tar.gz
license/copyright change - use consistent library names
Originally committed as revision 584 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index b621b03..40d7826 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
+#
# Main ffmpeg Makefile
-# (c) 2000, 2001, 2002 Gerard Lantau
+# (c) 2000, 2001, 2002 Fabrice Bellard
#
include config.mak
@@ -20,12 +21,11 @@ EXT=
PROG=ffmpeg ffplay ffserver
endif
+
ifeq ($(BUILD_SHARED),yes)
-FFMPEG_LIB=-Llibavcodec -lffmpeg
-DEP_FFMPEG_LIB=
+DEP_LIBS=libavcodec/libavcodec.so libav/libavformat.a
else
-FFMPEG_LIB=libavcodec/libavcodec.a
-DEP_FFMPEG_LIB=libavcodec/libavcodec.a
+DEP_LIBS=libavcodec/libavcodec.a libav/libavformat.a
ifeq ($(CONFIG_MP3LAME),yes)
EXTRALIBS+=-lmp3lame
endif
@@ -40,11 +40,13 @@ lib:
$(MAKE) -C libavcodec all
$(MAKE) -C libav all
-ffmpeg$(EXE): ffmpeg.o libav/libav.a $(DEP_FFMPEG_LIB)
- $(CC) $(LDFLAGS) -o $@ $^ $(FFMPEG_LIB) $(EXTRALIBS)
+ffmpeg$(EXE): ffmpeg.o $(DEP_LIBS)
+ $(CC) $(LDFLAGS) -o $@ ffmpeg.o -L./libavcodec -L./libav \
+ -lavformat -lavcodec $(EXTRALIBS)
-ffserver$(EXE): ffserver.o libav/libav.a $(DEP_FFMPEG_LIB)
- $(CC) $(LDFLAGS) -o $@ $^ $(FFMPEG_LIB) $(EXTRALIBS)
+ffserver$(EXE): ffserver.o $(DEP_LIBS)
+ $(CC) $(LDFLAGS) -o $@ ffserver.o -L./libavcodec -L./libav \
+ -lavformat -lavcodec $(EXTRALIBS)
ffplay: ffmpeg$(EXE)
ln -sf $< $@
OpenPOWER on IntegriCloud