VirtualBox

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

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

IPRT: More work on directory relative APIs (NT mainly) and VFS; introducing RTMkDir (test) tool.

  • Added RTVfsDirCreateDir
  • Added RTVfsChainOpenParentDir and RTVfsChainSplitOffFinalPath.
  • Added new tool for testing this called RTMkDir.
  • Fixed directory traversal problem with stddir by making it okay to return VERR_FILE_NOT_FOUND as well.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.2 KB
Line 
1# $Id: Makefile.kmk 69716 2017-11-16 14:31:25Z 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 # RTMkDir - our mkdir clone.
116 PROGRAMS += RTMkDir
117 RTMkDir_TEMPLATE = VBoxR3Tool
118 RTMkDir_SOURCES = RTMkDir.cpp
119
120 # RTShutdown - similar (but not identical) to a typical unix shutdown command.
121 PROGRAMS += RTShutdown
122 RTShutdown_TEMPLATE = VBoxR3Tool
123 RTShutdown_SOURCES = RTShutdown.cpp
124
125 # RTTar - our tar clone (for testing the tar/gzip/gunzip streaming code)
126 PROGRAMS += RTTar
127 RTTar_TEMPLATE = VBoxR3Tool
128 RTTar_SOURCES = RTTar.cpp
129 RTTar_SOURCES += ../VBox/LoadVBoxDDU.cpp
130
131 # RTUnzip - our unzip clone (for testing the unzip streaming code)
132 PROGRAMS += RTUnzip
133 RTUnzip_TEMPLATE = VBoxR3Tool
134 RTUnzip_SOURCES = RTUnzip.cpp
135 RTUnzip_SOURCES += ../VBox/LoadVBoxDDU.cpp
136
137 # RTNtDbgHelp - our tar clone (for testing the tar/gzip/gunzip streaming code)
138 PROGRAMS.win += RTNtDbgHelp
139 RTNtDbgHelp_TEMPLATE = VBoxR3Tool
140 RTNtDbgHelp_SOURCES = RTNtDbgHelp.cpp
141
142 # RTDbgSymCache - Symbol cache manager.
143 PROGRAMS += RTDbgSymCache
144 RTDbgSymCache_TEMPLATE = VBoxR3Tool
145 RTDbgSymCache_SOURCES = RTDbgSymCache.cpp
146
147 # RTSignTool - Signing utility.
148 PROGRAMS += RTSignTool
149 RTSignTool_TEMPLATE = VBoxR3Tool
150 RTSignTool_SOURCES = RTSignTool.cpp
151 RTSignTool_LIBS = $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
152
153 if1of ($(KBUILD_TARGET), darwin linux solaris win)
154 # RTKrnlModInfo - our lsmod/kextstat clone (for testing the RTKrnlMod code).
155 PROGRAMS += RTKrnlModInfo
156 RTKrnlModInfo_TEMPLATE = VBoxR3Tool
157 RTKrnlModInfo_SOURCES = RTKrnlModInfo.cpp
158 endif
159
160endif # !VBOX_ONLY_BUILD
161
162include $(FILE_KBUILD_SUB_FOOTER)
163
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