VirtualBox

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

Last change on this file since 31430 was 31430, checked in by vboxsync, 14 years ago

Guest Additions version lookup/status: Fixed loading of guest drivers, moved VbglR0MiscReportGuestInfo code to common/VBoxGuest/VBoxHelper.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1# $Id: Makefile.kmk 31430 2010-08-06 08:47:51Z vboxsync $
2## @file
3# Sub-Makefile for VBoxGuest (Windows Guest Additions Driver).
4#
5
6#
7# Copyright (C) 2006-2010 Oracle Corporation
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
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# VBoxGuest
23#
24SYSMODS += VBoxGuest
25VBoxGuest_TEMPLATE = VBOXGUESTR0
26ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
27 VBoxGuest_NOINST = true
28endif
29VBoxGuest_DEFS = LOG_TO_BACKDOOR VBGL_VBOXGUEST VBOX_WITH_HGCM VBOX_REBOOT_ON_UNINSTALL
30ifdef VBOX_WITH_GUEST_BUGCHECK_DETECTION
31 VBoxGuest_DEFS += VBOX_WITH_GUEST_BUGCHECK_DETECTION
32endif
33VBoxGuest_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
34#VBoxGuest_DEFS += LOG_ENABLED
35VBoxGuest_INCS = \
36 ../include
37VBoxGuest_LDFLAGS.x86 = -Entry:DriverEntry@8
38VBoxGuest_LDFLAGS.amd64 = -Entry:DriverEntry
39VBoxGuest_SOURCES = \
40 VBoxGuest.cpp \
41 VBoxGuestPnP.cpp \
42 Helper.cpp \
43 HelperBugCheck.cpp \
44 VBoxGuest.rc
45VBoxGuest_SOURCES += \
46 ../../common/VBoxGuest/VBoxHelper.cpp
47VBoxGuest_LIBS = \
48 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
49 $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
50 $(VBOX_LIB_VBGL_R0BASE) \
51 $(VBOX_LIB_IPRT_GUEST_R0)
52
53ifdef VBOX_WITH_GUEST_BUGCHECK_DETECTION
54 VBoxGuest_LIBS += \
55 $(PATH_SDK_WINDDKWLH_LIB)/aux_klib.lib \
56 $(PATH_SDK_WINDDKWLH_LIB)/ksecdd.lib \
57 $(PATH_SDK_WINDDKWLH_LIB)/BufferOverflowK.lib
58 VBoxGuest_HelperBugCheck.cpp_SDKS = WINDDKWLH
59endif
60
61#
62# VBoxGuestNT - NT version of the driver (x86 only).
63#
64SYSMODS.x86 += VBoxGuestNT
65VBoxGuestNT_EXTENDS = VBoxGuest
66VBoxGuestNT_NOINST = $(NO_SUCH_VARIABLE)
67VBoxGuestNT_DEFS = $(VBoxGuest_DEFS) TARGET_NT4
68
69VBoxGuestNT_SOURCES = \
70 VBoxGuest.cpp \
71 Helper.cpp \
72 HelperBugCheck.cpp \
73 NTLegacy.cpp \
74 VBoxGuest.rc
75VBoxGuestNT_SOURCES += \
76 ../../common/VBoxGuest/VBoxHelper.cpp
77
78VBoxGuestNT_LIBS = \
79 $(PATH_SDK_W2K3DDK_LIB)/exsup.lib \
80 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
81 $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
82 $(VBOX_LIB_VBGL_R0BASE) \
83 $(VBOX_LIB_IPRT_GUEST_R0_NT4)
84
85#
86# VBoxGuestInst - The installer.
87#
88#PROGRAMS += VBoxGuestInst
89VBoxGuestInst_TEMPLATE= VBOXGUESTR3EXE
90VBoxGuestInst_SOURCES = VBoxGuestInst.cpp
91
92include $(KBUILD_PATH)/subfooter.kmk
93
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