1 | # $Id: Makefile.kmk 44974 2013-03-11 11:16:31Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxMMR.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2012-2013 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 |
|
---|
18 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | PROGRAMS += VBoxMMR
|
---|
22 | VBoxMMR_TEMPLATE = NewVBoxGuestR3Exe
|
---|
23 | VBoxMMR_DEFS = LOG_TO_BACKDOOR VBOX_WITH_HGCM
|
---|
24 | VBoxMMR_SOURCES = \
|
---|
25 | VBoxMMR.rc \
|
---|
26 | startmmr.cpp
|
---|
27 |
|
---|
28 | DLLS += VBoxMMRHook
|
---|
29 |
|
---|
30 | VBoxMMRHook_TEMPLATE = VBOXGUESTR3DLL
|
---|
31 | VBoxMMRHook_DEFS = LOG_TO_BACKDOOR VBGL_VBOXGUEST VBOX_WITH_HGCM UNICODE TSMFHOOK_EXPORTS VBOX_WITH_GUEST_PROPS
|
---|
32 | VBoxMMRHook_SOURCES = \
|
---|
33 | VBoxMMRHook.rc \
|
---|
34 | VBoxMMRHook.def \
|
---|
35 | dllmain.cpp \
|
---|
36 | tsmfhook.cpp \
|
---|
37 | logging.cpp
|
---|
38 |
|
---|
39 | #
|
---|
40 | # 32-bit versions for inclusion on 64-bit Windows
|
---|
41 | #
|
---|
42 |
|
---|
43 | PROGRAMS.win.amd64 += VBoxMMR-x86
|
---|
44 | VBoxMMR-x86_EXTENDS = VBoxMMR
|
---|
45 | VBoxMMR-x86_BLD_TRG_ARCH = x86
|
---|
46 | VBoxMMR-x86_LIBS = \
|
---|
47 | $(VBOX_LIB_IPRT_GUEST_R3_X86) \
|
---|
48 | $(VBOX_LIB_VBGL_R3_X86)
|
---|
49 | VBoxMMR-x86_DEFS = $(VBoxMMR_DEFS) VBOX_WOW64
|
---|
50 |
|
---|
51 | DLLS.win.amd64 += VBoxMMRHook-x86
|
---|
52 | VBoxMMRHook-x86_EXTENDS = VBoxMMRHook
|
---|
53 | VBoxMMRHook-x86_BLD_TRG_ARCH = x86
|
---|
54 | VBoxMMRHook-x86_LIBS = \
|
---|
55 | $(VBOX_LIB_IPRT_GUEST_R3_X86) \
|
---|
56 | $(VBOX_LIB_VBGL_R3_X86)
|
---|
57 | VBoxMMRHook-x86_DEFS = $(VBoxMMRHook_DEFS) VBOX_WOW64
|
---|
58 |
|
---|
59 | #
|
---|
60 | # Since this is not the default SDK we have to navigate manually to it.
|
---|
61 | #
|
---|
62 | ifndef VBOX_OSE
|
---|
63 | VBOX_PATH_PSDK_v71 := $(PATH_DEVTOOLS)/win.x86/sdk/v7.1
|
---|
64 | else
|
---|
65 | VBOX_PATH_PSDK_v71 := $(PATH_SDK_WINPSDK71)
|
---|
66 | endif
|
---|
67 |
|
---|
68 | VBoxMMRHook_INCS := \
|
---|
69 | $(VBOX_PATH_PSDK_v71)/Include \
|
---|
70 | ../include \
|
---|
71 | $(SUB_DEPTH)/include
|
---|
72 |
|
---|
73 | VBoxMMRHook_LIBS.x86 := \
|
---|
74 | $(VBOX_PATH_PSDK_v71)/Lib/WS2_32.lib
|
---|
75 | VBoxMMRHook_LIBS.amd64 := \
|
---|
76 | $(VBOX_PATH_PSDK_v71)/Lib/x64/WS2_32.lib
|
---|
77 |
|
---|
78 | VBoxMMRHook_LIBS += \
|
---|
79 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
80 | $(VBOX_LIB_VBGL_R3)
|
---|
81 |
|
---|
82 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
83 |
|
---|