1 | # $Id: Makefile.kmk 5999 2007-12-07 15:05:06Z 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 (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 |
|
---|
18 | DEPTH ?= ../../../../..
|
---|
19 | SUB_DEPTH = ../..
|
---|
20 | include $(PATH_KBUILD)/subheader.kmk
|
---|
21 |
|
---|
22 | #
|
---|
23 | # VBoxGuest
|
---|
24 | #
|
---|
25 | SYSMODS += VBoxGuest
|
---|
26 | VBoxGuest_TEMPLATE = VBOXW32GUESTR0
|
---|
27 | ifdef VBOX_SIGN_ADDITIONS
|
---|
28 | VBoxGuest_NOINST = true
|
---|
29 | endif
|
---|
30 | VBoxGuest_SDKS = W2K3DDKX86 WINPSDKINCS
|
---|
31 | VBoxGuest_DEFS = LOG_TO_BACKDOOR VBGL_VBOXGUEST VBOX_HGCM VBOX_REBOOT_ON_UNINSTALL
|
---|
32 | #VBoxGuest_DEFS += LOG_ENABLED
|
---|
33 | VBoxGuest_INCS = ../include
|
---|
34 | VBoxGuest_LDFLAGS = -Entry:DriverEntry@8
|
---|
35 | VBoxGuest_SOURCES = \
|
---|
36 | VBoxGuest.cpp \
|
---|
37 | VBoxGuestPnP.cpp \
|
---|
38 | Helper.cpp \
|
---|
39 | VBoxGuest.rc
|
---|
40 | VBoxGuest_LIBS = \
|
---|
41 | $(PATH_SDK_W2K3DDKX86_LIB)/int64.lib \
|
---|
42 | $(PATH_SDK_W2K3DDKX86_LIB)/win32k.lib \
|
---|
43 | $(PATH_SDK_W2K3DDKX86_LIB)/ntoskrnl.lib \
|
---|
44 | $(PATH_SDK_W2K3DDKX86_LIB)/hal.lib \
|
---|
45 | $(PATH_LIB)/additions/VBoxGuestLibBase$(VBOXW32GUEST_SUFF_LIB) \
|
---|
46 | $(PATH_LIB)/additions/RuntimeW32GuestR0$(VBOXW32GUEST_SUFF_LIB)
|
---|
47 |
|
---|
48 |
|
---|
49 | #
|
---|
50 | # VBoxGuestNT - NT version of the driver.
|
---|
51 | #
|
---|
52 | SYSMODS += VBoxGuestNT
|
---|
53 | VBoxGuestNT_TEMPLATE = VBOXW32GUESTR0
|
---|
54 | VBoxGuestNT_SDKS = W2K3DDKX86 WINPSDKINCS
|
---|
55 | VBoxGuestNT_DEFS = $(VBoxGuest_DEFS) TARGET_NT4
|
---|
56 | VBoxGuestNT_INCS = $(VBoxGuest_INCS)
|
---|
57 | VBoxGuestNT_LDFLAGS = $(VBoxGuest_LDFLAGS)
|
---|
58 | VBoxGuestNT_SOURCES = \
|
---|
59 | VBoxGuest.cpp \
|
---|
60 | Helper.cpp \
|
---|
61 | NTLegacy.cpp \
|
---|
62 | VBoxGuest.rc
|
---|
63 | VBoxGuestNT_LIBS = \
|
---|
64 | $(PATH_SDK_W2K3DDKX86_LIB)/exsup.lib \
|
---|
65 | $(PATH_SDK_W2K3DDKX86_LIB)/int64.lib \
|
---|
66 | $(PATH_SDK_W2K3DDKX86_LIB)/ntoskrnl.lib \
|
---|
67 | $(PATH_SDK_W2K3DDKX86_LIB)/hal.lib \
|
---|
68 | $(PATH_LIB)/additions/VBoxGuestLibBase$(VBOXW32GUEST_SUFF_LIB) \
|
---|
69 | $(PATH_LIB)/additions/RuntimeW32NT4GuestR0$(VBOXW32GUEST_SUFF_LIB)
|
---|
70 | # $(PATH_SDK_W2K3DDKX86_LIB)/win32k.lib - not needed?
|
---|
71 |
|
---|
72 |
|
---|
73 | #
|
---|
74 | # VBoxGuestInst - The installer.
|
---|
75 | #
|
---|
76 | #PROGRAMS += VBoxGuestInst
|
---|
77 | VBoxGuestInst_TEMPLATE= VBOXW32GUESTR3
|
---|
78 | VBoxGuestInst_SOURCES = VBoxGuestInst.cpp
|
---|
79 |
|
---|
80 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
81 |
|
---|