Makefile.kmk revision 27537ffef7291d0bb3a24e459a6b94c65586defe
# $Id$
## @file
# Makefile for ffmpeg.
#
#
# Copyright (C) 2006-2007 Sun Microsystems, Inc.
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
# Clara, CA 95054 USA or visit http://www.sun.com if you need
# additional information or have any questions.
#
DEPTH = ../../..
include $(KBUILD_PATH)/header.kmk
DLLS = VBoxFFmpeg
ifeq ($(KBUILD_TARGET),win)
VBoxFFmpeg_TOOL.win.x86 = MINGW32
#VBoxFFmpeg_TOOL.win.amd64 = MINGW64...
VBoxFFmpeg_SDKS.win.x86 = W32API
VBoxFFmpeg_DEFS.win = CONFIG_WIN32=1
VBoxFFmpeg_CFLAGS = -O3 -Wall -Wno-long-long -Wno-trigraphs -pipe
VBoxFFmpeg_CFLAGS.release = -fno-omit-frame-pointer -fno-strict-aliasing
VBoxFFmpeg_CFLAGS.kprofile = $(VBoxFFmpeg_CFLAGS.release) -finstrument-functions
else
VBoxFFmpeg_TEMPLATE = VBOXR3NP
VBoxFFmpeg_CFLAGS = -O3
VBoxFFmpeg_CFLAGS.darwin = -mdynamic-no-pic -force_cpusubtype_ALL -fvisibility=default
endif
VBoxFFmpeg_CFLAGS += -Wno-switch
VBoxFFmpeg_DEFS = HAVE_AV_CONFIG_H BUILD_AVUTIL _FILE_OFFSET_BITS=64 _LARGEFILE_SOURCE _GNU_SOURCE
VBoxFFmpeg_DEFS.darwin = CONFIG_DARWIN=1
VBoxFFmpeg_INCS = \
. \
libavutil \
libavcodec
--export-all-symbols \
--output-def $(PATH_TARGET)/VBoxFFmpeg-new.def \
--exclude-symbols=console_main \
--exclude-symbols=WinMain@16
-install_name @executable_path/VBoxFFmpeg.dylib \
-exported_symbols_list VBoxFFmpeg-darwin.def
#VBoxFFmpeg_LIBS.linux = z?
libavcodec/i386/fft_sse.c_CFLAGS = -msse
VBoxFFmpeg_SOURCES = \
VBoxFFmpeg_SOURCES += \
libavcodec/8bps.c \
libavcodec/4xm.c \
VBoxFFmpeg_SOURCES += \
libavformat/4xm.c \
libavcodec/i386/fft_3dn2_CFLAGS.amd64 = -march=k8
#
# The import library for Windows builds.
# The microsoft linker doesn't like the GNU import libraries from this MinGW version.
#
ifeq ($(KBUILD_TARGET),win)
IMPORT_LIBS += VBoxFFmpegImp
VBoxFFmpegImp_TEMPLATE = VBOXR3
VBoxFFmpegImp_SOURCES = VBoxFFmpeg.def
endif
include $(KBUILD_PATH)/footer.kmk