mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
Move libpostproc compilation to the top-level Makefile.
Originally committed as revision 4993 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
26d469117f
commit
1a9150b194
14
Makefile
14
Makefile
@ -67,6 +67,9 @@ lib:
|
|||||||
$(MAKE) -C libavutil all
|
$(MAKE) -C libavutil all
|
||||||
$(MAKE) -C libavcodec all
|
$(MAKE) -C libavcodec all
|
||||||
$(MAKE) -C libavformat all
|
$(MAKE) -C libavformat all
|
||||||
|
ifeq ($(CONFIG_PP),yes)
|
||||||
|
$(MAKE) -C libavcodec/libpostproc all
|
||||||
|
endif
|
||||||
|
|
||||||
ffmpeg_g$(EXESUF): ffmpeg.o cmdutils.o .libs
|
ffmpeg_g$(EXESUF): ffmpeg.o cmdutils.o .libs
|
||||||
$(CC) $(LDFLAGS) -o $@ ffmpeg.o cmdutils.o $(FFLIBS) $(EXTRALIBS)
|
$(CC) $(LDFLAGS) -o $@ ffmpeg.o cmdutils.o $(FFLIBS) $(EXTRALIBS)
|
||||||
@ -140,12 +143,18 @@ ifeq ($(BUILD_SHARED),yes)
|
|||||||
$(MAKE) -C libavutil install-lib-shared
|
$(MAKE) -C libavutil install-lib-shared
|
||||||
$(MAKE) -C libavcodec install-lib-shared
|
$(MAKE) -C libavcodec install-lib-shared
|
||||||
$(MAKE) -C libavformat install-lib-shared
|
$(MAKE) -C libavformat install-lib-shared
|
||||||
|
ifeq ($(CONFIG_PP),yes)
|
||||||
|
$(MAKE) -C libavcodec/libpostproc install-lib-shared
|
||||||
|
endif
|
||||||
$(LDCONFIG) || true
|
$(LDCONFIG) || true
|
||||||
endif
|
endif
|
||||||
ifeq ($(BUILD_STATIC),yes)
|
ifeq ($(BUILD_STATIC),yes)
|
||||||
$(MAKE) -C libavutil install-lib-static
|
$(MAKE) -C libavutil install-lib-static
|
||||||
$(MAKE) -C libavcodec install-lib-static
|
$(MAKE) -C libavcodec install-lib-static
|
||||||
$(MAKE) -C libavformat install-lib-static
|
$(MAKE) -C libavformat install-lib-static
|
||||||
|
ifeq ($(CONFIG_PP),yes)
|
||||||
|
$(MAKE) -C libavcodec/libpostproc install-lib-static
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install-headers:
|
install-headers:
|
||||||
@ -154,6 +163,9 @@ install-headers:
|
|||||||
$(MAKE) -C libavutil install-headers
|
$(MAKE) -C libavutil install-headers
|
||||||
$(MAKE) -C libavcodec install-headers
|
$(MAKE) -C libavcodec install-headers
|
||||||
$(MAKE) -C libavformat install-headers
|
$(MAKE) -C libavformat install-headers
|
||||||
|
ifeq ($(CONFIG_PP),yes)
|
||||||
|
$(MAKE) -C libavcodec/libpostproc install-headers
|
||||||
|
endif
|
||||||
|
|
||||||
dep: depend
|
dep: depend
|
||||||
|
|
||||||
@ -175,6 +187,7 @@ clean:
|
|||||||
$(MAKE) -C libavutil clean
|
$(MAKE) -C libavutil clean
|
||||||
$(MAKE) -C libavcodec clean
|
$(MAKE) -C libavcodec clean
|
||||||
$(MAKE) -C libavformat clean
|
$(MAKE) -C libavformat clean
|
||||||
|
$(MAKE) -C libavcodec/libpostproc clean
|
||||||
$(MAKE) -C tests clean
|
$(MAKE) -C tests clean
|
||||||
$(MAKE) -C vhook clean
|
$(MAKE) -C vhook clean
|
||||||
rm -f *.o *.d *~ .libs gmon.out TAGS \
|
rm -f *.o *.d *~ .libs gmon.out TAGS \
|
||||||
@ -185,6 +198,7 @@ distclean: clean
|
|||||||
$(MAKE) -C libavutil distclean
|
$(MAKE) -C libavutil distclean
|
||||||
$(MAKE) -C libavcodec distclean
|
$(MAKE) -C libavcodec distclean
|
||||||
$(MAKE) -C libavformat distclean
|
$(MAKE) -C libavformat distclean
|
||||||
|
$(MAKE) -C libavcodec/libpostproc distclean
|
||||||
$(MAKE) -C tests distclean
|
$(MAKE) -C tests distclean
|
||||||
$(MAKE) -C vhook distclean
|
$(MAKE) -C vhook distclean
|
||||||
rm -f .depend config.mak config.h *.pc
|
rm -f .depend config.mak config.h *.pc
|
||||||
|
@ -300,15 +300,6 @@ ifeq ($(CONFIG_X264),yes)
|
|||||||
OBJS+= x264.o
|
OBJS+= x264.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_PP),yes)
|
|
||||||
ifeq ($(BUILD_SHARED),yes)
|
|
||||||
EXTRALIBS += -Llibpostproc -lpostproc$(BUILDSUF)
|
|
||||||
else
|
|
||||||
# LIBS += libpostproc/libpostproc.a ... should be fixed
|
|
||||||
OBJS += libpostproc/postprocess.o
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_MP3LAME),yes)
|
ifeq ($(CONFIG_MP3LAME),yes)
|
||||||
OBJS += mp3lameaudio.o
|
OBJS += mp3lameaudio.o
|
||||||
endif
|
endif
|
||||||
@ -428,9 +419,6 @@ $(LIB): $(OBJS) $(AMRLIBS)
|
|||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(SLIBNAME): $(OBJS)
|
$(SLIBNAME): $(OBJS)
|
||||||
ifeq ($(CONFIG_PP),yes)
|
|
||||||
$(MAKE) -C libpostproc
|
|
||||||
endif
|
|
||||||
$(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
|
$(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
|
||||||
ifeq ($(CONFIG_WIN32),yes)
|
ifeq ($(CONFIG_WIN32),yes)
|
||||||
-lib /machine:i386 /def:$(@:.dll=.def)
|
-lib /machine:i386 /def:$(@:.dll=.def)
|
||||||
@ -438,9 +426,6 @@ endif
|
|||||||
|
|
||||||
dsputil.o: dsputil.c dsputil.h
|
dsputil.o: dsputil.c dsputil.h
|
||||||
|
|
||||||
libpostproc/libpostproc.a:
|
|
||||||
$(MAKE) -C libpostproc
|
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
@ -465,11 +450,9 @@ clean: $(CLEANAMR)
|
|||||||
sparc/*.o sparc/*~ \
|
sparc/*.o sparc/*~ \
|
||||||
liba52/*.o liba52/*~ \
|
liba52/*.o liba52/*~ \
|
||||||
apiexample $(TESTS)
|
apiexample $(TESTS)
|
||||||
$(MAKE) -C libpostproc clean
|
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f .depend
|
rm -f .depend
|
||||||
$(MAKE) -C libpostproc distclean
|
|
||||||
|
|
||||||
cleanamr:
|
cleanamr:
|
||||||
$(MAKE) -C amr clean
|
$(MAKE) -C amr clean
|
||||||
@ -514,22 +497,13 @@ else
|
|||||||
ln -sf $(SLIBNAME_WITH_VERSION) \
|
ln -sf $(SLIBNAME_WITH_VERSION) \
|
||||||
$(libdir)/$(SLIBNAME)
|
$(libdir)/$(SLIBNAME)
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_PP),yes)
|
|
||||||
$(MAKE) -C libpostproc $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
install-lib-static: $(LIB)
|
install-lib-static: $(LIB)
|
||||||
install -m 644 $(LIB) "$(libdir)"
|
install -m 644 $(LIB) "$(libdir)"
|
||||||
ifeq ($(CONFIG_PP),yes)
|
|
||||||
$(MAKE) -C libpostproc $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
install-headers:
|
install-headers:
|
||||||
install -m 644 avcodec.h dsputil.h "$(incdir)"
|
install -m 644 avcodec.h dsputil.h "$(incdir)"
|
||||||
install -m 644 $(SRC_PATH)/libavcodec.pc "$(libdir)/pkgconfig"
|
install -m 644 $(SRC_PATH)/libavcodec.pc "$(libdir)/pkgconfig"
|
||||||
ifeq ($(CONFIG_PP),yes)
|
|
||||||
$(MAKE) -C libpostproc $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# include dependency files if they exist
|
# include dependency files if they exist
|
||||||
|
Loading…
Reference in New Issue
Block a user