VirtualBox

source: vbox/trunk/src/bldprogs/Makefile.kmk@ 104429

Last change on this file since 104429 was 98442, checked in by vboxsync, 19 months ago

bldprogs/*.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.3 KB
RevLine 
[2476]1# $Id: Makefile.kmk 98442 2023-02-02 12:50:42Z vboxsync $
2## @file
[10182]3# Sub-Makefile for various generic build tools (there is currently only one of them).
[1]4#
5
6#
[98103]7# Copyright (C) 2006-2023 Oracle and/or its affiliates.
[5999]8#
[96407]9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
[5999]11#
[96407]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#
[1]27
[10182]28SUB_DEPTH = ../..
29include $(KBUILD_PATH)/subheader.kmk
[1]30
[96530]31BLDPROGS += bin2c
32ifn1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), solaris.sparc64)
33 BLDPROGS += biossums filesplitter genalias VBoxCmp
[78452]34endif
[13155]35
[49116]36bin2c_TEMPLATE = VBoxBldProg
[98442]37bin2c_SOURCES = \
38 bin2c.c
[1]39
[49116]40biossums_TEMPLATE = VBoxBldProg
[13155]41biossums_SOURCES = biossums.c
42
[49116]43filesplitter_TEMPLATE = VBoxBldProg
[29715]44filesplitter_SOURCES = filesplitter.cpp
45
[96040]46genalias_TEMPLATE = VBoxBldProg
47genalias_SOURCES = genalias.cpp
48
[49116]49VBoxCmp_TEMPLATE = VBoxBldProg
[42048]50VBoxCmp_SOURCES = VBoxCmp.cpp
51
[42269]52ifndef VBOX_ONLY_BUILD
[56332]53 PROGRAMS += scm
54 scm_TEMPLATE = VBoxR3Tool
[40528]55 scm_SOURCES = \
[40549]56 scm.cpp \
57 scmdiff.cpp \
58 scmrw.cpp \
[98374]59 scmrw-kmk.cpp \
[98442]60 scmparser.cpp \
[40549]61 scmstream.cpp \
[40554]62 scmsubversion.cpp
[56308]63 ifdef VBOX_PATH_SUBVERSION_INCS
64 scm_INCS += $(VBOX_PATH_SUBVERSION_INCS) $(VBOX_PATH_APACHE_RUNTIME_INCS)
65 scm_DEFS += SCM_WITH_SVN_HEADERS
66 endif
[40535]67
[42269]68 BLDPROGS += VBoxCPP
69 VBoxCPP_TEMPLATE = VBoxAdvBldProg
70 VBoxCPP_SOURCES = \
71 VBoxCPP.cpp \
72 scmstream.cpp
73endif
[40549]74
[42269]75if !defined(VBOX_ONLY_BUILD) || defined(VBOX_ONLY_EXTPACKS)
[40554]76 BLDPROGS += VBoxTpG
[40549]77 VBoxTpG_TEMPLATE = VBoxAdvBldProg
78 VBoxTpG_SOURCES = \
79 VBoxTpG.cpp \
80 scmstream.cpp
[26346]81endif
[1]82
[57898]83ifeq ($(KBUILD_TARGET),win)
84 BLDPROGS += VBoxPeSetVersion
85endif
[49116]86VBoxPeSetVersion_TEMPLATE = VBoxBldProg
[42239]87VBoxPeSetVersion_SOURCES = VBoxPeSetVersion.cpp
88
[59404]89BLDPROGS.win += VBoxCheckImports
90VBoxCheckImports_TEMPLATE = VBoxBldProg
91VBoxCheckImports_SOURCES = VBoxCheckImports.cpp
92
[78452]93ifneq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),solaris.sparc64)
94 BLDPROGS += VBoxDef2LazyLoad
95endif
[49116]96VBoxDef2LazyLoad_TEMPLATE = VBoxBldProg
[46474]97VBoxDef2LazyLoad_SOURCES = VBoxDef2LazyLoad.cpp
98
[78608]99ifeq ($(KBUILD_TARGET),win)
100 BLDPROGS += VBoxEditCoffLib
101endif
102VBoxEditCoffLib_TEMPLATE = VBoxBldProg
103VBoxEditCoffLib_SOURCES = VBoxEditCoffLib.cpp
104
[56920]105# temp hack.
[56977]106VBoxCompilerPlugInsGcc.o VBoxCompilerPlugInsCommon.o VBoxCompilerPlugIns.o gccplugin: gccplugin$(SUFF_DLL)
107gccplugin$(SUFF_DLL): VBoxCompilerPlugInsGcc.cpp VBoxCompilerPlugInsCommon.cpp VBoxCompilerPlugIns.h
[69076]108 $(TOOL_GXX3_CXX) -shared -fPIC -fno-rtti -g \
[56977]109 -DIN_RING3 \
110 $(if-expr "$(KBUILD_TYPE)" != "release",-DDEBUG,) \
[61209]111 -I$(shell $(TOOL_GXX3_CXX) -print-file-name=plugin)/include \
[56977]112 -I$(PATH_ROOT)/include \
[57029]113 $(if-expr "$(KBUILD_HOST)" == "solaris", -I/usr/include/gmp -I$(PATH_ROOT)/src/bldprogs/solgcc/,) \
[56977]114 -o $@ \
115 VBoxCompilerPlugInsGcc.cpp \
116 VBoxCompilerPlugInsCommon.cpp
[46474]117
[41477]118include $(FILE_KBUILD_SUB_FOOTER)
[34484]119
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle
ContactPrivacy/Do Not Sell My InfoTerms of Use