1 | # $Id: Makefile.kmk 5999 2007-12-07 15:05:06Z 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 (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 |
|
---|
17 | DEPTH ?= ../../../..
|
---|
18 | SUB_DEPTH = ..
|
---|
19 | include $(PATH_KBUILD)/subheader.kmk
|
---|
20 |
|
---|
21 | # Include Sub-Makefiles.
|
---|
22 | include $(PATH_SUB_CURRENT)/Graphics/Makefile.kmk
|
---|
23 | include $(PATH_SUB_CURRENT)/i8042prt/Makefile.kmk
|
---|
24 | include $(PATH_SUB_CURRENT)/MouseFilter/Makefile.kmk
|
---|
25 | include $(PATH_SUB_CURRENT)/VBoxGuest/Makefile.kmk
|
---|
26 | include $(PATH_SUB_CURRENT)/VBoxService/Makefile.kmk
|
---|
27 | include $(PATH_SUB_CURRENT)/VBoxGINA/Makefile.kmk
|
---|
28 | include $(PATH_SUB_CURRENT)/VBoxControl/Makefile.kmk
|
---|
29 | include $(PATH_SUB_CURRENT)/VBoxHook/Makefile.kmk
|
---|
30 | ifndef VBOX_OSE
|
---|
31 | include $(PATH_SUB_CURRENT)/Network/Makefile.kmk
|
---|
32 | endif
|
---|
33 | ifdef VBOX_WITH_WIN32_ADDITIONS_SHAREDFOLDERS
|
---|
34 | include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
|
---|
35 | endif
|
---|
36 | ifneq ($(wildcard $(PATH_SUB_CURRENT)/Installer),)
|
---|
37 | include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk
|
---|
38 | endif
|
---|
39 |
|
---|
40 | #
|
---|
41 | # Inf2Cat requires all the files referenced in the .inf file
|
---|
42 | # to be present in the directory, so we have to do this from here.
|
---|
43 | #
|
---|
44 | INSTALLS += VBoxGuest-inf
|
---|
45 | VBoxGuest-inf_INST = $(INST_ADDITIONS)
|
---|
46 | VBoxGuest-inf_MODE = a+r,u+w
|
---|
47 | ifndef VBOX_SIGN_ADDITIONS
|
---|
48 | VBoxGuest-inf_SOURCES = VBoxGuest/VBoxGuest.inf
|
---|
49 | else
|
---|
50 | VBoxGuest-inf_SOURCES = \
|
---|
51 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf \
|
---|
52 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat \
|
---|
53 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
|
---|
54 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
|
---|
55 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxService.exe \
|
---|
56 | $(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll
|
---|
57 | VBoxGuest-inf_CLEAN = $(VBoxGuest-inf_SOURCES)
|
---|
58 | VBoxGuest-inf_BLDDIRS = $(PATH_TARGET)/VBoxGuestCat.dir
|
---|
59 |
|
---|
60 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf: $(PATH_SUB_CURRENT)/VBoxGuest/VBoxGuest.inf $(MAKEFILE_CURRENT) | $$(call DIRDEP,$$(@D))
|
---|
61 | $(call MSG_GENERATE,VBoxGuest-inf,$@,$<)
|
---|
62 | $(call VBOX_EDIT_INF32_FN,$<,$@)
|
---|
63 |
|
---|
64 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys: $$(TARGET_VBoxGuest) | $$(call DIRDEP,$$(@D))
|
---|
65 | $(INSTALL) -m 644 $< $(@D)
|
---|
66 |
|
---|
67 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe: $$(TARGET_VBoxControl) | $$(call DIRDEP,$$(@D))
|
---|
68 | $(INSTALL) -m 755 $< $(@D)
|
---|
69 |
|
---|
70 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxService.exe: $$(TARGET_VBoxService) | $$(call DIRDEP,$$(@D))
|
---|
71 | $(INSTALL) -m 755 $< $(@D)
|
---|
72 |
|
---|
73 | $(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll: $$(TARGET_VBCoInst) | $$(call DIRDEP,$$(@D))
|
---|
74 | $(INSTALL) -m 644 $< $(@D)
|
---|
75 |
|
---|
76 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat: \
|
---|
77 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf \
|
---|
78 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
|
---|
79 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
|
---|
80 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxService.exe \
|
---|
81 | $(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll
|
---|
82 | $(call MSG_TOOL,Inf2Cat,VBoxGuest-inf,$@,$<)
|
---|
83 | $(call VBOX_MAKE_CAT32_FN, $(@D),$@)
|
---|
84 |
|
---|
85 | endif # signing
|
---|
86 |
|
---|
87 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
88 |
|
---|