1 | # $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the OS/2 specific part of the guest additions.
|
---|
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 | # Make sure our Config.kmk is included.
|
---|
32 | ifndef VBOX_ADDITIONS_OS2_CONFIG_KMK_INCLUDED
|
---|
33 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
34 | endif
|
---|
35 |
|
---|
36 | #
|
---|
37 | # The sub-makefiles.
|
---|
38 | #
|
---|
39 | ifndef VBOX_OSE
|
---|
40 | include $(PATH_SUB_CURRENT)/VBoxGradd/Makefile.kmk
|
---|
41 | # include $(PATH_SUB_CURRENT)/VBoxGrext/Makefile.kmk
|
---|
42 | include $(PATH_SUB_CURRENT)/VBoxMouse/Makefile.kmk
|
---|
43 | include $(PATH_SUB_CURRENT)/Bin/Makefile.kmk
|
---|
44 | endif
|
---|
45 | include $(PATH_SUB_CURRENT)/VBoxSF/Makefile.kmk
|
---|
46 |
|
---|
47 |
|
---|
48 | #
|
---|
49 | # Installation helper.
|
---|
50 | #
|
---|
51 | PROGRAMS += VBoxReplaceDll
|
---|
52 | VBoxReplaceDll_TEMPLATE = NewVBoxGuestR3Exe
|
---|
53 | VBoxReplaceDll_SOURCES = VBoxReplaceDll.cpp
|
---|
54 |
|
---|
55 |
|
---|
56 | #
|
---|
57 | # A barebone installer.
|
---|
58 | #
|
---|
59 | PROGRAMS += VBoxOs2AdditionsInstall
|
---|
60 | VBoxOs2AdditionsInstall_TEMPLATE = DUMMY
|
---|
61 | VBoxOs2AdditionsInstall_TOOL = OPENWATCOM
|
---|
62 | VBoxOs2AdditionsInstall_ASTOOL = OPENWATCOM
|
---|
63 | VBoxOs2AdditionsInstall_BLD_TRG = os2
|
---|
64 | VBoxOs2AdditionsInstall_BLD_TRG_ARCH = x86
|
---|
65 | VBoxOs2AdditionsInstall_EXESUFF = .exe
|
---|
66 | VBoxOs2AdditionsInstall_INST = $(INST_ADDITIONS)
|
---|
67 | VBoxOs2AdditionsInstall_DEFS = IN_RING3 IN_RT_R3 IN_RT_STATIC RT_NO_STRICT
|
---|
68 | VBoxOs2AdditionsInstall_CFLAGS = -w3
|
---|
69 | VBoxOs2AdditionsInstall_CFLAGS.release = -os
|
---|
70 | VBoxOs2AdditionsInstall_CXXFLAGS = -w3
|
---|
71 | VBoxOs2AdditionsInstall_CXXFLAGS.release = -os
|
---|
72 | VBoxOs2AdditionsInstall_INCS = \
|
---|
73 | $(PATH_TOOL_OPENWATCOM)/h/os2
|
---|
74 | VBoxOs2AdditionsInstall_SOURCES = \
|
---|
75 | VBoxOs2AdditionsInstall.cpp \
|
---|
76 | $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathStripFilename.cpp \
|
---|
77 | $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathEnsureTrailingSeparator.cpp
|
---|
78 | if 1
|
---|
79 | VBOX_PATH_RUNTIME_SRC ?= $(PATH_ROOT)/src/VBox/Runtime
|
---|
80 | VBoxOs2AdditionsInstall_LDTOOL = OPENWATCOM-WL
|
---|
81 | VBoxOs2AdditionsInstall_CFLAGS += -zl -s -zc -xd -xds
|
---|
82 | VBoxOs2AdditionsInstall_CXXFLAGS += -zl -s -zc -xd -xds
|
---|
83 | VBoxOs2AdditionsInstall_LDFLAGS = \
|
---|
84 | SYSTEM os2v2 \
|
---|
85 | OPTION START=_VBoxOs2AdditionsInstallMain \
|
---|
86 | OPTION STACK=16384 \
|
---|
87 | OPTION ELiminate \
|
---|
88 | OPTION DOSSeg
|
---|
89 | VBoxOs2AdditionsInstall_DEFS += IPRT_NO_CRT RT_WITH_NOCRT_ALIASES
|
---|
90 | VBoxOs2AdditionsInstall_INCS <= \
|
---|
91 | $(PATH_ROOT)/include/iprt/nocrt \
|
---|
92 | $(VBOX_PATH_RUNTIME_SRC)/include
|
---|
93 | VBoxOs2AdditionsInstall_SOURCES += \
|
---|
94 | VBoxOs2AdditionsInstallA.asm \
|
---|
95 | $(VBOX_PATH_RUNTIME_SRC)/common/string/strcpy.cpp \
|
---|
96 | $(VBOX_PATH_RUNTIME_SRC)/common/string/strchr.cpp \
|
---|
97 | $(VBOX_PATH_RUNTIME_SRC)/common/string/strlen.cpp \
|
---|
98 | $(VBOX_PATH_RUNTIME_SRC)/common/string/strncmp.cpp \
|
---|
99 | $(VBOX_PATH_RUNTIME_SRC)/common/string/memchr.cpp \
|
---|
100 | $(VBOX_PATH_RUNTIME_SRC)/common/string/memcmp.cpp \
|
---|
101 | $(VBOX_PATH_RUNTIME_SRC)/common/string/memcpy.cpp \
|
---|
102 | $(VBOX_PATH_RUNTIME_SRC)/common/string/memrchr.cpp \
|
---|
103 | $(VBOX_PATH_RUNTIME_SRC)/common/string/memset.cpp
|
---|
104 | VBoxOs2AdditionsInstall_LIBS = \
|
---|
105 | $(PATH_TOOL_OPENWATCOM)/lib386/os2/os2386.lib
|
---|
106 | else
|
---|
107 | VBoxOs2AdditionsInstall_CFLAGS +=
|
---|
108 | VBoxOs2AdditionsInstall_CXXFLAGS +=
|
---|
109 | VBoxOs2AdditionsInstall_LDFLAGS = -bcl=os2v2 -k16384 -'OPTION START=_VBoxOs2AdditionsInstallMain'
|
---|
110 | endif
|
---|
111 |
|
---|
112 |
|
---|
113 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
114 |
|
---|