1 | # $Id: Makefile.kmk 4071 2007-08-07 17:07:59Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxGuest (Windows Guest Additions Driver).
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 innotek GmbH
|
---|
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 as published by the Free Software Foundation,
|
---|
13 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
14 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
15 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 |
|
---|
17 | DEPTH ?= ../../../../..
|
---|
18 | SUB_DEPTH = ../..
|
---|
19 | include $(PATH_KBUILD)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # VBoxGuest
|
---|
23 | #
|
---|
24 | SYSMODS += VBoxGuest
|
---|
25 | VBoxGuest_TEMPLATE = VBOXW32GUESTR0
|
---|
26 | ifdef VBOX_SIGN_ADDITIONS
|
---|
27 | VBoxGuest_NOINST = true
|
---|
28 | endif
|
---|
29 | VBoxGuest_SDKS = W2K3DDKX86 WINPSDKINCS
|
---|
30 | VBoxGuest_DEFS = LOG_TO_BACKDOOR VBGL_VBOXGUEST VBOX_HGCM VBOX_REBOOT_ON_UNINSTALL
|
---|
31 | #VBoxGuest_DEFS += LOG_ENABLED
|
---|
32 | VBoxGuest_LDFLAGS = -Entry:DriverEntry@8
|
---|
33 | VBoxGuest_SOURCES = \
|
---|
34 | VBoxGuest.cpp \
|
---|
35 | VBoxGuestPnP.cpp \
|
---|
36 | Helper.cpp \
|
---|
37 | VBoxGuest.rc
|
---|
38 | VBoxGuest_LIBS = \
|
---|
39 | $(PATH_SDK_W2K3DDKX86_LIB)/int64.lib \
|
---|
40 | $(PATH_SDK_W2K3DDKX86_LIB)/win32k.lib \
|
---|
41 | $(PATH_SDK_W2K3DDKX86_LIB)/ntoskrnl.lib \
|
---|
42 | $(PATH_SDK_W2K3DDKX86_LIB)/hal.lib \
|
---|
43 | $(PATH_LIB)/additions/VBoxGuestLibBase$(VBOXW32GUEST_SUFF_LIB) \
|
---|
44 | $(PATH_LIB)/additions/RuntimeW32GuestR0$(VBOXW32GUEST_SUFF_LIB)
|
---|
45 |
|
---|
46 |
|
---|
47 | #
|
---|
48 | # VBoxGuestNT - NT version of the driver.
|
---|
49 | #
|
---|
50 | SYSMODS += VBoxGuestNT
|
---|
51 | VBoxGuestNT_TEMPLATE = VBOXW32GUESTR0
|
---|
52 | VBoxGuestNT_SDKS = W2K3DDKX86 WINPSDKINCS
|
---|
53 | VBoxGuestNT_DEFS = $(VBoxGuest_DEFS) TARGET_NT4
|
---|
54 | VBoxGuestNT_INCS = $(VBoxGuest_INCS)
|
---|
55 | VBoxGuestNT_LDFLAGS = $(VBoxGuest_LDFLAGS)
|
---|
56 | VBoxGuestNT_SOURCES = \
|
---|
57 | VBoxGuest.cpp \
|
---|
58 | Helper.cpp \
|
---|
59 | NTLegacy.cpp \
|
---|
60 | VBoxGuest.rc
|
---|
61 | VBoxGuestNT_LIBS = \
|
---|
62 | $(PATH_SDK_W2K3DDKX86_LIB)/exsup.lib \
|
---|
63 | $(PATH_SDK_W2K3DDKX86_LIB)/int64.lib \
|
---|
64 | $(PATH_SDK_W2K3DDKX86_LIB)/ntoskrnl.lib \
|
---|
65 | $(PATH_SDK_W2K3DDKX86_LIB)/hal.lib \
|
---|
66 | $(PATH_LIB)/additions/VBoxGuestLibBase$(VBOXW32GUEST_SUFF_LIB) \
|
---|
67 | $(PATH_LIB)/additions/RuntimeW32NT4GuestR0$(VBOXW32GUEST_SUFF_LIB)
|
---|
68 | # $(PATH_SDK_W2K3DDKX86_LIB)/win32k.lib - not needed?
|
---|
69 |
|
---|
70 |
|
---|
71 | #
|
---|
72 | # VBoxGuestInst - The installer.
|
---|
73 | #
|
---|
74 | #PROGRAMS += VBoxGuestInst
|
---|
75 | VBoxGuestInst_TEMPLATE= VBOXW32GUESTR3
|
---|
76 | VBoxGuestInst_SOURCES = VBoxGuestInst.cpp
|
---|
77 |
|
---|
78 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
79 |
|
---|