VirtualBox

source: vbox/trunk/src/VBox/Additions/os2/Makefile.kmk

Last change on this file was 98416, checked in by vboxsync, 15 months ago

Additions/*.kmk: Automatic scm cleanups. bugref:10348

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1# $Id: Makefile.kmk 98416 2023-02-01 16:25:17Z vboxsync $
2## @file
3# Sub-Makefile for the OS/2 specific part of the guest additions.
4#
5
6#
7# Copyright (C) 2006-2023 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
28SUB_DEPTH = ../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31# Make sure our Config.kmk is included.
32ifndef VBOX_ADDITIONS_OS2_CONFIG_KMK_INCLUDED
33 include $(PATH_SUB_CURRENT)/Config.kmk
34endif
35
36#
37# The sub-makefiles.
38#
39ifndef 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
44endif
45include $(PATH_SUB_CURRENT)/VBoxSF/Makefile.kmk
46
47
48#
49# Installation helper.
50#
51PROGRAMS += VBoxReplaceDll
52VBoxReplaceDll_TEMPLATE = VBoxGuestR3Exe
53VBoxReplaceDll_SOURCES = VBoxReplaceDll.cpp
54
55
56#
57# A barebone installer.
58#
59PROGRAMS += VBoxOs2AdditionsInstall
60VBoxOs2AdditionsInstall_TEMPLATE = DUMMY
61VBoxOs2AdditionsInstall_TOOL = OPENWATCOM
62VBoxOs2AdditionsInstall_ASTOOL = OPENWATCOM
63VBoxOs2AdditionsInstall_BLD_TRG = os2
64VBoxOs2AdditionsInstall_BLD_TRG_ARCH = x86
65VBoxOs2AdditionsInstall_EXESUFF = .exe
66VBoxOs2AdditionsInstall_INST = $(INST_ADDITIONS)
67VBoxOs2AdditionsInstall_DEFS = IN_RING3 IN_RT_R3 IN_RT_STATIC RT_NO_STRICT
68VBoxOs2AdditionsInstall_CFLAGS = -w3
69VBoxOs2AdditionsInstall_CFLAGS.release = -os
70VBoxOs2AdditionsInstall_CXXFLAGS = -w3
71VBoxOs2AdditionsInstall_CXXFLAGS.release = -os
72VBoxOs2AdditionsInstall_INCS = \
73 $(PATH_TOOL_OPENWATCOM)/h/os2
74VBoxOs2AdditionsInstall_SOURCES = \
75 VBoxOs2AdditionsInstall.cpp \
76 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathStripFilename.cpp \
77 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathEnsureTrailingSeparator.cpp
78if 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
106else
107 VBoxOs2AdditionsInstall_CFLAGS +=
108 VBoxOs2AdditionsInstall_CXXFLAGS +=
109 VBoxOs2AdditionsInstall_LDFLAGS = -bcl=os2v2 -k16384 -'OPTION START=_VBoxOs2AdditionsInstallMain'
110endif
111
112
113include $(FILE_KBUILD_SUB_FOOTER)
114
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use