mirror of https://git.ffmpeg.org/ffmpeg.git
Build and install the vhook subdirectory if enabled (not by default).
Originally committed as revision 1246 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6e1b47804e
commit
142fc6b993
25
Makefile
25
Makefile
|
@ -44,10 +44,17 @@ EXTRALIBS+=-logg -lvorbis -lvorbisenc
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BUILD_VHOOK),yes)
|
||||||
|
VHOOK=videohook
|
||||||
|
INSTALLVHOOK=install-vhook
|
||||||
|
CLEANVHOOK=clean-vhook
|
||||||
|
LDFLAGS += -rdynamic
|
||||||
|
endif
|
||||||
|
|
||||||
OBJS = ffmpeg.o ffserver.o
|
OBJS = ffmpeg.o ffserver.o
|
||||||
SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
|
SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
|
||||||
|
|
||||||
all: lib $(PROG)
|
all: lib $(PROG) $(VHOOK)
|
||||||
|
|
||||||
lib:
|
lib:
|
||||||
$(MAKE) -C libavcodec all
|
$(MAKE) -C libavcodec all
|
||||||
|
@ -71,12 +78,21 @@ ffplay: ffmpeg$(EXE)
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
install: all
|
videohook:
|
||||||
|
$(MAKE) -C vhook all
|
||||||
|
|
||||||
|
install: all $(INSTALLVHOOK)
|
||||||
$(MAKE) -C libavcodec install
|
$(MAKE) -C libavcodec install
|
||||||
install -d $(prefix)/bin
|
install -d $(prefix)/bin
|
||||||
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
|
||||||
|
|
||||||
|
install-vhook: $(prefix)/lib/vhook
|
||||||
|
$(MAKE) -C vhook install INSTDIR=$(prefix)/lib/vhook
|
||||||
|
|
||||||
|
$(prefix)/lib/vhook:
|
||||||
|
mkdir $@
|
||||||
|
|
||||||
installlib:
|
installlib:
|
||||||
$(MAKE) -C libavcodec installlib
|
$(MAKE) -C libavcodec installlib
|
||||||
$(MAKE) -C libav installlib
|
$(MAKE) -C libav installlib
|
||||||
|
@ -86,12 +102,15 @@ dep: depend
|
||||||
depend:
|
depend:
|
||||||
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
||||||
|
|
||||||
clean:
|
clean: $(CLEANVHOOK)
|
||||||
$(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 ffmpeg_g$(EXE) $(PROG)
|
rm -f *.o *~ .depend gmon.out TAGS ffmpeg_g$(EXE) $(PROG)
|
||||||
|
|
||||||
|
clean-vhook:
|
||||||
|
$(MAKE) -C vhook clean
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
$(MAKE) -C libavcodec distclean
|
$(MAKE) -C libavcodec distclean
|
||||||
rm -f config.mak config.h
|
rm -f config.mak config.h
|
||||||
|
|
Loading…
Reference in New Issue