VirtualBox

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

Last change on this file since 69603 was 69603, checked in by vboxsync, 7 years ago

Runtime/tools: Added hack for accessing the 'vd' VFS chain element implemented by StorageLib.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1# $Id: Makefile.kmk 69603 2017-11-06 17:23:11Z 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
31# RTIsoMaker - ISO image maker - build version.
32BLDPROGS += bldRTIsoMaker
33bldRTIsoMaker_TEMPLATE = VBoxAdvBldProg
34bldRTIsoMaker_SOURCES = \
35 RTIsoMaker.cpp \
36 ../common/misc/buildconfig.cpp
37bldRTIsoMaker_DEFS = \
38 IPRT_BLDCFG_SCM_REV=$(if $(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV)) \
39 IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
40 IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
41 IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
42 IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD) \
43 IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
44 IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
45 IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
46bldRTIsoMaker_INCS = ../include
47
48
49if !defined(VBOX_ONLY_DOCS)
50
51 # RTManifest is a tool for creating and verifying manifest files - build version.
52 BLDPROGS += bldRTManifest
53 bldRTManifest_TEMPLATE = VBoxAdvBldProg
54 bldRTManifest_SOURCES = RTManifest.cpp
55
56 # RTSignTool - Signing utility - build version. Signed on windows so we can get the certificate from it.
57 BLDPROGS += bldRTSignTool
58 bldRTSignTool_TEMPLATE = VBoxAdvBldProg
59 bldRTSignTool_SOURCES = RTSignTool.cpp
60 bldRTSignTool_DEFS = IPRT_IN_BUILD_TOOL
61 bldRTSignTool_POST_CMDS.win = $(VBOX_SIGN_IMAGE_CMDS)
62
63endif
64
65if !defined(VBOX_ONLY_BUILD)
66
67 # RTCat is a tool for displaying files.
68 PROGRAMS += RTCat
69 RTCat_TEMPLATE = VBoxR3Tool
70 RTCat_SOURCES = RTCat.cpp
71 RTCat_SOURCES += ../VBox/LoadVBoxDDU.cpp
72
73 # RTIsoMaker - ISO image maker - build version.
74 PROGRAMS += RTIsoMaker
75 RTIsoMaker_TEMPLATE = VBoxR3Tool
76 RTIsoMaker_SOURCES = RTIsoMaker.cpp
77 RTIsoMaker_SOURCES += ../VBox/LoadVBoxDDU.cpp
78
79 # RTLs is a tool for listing file information.
80 PROGRAMS += RTLs
81 RTLs_TEMPLATE = VBoxR3Tool
82 RTLs_SOURCES = RTLs.cpp
83 RTLs_SOURCES += ../VBox/LoadVBoxDDU.cpp
84
85 # RTRm is a tool for removing files and directories.
86 PROGRAMS += RTRm
87 RTRm_TEMPLATE = VBoxR3Tool
88 RTRm_SOURCES = RTRm.cpp
89 RTRm_SOURCES += ../VBox/LoadVBoxDDU.cpp
90
91 # RTManifest is a tool for creating and verifying manifest files.
92 PROGRAMS += RTManifest
93 RTManifest_TEMPLATE = VBoxR3Tool
94 RTManifest_SOURCES = RTManifest.cpp
95 RTManifest_SOURCES += ../VBox/LoadVBoxDDU.cpp
96
97 # RTLdrFlt is similar to c++filt, except that it's for VMMR0.r0 stacks.
98 PROGRAMS += RTLdrFlt
99 RTLdrFlt_TEMPLATE = VBoxR3Tool
100 RTLdrFlt_SOURCES = RTLdrFlt.cpp
101
102 # RTGzip - our gzip clone (for testing the gzip/gunzip streaming code)
103 PROGRAMS += RTGzip
104 RTGzip_TEMPLATE = VBoxR3Tool
105 RTGzip_SOURCES = RTGzip.cpp
106 RTGzip_SOURCES += ../VBox/LoadVBoxDDU.cpp
107
108 ifdef VBOX_WITH_LIBCURL
109 # RTHttp - our http/https fetcher (for testing the http client API).
110 PROGRAMS += RTHttp
111 RTHttp_TEMPLATE = VBoxR3Tool
112 RTHttp_SOURCES = RTHttp.cpp
113 endif
114
115 # RTShutdown - similar (but not identical) to a typical unix shutdown command.
116 PROGRAMS += RTShutdown
117 RTShutdown_TEMPLATE = VBoxR3Tool
118 RTShutdown_SOURCES = RTShutdown.cpp
119
120 # RTTar - our tar clone (for testing the tar/gzip/gunzip streaming code)
121 PROGRAMS += RTTar
122 RTTar_TEMPLATE = VBoxR3Tool
123 RTTar_SOURCES = RTTar.cpp
124 RTTar_SOURCES += ../VBox/LoadVBoxDDU.cpp
125
126 # RTUnzip - our unzip clone (for testing the unzip streaming code)
127 PROGRAMS += RTUnzip
128 RTUnzip_TEMPLATE = VBoxR3Tool
129 RTUnzip_SOURCES = RTUnzip.cpp
130 RTUnzip_SOURCES += ../VBox/LoadVBoxDDU.cpp
131
132 # RTNtDbgHelp - our tar clone (for testing the tar/gzip/gunzip streaming code)
133 PROGRAMS.win += RTNtDbgHelp
134 RTNtDbgHelp_TEMPLATE = VBoxR3Tool
135 RTNtDbgHelp_SOURCES = RTNtDbgHelp.cpp
136
137 # RTDbgSymCache - Symbol cache manager.
138 PROGRAMS += RTDbgSymCache
139 RTDbgSymCache_TEMPLATE = VBoxR3Tool
140 RTDbgSymCache_SOURCES = RTDbgSymCache.cpp
141
142 # RTSignTool - Signing utility.
143 PROGRAMS += RTSignTool
144 RTSignTool_TEMPLATE = VBoxR3Tool
145 RTSignTool_SOURCES = RTSignTool.cpp
146 RTSignTool_LIBS = $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
147
148 if1of ($(KBUILD_TARGET), darwin linux solaris win)
149 # RTKrnlModInfo - our lsmod/kextstat clone (for testing the RTKrnlMod code).
150 PROGRAMS += RTKrnlModInfo
151 RTKrnlModInfo_TEMPLATE = VBoxR3Tool
152 RTKrnlModInfo_SOURCES = RTKrnlModInfo.cpp
153 endif
154
155endif # !VBOX_ONLY_BUILD
156
157include $(FILE_KBUILD_SUB_FOOTER)
158
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