1 | # $Id: Makefile.kmk 18019 2009-03-17 13:08:12Z 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 |
|
---|
22 | SUB_DEPTH = ../../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | #
|
---|
26 | # VBoxGuest
|
---|
27 | #
|
---|
28 | SYSMODS += VBoxGuest
|
---|
29 | VBoxGuest_TEMPLATE = VBOXGUESTR0
|
---|
30 | ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
|
---|
31 | VBoxGuest_NOINST = true
|
---|
32 | endif
|
---|
33 | VBoxGuest_DEFS = LOG_TO_BACKDOOR VBGL_VBOXGUEST VBOX_WITH_HGCM VBOX_REBOOT_ON_UNINSTALL
|
---|
34 | ifdef VBOX_WITH_GUEST_BUGCHECK_DETECTION
|
---|
35 | VBoxGuest_DEFS += VBOX_WITH_GUEST_BUGCHECK_DETECTION
|
---|
36 | endif
|
---|
37 | #VBoxGuest_DEFS += LOG_ENABLED
|
---|
38 | VBoxGuest_INCS = \
|
---|
39 | ../include
|
---|
40 | VBoxGuest_LDFLAGS.x86 = -Entry:DriverEntry@8
|
---|
41 | VBoxGuest_LDFLAGS.amd64 = -Entry:DriverEntry
|
---|
42 | VBoxGuest_SDKS = WINDDKWLH
|
---|
43 | VBoxGuest_SOURCES = \
|
---|
44 | VBoxGuest.cpp \
|
---|
45 | VBoxGuestPnP.cpp \
|
---|
46 | Helper.cpp \
|
---|
47 | VBoxGuest.rc
|
---|
48 | VBoxGuest_LIBS = \
|
---|
49 | $(PATH_SDK_WINDDKWLH_LIB)/ntoskrnl.lib \
|
---|
50 | $(PATH_SDK_WINDDKWLH_LIB)/hal.lib \
|
---|
51 | $(VBOX_LIB_VBGL_R0BASE) \
|
---|
52 | $(VBOX_LIB_IPRT_GUEST_R0) \
|
---|
53 |
|
---|
54 | ifdef VBOX_WITH_GUEST_BUGCHECK_DETECTION
|
---|
55 | VBoxGuest_LIBS += \
|
---|
56 | $(PATH_SDK_WINDDKWLH_LIB)/ksecdd.lib \
|
---|
57 | $(PATH_SDK_WINDDKWLH_LIB)/BufferOverflowK.lib \
|
---|
58 | $(PATH_SDK_WINDDKWLH_LIB)/aux_klib.lib
|
---|
59 | endif
|
---|
60 |
|
---|
61 | #
|
---|
62 | # VBoxGuestNT - NT version of the driver (x86 only).
|
---|
63 | #
|
---|
64 | SYSMODS.x86 += VBoxGuestNT
|
---|
65 | VBoxGuestNT_EXTENDS = VBoxGuest
|
---|
66 | VBoxGuestNT_NOINST = $(NO_SUCH_VARIABLE)
|
---|
67 | VBoxGuestNT_DEFS = $(VBoxGuest_DEFS) TARGET_NT4
|
---|
68 |
|
---|
69 | VBoxGuestNT_SOURCES = \
|
---|
70 | VBoxGuest.cpp \
|
---|
71 | Helper.cpp \
|
---|
72 | NTLegacy.cpp \
|
---|
73 | VBoxGuest.rc
|
---|
74 | VBoxGuestNT_LIBS = \
|
---|
75 | $(PATH_SDK_W2K3DDK_LIB)/exsup.lib \
|
---|
76 | $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
|
---|
77 | $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
|
---|
78 | $(VBOX_LIB_VBGL_R0BASE) \
|
---|
79 | $(VBOX_LIB_IPRT_GUEST_R0_NT4)
|
---|
80 |
|
---|
81 | #
|
---|
82 | # VBoxGuestInst - The installer.
|
---|
83 | #
|
---|
84 | #PROGRAMS += VBoxGuestInst
|
---|
85 | VBoxGuestInst_TEMPLATE= VBOXGUESTR3EXE
|
---|
86 | VBoxGuestInst_SOURCES = VBoxGuestInst.cpp
|
---|
87 |
|
---|
88 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
89 |
|
---|