VirtualBox

source: vbox/trunk/src/VBox/Runtime/tools/Makefile.kmk@ 85561

Last change on this file since 85561 was 84540, checked in by vboxsync, 5 years ago

Reverting r138262 (i.e. restoring VBOX_WITH_AUTOMATIC_DEFS_QUOTING). Corrected the conditions for it's definition instead. bugref:8489

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 7.6 KB
Line 
1# $Id: Makefile.kmk 84540 2020-05-26 15:06:13Z vboxsync $
2## @file
3# Sub-Makefile for the IPRT tools.
4#
5
6#
7# Copyright (C) 2006-2020 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# The contents of this file may alternatively be used under the terms
18# of the Common Development and Distribution License Version 1.0
19# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20# VirtualBox OSE distribution, in which case the provisions of the
21# CDDL are applicable instead of those of the GPL.
22#
23# You may elect to license modified versions of this file under the
24# terms and conditions of either the GPL or the CDDL or both.
25#
26
27SUB_DEPTH = ../../../..
28include $(KBUILD_PATH)/subheader.kmk
29
30
31if !defined(VBOX_ONLY_EXTPACKS) && !defined(VBOX_ONLY_DOCS)
32 # RTIsoMaker - ISO image maker - build version.
33 ifeq ($(KBUILD_TARGET), win) # Needed for repacking guest additions.
34 PROGRAMS += bldRTIsoMaker
35 bldRTIsoMaker_INSTTYPE = stage
36 else
37 BLDPROGS += bldRTIsoMaker
38 endif
39 bldRTIsoMaker_TEMPLATE = VBoxAdvBldProg
40 bldRTIsoMaker_SOURCES = \
41 RTIsoMaker.cpp \
42 ../common/misc/buildconfig.cpp
43 bldRTIsoMaker_DEFS = \
44 IPRT_BLDCFG_SCM_REV=$(if $(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV)) \
45 IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
46 IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
47 IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD)
48 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
49 bldRTIsoMaker_DEFS += \
50 IPRT_BLDCFG_VERSION_STRING="$(VBOX_VERSION_STRING)" \
51 IPRT_BLDCFG_TARGET="$(KBUILD_TARGET)" \
52 IPRT_BLDCFG_TARGET_ARCH="$(KBUILD_TARGET_ARCH)" \
53 IPRT_BLDCFG_TYPE="$(KBUILD_TYPE)"
54 else
55 bldRTIsoMaker_DEFS += \
56 IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
57 IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
58 IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
59 IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
60 endif
61 bldRTIsoMaker_INCS = ../include
62endif
63
64
65if !defined(VBOX_ONLY_DOCS)
66
67 # RTManifest is a tool for creating and verifying manifest files - build version.
68 BLDPROGS += bldRTManifest
69 bldRTManifest_TEMPLATE = VBoxAdvBldProg
70 bldRTManifest_SOURCES = RTManifest.cpp
71
72
73 if !defined(VBOX_ONLY_EXTPACKS) || "$(KBUILD_TARGET)" == "win" || "$(KBUILD_TARGET)" == "darwin"
74 # RTSignTool - Signing utility - build version. Signed on windows so we can get the certificate from it.
75 BLDPROGS += bldRTSignTool
76 bldRTSignTool_TEMPLATE = VBoxAdvBldProg
77 bldRTSignTool_SOURCES = RTSignTool.cpp
78 bldRTSignTool_DEFS = IPRT_IN_BUILD_TOOL
79 bldRTSignTool_POST_CMDS.win = $(VBOX_SIGN_IMAGE_CMDS)
80 if defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE)
81 bldRTSignTool_POST_CMDS.darwin = $(call VBOX_SIGN_MACHO_FN,$(out),org.virtualbox.org.bldtool.$(target))
82 endif
83 endif
84
85 if !defined(VBOX_ONLY_EXTPACKS)
86 # RTLdrCheckImports - import checker.
87 PROGRAMS += bldRTLdrCheckImports
88 bldRTLdrCheckImports_TEMPLATE = VBoxAdvBldProg
89 bldRTLdrCheckImports_DEFS = IPRT_IN_BUILD_TOOL
90 bldRTLdrCheckImports_SOURCES = RTLdrCheckImports.cpp
91 endif
92endif
93
94if !defined(VBOX_ONLY_BUILD)
95
96 # RTCat is a tool for displaying files.
97 PROGRAMS += RTCat
98 RTCat_TEMPLATE = VBoxR3Tool
99 RTCat_SOURCES = RTCat.cpp
100 RTCat_SOURCES += ../VBox/LoadVBoxDDU.cpp
101
102 # RTChMod - our chmod clone.
103 PROGRAMS += RTChMod
104 RTChMod_TEMPLATE = VBoxR3Tool
105 RTChMod_SOURCES = RTChMod.cpp
106
107 # RTCp - our cp clone.
108 PROGRAMS += RTCp
109 RTCp_TEMPLATE = VBoxR3Tool
110 RTCp_SOURCES = RTCp.cpp
111 RTCp_SOURCES += ../VBox/LoadVBoxDDU.cpp
112
113 # RTIsoMaker - ISO image maker - build version.
114 PROGRAMS += RTIsoMaker
115 RTIsoMaker_TEMPLATE = VBoxR3Tool
116 RTIsoMaker_SOURCES = RTIsoMaker.cpp
117 RTIsoMaker_SOURCES += ../VBox/LoadVBoxDDU.cpp
118
119 # RTLs is a tool for listing file information.
120 PROGRAMS += RTLs
121 RTLs_TEMPLATE = VBoxR3Tool
122 RTLs_SOURCES = RTLs.cpp
123 RTLs_SOURCES += ../VBox/LoadVBoxDDU.cpp
124
125 # RTRm is a tool for removing files and directories.
126 PROGRAMS += RTRm
127 RTRm_TEMPLATE = VBoxR3Tool
128 RTRm_SOURCES = RTRm.cpp
129 RTRm_SOURCES += ../VBox/LoadVBoxDDU.cpp
130
131 # RTManifest is a tool for creating and verifying manifest files.
132 PROGRAMS += RTManifest
133 RTManifest_TEMPLATE = VBoxR3Tool
134 RTManifest_SOURCES = RTManifest.cpp
135 RTManifest_SOURCES += ../VBox/LoadVBoxDDU.cpp
136
137 # RTLdrFlt is similar to c++filt, except that it's for VMMR0.r0 stacks.
138 PROGRAMS += RTLdrFlt
139 RTLdrFlt_TEMPLATE = VBoxR3Tool
140 RTLdrFlt_SOURCES = RTLdrFlt.cpp
141
142 # RTFTPServer implements a simple FTP server.
143 PROGRAMS += RTFTPServer
144 RTFTPServer_TEMPLATE = VBoxR3Tool
145 RTFTPServer_SOURCES = RTFTPServer.cpp
146
147 # RTGzip - our gzip clone (for testing the gzip/gunzip streaming code)
148 PROGRAMS += RTGzip
149 RTGzip_TEMPLATE = VBoxR3Tool
150 RTGzip_SOURCES = RTGzip.cpp
151 RTGzip_SOURCES += ../VBox/LoadVBoxDDU.cpp
152
153 ifdef VBOX_WITH_LIBCURL
154 # RTHttp - our http/https fetcher (for testing the http client API).
155 PROGRAMS += RTHttp
156 RTHttp_TEMPLATE = VBoxR3Tool
157 RTHttp_SOURCES = RTHttp.cpp
158 endif
159
160 # RTLdrCheckImports - import checker.
161 PROGRAMS += RTLdrCheckImports
162 RTLdrCheckImports_TEMPLATE = VBoxR3Tool
163 RTLdrCheckImports_SOURCES = RTLdrCheckImports.cpp
164 RTLdrCheckImports_SOURCES += ../VBox/LoadVBoxDDU.cpp
165
166 # RTMkDir - our mkdir clone.
167 PROGRAMS += RTMkDir
168 RTMkDir_TEMPLATE = VBoxR3Tool
169 RTMkDir_SOURCES = RTMkDir.cpp
170
171 # RTRmDir - our mkdir clone.
172 PROGRAMS += RTRmDir
173 RTRmDir_TEMPLATE = VBoxR3Tool
174 RTRmDir_SOURCES = RTRmDir.cpp
175
176 # RTShutdown - similar (but not identical) to a typical unix shutdown command.
177 PROGRAMS += RTShutdown
178 RTShutdown_TEMPLATE = VBoxR3Tool
179 RTShutdown_SOURCES = RTShutdown.cpp
180
181 # RTTar - our tar clone (for testing the tar/gzip/gunzip streaming code)
182 PROGRAMS += RTTar
183 RTTar_TEMPLATE = VBoxR3Tool
184 RTTar_SOURCES = RTTar.cpp
185 RTTar_SOURCES += ../VBox/LoadVBoxDDU.cpp
186
187 # RTUnzip - our unzip clone (for testing the unzip streaming code)
188 PROGRAMS += RTUnzip
189 RTUnzip_TEMPLATE = VBoxR3Tool
190 RTUnzip_SOURCES = RTUnzip.cpp
191 RTUnzip_SOURCES += ../VBox/LoadVBoxDDU.cpp
192
193 # RTNtDbgHelp - our tar clone (for testing the tar/gzip/gunzip streaming code)
194 PROGRAMS.win += RTNtDbgHelp
195 RTNtDbgHelp_TEMPLATE = VBoxR3Tool
196 RTNtDbgHelp_SOURCES = RTNtDbgHelp.cpp
197
198 # RTDbgSymCache - Symbol cache manager.
199 PROGRAMS += RTDbgSymCache
200 RTDbgSymCache_TEMPLATE = VBoxR3Tool
201 RTDbgSymCache_SOURCES = RTDbgSymCache.cpp
202
203 # RTSignTool - Signing utility.
204 PROGRAMS += RTSignTool
205 RTSignTool_TEMPLATE = VBoxR3Tool
206 RTSignTool_SOURCES = RTSignTool.cpp
207 RTSignTool_LIBS = $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
208
209 # RTTraceLogTool - Trace log collection and dissection tool.
210 PROGRAMS += RTTraceLogTool
211 RTTraceLogTool_TEMPLATE = VBoxR3Tool
212 RTTraceLogTool_SOURCES = RTTraceLogTool.cpp
213
214 # RTFuzzMaster - Fuzzing master tool.
215 PROGRAMS += RTFuzzMaster
216 RTFuzzMaster_TEMPLATE = VBoxR3Tool
217 RTFuzzMaster_SOURCES = RTFuzzMaster.cpp
218
219 # RTFuzzClient - Fuzzing client tool.
220 PROGRAMS += RTFuzzClient
221 RTFuzzClient_TEMPLATE = VBoxR3Tool
222 RTFuzzClient_SOURCES = RTFuzzClient.cpp
223
224 # RTEfiFatExtract - Extracting single files from a fat EFI binary.
225 PROGRAMS += RTEfiFatExtract
226 RTEfiFatExtract_TEMPLATE = VBoxR3Tool
227 RTEfiFatExtract_SOURCES = RTEfiFatExtract.cpp
228
229 if1of ($(KBUILD_TARGET), darwin linux solaris win)
230 # RTKrnlModInfo - our lsmod/kextstat clone (for testing the RTKrnlMod code).
231 PROGRAMS += RTKrnlModInfo
232 RTKrnlModInfo_TEMPLATE = VBoxR3Tool
233 RTKrnlModInfo_SOURCES = RTKrnlModInfo.cpp
234 endif
235
236endif # !VBOX_ONLY_BUILD
237
238include $(FILE_KBUILD_SUB_FOOTER)
239
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