summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-07-25 16:40:10 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-07-25 16:40:10 +0000
commit37736979455c544ed8ecdaeb4025b3f6394d5185 (patch)
tree4ee10805b1796c014618cf027f501f4af8b2c6ca /Makefile
parent917e06c81b34ba1bac88bd23f22b1a460fae0b4a (diff)
build stripped and unstripped ffmpeg - ffserver exports all its symbols for modules - added installlib target for development static libraries installation
Originally committed as revision 811 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3cb514a259..86a4053641 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,8 @@ include config.mak
VPATH=$(SRC_PATH)
CFLAGS= $(OPTFLAGS) -Wall -g -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libav -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-LDFLAGS= -g
+LDFLAGS+= -g -Wl,--warn-common
+
ifeq ($(TARGET_GPROF),yes)
CFLAGS+=-p
LDFLAGS+=-p
@@ -40,13 +41,16 @@ lib:
$(MAKE) -C libavcodec all
$(MAKE) -C libav all
-ffmpeg$(EXE): ffmpeg.o $(DEP_LIBS)
+ffmpeg_g$(EXE): ffmpeg.o $(DEP_LIBS)
$(CC) $(LDFLAGS) -o $@ ffmpeg.o -L./libavcodec -L./libav \
-lavformat -lavcodec $(EXTRALIBS)
+ffmpeg$(EXE): ffmpeg_g$(EXE)
+ $(STRIP) -o $@ $<
+
ffserver$(EXE): ffserver.o $(DEP_LIBS)
- $(CC) $(LDFLAGS) -o $@ ffserver.o -L./libavcodec -L./libav \
- -lavformat -lavcodec $(EXTRALIBS)
+ $(CC) $(LDFLAGS) -Wl,-E -o $@ ffserver.o -L./libavcodec -L./libav \
+ -lavformat -lavcodec -ldl $(EXTRALIBS)
ffplay: ffmpeg$(EXE)
ln -sf $< $@
@@ -59,6 +63,10 @@ install: all
install -s -m 755 $(PROG) $(prefix)/bin
ln -sf ffmpeg $(prefix)/bin/ffplay
+installlib:
+ $(MAKE) -C libavcodec installlib
+ $(MAKE) -C libav installlib
+
dep: depend
depend:
@@ -68,7 +76,7 @@ clean:
$(MAKE) -C libavcodec clean
$(MAKE) -C libav clean
$(MAKE) -C tests clean
- rm -f *.o *~ .depend gmon.out TAGS $(PROG)
+ rm -f *.o *~ .depend gmon.out TAGS ffmpeg_g$(EXE) $(PROG)
distclean: clean
$(MAKE) -C libavcodec distclean