VirtualBox

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

Last change on this file since 74942 was 74298, checked in by vboxsync, 6 years ago

bldRTSignTool is apparently needed by extpack builds on windows. bugref:9152

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.5 KB
Line 
1# $Id: Makefile.kmk 74298 2018-09-16 15:49:06Z vboxsync $
2## @file
3# Sub-Makefile for the IPRT tools.
4#
5
6#
7# Copyright (C) 2006-2017 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 BLDPROGS += bldRTIsoMaker
34 bldRTIsoMaker_TEMPLATE = VBoxAdvBldProg
35 bldRTIsoMaker_SOURCES = \
36 RTIsoMaker.cpp \
37 ../common/misc/buildconfig.cpp
38 bldRTIsoMaker_DEFS = \
39 IPRT_BLDCFG_SCM_REV=$(if $(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV)) \
40 IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
41 IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
42 IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
43 IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD) \
44 IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
45 IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
46 IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
47 bldRTIsoMaker_INCS = ../include
48endif
49
50
51if !defined(VBOX_ONLY_DOCS)
52
53 # RTManifest is a tool for creating and verifying manifest files - build version.
54 BLDPROGS += bldRTManifest
55 bldRTManifest_TEMPLATE = VBoxAdvBldProg
56 bldRTManifest_SOURCES = RTManifest.cpp
57
58
59 if !defined(VBOX_ONLY_EXTPACKS) || "$(KBUILD_TARGET)" == "win"
60 # RTSignTool - Signing utility - build version. Signed on windows so we can get the certificate from it.
61 BLDPROGS += bldRTSignTool
62 bldRTSignTool_TEMPLATE = VBoxAdvBldProg
63 bldRTSignTool_SOURCES = RTSignTool.cpp
64 bldRTSignTool_DEFS = IPRT_IN_BUILD_TOOL
65 bldRTSignTool_POST_CMDS.win = $(VBOX_SIGN_IMAGE_CMDS)
66 endif
67
68 if !defined(VBOX_ONLY_EXTPACKS)
69 # RTLdrCheckImports - import checker.
70 PROGRAMS += bldRTLdrCheckImports
71 bldRTLdrCheckImports_TEMPLATE = VBoxAdvBldProg
72 bldRTLdrCheckImports_DEFS = IPRT_IN_BUILD_TOOL
73 bldRTLdrCheckImports_SOURCES = RTLdrCheckImports.cpp
74 endif
75endif
76
77if !defined(VBOX_ONLY_BUILD)
78
79 # RTCat is a tool for displaying files.
80 PROGRAMS += RTCat
81 RTCat_TEMPLATE = VBoxR3Tool
82 RTCat_SOURCES = RTCat.cpp
83 RTCat_SOURCES += ../VBox/LoadVBoxDDU.cpp
84
85 # RTChMod - our chmod clone.
86 PROGRAMS += RTChMod
87 RTChMod_TEMPLATE = VBoxR3Tool
88 RTChMod_SOURCES = RTChMod.cpp
89
90 # RTCp - our cp clone.
91 PROGRAMS += RTCp
92 RTCp_TEMPLATE = VBoxR3Tool
93 RTCp_SOURCES = RTCp.cpp
94 RTCp_SOURCES += ../VBox/LoadVBoxDDU.cpp
95
96 # RTIsoMaker - ISO image maker - build version.
97 PROGRAMS += RTIsoMaker
98 RTIsoMaker_TEMPLATE = VBoxR3Tool
99 RTIsoMaker_SOURCES = RTIsoMaker.cpp
100 RTIsoMaker_SOURCES += ../VBox/LoadVBoxDDU.cpp
101
102 # RTLs is a tool for listing file information.
103 PROGRAMS += RTLs
104 RTLs_TEMPLATE = VBoxR3Tool
105 RTLs_SOURCES = RTLs.cpp
106 RTLs_SOURCES += ../VBox/LoadVBoxDDU.cpp
107
108 # RTRm is a tool for removing files and directories.
109 PROGRAMS += RTRm
110 RTRm_TEMPLATE = VBoxR3Tool
111 RTRm_SOURCES = RTRm.cpp
112 RTRm_SOURCES += ../VBox/LoadVBoxDDU.cpp
113
114 # RTManifest is a tool for creating and verifying manifest files.
115 PROGRAMS += RTManifest
116 RTManifest_TEMPLATE = VBoxR3Tool
117 RTManifest_SOURCES = RTManifest.cpp
118 RTManifest_SOURCES += ../VBox/LoadVBoxDDU.cpp
119
120 # RTLdrFlt is similar to c++filt, except that it's for VMMR0.r0 stacks.
121 PROGRAMS += RTLdrFlt
122 RTLdrFlt_TEMPLATE = VBoxR3Tool
123 RTLdrFlt_SOURCES = RTLdrFlt.cpp
124
125 # RTGzip - our gzip clone (for testing the gzip/gunzip streaming code)
126 PROGRAMS += RTGzip
127 RTGzip_TEMPLATE = VBoxR3Tool
128 RTGzip_SOURCES = RTGzip.cpp
129 RTGzip_SOURCES += ../VBox/LoadVBoxDDU.cpp
130
131 ifdef VBOX_WITH_LIBCURL
132 # RTHttp - our http/https fetcher (for testing the http client API).
133 PROGRAMS += RTHttp
134 RTHttp_TEMPLATE = VBoxR3Tool
135 RTHttp_SOURCES = RTHttp.cpp
136 endif
137
138 # RTLdrCheckImports - import checker.
139 PROGRAMS += RTLdrCheckImports
140 RTLdrCheckImports_TEMPLATE = VBoxR3Tool
141 RTLdrCheckImports_SOURCES = RTLdrCheckImports.cpp
142 RTLdrCheckImports_SOURCES += ../VBox/LoadVBoxDDU.cpp
143
144 # RTMkDir - our mkdir clone.
145 PROGRAMS += RTMkDir
146 RTMkDir_TEMPLATE = VBoxR3Tool
147 RTMkDir_SOURCES = RTMkDir.cpp
148
149 # RTRmDir - our mkdir clone.
150 PROGRAMS += RTRmDir
151 RTRmDir_TEMPLATE = VBoxR3Tool
152 RTRmDir_SOURCES = RTRmDir.cpp
153
154 # RTShutdown - similar (but not identical) to a typical unix shutdown command.
155 PROGRAMS += RTShutdown
156 RTShutdown_TEMPLATE = VBoxR3Tool
157 RTShutdown_SOURCES = RTShutdown.cpp
158
159 # RTTar - our tar clone (for testing the tar/gzip/gunzip streaming code)
160 PROGRAMS += RTTar
161 RTTar_TEMPLATE = VBoxR3Tool
162 RTTar_SOURCES = RTTar.cpp
163 RTTar_SOURCES += ../VBox/LoadVBoxDDU.cpp
164
165 # RTUnzip - our unzip clone (for testing the unzip streaming code)
166 PROGRAMS += RTUnzip
167 RTUnzip_TEMPLATE = VBoxR3Tool
168 RTUnzip_SOURCES = RTUnzip.cpp
169 RTUnzip_SOURCES += ../VBox/LoadVBoxDDU.cpp
170
171 # RTNtDbgHelp - our tar clone (for testing the tar/gzip/gunzip streaming code)
172 PROGRAMS.win += RTNtDbgHelp
173 RTNtDbgHelp_TEMPLATE = VBoxR3Tool
174 RTNtDbgHelp_SOURCES = RTNtDbgHelp.cpp
175
176 # RTDbgSymCache - Symbol cache manager.
177 PROGRAMS += RTDbgSymCache
178 RTDbgSymCache_TEMPLATE = VBoxR3Tool
179 RTDbgSymCache_SOURCES = RTDbgSymCache.cpp
180
181 # RTSignTool - Signing utility.
182 PROGRAMS += RTSignTool
183 RTSignTool_TEMPLATE = VBoxR3Tool
184 RTSignTool_SOURCES = RTSignTool.cpp
185 RTSignTool_LIBS = $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
186
187 # RTTraceLogTool - Trace log collection and dissection tool.
188 PROGRAMS += RTTraceLogTool
189 RTTraceLogTool_TEMPLATE = VBoxR3Tool
190 RTTraceLogTool_SOURCES = RTTraceLogTool.cpp
191
192 # RTFuzzMaster - Fuzzing master tool.
193 PROGRAMS += RTFuzzMaster
194 RTFuzzMaster_TEMPLATE = VBoxR3Tool
195 RTFuzzMaster_SOURCES = RTFuzzMaster.cpp
196
197 if1of ($(KBUILD_TARGET), darwin linux solaris win)
198 # RTKrnlModInfo - our lsmod/kextstat clone (for testing the RTKrnlMod code).
199 PROGRAMS += RTKrnlModInfo
200 RTKrnlModInfo_TEMPLATE = VBoxR3Tool
201 RTKrnlModInfo_SOURCES = RTKrnlModInfo.cpp
202 endif
203
204endif # !VBOX_ONLY_BUILD
205
206include $(FILE_KBUILD_SUB_FOOTER)
207
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