1 | # $Id: Makefile.kmk 93115 2022-01-01 11:31:46Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the IPRT tools.
|
---|
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 | # 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 |
|
---|
27 | SUB_DEPTH = ../../../..
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 |
|
---|
31 | if !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
|
---|
62 | endif
|
---|
63 |
|
---|
64 |
|
---|
65 | if !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
|
---|
92 | endif
|
---|
93 |
|
---|
94 | if !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 | # RTHttpServer implements a simple HTTP server.
|
---|
161 | PROGRAMS += RTHttpServer
|
---|
162 | RTHttpServer_TEMPLATE = VBoxR3Tool
|
---|
163 | RTHttpServer_SOURCES = RTHttpServer.cpp
|
---|
164 | ifdef IPRT_HTTP_WITH_WEBDAV
|
---|
165 | RTHttpServer_DEFS += IPRT_HTTP_WITH_WEBDAV
|
---|
166 | endif
|
---|
167 |
|
---|
168 | # RTLdrCheckImports - import checker.
|
---|
169 | PROGRAMS += RTLdrCheckImports
|
---|
170 | RTLdrCheckImports_TEMPLATE = VBoxR3Tool
|
---|
171 | RTLdrCheckImports_SOURCES = RTLdrCheckImports.cpp
|
---|
172 | RTLdrCheckImports_SOURCES += ../VBox/LoadVBoxDDU.cpp
|
---|
173 |
|
---|
174 | # RTMkDir - our mkdir clone.
|
---|
175 | PROGRAMS += RTMkDir
|
---|
176 | RTMkDir_TEMPLATE = VBoxR3Tool
|
---|
177 | RTMkDir_SOURCES = RTMkDir.cpp
|
---|
178 |
|
---|
179 | # RTRmDir - our mkdir clone.
|
---|
180 | PROGRAMS += RTRmDir
|
---|
181 | RTRmDir_TEMPLATE = VBoxR3Tool
|
---|
182 | RTRmDir_SOURCES = RTRmDir.cpp
|
---|
183 |
|
---|
184 | # RTShutdown - similar (but not identical) to a typical unix shutdown command.
|
---|
185 | PROGRAMS += RTShutdown
|
---|
186 | RTShutdown_TEMPLATE = VBoxR3Tool
|
---|
187 | RTShutdown_SOURCES = RTShutdown.cpp
|
---|
188 |
|
---|
189 | # RTTar - our tar clone (for testing the tar/gzip/gunzip streaming code)
|
---|
190 | PROGRAMS += RTTar
|
---|
191 | RTTar_TEMPLATE = VBoxR3Tool
|
---|
192 | RTTar_SOURCES = RTTar.cpp
|
---|
193 | RTTar_SOURCES += ../VBox/LoadVBoxDDU.cpp
|
---|
194 |
|
---|
195 | # RTUnzip - our unzip clone (for testing the unzip streaming code)
|
---|
196 | PROGRAMS += RTUnzip
|
---|
197 | RTUnzip_TEMPLATE = VBoxR3Tool
|
---|
198 | RTUnzip_SOURCES = RTUnzip.cpp
|
---|
199 | RTUnzip_SOURCES += ../VBox/LoadVBoxDDU.cpp
|
---|
200 |
|
---|
201 | # RTNtDbgHelp - our tar clone (for testing the tar/gzip/gunzip streaming code)
|
---|
202 | PROGRAMS.win += RTNtDbgHelp
|
---|
203 | RTNtDbgHelp_TEMPLATE = VBoxR3Tool
|
---|
204 | RTNtDbgHelp_SOURCES = RTNtDbgHelp.cpp
|
---|
205 |
|
---|
206 | # RTDbgSymCache - Symbol cache manager.
|
---|
207 | PROGRAMS += RTDbgSymCache
|
---|
208 | RTDbgSymCache_TEMPLATE = VBoxR3Tool
|
---|
209 | RTDbgSymCache_SOURCES = RTDbgSymCache.cpp
|
---|
210 |
|
---|
211 | # RTSignTool - Signing utility.
|
---|
212 | PROGRAMS += RTSignTool
|
---|
213 | RTSignTool_TEMPLATE = VBoxR3Tool
|
---|
214 | RTSignTool_SOURCES = RTSignTool.cpp
|
---|
215 | RTSignTool_LIBS = $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
|
---|
216 |
|
---|
217 | # RTTraceLogTool - Trace log collection and dissection tool.
|
---|
218 | PROGRAMS += RTTraceLogTool
|
---|
219 | RTTraceLogTool_TEMPLATE = VBoxR3Tool
|
---|
220 | RTTraceLogTool_SOURCES = RTTraceLogTool.cpp
|
---|
221 |
|
---|
222 | # RTFuzzMaster - Fuzzing master tool.
|
---|
223 | PROGRAMS += RTFuzzMaster
|
---|
224 | RTFuzzMaster_TEMPLATE = VBoxR3Tool
|
---|
225 | RTFuzzMaster_SOURCES = RTFuzzMaster.cpp
|
---|
226 |
|
---|
227 | # RTFuzzClient - Fuzzing client tool.
|
---|
228 | PROGRAMS += RTFuzzClient
|
---|
229 | RTFuzzClient_TEMPLATE = VBoxR3Tool
|
---|
230 | RTFuzzClient_SOURCES = RTFuzzClient.cpp
|
---|
231 |
|
---|
232 | # RTEfiFatExtract - Extracting single files from a fat EFI binary.
|
---|
233 | PROGRAMS += RTEfiFatExtract
|
---|
234 | RTEfiFatExtract_TEMPLATE = VBoxR3Tool
|
---|
235 | RTEfiFatExtract_SOURCES = RTEfiFatExtract.cpp
|
---|
236 |
|
---|
237 | # RTEfiSigDb - EFI signature database management tool.
|
---|
238 | PROGRAMS += RTEfiSigDb
|
---|
239 | RTEfiSigDb_TEMPLATE = VBoxR3Tool
|
---|
240 | RTEfiSigDb_SOURCES = RTEfiSigDb.cpp
|
---|
241 |
|
---|
242 | if1of ($(KBUILD_TARGET), darwin linux solaris win)
|
---|
243 | # RTKrnlModInfo - our lsmod/kextstat clone (for testing the RTKrnlMod code).
|
---|
244 | PROGRAMS += RTKrnlModInfo
|
---|
245 | RTKrnlModInfo_TEMPLATE = VBoxR3Tool
|
---|
246 | RTKrnlModInfo_SOURCES = RTKrnlModInfo.cpp
|
---|
247 | endif
|
---|
248 |
|
---|
249 | endif # !VBOX_ONLY_BUILD
|
---|
250 |
|
---|
251 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
252 |
|
---|