1 | # $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Install misc stuff and create dist packages.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | SUB_DEPTH = ../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | #
|
---|
32 | # Make sure our Config.kmk is included.
|
---|
33 | #
|
---|
34 | ifndef VBOX_INSTALLER_CONFIG_KMK_INCLUDED
|
---|
35 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
36 | endif
|
---|
37 |
|
---|
38 | #
|
---|
39 | # Include Sub-Makefiles.
|
---|
40 | #
|
---|
41 | ifndef VBOX_ONLY_SDK
|
---|
42 | if "$(KBUILD_TARGET)" == "darwin" && "$(KBUILD_HOST)" == "darwin"
|
---|
43 | include $(PATH_SUB_CURRENT)/darwin/Makefile.kmk
|
---|
44 | endif
|
---|
45 | if "$(KBUILD_TARGET)" == "linux" && "$(KBUILD_HOST)" == "linux"
|
---|
46 | include $(PATH_SUB_CURRENT)/linux/Makefile.kmk
|
---|
47 | endif
|
---|
48 | if "$(KBUILD_TARGET)" == "solaris" && "$(KBUILD_HOST)" == "solaris"
|
---|
49 | include $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
|
---|
50 | endif
|
---|
51 | if "$(KBUILD_TARGET)" == "win" && "$(KBUILD_HOST)" == "win"
|
---|
52 | include $(PATH_SUB_CURRENT)/win/Makefile.kmk
|
---|
53 | endif
|
---|
54 | if "$(KBUILD_TARGET)" == "freebsd" && "$(KBUILD_HOST)" == "freebsd"
|
---|
55 | include $(PATH_SUB_CURRENT)/freebsd/Makefile.kmk
|
---|
56 | endif
|
---|
57 | endif
|
---|
58 |
|
---|
59 | include $(PATH_SUB_CURRENT)/common/Makefile.kmk
|
---|
60 |
|
---|
61 | if defined(VBOX_ONLY_SDK) ## @todo || defined(VBOX_WITH_SDK)
|
---|
62 | #
|
---|
63 | # Package the VirtualBox SDK.
|
---|
64 | #
|
---|
65 | VBOX_SDK_ZIP = $(PATH_STAGE_BIN)/VirtualBoxSDK-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).zip
|
---|
66 | PACKING += $(VBOX_SDK_ZIP)
|
---|
67 | OTHER_CLEANS += $(VBOX_SDK_ZIP) \
|
---|
68 | $(wildcard $(PATH_STAGE_BIN)/VirtualBoxSDK-*-r*.zip)
|
---|
69 |
|
---|
70 | # @todo: wrong, it must depend on everything included in SDK
|
---|
71 | $(VBOX_SDK_ZIP): \
|
---|
72 | $(PATH_STAGE_BIN)/sdk \
|
---|
73 | $(VBOX_VERSION_STAMP)
|
---|
74 | $(call MSG_L1,Making SDK delivery $@)
|
---|
75 | $(QUIET)$(REDIRECT) $(if $(QUIET),-wo /dev/null,) -C $(PATH_STAGE_BIN) -- $(VBOX_ZIP) -r9 $@ sdk
|
---|
76 | endif
|
---|
77 |
|
---|
78 |
|
---|
79 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
80 |
|
---|