VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Makefile.kmk@ 10552

Last change on this file since 10552 was 10129, checked in by vboxsync, 16 years ago

VBOX_KBUILD_HACKING.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# $Id: Makefile.kmk 10129 2008-07-03 03:07:18Z 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
21ifdef VBOX_KBUILD_HACKING
22SUB_DEPTH = ../../../..
23else
24SUB_DEPTH = ..
25DEPTH ?= ../../../..
26endif
27include $(KBUILD_PATH)/subheader.kmk
28
29# Include Sub-Makefiles.
30include $(PATH_SUB_CURRENT)/Graphics/Makefile.kmk
31include $(PATH_SUB_CURRENT)/i8042prt/Makefile.kmk
32include $(PATH_SUB_CURRENT)/MouseFilter/Makefile.kmk
33include $(PATH_SUB_CURRENT)/VBoxGuest/Makefile.kmk
34include $(PATH_SUB_CURRENT)/VBoxTray/Makefile.kmk
35include $(PATH_SUB_CURRENT)/VBoxGINA/Makefile.kmk
36include $(PATH_SUB_CURRENT)/VBoxControl/Makefile.kmk
37include $(PATH_SUB_CURRENT)/VBoxHook/Makefile.kmk
38ifndef VBOX_OSE
39include $(PATH_SUB_CURRENT)/VBoxService/Makefile.kmk
40include $(PATH_SUB_CURRENT)/Network/Makefile.kmk
41endif
42ifdef VBOX_WITH_WIN32_ADDITIONS_SHAREDFOLDERS
43include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
44endif
45ifneq ($(wildcard $(PATH_SUB_CURRENT)/Installer),)
46include $(PATH_SUB_CURRENT)/Installer/Makefile.kmk
47endif
48
49#
50# Inf2Cat requires all the files referenced in the .inf file
51# to be present in the directory, so we have to do this from here.
52#
53INSTALLS += VBoxGuest-inf
54VBoxGuest-inf_INST = $(INST_ADDITIONS)
55VBoxGuest-inf_MODE = a+r,u+w
56ifndef VBOX_SIGN_ADDITIONS
57VBoxGuest-inf_SOURCES = VBoxGuest/VBoxGuest.inf
58else
59VBoxGuest-inf_SOURCES = \
60 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf \
61 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat \
62 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
63 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
64 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe \
65 $(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll
66VBoxGuest-inf_CLEAN = $(VBoxGuest-inf_SOURCES)
67VBoxGuest-inf_BLDDIRS = $(PATH_TARGET)/VBoxGuestCat.dir
68
69$(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf: $(PATH_SUB_CURRENT)/VBoxGuest/VBoxGuest.inf $(MAKEFILE_CURRENT) | $$(call DIRDEP,$$(@D))
70 $(call MSG_GENERATE,VBoxGuest-inf,$@,$<)
71 $(call VBOX_EDIT_INF_FN,$<,$@)
72
73$(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys: $$(TARGET_VBoxGuest) | $$(call DIRDEP,$$(@D))
74 $(INSTALL) -m 644 $< $(@D)
75
76$(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe: $$(TARGET_VBoxControl) | $$(call DIRDEP,$$(@D))
77 $(INSTALL) -m 755 $< $(@D)
78
79$(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe: $$(TARGET_VBoxTray) | $$(call DIRDEP,$$(@D))
80 $(INSTALL) -m 755 $< $(@D)
81
82$(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll: $$(TARGET_VBCoInst) | $$(call DIRDEP,$$(@D))
83 $(INSTALL) -m 644 $< $(@D)
84
85$(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat: \
86 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf \
87 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
88 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
89 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe \
90 $(PATH_TARGET)/VBoxGuestCat.dir/VBCoInst.dll
91 $(call MSG_TOOL,Inf2Cat,VBoxGuest-inf,$@,$<)
92 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
93
94endif # signing
95
96include $(KBUILD_PATH)/subfooter.kmk
97
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette