mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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
This commit is contained in:
parent
917e06c81b
commit
3773697945
18
Makefile
18
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
|
||||
|
Loading…
Reference in New Issue
Block a user