Makefile.kmk revision efc2dd03ce4c5327b18fd0493dde207135d4cc6e
# $Id$
## @file
# Makefile for the Wine D3D related dlls for VirtualBox.
#
#
# Copyright (C) 2009 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.
#
SUB_DEPTH = ../../../../../..
include $(KBUILD_PATH)/subheader.kmk
DLLS += libWine
libWine_TEMPLATE = VBOXGUESTR3NPDLL
libWine_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ \
DLLDIR=\"\" \
BINDIR=\"\" \
LIB_TO_BINDIR=\"\" \
LIB_TO_DLLDIR=\"\" \
BIN_TO_DLLDIR=\"\" \
LIB_TO_DATADIR=\"\" \
BIN_TO_DATADIR=\"\"
libWine_INCS := $(PATH_SUB_CURRENT)/include
libWine_SOURCES := \
DLLS += wined3d
wined3d_TEMPLATE = VBOXGUESTR3NPDLL
wined3d_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ _USE_MATH_DEFINES\
DLLDIR=\"\" \
BINDIR=\"\" \
LIB_TO_BINDIR=\"\" \
LIB_TO_DLLDIR=\"\" \
BIN_TO_DLLDIR=\"\" \
LIB_TO_DATADIR=\"\" \
BIN_TO_DATADIR=\"\"
wined3d_INCS := $(PATH_SUB_CURRENT)/include
wined3d_SOURCES := \
wined3d_LIBS = \
$(PATH_LIB)/libWine$(VBOX_SUFF_LIB)
DLLS += VBoxD3D8
VBoxD3D8_TEMPLATE = VBOXGUESTR3NPDLL
VBoxD3D8_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ _USE_MATH_DEFINES\
DLLDIR=\"\" \
BINDIR=\"\" \
LIB_TO_BINDIR=\"\" \
LIB_TO_DLLDIR=\"\" \
BIN_TO_DLLDIR=\"\" \
LIB_TO_DATADIR=\"\" \
BIN_TO_DATADIR=\"\"
VBoxD3D8_INCS := $(PATH_SUB_CURRENT)/include
VBoxD3D8_SOURCES := \
VBoxD3D8_LIBS = \
$(PATH_LIB)/libWine$(VBOX_SUFF_LIB) \
$(PATH_LIB)/wined3d$(VBOX_SUFF_LIB)
DLLS += VBoxD3D9
VBoxD3D9_TEMPLATE = VBOXGUESTR3NPDLL
VBoxD3D9_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ _USE_MATH_DEFINES\
DLLDIR=\"\" \
BINDIR=\"\" \
LIB_TO_BINDIR=\"\" \
LIB_TO_DLLDIR=\"\" \
BIN_TO_DLLDIR=\"\" \
LIB_TO_DATADIR=\"\" \
BIN_TO_DATADIR=\"\"
ifneq ($(KBUILD_TYPE),debug)
VBoxD3D9_DEFS += WINE_NO_DEBUG_MSGS
endif
VBoxD3D9_INCS := $(PATH_SUB_CURRENT)/include
VBoxD3D9_SOURCES := \
VBoxD3D9_LIBS = \
$(PATH_LIB)/libWine$(VBOX_SUFF_LIB) \
$(PATH_LIB)/wined3d$(VBOX_SUFF_LIB)
DLLS += d3d8
d3d8_TEMPLATE = VBOXGUESTR3NPDLL
d3d8_DEFS = __i386__
d3d8_INCS := $(PATH_SUB_CURRENT)/include
d3d8_SOURCES = \
DLLS += d3d9
d3d9_TEMPLATE = VBOXGUESTR3NPDLL
d3d9_DEFS = __i386__
d3d9_INCS := $(PATH_SUB_CURRENT)/include
d3d9_SOURCES = \
include $(KBUILD_PATH)/subfooter.kmk