1 | # $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for src/VBox/Main/src-helper-apps/os2.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2022-2024 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 | #
|
---|
32 | # OS/2 Unattended installation helper utility.
|
---|
33 | # This is checked in as a binary, this is just the makefile for re-builting it.
|
---|
34 | #
|
---|
35 | ifdef VBOX_WITH_OPEN_WATCOM
|
---|
36 | PROGRAMS += os2_util
|
---|
37 | endif
|
---|
38 | os2_util_TEMPLATE = DUMMY
|
---|
39 | os2_util_TOOL = OPENWATCOM-16
|
---|
40 | os2_util_ASTOOL = OPENWATCOM-16
|
---|
41 | os2_util_LDTOOL = OPENWATCOM-WL
|
---|
42 | os2_util_BLD_TRG = os2
|
---|
43 | os2_util_BLD_TRG_ARCH = x86
|
---|
44 | os2_util_EXESUFF = .exe
|
---|
45 | os2_util_INST = $(INST_UNATTENDED_TEMPLATES)
|
---|
46 | os2_util_MODE = a+r,u+w
|
---|
47 | os2_util_DEFS = IN_RING3
|
---|
48 | os2_util_CFLAGS = -zl -s -ml -os
|
---|
49 | os2_util_LDFLAGS = \
|
---|
50 | SYSTEM os2 \
|
---|
51 | OPTION START=_Os2UtilMain \
|
---|
52 | OPTION STACK=8192 \
|
---|
53 | OPTION HEAPSize=4096 \
|
---|
54 | OPTION NEWFile \
|
---|
55 | OPTION PROTmode \
|
---|
56 | SEGMENT IOPL IOPL EXECUTEREAD
|
---|
57 | if 0
|
---|
58 | os2_util_LDFLAGS += Debug Watcom All
|
---|
59 | os2_util_CFLAGS += -d2 -hw
|
---|
60 | endif
|
---|
61 |
|
---|
62 | os2_util_INCS = $(PATH_TOOL_OPENWATCOM)/h/os21x
|
---|
63 | os2_util_SOURCES = os2_util.c os2_utilA.asm
|
---|
64 |
|
---|
65 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
66 |
|
---|