else
FFMPEG_LIB=libavcodec/libavcodec.a
DEP_FFMPEG_LIB=libavcodec/libavcodec.a
+ifeq ($(CONFIG_MP3LAME),yes)
+EXTRALIBS+=-lmp3lame
+endif
endif
all: lib $(PROG)
esac
gprof="no"
grab="yes"
+mp3lame="no"
win32="no"
extralibs="-lm"
echo " --disable-mmx disable mmx usage"
echo " --enable-gprof enable profiling with gprof [$gprof]"
echo " --disable-grab disable audio/video grabbing code"
+echo " --enable-mp3lame enable mp3 encoding via libmp3lame"
echo " --enable-win32 enable win32 cross compile"
echo " --enable-shared build shared libraries [default=no]"
exit 1
;;
--disable-grab) grab="no"
;;
+ --enable-mp3lame) mp3lame="yes"
+ ;;
--enable-win32) win32="yes"
;;
--enable-shared=*) lshared=`echo $opt | cut -d '=' -f 2`
echo "MMX enabled $mmx"
echo "gprof enabled $gprof"
echo "grab enabled $grab"
+echo "mp3lame enabled $mp3lame"
echo "Creating config.mak and config.h"
echo "CONFIG_GRAB=yes" >> config.mak
fi
+if [ "$mp3lame" = "yes" ] ; then
+ echo "#define CONFIG_MP3LAME 1" >> config.h
+ echo "CONFIG_MP3LAME=yes" >> config.mak
+fi
+
if [ "$win32" = "yes" ] ; then
echo "#define CONFIG_WIN32 1" >> config.h
echo "CONFIG_WIN32=yes" >> config.mak