Makefile.kmk revision 3ad96deedaeae14c9c7ce2ec08a226e4804466dc
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync# $Id$
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync## @file
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync# Sub-Makefile for VBoxGuest (Windows Guest Additions Driver).
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync#
ee83d548adae5c628ab0799ceae14ad7895a0590vboxsync
c58f1213e628a545081c70e26c6b67a841cff880vboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Copyright (C) 2006-2007 Sun Microsystems, Inc.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
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#
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.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncDEPTH ?= ../../../../..
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncSUB_DEPTH = ../..
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncinclude $(KBUILD_PATH)/subheader.kmk
ee83d548adae5c628ab0799ceae14ad7895a0590vboxsync
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync#
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync# VBoxGuest
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync#
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsyncSYSMODS += VBoxGuest
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsyncVBoxGuest_TEMPLATE = VBOXGUESTR0
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsyncifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync VBoxGuest_NOINST = true
668c89ac2522d866021f5af374fac5bbed1c05aevboxsyncendif
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 = \
668c89ac2522d866021f5af374fac5bbed1c05aevboxsync VBoxGuest.cpp \
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync VBoxGuestPnP.cpp \
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync Helper.cpp \
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync VBoxGuest.rc
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)
e61bf890078c22f4e1a4ff8caa05e0209d548426vboxsync
#
# VBoxGuestNT - NT version of the driver (x86 only).
#
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)),)
VBoxGuestNT_EXTENDS = VBoxGuest
else
VBoxGuestNT_TEMPLATE = VBOXGUESTR0
VBoxGuestNT_INCS = $(VBoxGuest_INCS)
VBoxGuestNT_LDFLAGS.x86 = $(VBoxGuest_LDFLAGS.x86)
endif
VBoxGuestNT_DEFS = $(VBoxGuest_DEFS) TARGET_NT4
VBoxGuestNT_SOURCES = \
VBoxGuest.cpp \
Helper.cpp \
NTLegacy.cpp \
VBoxGuest.rc
VBoxGuestNT_LIBS = \
$(PATH_SDK_W2K3DDK_LIB)/exsup.lib \
$(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
$(PATH_SDK_W2K3DDK_LIB)/hal.lib \
$(VBOX_LIB_VBGL_R0BASE) \
$(VBOX_LIB_IPRT_GUEST_R0_NT4)
#
# VBoxGuestInst - The installer.
#
#PROGRAMS += VBoxGuestInst
VBoxGuestInst_TEMPLATE= VBOXGUESTR3EXE
VBoxGuestInst_SOURCES = VBoxGuestInst.cpp
include $(KBUILD_PATH)/subfooter.kmk