VirtualBox

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

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

Runtime/tools/Makefile.kmk: try simplify

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.7 KB
Line 
1# $Id: Makefile.kmk 68834 2017-09-22 15:34:20Z 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
72 # RTIsoMaker - ISO image maker - build version.
73 PROGRAMS += RTIsoMaker
74 RTIsoMaker_TEMPLATE = VBoxR3Tool
75 RTIsoMaker_SOURCES = RTIsoMaker.cpp
76
77 # RTLs is a tool for listing file information.
78 PROGRAMS += RTLs
79 RTLs_TEMPLATE = VBoxR3Tool
80 RTLs_SOURCES = RTLs.cpp
81
82 # RTRm is a tool for removing files and directories.
83 PROGRAMS += RTRm
84 RTRm_TEMPLATE = VBoxR3Tool
85 RTRm_SOURCES = RTRm.cpp
86
87 # RTManifest is a tool for creating and verifying manifest files.
88 PROGRAMS += RTManifest
89 RTManifest_TEMPLATE = VBoxR3Tool
90 RTManifest_SOURCES = RTManifest.cpp
91
92 # RTLdrFlt is similar to c++filt, except that it's for VMMR0.r0 stacks.
93 PROGRAMS += RTLdrFlt
94 RTLdrFlt_TEMPLATE = VBoxR3Tool
95 RTLdrFlt_SOURCES = RTLdrFlt.cpp
96
97 # RTGzip - our gzip clone (for testing the gzip/gunzip streaming code)
98 PROGRAMS += RTGzip
99 RTGzip_TEMPLATE = VBoxR3Tool
100 RTGzip_SOURCES = RTGzip.cpp
101
102 ifdef VBOX_WITH_LIBCURL
103 # RTHttp - our http/https fetcher (for testing the http client API).
104 PROGRAMS += RTHttp
105 RTHttp_TEMPLATE = VBoxR3Tool
106 RTHttp_SOURCES = RTHttp.cpp
107 endif
108
109 # RTShutdown - similar (but not identical) to a typical unix shutdown command.
110 PROGRAMS += RTShutdown
111 RTShutdown_TEMPLATE = VBoxR3Tool
112 RTShutdown_SOURCES = RTShutdown.cpp
113
114 # RTTar - our tar clone (for testing the tar/gzip/gunzip streaming code)
115 PROGRAMS += RTTar
116 RTTar_TEMPLATE = VBoxR3Tool
117 RTTar_SOURCES = RTTar.cpp
118
119 # RTUnzip - our unzip clone (for testing the unzip streaming code)
120 PROGRAMS += RTUnzip
121 RTUnzip_TEMPLATE = VBoxR3Tool
122 RTUnzip_SOURCES = RTUnzip.cpp
123
124 # RTNtDbgHelp - our tar clone (for testing the tar/gzip/gunzip streaming code)
125 PROGRAMS.win += RTNtDbgHelp
126 RTNtDbgHelp_TEMPLATE = VBoxR3Tool
127 RTNtDbgHelp_SOURCES = RTNtDbgHelp.cpp
128
129 # RTDbgSymCache - Symbol cache manager.
130 PROGRAMS += RTDbgSymCache
131 RTDbgSymCache_TEMPLATE = VBoxR3Tool
132 RTDbgSymCache_SOURCES = RTDbgSymCache.cpp
133
134 # RTSignTool - Signing utility.
135 PROGRAMS += RTSignTool
136 RTSignTool_TEMPLATE = VBoxR3Tool
137 RTSignTool_SOURCES = RTSignTool.cpp
138 RTSignTool_LIBS = $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
139
140 if1of ($(KBUILD_TARGET), darwin linux solaris win)
141 # RTKrnlModInfo - our lsmod/kextstat clone (for testing the RTKrnlMod code).
142 PROGRAMS += RTKrnlModInfo
143 RTKrnlModInfo_TEMPLATE = VBoxR3Tool
144 RTKrnlModInfo_SOURCES = RTKrnlModInfo.cpp
145 endif
146
147endif # !VBOX_ONLY_BUILD
148
149include $(FILE_KBUILD_SUB_FOOTER)
150
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