Makefile.kmk revision 3ad96deedaeae14c9c7ce2ec08a226e4804466dc
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync# Sub-Makefile for VBoxGuest (Windows Guest Additions Driver).
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Copyright (C) 2006-2007 Sun Microsystems, Inc.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# available from http://www.virtualbox.org. This file is free software;
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# you can redistribute it and/or modify it under the terms of the GNU
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# General Public License (GPL) as published by the Free Software
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# additional information or have any questions.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncDEPTH ?= ../../../../..
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncSUB_DEPTH = ../..
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncinclude $(KBUILD_PATH)/subheader.kmk
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsyncSYSMODS += VBoxGuest
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsyncVBoxGuest_TEMPLATE = VBOXGUESTR0
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsyncifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync VBoxGuest_NOINST = true
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsyncVBoxGuest_DEFS = LOG_TO_BACKDOOR VBGL_VBOXGUEST VBOX_HGCM VBOX_REBOOT_ON_UNINSTALL
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync#VBoxGuest_DEFS += LOG_ENABLED
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsyncVBoxGuest_INCS = ../include
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsyncVBoxGuest_LDFLAGS.x86 = -Entry:DriverEntry@8
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsyncVBoxGuest_LDFLAGS.amd64 = -Entry:DriverEntry
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsyncVBoxGuest_SOURCES = \
668c89ac2522d866021f5af374fac5bbed1c05aevboxsyncVBoxGuest_LIBS = \
668c89ac2522d866021f5af374fac5bbed1c05aevboxsync $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
668c89ac2522d866021f5af374fac5bbed1c05aevboxsync $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
668c89ac2522d866021f5af374fac5bbed1c05aevboxsync $(PATH_SDK_W2K3DDK_LIB)/win32k.lib \
668c89ac2522d866021f5af374fac5bbed1c05aevboxsync $(VBOX_LIB_VBGL_R0BASE) \
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync $(VBOX_LIB_IPRT_GUEST_R0)
SYSMODS.x86 += VBoxGuestNT
ifeq (kBuild,0.1.4) # This doesn't work because of the VBoxGuest_NOINST stuff above. ## @todo kBuild: change the NOINST test from ifdef to ifneq ($(strip $($(target)_NOINST)),)
$(PATH_SDK_W2K3DDK_LIB)/exsup.lib \
$(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
$(PATH_SDK_W2K3DDK_LIB)/hal.lib \
VBoxGuestInst_SOURCES = VBoxGuestInst.cpp
include $(KBUILD_PATH)/subfooter.kmk