1 SUBDIRS_LIB="libavcodec libavdevice libavfilter libavformat libavutil libpostproc"
2 SUBDIRS_MORE="libswscale"
4 function create_omk () {
10 include $(srcdir)/../config.mak-omk
14 grep -v '^include' | \
15 sed -e 's/\.o\>/.c/g' \
16 -e 's/\(YASM.*\)\.c/\1.asm/g' \
17 -e 's/x86\/h264_idct_sse2.c/x86\/h264_idct_sse2.asm/g' \
20 if [ "$f" == "libavcodec" ] ; then
23 OBJS-$(HAVE_MMX) += $(MMX-OBJS-yes) $(MMX-OBJS-y)
28 touch $f/x86/Makefile.omk
29 git add $f/x86/Makefile.omk
32 lib_LIBRARIES:=$(NAME)
33 $(NAME)_SOURCES:=$(OBJS) $(OBJS-y) $(OBJS-yes)
34 renamed_include_HEADERS:=$(foreach h,$(HEADERS),$(h)->lib$(NAME)/$(h) )
35 INCLUDES += -I $(srcdir)/..
42 if [ ! -e Makefile.omk ] ; then
44 echo "SUBDIRS=$SUBDIRS_LIB $SUBDIRS_MORE" >Makefile.omk
48 for f in $SUBDIRS_LIB ; do
50 cp $f/Makefile $f/Makefile.omk
51 git add $f/Makefile.omk
54 git commit -m "Added copies of makefiles for OMK build."
58 if [ ! -e libswscale/Makefile.omk ] ; then
60 for f in $SUBDIRS_MORE ; do
62 rm -f $f-omk/Makefile.omk
63 cp $f/Makefile $f-omk/Makefile.omk
64 ( cd $f ; ln -sf ../$f-omk/Makefile.omk Makefile.omk )
65 git add $f-omk/Makefile.omk
68 git commit -m "Added copy of libswscale/Makefile for omkization."
72 for f in $SUBDIRS_LIB ; do
73 create_omk $f $f/Makefile.omk
76 for f in $SUBDIRS_MORE ; do
77 create_omk $f $f-omk/Makefile.omk