Browse code

Shared objects support

Originally committed as revision 195 to svn://svn.ffmpeg.org/ffmpeg/trunk

Nick Kurshev authored on 2001/10/27 21:12:38
Showing 1 changed files
... ...
@@ -58,9 +58,11 @@ echo "  --disable-mmx           disable mmx usage"
58 58
 echo "  --enable-gprof          enable profiling with gprof [$gprof]"
59 59
 echo "  --disable-grab          disable audio/video grabbing code"
60 60
 echo "  --enable-win32          enable win32 cross compile"
61
+echo "  --enable-shared         build shared libraries [default=no]"
61 62
 exit 1
62 63
 fi
63 64
 
65
+lshared=no
64 66
 for opt do
65 67
   case "$opt" in
66 68
   --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
... ...
@@ -77,6 +79,8 @@ for opt do
77 77
   ;;
78 78
   --enable-win32) win32="yes"
79 79
   ;;
80
+  --enable-shared=*) lshared=`echo $opt | cut -d '=' -f 2`
81
+  ;;
80 82
   esac
81 83
 done
82 84
 
... ...
@@ -150,7 +154,14 @@ if [ "$gprof" = "yes" ] ; then
150 150
   echo "TARGET_GPROF=yes" >> config.mak
151 151
   echo "#define HAVE_GPROF 1" >> config.h
152 152
 fi
153
-
153
+if [ "$lshared" = "yes" ] ; then
154
+  echo "BUILD_SHARED=yes" >> config.mak
155
+else
156
+  echo "BUILD_SHARED=no" >> config.mak
157
+fi
158
+echo -n "VERSION=" >>config.mak
159
+head VERSION >>config.mak
160
+echo "" >>config.mak
154 161
 # if you do not want to use encoders, disable that.
155 162
 echo "#define CONFIG_ENCODERS 1" >> config.h
156 163
 echo "CONFIG_ENCODERS=yes" >> config.mak