Commit 0070639e authored by bellard's avatar bellard

build stripped and unstripped ffmpeg - ffserver exports all its symbols for...

build stripped and unstripped ffmpeg - ffserver exports all its symbols for modules - added installlib target for development static libraries installation


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@811 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6051e111
...@@ -7,7 +7,8 @@ include config.mak ...@@ -7,7 +7,8 @@ include config.mak
VPATH=$(SRC_PATH) 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 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) ifeq ($(TARGET_GPROF),yes)
CFLAGS+=-p CFLAGS+=-p
LDFLAGS+=-p LDFLAGS+=-p
...@@ -40,13 +41,16 @@ lib: ...@@ -40,13 +41,16 @@ lib:
$(MAKE) -C libavcodec all $(MAKE) -C libavcodec all
$(MAKE) -C libav 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 \ $(CC) $(LDFLAGS) -o $@ ffmpeg.o -L./libavcodec -L./libav \
-lavformat -lavcodec $(EXTRALIBS) -lavformat -lavcodec $(EXTRALIBS)
ffmpeg$(EXE): ffmpeg_g$(EXE)
$(STRIP) -o $@ $<
ffserver$(EXE): ffserver.o $(DEP_LIBS) ffserver$(EXE): ffserver.o $(DEP_LIBS)
$(CC) $(LDFLAGS) -o $@ ffserver.o -L./libavcodec -L./libav \ $(CC) $(LDFLAGS) -Wl,-E -o $@ ffserver.o -L./libavcodec -L./libav \
-lavformat -lavcodec $(EXTRALIBS) -lavformat -lavcodec -ldl $(EXTRALIBS)
ffplay: ffmpeg$(EXE) ffplay: ffmpeg$(EXE)
ln -sf $< $@ ln -sf $< $@
...@@ -59,6 +63,10 @@ install: all ...@@ -59,6 +63,10 @@ install: all
install -s -m 755 $(PROG) $(prefix)/bin install -s -m 755 $(PROG) $(prefix)/bin
ln -sf ffmpeg $(prefix)/bin/ffplay ln -sf ffmpeg $(prefix)/bin/ffplay
installlib:
$(MAKE) -C libavcodec installlib
$(MAKE) -C libav installlib
dep: depend dep: depend
depend: depend:
...@@ -68,7 +76,7 @@ clean: ...@@ -68,7 +76,7 @@ clean:
$(MAKE) -C libavcodec clean $(MAKE) -C libavcodec clean
$(MAKE) -C libav clean $(MAKE) -C libav clean
$(MAKE) -C tests 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 distclean: clean
$(MAKE) -C libavcodec distclean $(MAKE) -C libavcodec distclean
......
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