Makefile.kmk revision e0e0c19eefceaf5d4ec40f9466b58a771f50e799
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# $Id$
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering## @file
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# Sub-Makefile for the common guest addition code library.
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering#
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering#
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# Copyright (C) 2006-2007 Sun Microsystems, Inc.
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering#
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# This file is part of VirtualBox Open Source Edition (OSE), as
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# available from http://www.virtualbox.org. This file is free software;
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# you can redistribute it and/or modify it under the terms of the GNU
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# General Public License (GPL) as published by the Free Software
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# Foundation, in version 2 as it comes in the "COPYING" file of the
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering#
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# Clara, CA 95054 USA or visit http://www.sun.com if you need
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# additional information or have any questions.
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering#
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering
55e189007c707fb827b8b287903c258de234bd12Lennart PoetteringSUB_DEPTH = ../../../../..
55e189007c707fb827b8b287903c258de234bd12Lennart Poetteringinclude $(KBUILD_PATH)/subheader.kmk
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering#
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# Target config.
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering#
55e189007c707fb827b8b287903c258de234bd12Lennart PoetteringLIBRARIES += \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering VBoxGuestR0Lib \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering VBoxGuestR0LibBase
55e189007c707fb827b8b287903c258de234bd12Lennart PoetteringLIBRARIES += \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering VBoxGuestR3Lib \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering VBoxGuestR3LibShared
55e189007c707fb827b8b287903c258de234bd12Lennart Poetteringif1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd)
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering LIBRARIES += \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering VBoxGuestR3LibXFree86
55e189007c707fb827b8b287903c258de234bd12Lennart Poetteringendif
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering
55e189007c707fb827b8b287903c258de234bd12Lennart Poetteringifndef VBOX_WITH_ADDITION_DRIVERS
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering if1of ($(KBUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0.
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering LIBRARIES := $(filter-out VBoxGuestR0Lib VBoxGuestR0LibBase, $(LIBRARIES))
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering endif
55e189007c707fb827b8b287903c258de234bd12Lennart Poetteringendif
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering#
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering# VBoxGuestR0Lib
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering#
55e189007c707fb827b8b287903c258de234bd12Lennart PoetteringVBoxGuestR0Lib_TEMPLATE = VBOXGUESTR0LIB
55e189007c707fb827b8b287903c258de234bd12Lennart PoetteringVBoxGuestR0Lib_DEFS = VBOX_WITH_HGCM
55e189007c707fb827b8b287903c258de234bd12Lennart PoetteringVBoxGuestR0Lib_INCS = \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering $(PATH_VBoxGuestR0Lib)
55e189007c707fb827b8b287903c258de234bd12Lennart PoetteringVBoxGuestR0Lib_SOURCES = \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering GenericRequest.cpp \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering SysHlp.cpp \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering PhysHeap.cpp \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering Init.cpp \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering VMMDev.cpp \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering HGCM.cpp \
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering VBoxCalls.c
55e189007c707fb827b8b287903c258de234bd12Lennart Poettering
#
# VBoxGuestR0LibBase
#
VBoxGuestR0LibBase_TEMPLATE = VBOXGUESTR0LIB
VBoxGuestR0LibBase_DEFS = VBOX_WITH_HGCM VBGL_VBOXGUEST
VBoxGuestR0LibBase_INCS = $(VBoxGuestR0Lib_INCS)
VBoxGuestR0LibBase_INCS.win = $(VBoxGuestR0Lib_INCS.win)
VBoxGuestR0LibBase_SOURCES = \
GenericRequest.cpp \
SysHlp.cpp \
PhysHeap.cpp \
Init.cpp \
VMMDev.cpp \
HGCMInternal.cpp
#
# VBoxGuestR3Lib
#
VBoxGuestR3Lib_TEMPLATE = VBOXGUESTR3LIB
VBoxGuestR3Lib_DEFS = \
VBOX_WITH_HGCM \
$(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,)
VBoxGuestR3Lib_SOURCES = \
VBoxGuestR3Lib.cpp \
VBoxGuestR3LibClipboard.cpp \
VBoxGuestR3LibDaemonize.cpp \
VBoxGuestR3LibGR.cpp \
$(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
VBoxGuestR3LibMouse.cpp \
VBoxGuestR3LibMisc.cpp \
VBoxGuestR3LibSeamless.cpp \
VBoxGuestR3LibTime.cpp \
VBoxGuestR3LibVideo.cpp
ifeq ($(KBUILD_TARGET),win) ## @todo get rid of this hack (as soon as it's all implemented / #defined).
VBoxGuestR3Lib_SOURCES = \
VBoxGuestR3Lib.cpp \
VBoxGuestR3LibGR.cpp \
$(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
VBoxGuestR3LibMisc.cpp
endif
#
# VBoxGuestR3LibShared - a PIC variant of VBoxGuestR3Lib for linking into .so/.dll/.dylib.
#
VBoxGuestR3LibShared_TEMPLATE = VBOXGUESTR3DLL
VBoxGuestR3LibShared_DEFS := $(VBoxGuestR3Lib_DEFS)
VBoxGuestR3LibShared_SOURCES := $(VBoxGuestR3Lib_SOURCES)
VBoxGuestR3LibShared_INST := $(INST_ADDITIONS_LIB)
#
# VBoxGuestR3LibXFree86 - a reduced version of the guest library which uses
# the X server runtime instead of IPRT, for use with old servers where the
# C library is not available.
#
VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3LIB
VBoxGuestR3LibXFree86_DEFS = \
VBOX_WITH_HGCM VBOX_VBGLR3_XFREE86 \
$(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,)
VBoxGuestR3LibXFree86_SOURCES = \
VBoxGuestR3Lib.cpp \
VBoxGuestR3LibGR.cpp \
$(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
VBoxGuestR3LibMouse.cpp \
VBoxGuestR3LibMisc.cpp \
VBoxGuestR3LibVideo.cpp
VBoxGuestR3LibXFree86_INCS = \
$(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/common/ \
$(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support \
$(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/include \
$(VBOX_PATH_X11_XFREE_4_2)/exports/include/X11
include $(KBUILD_PATH)/subfooter.kmk