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 |
|
---|
18 | SUB_DEPTH = ../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | # Make sure our Config.kmk is included.
|
---|
22 | ifndef VBOX_ADDITIONS_OS2_CONFIG_KMK_INCLUDED
|
---|
23 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
24 | endif
|
---|
25 |
|
---|
26 | #
|
---|
27 | # The sub-makefiles.
|
---|
28 | #
|
---|
29 | ifndef 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
|
---|
34 | endif
|
---|
35 | include $(PATH_SUB_CURRENT)/VBoxSF/Makefile.kmk
|
---|
36 |
|
---|
37 |
|
---|
38 | #
|
---|
39 | # Installation helper.
|
---|
40 | #
|
---|
41 | PROGRAMS += VBoxReplaceDll
|
---|
42 | VBoxReplaceDll_TEMPLATE = NewVBoxGuestR3Exe
|
---|
43 | VBoxReplaceDll_SOURCES = VBoxReplaceDll.cpp
|
---|
44 |
|
---|
45 |
|
---|
46 | #
|
---|
47 | # A barebone installer.
|
---|
48 | #
|
---|
49 | PROGRAMS += VBoxOs2AdditionsInstall
|
---|
50 | VBoxOs2AdditionsInstall_TEMPLATE = DUMMY
|
---|
51 | VBoxOs2AdditionsInstall_TOOL = OPENWATCOM
|
---|
52 | VBoxOs2AdditionsInstall_ASTOOL = OPENWATCOM
|
---|
53 | VBoxOs2AdditionsInstall_BLD_TRG = os2
|
---|
54 | VBoxOs2AdditionsInstall_BLD_TRG_ARCH = x86
|
---|
55 | VBoxOs2AdditionsInstall_EXESUFF = .exe
|
---|
56 | VBoxOs2AdditionsInstall_INST = $(INST_ADDITIONS)
|
---|
57 | VBoxOs2AdditionsInstall_DEFS = IN_RING3 IN_RT_R3 IN_RT_STATIC RT_NO_STRICT
|
---|
58 | VBoxOs2AdditionsInstall_CFLAGS = -w3
|
---|
59 | VBoxOs2AdditionsInstall_CFLAGS.release = -os
|
---|
60 | VBoxOs2AdditionsInstall_CXXFLAGS = -w3
|
---|
61 | VBoxOs2AdditionsInstall_CXXFLAGS.release = -os
|
---|
62 | VBoxOs2AdditionsInstall_INCS = \
|
---|
63 | $(PATH_TOOL_OPENWATCOM)/h/os2
|
---|
64 | VBoxOs2AdditionsInstall_SOURCES = \
|
---|
65 | VBoxOs2AdditionsInstall.cpp \
|
---|
66 | $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathStripFilename.cpp \
|
---|
67 | $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathEnsureTrailingSeparator.cpp
|
---|
68 | if 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
|
---|
96 | else
|
---|
97 | VBoxOs2AdditionsInstall_CFLAGS +=
|
---|
98 | VBoxOs2AdditionsInstall_CXXFLAGS +=
|
---|
99 | VBoxOs2AdditionsInstall_LDFLAGS = -bcl=os2v2 -k16384 -'OPTION START=_VBoxOs2AdditionsInstallMain'
|
---|
100 | endif
|
---|
101 |
|
---|
102 |
|
---|
103 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
104 |
|
---|