1 | # $Id: Makefile.kmk 3742 2007-07-20 15:00:21Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Windows NT++ Guest Additions.
|
---|
4 | #
|
---|
5 |
|
---|
6 | # Copyright (C) 2006-2007 innotek GmbH
|
---|
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 as published by the Free Software Foundation,
|
---|
12 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
13 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
14 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | #
|
---|
16 | # If you received this file as part of a commercial VirtualBox
|
---|
17 | # distribution, then only the terms of your commercial VirtualBox
|
---|
18 | # license agreement apply instead of the previous paragraph.
|
---|
19 | #
|
---|
20 | #
|
---|
21 |
|
---|
22 | DEPTH ?= ../../../..
|
---|
23 | SUB_DEPTH = ..
|
---|
24 | include $(PATH_KBUILD)/subheader.kmk
|
---|
25 |
|
---|
26 | # Include Sub-Makefiles.
|
---|
27 | include $(PATH_SUB_CURRENT)/Graphics/Makefile.kmk
|
---|
28 | include $(PATH_SUB_CURRENT)/i8042prt/Makefile.kmk
|
---|
29 | include $(PATH_SUB_CURRENT)/MouseFilter/Makefile.kmk
|
---|
30 | include $(PATH_SUB_CURRENT)/VBoxGuest/Makefile.kmk
|
---|
31 | include $(PATH_SUB_CURRENT)/VBoxService/Makefile.kmk
|
---|
32 | include $(PATH_SUB_CURRENT)/VBoxGINA/Makefile.kmk
|
---|
33 | include $(PATH_SUB_CURRENT)/VBoxControl/Makefile.kmk
|
---|
34 | include $(PATH_SUB_CURRENT)/VBoxHook/Makefile.kmk
|
---|
35 | ifndef VBOX_OSE
|
---|
36 | include $(PATH_SUB_CURRENT)/Network/Makefile.kmk
|
---|
37 | endif
|
---|
38 | ifdef VBOX_WITH_WIN32_ADDITIONS_SHAREDFOLDERS
|
---|
39 | include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
|
---|
40 | endif
|
---|
41 | ifneq ($(wildcard $(PATH_SUB_CURRENT)/Installer),)
|
---|
42 | include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk
|
---|
43 | endif
|
---|
44 |
|
---|
45 | #
|
---|
46 | # Inf2Cat requires all the files referenced in the .inf file
|
---|
47 | # to be present in the directory, so we have to do this from here.
|
---|
48 | #
|
---|
49 | INSTALLS += VBoxGuest-inf
|
---|
50 | VBoxGuest-inf_INST = $(INST_ADDITIONS)
|
---|
51 | VBoxGuest-inf_MODE = a+r,u+w
|
---|
52 | ifndef VBOX_SIGN_ADDITIONS
|
---|
53 | VBoxGuest-inf_SOURCES = VBoxGuest/VBoxGuest.inf
|
---|
54 | else
|
---|
55 | VBoxGuest-inf_SOURCES = \
|
---|
56 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf \
|
---|
57 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat \
|
---|
58 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
|
---|
59 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
|
---|
60 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxService.exe \
|
---|
61 | $(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll
|
---|
62 | VBoxGuest-inf_CLEAN = $(VBoxGuest-inf_SOURCES)
|
---|
63 | VBoxGuest-inf_BLDDIRS = $(PATH_TARGET)/VBoxGuestCat.dir
|
---|
64 |
|
---|
65 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf: $(PATH_SUB_CURRENT)/VBoxGuest/VBoxGuest.inf $(MAKEFILE_CURRENT) | $$(call DIRDEP,$$(@D))
|
---|
66 | $(call MSG_GENERATE,VBoxGuest-inf,$@,$<)
|
---|
67 | $(call VBOX_EDIT_INF32_FN,$<,$@)
|
---|
68 |
|
---|
69 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys: $$(TARGET_VBoxGuest) | $$(call DIRDEP,$$(@D))
|
---|
70 | $(INSTALL) -m 644 $< $(@D)
|
---|
71 |
|
---|
72 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe: $$(TARGET_VBoxControl) | $$(call DIRDEP,$$(@D))
|
---|
73 | $(INSTALL) -m 755 $< $(@D)
|
---|
74 |
|
---|
75 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxService.exe: $$(TARGET_VBoxService) | $$(call DIRDEP,$$(@D))
|
---|
76 | $(INSTALL) -m 755 $< $(@D)
|
---|
77 |
|
---|
78 | $(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll: $$(TARGET_VBCoInst) | $$(call DIRDEP,$$(@D))
|
---|
79 | $(INSTALL) -m 644 $< $(@D)
|
---|
80 |
|
---|
81 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat: \
|
---|
82 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf \
|
---|
83 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
|
---|
84 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
|
---|
85 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxService.exe \
|
---|
86 | $(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll
|
---|
87 | $(call MSG_TOOL,Inf2Cat,VBoxGuest-inf,$@,$<)
|
---|
88 | $(call VBOX_MAKE_CAT32_FN, $(@D),$@)
|
---|
89 |
|
---|
90 | endif # signing
|
---|
91 |
|
---|
92 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
93 |
|
---|