ffserver$(EXE): ffserver.o $(DEP_LIBS)
$(CC) $(LDFLAGS) $(FFSLDFLAGS) \
-o $@ ffserver.o -L./libavcodec -L./libavformat \
- -lavformat -lavcodec -ldl $(EXTRALIBS)
+ -lavformat -lavcodec $(EXTRALIBS)
ffplay: ffmpeg$(EXE)
ln -sf $< $@
# regression tests
libavtest test mpeg4 mpeg: ffmpeg$(EXE)
- make -C tests $@
+ $(MAKE) -C tests $@
ifneq ($(wildcard .depend),)
include .depend
netserver="yes"
extralibs="-lnet"
fi ;;
+FreeBSD)
+v4l="no"
+audio_oss="yes"
+make="gmake"
+LDFLAGS="-export-dynamic"
+;;
BSD/OS)
v4l="no"
audio_oss="yes"
int main( void ) { return (int) dlopen("foo", 0); }
EOF
+ldl=-ldl
+
if $cc -o $TMPO $TMPC -ldl 2> /dev/null ; then
vhook=yes
fi
+if $cc -o $TMPO $TMPC 2> /dev/null ; then
+vhook=yes
+ldl=""
+fi
+
cat > $TMPC << EOF
#include <X11/Xlib.h>
#include <Imlib2.h>
;;
--disable-a52) a52="no"
;;
- --enable-a52bin) a52bin="yes" ; extralibs="-ldl $extralibs"
+ --enable-a52bin) a52bin="yes" ; extralibs="$ldl $extralibs"
;;
--enable-mp3lame) mp3lame="yes"
;;
echo "OPTFLAGS=$CFLAGS" >> config.mak
echo "LDFLAGS=$LDFLAGS" >> config.mak
echo "SHFLAGS=$SHFLAGS" >> config.mak
-echo "LDFLAGS=$LDFLAGS" >> config.mak
if test "$cpu" = "x86" ; then
echo "TARGET_ARCH_X86=yes" >> config.mak
echo "#define ARCH_X86 1" >> $TMPH
if test "$vhook" = "yes" ; then
echo "BUILD_VHOOK=yes" >> config.mak
echo "#define HAVE_VHOOK 1" >> $TMPH
- extralibs="$extralibs -ldl"
+ extralibs="$extralibs $ldl"
fi
if test "$lshared" = "yes" ; then
echo "BUILD_SHARED=yes" >> config.mak