1 | # $Id: Makefile.kmk 31667 2010-08-13 15:57:03Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the stub installer.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2009 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 | # This has to be 32-bit, so don't include it in the 64-bit build.
|
---|
22 | if "$(KBUILD_TARGET_ARCH)" == "x86"
|
---|
23 |
|
---|
24 | TEMPLATE_VBOXSTUB = Drop the signing, we will sign it later.
|
---|
25 | TEMPLATE_VBOXSTUB_EXTENDS = VBOXR3STATIC
|
---|
26 | TEMPLATE_VBOXSTUB_POST_CMDS = $(NO_SUCH_VARIABLE)
|
---|
27 |
|
---|
28 | PROGRAMS.x86 += VBoxStub
|
---|
29 | VBoxStub_TEMPLATE= VBOXSTUB
|
---|
30 | VBoxStub_DEFS = _WIN32_WINNT=0x0400 IN_RT_R3
|
---|
31 | VBoxStub_SOURCES = \
|
---|
32 | VBoxStub.cpp \
|
---|
33 | VBoxStub.rc
|
---|
34 | VBoxStub_SDKS += \
|
---|
35 | VBOX_NTDLL
|
---|
36 | VBoxStub_LIBS = \
|
---|
37 | $(VBOX_LIB_RUNTIME_STATIC) \
|
---|
38 | $(PATH_SDK_W2K3DDK_LIB)\Msi.lib
|
---|
39 |
|
---|
40 | VBoxStub.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
41 | VBoxStub.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
42 |
|
---|
43 | # The icon location is configurable.
|
---|
44 | VBoxStub.rc_INCS += $(PATH_VBoxStub)
|
---|
45 | VBoxStub.rc_DEPS += $(PATH_VBoxStub)/VBoxStub-icon.rc
|
---|
46 | VBoxStub.rc_CLEAN = $(PATH_VBoxStub)/VBoxStub-icon.rc
|
---|
47 |
|
---|
48 | # Icon include file.
|
---|
49 | $$(PATH_VBoxStub)/VBoxStub-icon.rc: $(VBOX_WINDOWS_ICON_FILE) $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
50 | $(APPEND) -t $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
51 |
|
---|
52 | endif # x86 only
|
---|
53 |
|
---|
54 | include $(KBUILD_PATH)/subfooter.kmk
|
---|