VirtualBox

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

Last change on this file since 95910 was 93146, checked in by vboxsync, 3 years ago

Add/os2: Ship the barebone OS/2 GA installer.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1# $Id: Makefile.kmk 93146 2022-01-08 03:11:09Z 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 Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21# Make sure our Config.kmk is included.
22ifndef VBOX_ADDITIONS_OS2_CONFIG_KMK_INCLUDED
23 include $(PATH_SUB_CURRENT)/Config.kmk
24endif
25
26#
27# The sub-makefiles.
28#
29ifndef VBOX_OSE
30 include $(PATH_SUB_CURRENT)/VBoxGradd/Makefile.kmk
31# include $(PATH_SUB_CURRENT)/VBoxGrext/Makefile.kmk
32 include $(PATH_SUB_CURRENT)/VBoxMouse/Makefile.kmk
33 include $(PATH_SUB_CURRENT)/Bin/Makefile.kmk
34endif
35include $(PATH_SUB_CURRENT)/VBoxSF/Makefile.kmk
36
37
38#
39# Installation helper.
40#
41PROGRAMS += VBoxReplaceDll
42VBoxReplaceDll_TEMPLATE = NewVBoxGuestR3Exe
43VBoxReplaceDll_SOURCES = VBoxReplaceDll.cpp
44
45
46#
47# A barebone installer.
48#
49PROGRAMS += VBoxOs2AdditionsInstall
50VBoxOs2AdditionsInstall_TEMPLATE = DUMMY
51VBoxOs2AdditionsInstall_TOOL = OPENWATCOM
52VBoxOs2AdditionsInstall_ASTOOL = OPENWATCOM
53VBoxOs2AdditionsInstall_BLD_TRG = os2
54VBoxOs2AdditionsInstall_BLD_TRG_ARCH = x86
55VBoxOs2AdditionsInstall_EXESUFF = .exe
56VBoxOs2AdditionsInstall_INST = $(INST_ADDITIONS)
57VBoxOs2AdditionsInstall_DEFS = IN_RING3 IN_RT_R3 IN_RT_STATIC RT_NO_STRICT
58VBoxOs2AdditionsInstall_CFLAGS = -w3
59VBoxOs2AdditionsInstall_CFLAGS.release = -os
60VBoxOs2AdditionsInstall_CXXFLAGS = -w3
61VBoxOs2AdditionsInstall_CXXFLAGS.release = -os
62VBoxOs2AdditionsInstall_INCS = \
63 $(PATH_TOOL_OPENWATCOM)/h/os2
64VBoxOs2AdditionsInstall_SOURCES = \
65 VBoxOs2AdditionsInstall.cpp \
66 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathStripFilename.cpp \
67 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathEnsureTrailingSeparator.cpp
68if 1
69 VBOX_PATH_RUNTIME_SRC ?= $(PATH_ROOT)/src/VBox/Runtime
70 VBoxOs2AdditionsInstall_LDTOOL = OPENWATCOM-WL
71 VBoxOs2AdditionsInstall_CFLAGS += -zl -s -zc -xd -xds
72 VBoxOs2AdditionsInstall_CXXFLAGS += -zl -s -zc -xd -xds
73 VBoxOs2AdditionsInstall_LDFLAGS = \
74 SYSTEM os2v2 \
75 OPTION START=_VBoxOs2AdditionsInstallMain \
76 OPTION STACK=16384 \
77 OPTION ELiminate \
78 OPTION DOSSeg
79 VBoxOs2AdditionsInstall_DEFS += IPRT_NO_CRT RT_WITH_NOCRT_ALIASES
80 VBoxOs2AdditionsInstall_INCS <= \
81 $(PATH_ROOT)/include/iprt/nocrt \
82 $(VBOX_PATH_RUNTIME_SRC)/include
83 VBoxOs2AdditionsInstall_SOURCES += \
84 VBoxOs2AdditionsInstallA.asm \
85 $(VBOX_PATH_RUNTIME_SRC)/common/string/strcpy.cpp \
86 $(VBOX_PATH_RUNTIME_SRC)/common/string/strchr.cpp \
87 $(VBOX_PATH_RUNTIME_SRC)/common/string/strlen.cpp \
88 $(VBOX_PATH_RUNTIME_SRC)/common/string/strncmp.cpp \
89 $(VBOX_PATH_RUNTIME_SRC)/common/string/memchr.cpp \
90 $(VBOX_PATH_RUNTIME_SRC)/common/string/memcmp.cpp \
91 $(VBOX_PATH_RUNTIME_SRC)/common/string/memcpy.cpp \
92 $(VBOX_PATH_RUNTIME_SRC)/common/string/memrchr.cpp \
93 $(VBOX_PATH_RUNTIME_SRC)/common/string/memset.cpp
94 VBoxOs2AdditionsInstall_LIBS = \
95 $(PATH_TOOL_OPENWATCOM)/lib386/os2/os2386.lib
96else
97 VBoxOs2AdditionsInstall_CFLAGS +=
98 VBoxOs2AdditionsInstall_CXXFLAGS +=
99 VBoxOs2AdditionsInstall_LDFLAGS = -bcl=os2v2 -k16384 -'OPTION START=_VBoxOs2AdditionsInstallMain'
100endif
101
102
103include $(FILE_KBUILD_SUB_FOOTER)
104
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