VirtualBox

source: vbox/trunk/src/VBox/Additions/os2/Config.kmk@ 100547

Last change on this file since 100547 was 98416, checked in by vboxsync, 22 months ago

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

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 4.0 KB
Line 
1# $Id: Config.kmk 98416 2023-02-01 16:25:17Z vboxsync $
2## @file
3# kBuild Configuration file for the OS/2 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
28ifdef VBOX_ADDITIONS_OS2_CONFIG_KMK_INCLUDED
29 $(error oops.)
30endif
31VBOX_ADDITIONS_OS2_CONFIG_KMK_INCLUDED = true
32
33# Include the top-level configure file.
34ifndef VBOX_ROOT_CONFIG_KMK_INCLUDED
35 include $(PATH_ROOT)/Config.kmk
36endif
37
38## FIXME
39PATH_DDKVIDEO ?= D:/ddk/200402/video
40PATH_DDKBASE ?= D:/ddk/200402/base
41TOOL_MASM510_AS ?= $(PATH_DDKBASE)/tools/masm.exe
42TOOL_MSLINK510_LD ?= $(PATH_DDKBASE)/tools/link.exe
43PATH_TOOL_VAC308 ?= D:/VACpp/v3.08
44PATH_TOOL_ALP ?= D:/Toolkit/v4.52/bin
45
46#
47# Template for VAC308 Gradd stuff.
48#
49TEMPLATE_VBoxOs2Vac308 = Template for VisualAge for C++ v3.08 / Gradd
50TEMPLATE_VBoxOs2Vac308_TOOL = VAC308
51TEMPLATE_VBoxOs2Vac308_ASTOOL = ALP
52TEMPLATE_VBoxOs2Vac308_ARTOOL = GCC3OMF
53TEMPLATE_VBoxOs2Vac308_INST = $(INST_ADDITIONS)
54TEMPLATE_VBoxOs2Vac308_DEFS = RT_OS_OS2 IN_RING3 ## @todo IN_GUEST IN_GUEST_R3 IN_RT_R3
55
56TEMPLATE_VBoxOs2Vac308_CFLAGS += /Gn+ # Do not generate default libraries in object.
57TEMPLATE_VBoxOs2Vac308_CFLAGS += /Gr+ # Allow object code to run at ring 0.
58TEMPLATE_VBoxOs2Vac308_CFLAGS += /Rn # Produce code to run with no runtime environment.
59TEMPLATE_VBoxOs2Vac308_CFLAGS += /Sp1 # Pack aggregate members on 1 byte alignment.
60TEMPLATE_VBoxOs2Vac308_CFLAGS += /Tm- # No debug memory management.
61TEMPLATE_VBoxOs2Vac308_CFLAGS += /Q+ # Suppress the logo. (in VAC308.kmk?)
62TEMPLATE_VBoxOs2Vac308_CFLAGS += /C+ # Perform compile only, no link. (in VAC308.kmk?)
63TEMPLATE_VBoxOs2Vac308_CFLAGS += /Ss+ # Allow the double slash (//) format to be used for comments. (C only)
64TEMPLATE_VBoxOs2Vac308_CFLAGS += /G5 # Generate code optimized for use on a Pentium processor.
65TEMPLATE_VBoxOs2Vac308_CFLAGS += /Ti+ # Generate debugging information.
66TEMPLATE_VBoxOs2Vac308_CFLAGS += /O+ # Optimize generated code.
67TEMPLATE_VBoxOs2Vac308_CFLAGS += /Oi+ # Turn on function inlining.
68TEMPLATE_VBoxOs2Vac308_CFLAGS += /Ge- # Use the version of the runtime library that assumes a DLL is being built. (_DLL_InitTerm++)
69TEMPLATE_VBoxOs2Vac308_CFLAGS := $(strip $(TEMPLATE_VBoxOs2Vac308_CFLAGS))
70TEMPLATE_VBoxOs2Vac308_CXXFLAGS = $(VBoxGradd_CFLAGS)
71
72TEMPLATE_VBoxOs2Vac308_LDFLAGS += -B"/Nologo" # Quiet! (ILINK308.kmk?)
73TEMPLATE_VBoxOs2Vac308_LDFLAGS += -B"/Debug" # Debug info (ILINK308.kmk?)
74TEMPLATE_VBoxOs2Vac308_LDFLAGS += -B"/Map" # Generate map file (ILINK308.kmk?)
75TEMPLATE_VBoxOs2Vac308_LDFLAGS += -B"/Linenumbers" # Map file with linenumbers.
76TEMPLATE_VBoxOs2Vac308_LDFLAGS += -B"/Exepack:2" # Compress the file using exepack 2.
77TEMPLATE_VBoxOs2Vac308_LDFLAGS += -B"/Alignment:32" # Pack LX pages on 32 byte boundaries (default is 512 bytes).
78TEMPLATE_VBoxOs2Vac308_LDFLAGS += -B"/NoDefaultLibrarySearch"
79TEMPLATE_VBoxOs2Vac308_LDFLAGS := $(strip $(TEMPLATE_VBoxOs2Vac308_LDFLAGS))
80
81TEMPLATE_VBoxOs2Vac308_INCS = \
82 $(PATH_DDKVIDEO)/rel/os2c/include/base/os2 \
83 $(PATH_DDKVIDEO)/rel/os2c/include/base/os2/16bit
84
85TEMPLATE_VBoxOs2Vac308_LIBS = \
86 $(PATH_DDKVIDEO)/rel/os2c/lib/os2/os2386.lib \
87 $(PATH_TOOL_VAC308_LIB)/cppon30.lib
88
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