1 | # $Id: Makefile.kmk 10797 2008-07-22 08:12:42Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Windows NT++ Guest Additions.
|
---|
4 | #
|
---|
5 |
|
---|
6 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
7 | #
|
---|
8 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | # available from http://www.virtualbox.org. This file is free software;
|
---|
10 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | # General Public License (GPL) as published by the Free Software
|
---|
12 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | #
|
---|
16 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
17 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
18 | # additional information or have any questions.
|
---|
19 | #
|
---|
20 |
|
---|
21 | ifdef VBOX_KBUILD_HACKING
|
---|
22 | SUB_DEPTH = ../../../..
|
---|
23 | else
|
---|
24 | SUB_DEPTH = ..
|
---|
25 | DEPTH ?= ../../../..
|
---|
26 | endif
|
---|
27 | include $(KBUILD_PATH)/subheader.kmk
|
---|
28 |
|
---|
29 | # Include Sub-Makefiles.
|
---|
30 | include $(PATH_SUB_CURRENT)/Graphics/Makefile.kmk
|
---|
31 | include $(PATH_SUB_CURRENT)/i8042prt/Makefile.kmk
|
---|
32 | include $(PATH_SUB_CURRENT)/MouseFilter/Makefile.kmk
|
---|
33 | include $(PATH_SUB_CURRENT)/VBoxGuest/Makefile.kmk
|
---|
34 | include $(PATH_SUB_CURRENT)/VBoxTray/Makefile.kmk
|
---|
35 | include $(PATH_SUB_CURRENT)/VBoxGINA/Makefile.kmk
|
---|
36 | include $(PATH_SUB_CURRENT)/VBoxHook/Makefile.kmk
|
---|
37 | ifndef VBOX_OSE
|
---|
38 | include $(PATH_SUB_CURRENT)/VBoxService/Makefile.kmk
|
---|
39 | include $(PATH_SUB_CURRENT)/Network/Makefile.kmk
|
---|
40 | endif
|
---|
41 | ifdef VBOX_WITH_WIN32_ADDITIONS_SHAREDFOLDERS
|
---|
42 | include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
|
---|
43 | endif
|
---|
44 | ifneq ($(wildcard $(PATH_SUB_CURRENT)/Installer),)
|
---|
45 | include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk
|
---|
46 | endif
|
---|
47 |
|
---|
48 | #
|
---|
49 | # Inf2Cat requires all the files referenced in the .inf file
|
---|
50 | # to be present in the directory, so we have to do this from here.
|
---|
51 | #
|
---|
52 | INSTALLS += VBoxGuest-inf
|
---|
53 | VBoxGuest-inf_INST = $(INST_ADDITIONS)
|
---|
54 | VBoxGuest-inf_MODE = a+r,u+w
|
---|
55 | ifndef VBOX_SIGN_ADDITIONS
|
---|
56 | VBoxGuest-inf_SOURCES = VBoxGuest/VBoxGuest.inf
|
---|
57 | else
|
---|
58 | VBoxGuest-inf_SOURCES = \
|
---|
59 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf \
|
---|
60 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat \
|
---|
61 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
|
---|
62 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
|
---|
63 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe \
|
---|
64 | $(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll
|
---|
65 | VBoxGuest-inf_CLEAN = $(VBoxGuest-inf_SOURCES)
|
---|
66 | VBoxGuest-inf_BLDDIRS = $(PATH_TARGET)/VBoxGuestCat.dir
|
---|
67 |
|
---|
68 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf: $(PATH_SUB_CURRENT)/VBoxGuest/VBoxGuest.inf $(MAKEFILE_CURRENT) | $$(call DIRDEP,$$(@D))
|
---|
69 | $(call MSG_GENERATE,VBoxGuest-inf,$@,$<)
|
---|
70 | $(call VBOX_EDIT_INF_FN,$<,$@)
|
---|
71 |
|
---|
72 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys: $$(TARGET_VBoxGuest) | $$(call DIRDEP,$$(@D))
|
---|
73 | $(INSTALL) -m 644 $< $(@D)
|
---|
74 |
|
---|
75 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe: $$(TARGET_VBoxControl) | $$(call DIRDEP,$$(@D))
|
---|
76 | $(INSTALL) -m 755 $< $(@D)
|
---|
77 |
|
---|
78 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe: $$(TARGET_VBoxTray) | $$(call DIRDEP,$$(@D))
|
---|
79 | $(INSTALL) -m 755 $< $(@D)
|
---|
80 |
|
---|
81 | $(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll: $$(TARGET_VBCoInst) | $$(call DIRDEP,$$(@D))
|
---|
82 | $(INSTALL) -m 644 $< $(@D)
|
---|
83 |
|
---|
84 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat: \
|
---|
85 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf \
|
---|
86 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
|
---|
87 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
|
---|
88 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe \
|
---|
89 | $(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll
|
---|
90 | $(call MSG_TOOL,Inf2Cat,VBoxGuest-inf,$@,$<)
|
---|
91 | $(call VBOX_MAKE_CAT_FN, $(@D),$@)
|
---|
92 |
|
---|
93 | endif # signing
|
---|
94 |
|
---|
95 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
96 |
|
---|