VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/VBoxGuest/Makefile.kmk@ 10759

Last change on this file since 10759 was 10129, checked in by vboxsync, 16 years ago

VBOX_KBUILD_HACKING.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Makefile.kmk 10129 2008-07-03 03:07:18Z vboxsync $
2## @file
3# Sub-Makefile for VBoxGuest (Windows Guest Additions Driver).
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22ifdef VBOX_KBUILD_HACKING
23SUB_DEPTH = ../../../../..
24else
25DEPTH ?= ../../../../..
26SUB_DEPTH = ../..
27endif
28include $(KBUILD_PATH)/subheader.kmk
29
30#
31# VBoxGuest
32#
33SYSMODS += VBoxGuest
34VBoxGuest_TEMPLATE = VBOXGUESTR0
35ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
36 VBoxGuest_NOINST = true
37endif
38VBoxGuest_DEFS = LOG_TO_BACKDOOR VBGL_VBOXGUEST VBOX_HGCM VBOX_REBOOT_ON_UNINSTALL
39#VBoxGuest_DEFS += LOG_ENABLED
40VBoxGuest_INCS = ../include
41VBoxGuest_LDFLAGS.x86 = -Entry:DriverEntry@8
42VBoxGuest_LDFLAGS.amd64 = -Entry:DriverEntry
43VBoxGuest_SOURCES = \
44 VBoxGuest.cpp \
45 VBoxGuestPnP.cpp \
46 Helper.cpp \
47 VBoxGuest.rc
48VBoxGuest_LIBS = \
49 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
50 $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
51 $(PATH_SDK_W2K3DDK_LIB)/win32k.lib \
52 $(VBOX_LIB_VBGL_R0BASE) \
53 $(VBOX_LIB_IPRT_GUEST_R0)
54
55
56#
57# VBoxGuestNT - NT version of the driver (x86 only).
58#
59SYSMODS.x86 += VBoxGuestNT
60ifeq (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)),)
61VBoxGuestNT_EXTENDS = VBoxGuest
62else
63VBoxGuestNT_TEMPLATE = VBOXGUESTR0
64VBoxGuestNT_INCS = $(VBoxGuest_INCS)
65VBoxGuestNT_LDFLAGS.x86 = $(VBoxGuest_LDFLAGS.x86)
66endif
67VBoxGuestNT_DEFS = $(VBoxGuest_DEFS) TARGET_NT4
68VBoxGuestNT_SOURCES = \
69 VBoxGuest.cpp \
70 Helper.cpp \
71 NTLegacy.cpp \
72 VBoxGuest.rc
73VBoxGuestNT_LIBS = \
74 $(PATH_SDK_W2K3DDK_LIB)/exsup.lib \
75 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
76 $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
77 $(VBOX_LIB_VBGL_R0BASE) \
78 $(VBOX_LIB_IPRT_GUEST_R0_NT4)
79
80#
81# VBoxGuestInst - The installer.
82#
83#PROGRAMS += VBoxGuestInst
84VBoxGuestInst_TEMPLATE= VBOXGUESTR3EXE
85VBoxGuestInst_SOURCES = VBoxGuestInst.cpp
86
87include $(KBUILD_PATH)/subfooter.kmk
88
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette