# $Id: Makefile.kmk 27703 2010-03-25 13:17:01Z vboxsync $ ## @file # Sub-Makefile for the common guest addition code library. # # # Copyright (C) 2006-2010 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. # # The contents of this file may alternatively be used under the terms # of the Common Development and Distribution License Version 1.0 # (CDDL) only, as it comes in the "COPYING.CDDL" file of the # VirtualBox OSE distribution, in which case the provisions of the # CDDL are applicable instead of those of the GPL. # # You may elect to license modified versions of this file under the # terms and conditions of either the GPL or the CDDL or both. # # 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 # # Target config. # if defined(VBOX_WITH_ADDITION_DRIVERS) && !defined(VBOX_ONLY_TESTSUITE) LIBRARIES += \ VBoxGuestR0Lib \ VBoxGuestR0LibBase endif LIBRARIES += \ VBoxGuestR3Lib \ VBoxGuestR3LibShared ifndef VBOX_ONLY_TESTSUITE if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd) LIBRARIES += \ VBoxGuestR3LibXFree86 endif endif # # VBoxGuestR0Lib # VBoxGuestR0Lib_TEMPLATE = VBOXGUESTR0LIB VBoxGuestR0Lib_DEFS = VBOX_WITH_HGCM VBoxGuestR0Lib_INCS = \ $(PATH_VBoxGuestR0Lib) VBoxGuestR0Lib_SOURCES = \ GenericRequest.cpp \ SysHlp.cpp \ PhysHeap.cpp \ Init.cpp \ VMMDev.cpp \ HGCM.cpp \ VBoxCalls.c \ VbglR0CanUsePhysPageList.cpp # # 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 \ VbglR0CanUsePhysPageList.cpp # # VBoxGuestR3Lib # VBoxGuestR3Lib_TEMPLATE = VBOXGUESTR3LIB VBoxGuestR3Lib_DEFS = \ VBOX_WITH_HGCM \ $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \ $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,) VBoxGuestR3Lib_SOURCES = \ VBoxGuestR3Lib.cpp \ VBoxGuestR3LibAdditions.cpp \ VBoxGuestR3LibBalloon.cpp \ VBoxGuestR3LibClipboard.cpp \ VBoxGuestR3LibCpuHotPlug.cpp \ VBoxGuestR3LibCredentials.cpp \ VBoxGuestR3LibEvent.cpp \ VBoxGuestR3LibGR.cpp \ VBoxGuestR3LibLog.cpp \ VBoxGuestR3LibMisc.cpp \ VBoxGuestR3LibStat.cpp \ VBoxGuestR3LibTime.cpp ifneq ($(KBUILD_TARGET),win) ## @todo get rid of this hack (as soon as it's all implemented / #defined). VBoxGuestR3Lib_SOURCES += \ VBoxGuestR3LibDaemonize.cpp \ VBoxGuestR3LibMouse.cpp \ VBoxGuestR3LibSeamless.cpp \ VBoxGuestR3LibVideo.cpp endif ifdef VBOX_WITH_GUEST_PROPS VBoxGuestR3Lib_SOURCES += \ VBoxGuestR3LibGuestProp.cpp \ VBoxGuestR3LibHostVersion.cpp endif ifdef VBOX_WITH_GUEST_CONTROL VBoxGuestR3Lib_SOURCES += \ VBoxGuestR3LibGuestCtrl.cpp endif VBoxGuestR3LibAdditions.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) # # 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 \ VBoxGuestR3LibSeamless.cpp \ VBoxGuestR3LibVideo.cpp \ VBoxGuestR3LibRuntimeXF86.cpp VBoxGuestR3LibRuntimeXF86.cpp_CXXFLAGS = -Wno-shadow VBoxGuestR3LibXFree86_INCS = \ $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common/ \ $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \ $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \ $(VBOX_PATH_X11_XFREE_4_3)/include \ $(VBOX_PATH_X11_XFREE_4_3)/exports/include/X11 include $(KBUILD_PATH)/subfooter.kmk