Commit a1b63811 authored by Fabrice Bellard's avatar Fabrice Bellard

license/copyright change - use consistent library names

Originally committed as revision 584 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 23642d8e
#
# Main ffmpeg Makefile # Main ffmpeg Makefile
# (c) 2000, 2001, 2002 Gerard Lantau # (c) 2000, 2001, 2002 Fabrice Bellard
# #
include config.mak include config.mak
...@@ -20,12 +21,11 @@ EXT= ...@@ -20,12 +21,11 @@ EXT=
PROG=ffmpeg ffplay ffserver PROG=ffmpeg ffplay ffserver
endif endif
ifeq ($(BUILD_SHARED),yes) ifeq ($(BUILD_SHARED),yes)
FFMPEG_LIB=-Llibavcodec -lffmpeg DEP_LIBS=libavcodec/libavcodec.so libav/libavformat.a
DEP_FFMPEG_LIB=
else else
FFMPEG_LIB=libavcodec/libavcodec.a DEP_LIBS=libavcodec/libavcodec.a libav/libavformat.a
DEP_FFMPEG_LIB=libavcodec/libavcodec.a
ifeq ($(CONFIG_MP3LAME),yes) ifeq ($(CONFIG_MP3LAME),yes)
EXTRALIBS+=-lmp3lame EXTRALIBS+=-lmp3lame
endif endif
...@@ -40,11 +40,13 @@ lib: ...@@ -40,11 +40,13 @@ lib:
$(MAKE) -C libavcodec all $(MAKE) -C libavcodec all
$(MAKE) -C libav all $(MAKE) -C libav all
ffmpeg$(EXE): ffmpeg.o libav/libav.a $(DEP_FFMPEG_LIB) ffmpeg$(EXE): ffmpeg.o $(DEP_LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(FFMPEG_LIB) $(EXTRALIBS) $(CC) $(LDFLAGS) -o $@ ffmpeg.o -L./libavcodec -L./libav \
-lavformat -lavcodec $(EXTRALIBS)
ffserver$(EXE): ffserver.o libav/libav.a $(DEP_FFMPEG_LIB) ffserver$(EXE): ffserver.o $(DEP_LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(FFMPEG_LIB) $(EXTRALIBS) $(CC) $(LDFLAGS) -o $@ ffserver.o -L./libavcodec -L./libav \
-lavformat -lavcodec $(EXTRALIBS)
ffplay: ffmpeg$(EXE) ffplay: ffmpeg$(EXE)
ln -sf $< $@ ln -sf $< $@
......
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