VirtualBox

source: vbox/trunk/Makefile.kmk@ 18999

Last change on this file since 18999 was 18908, checked in by vboxsync, 16 years ago

Additions build: adjustments for new build box

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 31.9 KB
Line 
1# $Id: Makefile.kmk 18908 2009-04-15 19:43:24Z vboxsync $
2## @file
3# Top level makefile.
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = .
23include $(KBUILD_PATH)/subheader.kmk
24
25#
26# Sub-makefiles / Sub-directories.
27#
28ifdef VBOX_SINGLE_MAKEFILE
29 if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS)
30 include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
31 endif
32 include $(PATH_SUB_CURRENT)/src/Makefile.kmk
33else
34 if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS)
35 SUBDIRS = doc/manual
36 endif
37 SUBDIRS += src
38endif
39
40
41#
42# Clean up global stuff that Config.kmk generates.
43#
44OTHER_CLEAN += \
45 $(VBOX_PACKAGE_HEADER) \
46 $(VBOX_LICENSE_VER_KMK) \
47 $(VBOX_VERSION_MK) \
48 $(VBOX_VERSION_HEADER) \
49 $(VBOX_VERSION_STAMP) \
50 $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
51 $(VBOX_SVN_REV_KMK).ts \
52 $(VBOX_SVN_REV_KMK) \
53 $(PATH_OUT)/GCCConfig.kmk
54
55
56ifndef VBOX_ONLY_DOCS
57ifndef VBOX_ONLY_ADDITIONS
58
59ifndef VBOX_OSE
60 #
61 # Install the license (and misc non-executable stuff).
62 #
63 INSTALLS += nobin
64 nobin_INST = $(INST_BIN)
65 nobin_MODE = 0644
66 nobin_SOURCES =
67 ifdef VBOX_LICENSE_FILES
68 nobin_SOURCES += \
69 $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
70 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
71 endif
72endif # !OSE
73
74
75#
76# Install external binaries (mostly redistributable parts of tools we use).
77# This must be done *before* we build the manual.
78#
79# To avoid dragging in unnecessary tools and sdks here, we don't use the .win
80# and .linux property suffixes.
81#
82INSTALLS += bin
83
84bin_INST = $(INST_BIN)
85
86# The SDL DLLs
87if1of ($(KBUILD_TARGET), win os2)
88 ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
89 include $(KBUILD_PATH)/sdks/LIBSDL.kmk
90 bin_SOURCES += \
91 $(DLL_SDK_LIBSDL_SDL)
92 ifdef VBOX_WITH_SECURELABEL
93 bin_SOURCES += \
94 $(DLL_SDK_LIBSDL_SDLTTF)
95 endif
96 ifeq ($(KBUILD_TARGET),os2)
97 bin_SOURCES += \
98 $(DLL_SDK_LIBSDL_FSLIB)
99 endif
100 endif
101endif
102
103
104# The compiler runtime DLLs.
105ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
106 ifdef VBOX_USE_VCC80
107 include $(KBUILD_PATH)/tools/VCC80X86.kmk
108 include $(KBUILD_PATH)/tools/VCC80AMD64.kmk
109 bin_SOURCES.x86 += \
110 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
111 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
112 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
113 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
114 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
115 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
116 bin_SOURCES.amd64 += \
117 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
118 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
119 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
120 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
121 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
122 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
123 endif
124 ifndef VBOX_USE_VCC80
125 VBOX_INSTALL_VCC70_RT = 1
126 endif
127 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
128 VBOX_INSTALL_VCC70_RT = 1
129 endif
130 ifdef VBOX_INSTALL_VCC70_RT
131 include $(KBUILD_PATH)/tools/VCC70.kmk
132 ## @todo Move these defines to VCC70.
133 DLL_TOOL_VCC70_MSVCR71 ?= $(PATH_TOOL_VCC70)/bin/msvcr71.dll
134 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71)),)
135 bin_SOURCES += \
136 $(DLL_TOOL_VCC70_MSVCR71)=>msvcr71.dll \
137 $(DLL_TOOL_VCC70_MSVCR71)=>testcase/msvcr71.dll
138 endif
139 DLL_TOOL_VCC70_MSVCP71 ?= $(PATH_TOOL_VCC70)/bin/msvcp71.dll
140 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71)),)
141 bin_SOURCES += \
142 $(DLL_TOOL_VCC70_MSVCP71)=>msvcp71.dll \
143 $(DLL_TOOL_VCC70_MSVCP71)=>testcase/msvcp71.dll
144 endif
145 DLL_TOOL_VCC70_MSVCRT ?= $(PATH_TOOL_VCC70)/bin/msvcrt.dll
146 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCRT)),)
147 bin_SOURCES += \
148 $(DLL_TOOL_VCC70_MSVCRT)=>msvcrt.dll \
149 $(DLL_TOOL_VCC70_MSVCRT)=>testcase/msvcrt.dll
150 endif
151 endif
152endif
153
154
155ifdef VBOX_WITH_QT4_SUN
156#
157# Install our Qt DLLs / Shared Objects / Frameworks.
158# Note: The installer fixes the darwin .dylibs when hardening is enabled.
159#
160 INSTALLS += qt4-bin
161 qt4-bin_MODE = 755
162 ifeq ($(KBUILD_TARGET),darwin)
163 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
164 qt4-bin_SOURCES = $(foreach qtmod, QtCore QtGui QtNetwork \
165 ,$(VBOX_PATH_QT4)/Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox=>Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox)
166 ifdef VBOX_WITH_COCOA_QT
167 qt4-bin_SOURCES += \
168 $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/classes.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/classes.nib \
169 $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/info.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/info.nib \
170 $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
171 endif
172 qt4-bin_SOURCES += \
173 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
174 qt4-bin_SYMLINKS = $(foreach qtmod, QtCore QtGui QtNetwork \
175 ,Frameworks/$(qtmod)VBox.framework/$(qtmod)VBox=>Versions/4/$(qtmod)VBox)
176 ifdef VBOX_WITH_COCOA_QT
177 qt4-bin_SYMLINKS += \
178 Frameworks/QtGuiVBox.framework/Resources=>Versions/4/Resources/
179 endif
180 else ifeq ($(KBUILD_TARGET),win)
181 qt4-bin_INST = $(INST_BIN)
182 qt4-bin_SOURCES = \
183 $(VBOX_PATH_QT4_LIB)/QtCoreVBox4.dll \
184 $(VBOX_PATH_QT4_LIB)/QtGuiVBox4.dll \
185 $(VBOX_PATH_QT4_LIB)/QtNetworkVBox4.dll \
186 $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4.dll=>accessible/qtaccessiblewidgets4.dll
187 else
188 qt4-bin_INST = $(INST_BIN)
189 qt4-bin_SOURCES = \
190 $(VBOX_PATH_QT4_LIB)/libQtCoreVBox.so.4 \
191 $(VBOX_PATH_QT4_LIB)/libQtGuiVBox.so.4 \
192 $(VBOX_PATH_QT4_LIB)/libQtNetworkVBox.so.4 \
193 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
194 endif
195endif # VBOX_WITH_QT4_SUN
196
197
198#
199# For building the combined package, just get the additions .ISO
200# once for amd64 to prevent version inconsistences. In all other
201# cases we get the .ISO per target architecture.
202#
203ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
204 ifdef VBOX_WITH_COMBINED_PACKAGE
205 ifeq ($(KBUILD_TARGET_ARCH),amd64)
206 INSTALLS += buildserver-additions
207 endif
208 else
209 INSTALLS += buildserver-additions
210 endif
211
212#
213# Install additions iso from the build server.
214# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
215# been added to kBuild.
216#
217buildserver-additions_INST = $(INST_ADDITIONS_ISO)
218buildserver-additions_MODE = 0644
219buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
220buildserver-additions_CLEANS = $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
221
222$(PATH_TARGET)/VBoxGuestAdditions.iso: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
223 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
224 ifneq ($(KBUILD_HOST),win)
225 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
226 else
227 $(KMK) --affinity 1 -f $(MAKEFILE) VBOX_SINGLE_MAKEFILE= buildserver-additions-affinity-hack
228 endif
229 $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
230 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
231
232 ifeq ($(KBUILD_HOST),win)
233buildserver-additions-affinity-hack:
234 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
235 endif
236endif
237
238
239#
240#
241# Install documentation files (at the moment the .chm) from the build server.
242# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
243# been added to kBuild.
244#
245ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
246## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
247INSTALLS += buildserver-docs
248buildserver-docs_INST = $(INST_BIN)
249buildserver-docs_MODE = 0644
250buildserver-docs_SOURCES = \
251 $(addprefix $(PATH_TARGET)/, \
252 VirtualBox.chm UserManual.pdf \
253 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
254buildserver-docs_CLEANS = \
255 $(addprefix $(PATH_TARGET)/, \
256 VBoxDocumentation.zip VBoxDocumentation.zip.tmp \
257 VirtualBox.chm UserManual.pdf \
258 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
259
260## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
261include $(KBUILD_PATH)/tools/ZIP.kmk
262
263$(PATH_TARGET)/VirtualBox.chm + $(PATH_TARGET)/UserManual.pdf \
264$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), + $(PATH_TARGET)/VirtualBox_$(f).chm + $(PATH_TARGET)/UserManual_$(f).pdf): \
265 $(PATH_TARGET)/VBoxDocumentation.zip
266 $(call MSG_L1,Unpacking documentation)
267 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
268
269$(PATH_TARGET)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
270 $(RM) -f $(PATH_TARGET)/VBoxDocumentation.zip $(PATH_TARGET)/VBoxDocumentation.zip.tmp
271 ifneq ($(KBUILD_HOST),win)
272 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(PATH_TARGET)/VBoxDocumentation.zip.tmp
273 else
274 $(KMK) --affinity 1 -f $(MAKEFILE) VBOX_SINGLE_MAKEFILE= buildserver-documentation-affinity-hack
275 endif
276 $(CP) -f $(PATH_TARGET)/VBoxDocumentation.zip.tmp $(PATH_TARGET)/VBoxDocumentation.zip
277 $(RM) -f $(PATH_TARGET)/VBoxDocumentation.zip.tmp
278
279 ifeq ($(KBUILD_HOST),win)
280buildserver-documentation-affinity-hack:
281 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(PATH_TARGET)/VBoxDocumentation.zip.tmp
282 endif
283endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
284
285
286#
287# Install staged binaries on platforms where we can't cross
288# compile things.
289#
290ifn1of ($(KBUILD_TARGET), l4 linux win)
291 VBOX_PATH_STAGED ?= .
292
293 # Additions.
294 ifndef VBOX_WITH_LINUX_ADDITIONS
295 ifndef VBOX_WITH_WIN32_ADDITIONS
296 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
297 INSTALLS += staged-additions
298 staged-additions_INST = $(INST_ADDITIONS_ISO)
299 staged-additions_MODE = 0644
300 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
301 endif
302 endif
303 endif
304
305 # guesttool.exe
306 ifndef VBOX_WITH_WIN32_ADDITIONS
307 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
308 INSTALLS += staged-guesttool
309 staged-guesttool_INST = $(INST_BIN)
310 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
311 endif
312 endif
313
314endif
315
316endif # !VBOX_ONLY_ADDITIONS
317endif # !VBOX_ONLY_DOCS
318
319
320ifdef VBOX_ONLY_DOCS
321# It may sound a bit odd, but for preparing the documentation package the
322# doxygen documentation isn't needed and increases the build time a lot.
323docs:
324else # !VBOX_ONLY_DOCS
325#
326# Generate documentation.
327# (This should be converted into a separate pass or merged with an existing one later.)
328#
329 ifdef VBOX_SINGLE_MAKEFILE
330 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
331docs: docs.Core
332 endif
333 else # !VBOX_SINGLE_MAKEFILE
334docs: $(if $(VBOX_WITH_ALL_DOXYGEN_TARGETS),docs.Core)
335 $(KMK) -C src/VBox/Main docs.Main
336 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
337 $(KMK) -C src/VBox/Runtime docs.iprt
338 endif
339 endif # !VBOX_SINGLE_MAKEFILE
340endif # !VBOX_ONLY_DOCS
341
342docs.Core docs.core: $(PATH_TARGET)/docs.Core
343
344
345
346#
347# The core (VMM+REM+Devices+Main) documentation.
348#
349# This includes so much because we wish to have the complete CFGM
350# and GCFGM lists.
351#
352OTHER_CLEAN += \
353 $(PATH_TARGET)/Doxyfile.Core \
354 $(PATH_TARGET)/Doxyfile.Core.dep
355
356VBOX_CORE_DOXYFILE_INPUT_DIRS = \
357 include/iprt \
358 include/VBox \
359 include/VBox/com \
360 include/VBox/HostServices \
361 src/VBox/VMM \
362 src/VBox/VMM/VMMR0 \
363 src/VBox/VMM/VMMGC \
364 src/VBox/VMM/VMMAll \
365 src/VBox/VMM/PATM \
366 src/VBox/VMM/PATM/VMMR0 \
367 src/VBox/VMM/PATM/VMMGC \
368 src/VBox/VMM/PATM/VMMAll \
369 src/VBox/VMM/VMMSwitcher \
370 src/VBox/Debugger \
371 src/VBox/Devices \
372 src/VBox/Devices/Audio \
373 src/VBox/Devices/Bus \
374 src/VBox/Devices/Graphics \
375 src/VBox/Devices/Graphics/BIOS \
376 src/VBox/Devices/Input \
377 src/VBox/Devices/Networking \
378 src/VBox/Devices/PC \
379 src/VBox/Devices/PC/BIOS \
380 src/VBox/Devices/Parallel \
381 src/VBox/Devices/Serial \
382 src/VBox/Devices/Storage \
383 src/VBox/Devices/VBoxHDDFormats \
384 src/VBox/Devices/VBoxHDDFormats/StorageCraft \
385 src/VBox/Devices/USB \
386 src/VBox/Devices/USB/darwin \
387 src/VBox/Devices/USB/linux \
388 src/VBox/Devices/USB/os2 \
389 src/VBox/Devices/USB/solaris \
390 src/VBox/Devices/USB/vrdp \
391 src/VBox/Devices/USB/win32 \
392 src/VBox/Devices/VMMDev \
393 src/VBox/Main/include \
394 src/VBox/Main/include/hgcm \
395 src/VBox/Main \
396 src/VBox/Main/glue \
397 src/VBox/Main/hgcm \
398 src/VBox/Main/webservice \
399 src/VBox/Main/xml \
400 src/VBox/Main/darwin \
401 src/VBox/Main/linux \
402 src/VBox/Main/os2 \
403 src/VBox/Main/solaris \
404 src/VBox/Main/win \
405 src/VBox/Main/xpcom \
406 src/VBox/HostServices \
407 src/VBox/HostServices/SharedClipboard \
408 src/VBox/HostServices/SharedFolders \
409 src/VBox/HostServices/SharedInfoServices \
410 src/VBox/HostServices/SharedOpenGL \
411 src/VBox/HostDrivers/Support \
412 src/VBox/HostDrivers/Support/darwin \
413 src/VBox/HostDrivers/Support/freebsd \
414 src/VBox/HostDrivers/Support/l4 \
415 src/VBox/HostDrivers/Support/linux \
416 src/VBox/HostDrivers/Support/os2 \
417 src/VBox/HostDrivers/Support/solaris \
418 src/VBox/HostDrivers/Support/win \
419 src/VBox/HostDrivers/VBoxNetFlt \
420 src/VBox/HostDrivers/VBoxNetFlt/darwin \
421 src/VBox/HostDrivers/VBoxNetFlt/linux \
422 src/VBox/HostDrivers/VBoxNetFlt/solaris \
423 src/VBox/HostDrivers/VBoxNetFlt/win \
424 src/VBox/HostDrivers/VBoxNetNat \
425 src/VBox/HostDrivers/VBoxNetNat/darwin \
426 src/VBox/HostDrivers/VBoxNetNat/linux \
427 src/VBox/HostDrivers/VBoxNetNat/solaris \
428 src/VBox/HostDrivers/VBoxNetNat/win \
429 src/VBox/HostDrivers/VBoxNetAdp \
430 src/VBox/HostDrivers/VBoxNetAdp/darwin \
431 src/VBox/HostDrivers/VBoxNetAdp/linux \
432 src/VBox/HostDrivers/VBoxNetAdp/solaris \
433 src/VBox/HostDrivers/VBoxNetAdp/win \
434 src/VBox/HostDrivers/VBoxUSB \
435 src/VBox/HostDrivers/VBoxUSB/darwin \
436 src/VBox/HostDrivers/VBoxUSB/os2 \
437 src/VBox/HostDrivers/VBoxUSB/solaris \
438 src/VBox/HostDrivers/VBoxUSB/win \
439 src/VBox/HostDrivers/VBoxUSB/win/Device \
440 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
441 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
442 src/VBox/HostDrivers/VBoxUSB/win/Filter \
443 src/VBox/HostDrivers/VBoxUSB/win/Install \
444 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
445 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
446 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
447 src/VBox/HostDrivers/VBoxUSB/win/usbd \
448
449# These must come first in order to make things look nice.
450VBOX_CORE_DOXYFILE_INPUT_FIRST =\
451 $(PATH_ROOT)/doc/VBox-doc.c \
452 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
453 $(PATH_ROOT)/src/VBox/VMM/VMMCodingGuidelines.cpp \
454 $(PATH_ROOT)/src/VBox/VMM/VMMDocsRawMode.cpp \
455 $(PATH_ROOT)/include/VBox/cdefs.h \
456 $(PATH_ROOT)/include/VBox/vmapi.h \
457 $(PATH_ROOT)/include/VBox/vmm.h \
458 $(PATH_ROOT)/include/VBox/cpum.h \
459 $(PATH_ROOT)/include/VBox/mm.h \
460 $(PATH_ROOT)/include/VBox/pgm.h \
461 $(PATH_ROOT)/include/VBox/selm.h \
462 $(PATH_ROOT)/include/VBox/trpm.h \
463 $(PATH_ROOT)/include/VBox/patm.h \
464 $(PATH_ROOT)/include/VBox/dbgf.h \
465 $(PATH_ROOT)/include/VBox/stam.h \
466 $(PATH_ROOT)/include/VBox/em.h \
467 $(PATH_ROOT)/include/VBox/pdm.h \
468 $(PATH_ROOT)/include/VBox/rem.h \
469 $(PATH_ROOT)/include/VBox/iom.h \
470 $(PATH_ROOT)/include/VBox/cfgm.h \
471 $(PATH_ROOT)/include/VBox/tm.h \
472 $(PATH_ROOT)/include/VBox/csam.h \
473 $(PATH_ROOT)/include/VBox/ssm.h \
474 $(PATH_ROOT)/include/VBox/hwaccm.h \
475 $(PATH_ROOT)/include/VBox/hwacc_svm.h \
476 $(PATH_ROOT)/include/VBox/hwacc_vmx.h \
477 \
478 $(PATH_ROOT)/src/VBox/VMM/CFGMInternal.h \
479 $(PATH_ROOT)/src/VBox/VMM/CPUMInternal.h \
480 $(PATH_ROOT)/src/VBox/VMM/DBGFInternal.h \
481 $(PATH_ROOT)/src/VBox/VMM/EMInternal.h \
482 $(PATH_ROOT)/src/VBox/VMM/HWACCMInternal.h \
483 $(PATH_ROOT)/src/VBox/VMM/IOMInternal.h \
484 $(PATH_ROOT)/src/VBox/VMM/MMInternal.h \
485 $(PATH_ROOT)/src/VBox/VMM/PDMInternal.h \
486 $(PATH_ROOT)/src/VBox/VMM/PGMInternal.h \
487 $(PATH_ROOT)/src/VBox/VMM/PATM/CSAMInternal.h \
488 $(PATH_ROOT)/src/VBox/VMM/PATM/PATMInternal.h \
489 $(PATH_ROOT)/src/VBox/VMM/REMInternal.h \
490 $(PATH_ROOT)/src/VBox/VMM/SELMInternal.h \
491 $(PATH_ROOT)/src/VBox/VMM/SSMInternal.h \
492 $(PATH_ROOT)/src/VBox/VMM/STAMInternal.h \
493 $(PATH_ROOT)/src/VBox/VMM/TMInternal.h \
494 $(PATH_ROOT)/src/VBox/VMM/TRPMInternal.h \
495 $(PATH_ROOT)/src/VBox/VMM/VMInternal.h \
496 $(PATH_ROOT)/src/VBox/VMM/VMMInternal.h \
497 \
498 $(PATH_ROOT)/include/VBox/vm.h \
499 \
500 $(PATH_ROOT)/include/VBox/sup.h \
501 $(PATH_ROOT)/include/VBox/VBoxHDD.h \
502 $(PATH_ROOT)/include/VBox/types.h \
503 $(PATH_ROOT)/include/VBox/err.h \
504 $(PATH_ROOT)/include/VBox/x86.h \
505 $(PATH_ROOT)/include/VBox/cpumdis.h \
506 $(PATH_ROOT)/include/VBox/dbggui.h \
507 $(PATH_ROOT)/include/VBox/dis.h \
508 $(PATH_ROOT)/include/VBox/disopcode.h \
509 $(PATH_ROOT)/include/VBox/intnet.h \
510 $(PATH_ROOT)/include/VBox/settings.h \
511 $(PATH_ROOT)/include/VBox/pci.h \
512 $(PATH_ROOT)/include/VBox/scsi.h \
513 $(PATH_ROOT)/include/VBox/shflsvc.h \
514 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
515 $(PATH_ROOT)/include/VBox/usb.h \
516 $(PATH_ROOT)/include/VBox/vusb.h \
517 \
518 $(PATH_ROOT)/include/VBox/log.h \
519 $(PATH_ROOT)/include/VBox/param.h \
520 $(PATH_ROOT)/include/VBox/version.h
521
522VBOX_CORE_DOXYFILE_INPUT := \
523 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
524 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
525VBOX_CORE_DOXYFILE_INPUT := \
526 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
527 $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
528
529# And some some additional stuff.
530VBOX_CORE_DOXYFILE_INPUT += \
531 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
532 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
533
534
535VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
536BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
537
538-include $(PATH_TARGET)/Doxyfile.Core.dep
539
540# Generate the Doxyfile
541$(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
542 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
543 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
544 | $$(dir $$@)
545 $(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.Core.dep
546 $(CP) -f Doxyfile.Core [email protected]
547 $(APPEND) [email protected]
548 $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
549 $(APPEND) [email protected] "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
550 $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
551 $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
552 $(APPEND) [email protected]
553 $(APPEND) [email protected] "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
554 $(APPEND) [email protected]
555 $(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
556 $(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
557 $(APPEND) [email protected]
558 $(MV) -f [email protected] $@
559 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
560 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
561
562# Do the actual job.
563$(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) | $(VBOX_CORE_DOXYFILE_OUTPUT)/
564 $(RM) -f $(PATH_TARGET)/docs.Core
565 $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
566 doxygen $(PATH_TARGET)/Doxyfile.Core
567 $(APPEND) $(PATH_TARGET)/docs.Core
568
569
570
571#
572# Build the additions, all of them.
573#
574# This is currently tailored (hardcoded) for the additions
575# build box. Can make it pretty and configurable later.
576#
577# The fetching must be done in serial fashion, while the building
578# should be more flexible wrt to -jN.
579#
580additions-fetch:
581 + $(KMK) -C tools fetch
582 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux
583 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux
584# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2
585 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris
586 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris
587 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win
588 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win
589
590
591## @todo Currently combined solaris additions building assumes that amd64 is
592# built first. The windows amd64 additions need some x86 files, so don't change
593# the order of the windows builds.
594# Do not change the order of dependencies here without testing.
595additions-build: \
596 additions-build-win.x86 \
597 additions-build-win.amd64 \
598 additions-build-solaris.amd64 \
599 additions-build-solaris.x86 \
600 additions-build-os2.x86 \
601 additions-build-linux.amd64 \
602 additions-build-linux.x86
603
604VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
605 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
606 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
607 VBOX_SVN_REV=$(VBOX_SVN_REV) \
608 all packing
609
610VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
611 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
612 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
613 VBOX_SVN_REV=$(VBOX_SVN_REV) \
614 all packing
615
616# Automatically determine the additions build subdir name. Used for figuring
617# out directory names inside the additions building VMs.
618VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
619
620VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
621
622additions-build-win.amd64:
623ifeq ($(KBUILD_TARGET),win)
624 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
625else
626 $(call MSG_L1,Building Windows/amd64 additions)
627 $(VBOX_KMK_TIME) ssh [email protected] "cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64)
628endif
629
630additions-build-win.x86:
631ifeq ($(KBUILD_TARGET),win)
632 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
633else
634 $(call MSG_L1,Building Windows/x86 additions)
635 $(VBOX_KMK_TIME) ssh [email protected] " cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86)"
636endif
637
638additions-build-solaris.amd64:
639ifeq ($(KBUILD_TARGET),solaris)
640 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
641else
642 $(call MSG_L1,Building Solaris/amd64 additions)
643 rsync -av --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
644 $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
645 rsync -av --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
646endif
647
648# ASSUMES 64-bit is built already. See @todo above.
649additions-build-solaris.x86:
650ifeq ($(KBUILD_TARGET),solaris)
651 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1
652else
653 $(call MSG_L1,Building Solaris/x86 additions)
654 rsync -av --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
655 $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1"
656 rsync -av --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
657endif
658
659additions-build-os2.x86:
660#ifeq ($(KBUILD_TARGET),os2)
661# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
662#else
663# $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
664#endif
665
666additions-build-linux.amd64:
667ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
668 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
669else
670 $(call MSG_L1,Building Linux/amd64 additions)
671 $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
672endif
673
674additions-build-linux.x86:
675ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
676 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
677else
678 $(call MSG_L1,Building Linux/x86 additions)
679 $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
680endif
681
682
683additions-packing:
684 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
685 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
686 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
687 VBOX_WITH_ADDITIONS_ISO.linux.amd64=1 \
688 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
689 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
690 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
691 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
692 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
693 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
694 -C src/VBox/Additions \
695 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
696
697
698
699#
700# Generate VirtualBox-OSE-x.x.x.tar.bz2 tarballs for distribution
701#
702# - includes kBuild
703# - must be executed on an OSE checkout
704#
705
706# the path where to store the tarball
707TARBALLPATH ?= $(shell cd $(PATH_ROOT)/..; pwd)
708#TARBALLPATH ?= $(abspath $(PATH_ROOT)/..) - this should also do the trick without spawning a shell.
709# the root directory inside the tarball
710TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
711# the name of the tarball file
712TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
713snapshot:
714 @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
715 @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then echo; echo "Found USB stuff, refused to build OSE tarball!"; echo; exit 1; fi
716 $(QUIET)$(MKDIR) -p $(TARBALLPATH)
717 $(QUIET)$(RM) -f $(wildcard $(TARBALLPATH)/VirtualBox*)
718 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
719 $(QUIET)tar -cjh --owner 0 --group 0 --totals \
720 --exclude=.svn \
721 --exclude=$(TARBALLROOT)/out \
722 --exclude=$(TARBALLROOT)/env.sh \
723 --exclude=$(TARBALLROOT)/configure.log \
724 --exclude=$(TARBALLROOT)/AutoConfig.kmk \
725 --exclude=$(TARBALLROOT)/LocalConfig.kmk \
726 -C $(TARBALLPATH) \
727 -f $(TARBALLPATH)/$(TARBALLNAME) \
728 $(TARBALLROOT)
729 $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
730
731
732#
733# Generate ALL the rules.
734#
735include $(KBUILD_PATH)/subfooter.kmk
736
737
738#
739# Generate x86.mac and err.mac.
740#
741incs:
742 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
743 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
744 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
745 $(SED) \
746 -e '/__VBox_x86_h__/d' \
747 -e '/#define/!d' \
748 -e '/\\$$/d' \
749 -e 's/#define/%define/' \
750 -e 's/\([0-9a-fA-F][0-9a-fA-F]*\)U$$/\1/' \
751 -e 's/\([0-9a-fA-F][0-9a-fA-F]*\)U[[:space:]]/\1 /' \
752 -e 's/[[:space:]]\/\*\*<.*$$//' \
753 --output include/VBox/x86.mac \
754 include/VBox/x86.h
755
756
757#
758# Generate Visual SlickEdit tagging #defines.
759#
760vslick.h: include/VBox/cdefs.h include/iprt/cdefs.h $(MAKEFILE)
761 $(RM) -f -- $@ [email protected] [email protected] [email protected]
762 $(APPEND) [email protected] '// autogenerated'
763 #@$(APPEND) [email protected] '#define __BEGIN_DECLS '
764 #@$(APPEND) [email protected] '#define __END_DECLS '
765
766 @$(APPEND) [email protected] '#define ATL_NO_VTABLE '
767 @$(APPEND) [email protected] '#define BEGIN_COM_MAP(a) '
768 @$(APPEND) [email protected] '#define END_COM_MAP(a) '
769
770 @$(APPEND) [email protected] '#define CHECKREADY if(!isReady()) return E_UNEXPECTED; '
771 @$(APPEND) [email protected] '#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a) '
772 @$(APPEND) [email protected] '#define COM_INTERFACE_ENTRY(a) '
773 @$(APPEND) [email protected] '#define COMGETTER(n) Get##n '
774 @$(APPEND) [email protected] '#define COMSETTER(n) Set##n '
775 @$(APPEND) [email protected] '#define ComSafeArrayIn(t,a) t a[] '
776 @$(APPEND) [email protected] '#define ComSafeArrayOut(t,a) t * a[] '
777 @$(APPEND) [email protected] '#define DECLARE_NOT_AGGREGATABLE(a) '
778 @$(APPEND) [email protected] '#define DECLARE_PROTECT_FINAL_CONSTRUCT(a) '
779 @$(APPEND) [email protected] '#define NS_DECL_ISUPPORTS '
780 @$(APPEND) [email protected] '#define NS_IMETHOD NS_IMETHOD_(nsresult) '
781 @$(APPEND) [email protected] '#define NS_IMETHOD_(type) type '
782 @$(APPEND) [email protected] '#define PARSERS_EXPORT '
783 @$(APPEND) [email protected] '#define STDMETHOD(a) NS_IMETHOD a '
784
785 @$(APPEND) [email protected] '#define CTX_SUFF(var) var##R3 '
786 @$(APPEND) [email protected] '#define CTXAllSUFF(var) var##R3 '
787 @$(APPEND) [email protected] '#define CTXSUFF(var) var##HC '
788 @$(APPEND) [email protected] '#define OTHERCTXSUFF(var) var##GC '
789 @$(APPEND) [email protected] '#define CTXALLMID(first, last) first##R3##last '
790 @$(APPEND) [email protected] '#define CTXMID(first, last) first##HC##last '
791 @$(APPEND) [email protected] '#define OTHERCTXMID(first, last) first##GC##last '
792 @$(APPEND) [email protected] '#define CTXTYPE(GCType, R3Type, R0Type) R3Type '
793 @$(APPEND) [email protected] '#define RCTYPE(RCType, HCType) RCType '
794 @$(APPEND) [email protected] '#define GCTYPE(GCType, HCType) GCType '
795 @$(APPEND) [email protected] '#define RCPTRTYPE(RCType) RCType '
796 @$(APPEND) [email protected] '#define GCPTRTYPE(GCType) GCType '
797 @$(APPEND) [email protected] '#define HCPTRTYPE(HCType) HCType '
798 @$(APPEND) [email protected] '#define R3R0PTRTYPE(HCType) HCType '
799 @$(APPEND) [email protected] '#define R0PTRTYPE(R3Type) R3Type '
800 @$(APPEND) [email protected] '#define R3PTRTYPE(R0Type) R0Type '
801 @$(APPEND) [email protected] '#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ '
802 @$(APPEND) [email protected] '#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction '
803 @$(APPEND) [email protected] '#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction '
804 @$(APPEND) [email protected] '#define RTCALL'
805 @$(APPEND) [email protected] '#define DECLINLINE(type) inline type '
806
807 @$(APPEND) [email protected] '#define PDMDEVINSINT_DECLARED 1'
808 @$(APPEND) [email protected] '#define VBOXCALL'
809
810 $(SED) -e '/__cdecl/d' \
811 -e '/^ *# *define.*DECL/!d' \
812 -e '/DECLS/d' \
813 -e '/DECLARE_CLS_/d' \
814 -e '/_SRC_POS_DECL/d' \
815 -e '/declspec/d' \
816 -e '/__attribute__/d' \
817 -e 's/# */#/g' \
818 -e 's/ */ /g' \
819 -e '/(type) DECLEXPORT/d' \
820 -e '/ DECLEXPORT_CLASS/d' \
821 -e 's/ *VBOXCALL//' \
822 -e 's/ *RTCALL//' \
823 -e 's/(type) DECLIMPORT(type)/(type) type/' \
824 -e '/ DECLASM(type) type/d' \
825 -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
826 -e '/define *DECLINLINE(type)/d' \
827 -e '/define RT[DATGRC03]*DECL(type) *DECLHIDDEN(type)/d' \
828 \
829 --append [email protected] \
830 $(filter-out include/VBox/err.h, $(wildcard include/VBox/*.h)) \
831 include/iprt/cdefs.h
832 $(CAT_EXT) [email protected] | sort | $(SED_EXT) -e 's/$$/\n/' --output [email protected]
833 $(MV) -f [email protected] $@
834 $(RM) -f [email protected] [email protected] [email protected]
835ifeq ($(KBUILD_HOST),win)
836 @$(ECHO) 'TODO: Merge vslick.h with your "$(HOMEDRIVE)$(HOMEPATH)\Documents\My SlickEdit Config\x.y.z\usercpp.h" file.'
837else
838 @$(ECHO) "TODO: Merge ./vslick.h with your ~/.slickedit/x.y.z/unxcpp.h file."
839endif
840
841
842#
843# Add fetching of the tools to the 'up[date][2]' targets.
844#
845up update up2 update2::
846ifndef VBOX_OSE
847 +$(MAKE) -C tools fetch
848else
849 $(MAKE) -C tools -f Makefile-ose.kmk fetch
850endif
851
852
853
854#
855# Aliases for building the SDK.
856#
857.NOTPARALLEL: sdk sdk-fetch
858sdk:
859 + $(KMK) VBOX_ONLY_SDK=1 \
860 pass_bldprogs pass_others pass_installs pass_packing
861
862sdk-fetch:
863 + $(KMK) KBUILD_TARGET=win KBUILD_TARGET_ARCH=x86 -C tools fetch
864
865
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