Now, all files which need to be different for different configuration
are generated under _build directory. Thanks to this, we can build as many
configurations of ffmpeg from the same sources as we want.
+include $(OUTPUT_DIR)/_build/user/$(RELATIVE_DIR)/Makefile.inc.ffmpeg
lib_LIBRARIES:=$(NAME)
$(NAME)_SOURCES:=$(OBJS:%.o=%.c) $(OBJS-y:%.o=%.c) $(OBJS-yes:%.o=%.c)
lib_LIBRARIES:=$(NAME)
$(NAME)_SOURCES:=$(OBJS:%.o=%.c) $(OBJS-y:%.o=%.c) $(OBJS-yes:%.o=%.c)
$(FFMPEG_BUILD_DIR)/version.h \
$(OUTPUT_DIR)/_build/user/$(RELATIVE_DIR)/Makefile
@echo " FFOMK $@"
$(FFMPEG_BUILD_DIR)/version.h \
$(OUTPUT_DIR)/_build/user/$(RELATIVE_DIR)/Makefile
@echo " FFOMK $@"
- $(Q)make DEPS="" -C $(OUTPUT_DIR)/_build/user/$(RELATIVE_DIR) -rqp \
- | sed -ne '/# Pattern-specific Variable Values/,$$ d' -e '/# makefile/,+1 p' \
- | sed -e /^define/d -e "/^#/d" -e "/^MAKE/d" > $@
$(Q)echo "FFMPEG_SUBDIR=$(RELATIVE_DIR:ffmpeg/%=%)" >> $@
$(Q)cat $(MAKERULES_DIR)/Makefile.omk.ffmpeg >> $@
$(Q)echo "FFMPEG_SUBDIR=$(RELATIVE_DIR:ffmpeg/%=%)" >> $@
$(Q)cat $(MAKERULES_DIR)/Makefile.omk.ffmpeg >> $@
- $(Q)echo 'CFLAGS := -I. $(CFLAGS) $$(CFLAGS)' >> $@
+ $(Q)echo 'CFLAGS := $(CFLAGS) $$(CFLAGS)' >> $@
+$(OUTPUT_DIR)/_build/user/$(RELATIVE_DIR)/Makefile.inc.ffmpeg: $(OUTPUT_DIR)/_build/user/$(RELATIVE_DIR)/Makefile
+ @echo " SCRIPT $@"
+ $(Q)make DEPS="" -C $(OUTPUT_DIR)/_build/user/$(RELATIVE_DIR) -rqp \
+ | sed -ne '/# Pattern-specific Variable Values/,$$ d' -e '/# makefile/,+1 p' \
+ | sed -e /^define/d -e "/^#/d" -e "/^MAKE/d" > $@
$(FFMPEG_BUILD_DIR)/tools/Makefile:
touch $@
$(FFMPEG_BUILD_DIR)/tools/Makefile:
touch $@
$(FFMPEG_BUILD_DIR)/config.mak: \
$(MAKERULES_DIR)/ffmpeg/configure \
$(MAKERULES_DIR)/../build/config.target # this file
$(FFMPEG_BUILD_DIR)/config.mak: \
$(MAKERULES_DIR)/ffmpeg/configure \
$(MAKERULES_DIR)/../build/config.target # this file
- cd $(dir $@) && $(MAKERULES_DIR)/ffmpeg/configure
+ cd $(dir $@) && $(MAKERULES_DIR)/ffmpeg/configure $(if $(CONFIG_FFMPEG_WITH_FRSH:y=),--disable-protocol=frsh)
$(FFMPEG_BUILD_DIR)/version.h:
cd $(dir $@) && $(MAKERULES_DIR)/ffmpeg/version.sh $(PWD) $@
$(FFMPEG_BUILD_DIR)/version.h:
cd $(dir $@) && $(MAKERULES_DIR)/ffmpeg/version.sh $(PWD) $@