]> rtime.felk.cvut.cz Git - frescor/demo.git/blobdiff - build/config.target
Attempt to compile ffmpeg binaries by OMK
[frescor/demo.git] / build / config.target
index ba998d460dca34b6aff6cbe14270f9dc62586058..487b7aeb9d7cae30eaf1f6d5f6f032b25884c75c 100644 (file)
@@ -1,7 +1,13 @@
 # -*- makefile -*-
 # Config file for compilation by OMK for AQuoSA/Linux OS target
 
+# For the FFMPEG2OMK hack, we need RELATIVE_DIR earlier:
+ifndef RELATIVE_DIR
+RELATIVE_DIR := $(SOURCES_DIR:$(OUTPUT_DIR)%=%)
+endif
+
 ifeq ($(RELATIVE_DIR:ffmpeg%=ffmpeg),ffmpeg)
+
 # Allow building ffmpeg by OMK
 define FFMPEG_OMKIZE
 lib_LIBRARIES:=$(NAME)
@@ -10,7 +16,8 @@ renamed_include_HEADERS:=$(foreach h,$(HEADERS),$(h)->lib$(NAME)/$(h) )
 INCLUDES += -I $(srcdir)/..
 endef
 
-$(SOURCES_DIR)/Makefile.omk: $(SOURCES_DIR)/Makefile $(MAKERULES_DIR)/ffmpeg/libswscale
+
+$(SOURCES_DIR)/Makefile.omk: $(SOURCES_DIR)/Makefile $(MAKERULES_DIR)/ffmpeg/libswscale $(MAKERULES_DIR)/Makefile.omk.ffmpeg
        @echo "  FFOMK   $@"
        $(Q)make DEPS="" -C $(SOURCES_DIR) -qp -f $< |sed -ne '/# Pattern-specific Variable Values/,$$ d' -e '/# makefile/,+1 p'|\
                        sed -e /^define/d -e "/^#/d" -e "/^MAKE/d" > $@
@@ -20,6 +27,9 @@ $(SOURCES_DIR)/Makefile.omk: $(SOURCES_DIR)/Makefile $(MAKERULES_DIR)/ffmpeg/lib
        $(Q)echo 'CFLAGS := $(CFLAGS) $$(CFLAGS)' >> $@
 
 
+$(MAKERULES_DIR)/ffmpeg/tools/Makefile:
+       touch $@
+
 $(MAKERULES_DIR)/ffmpeg/libavcodec/x86/Makefile:
        touch $@