VirtualBox

source: vbox/trunk/Makefile.kmk@ 22394

Last change on this file since 22394 was 22386, checked in by vboxsync, 15 years ago

qgl framebuffer: add QtOpenGL lib to win installer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 34.2 KB
Line 
1# $Id: Makefile.kmk 22386 2009-08-21 13:15:23Z 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
154ifdef VBOX_WITH_QT4_SUN
155#
156# Install our Qt DLLs / Shared Objects / Frameworks.
157# Note: The installer fixes the darwin .dylibs when hardening is enabled.
158#
159 INSTALLS += qt4-bin
160 qt4-bin_MODE = 755
161 ifeq ($(KBUILD_TARGET),darwin)
162 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
163 qt4-bin_SOURCES = $(foreach qtmod, QtCore QtGui QtNetwork $(if $(VBOX_GUI_USE_QGL), QtOpenGL,) \
164 ,$(VBOX_PATH_QT4)/Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox=>Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox)
165 ifdef VBOX_WITH_COCOA_QT
166 qt4-bin_SOURCES += \
167 $(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 \
168 $(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 \
169 $(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
170 endif
171 qt4-bin_SOURCES += \
172 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
173 qt4-bin_SYMLINKS = $(foreach qtmod, QtCore QtGui QtNetwork $(if $(VBOX_GUI_USE_QGL), QtOpenGL,) \
174 ,Frameworks/$(qtmod)VBox.framework/$(qtmod)VBox=>Versions/4/$(qtmod)VBox)
175 ifdef VBOX_WITH_COCOA_QT
176 qt4-bin_SYMLINKS += \
177 Frameworks/QtGuiVBox.framework/Resources=>Versions/4/Resources/
178 endif
179 else ifeq ($(KBUILD_TARGET),win)
180 qt4-bin_INST = $(INST_BIN)
181 qt4-bin_SOURCES = \
182 $(VBOX_PATH_QT4_LIB)/QtCoreVBox4.dll \
183 $(VBOX_PATH_QT4_LIB)/QtGuiVBox4.dll \
184 $(VBOX_PATH_QT4_LIB)/QtNetworkVBox4.dll \
185 $(if $(VBOX_GUI_USE_QGL), $(VBOX_PATH_QT4_LIB)/QtOpenGLVBox4.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 $(if $(VBOX_GUI_USE_QGL), $(VBOX_PATH_QT4_LIB)/libQtOpenGLVBox.so.4,) \
194 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
195 endif
196endif # VBOX_WITH_QT4_SUN
197
198
199#
200# For building the combined package, just get the additions .ISO
201# once for amd64 to prevent version inconsistences. In all other
202# cases we get the .ISO per target architecture.
203#
204ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
205 ifdef VBOX_WITH_COMBINED_PACKAGE
206 ifeq ($(KBUILD_TARGET_ARCH),amd64)
207 INSTALLS += buildserver-additions
208 endif
209 else
210 INSTALLS += buildserver-additions
211 endif
212
213#
214# Install additions iso from the build server.
215# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
216# been added to kBuild.
217#
218buildserver-additions_INST = $(INST_ADDITIONS_ISO)
219buildserver-additions_MODE = 0644
220buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
221buildserver-additions_CLEANS = $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
222
223$(PATH_TARGET)/VBoxGuestAdditions.iso: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
224 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
225 ifneq ($(KBUILD_HOST),win)
226 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
227 else
228 $(KMK) --affinity 1 -f $(MAKEFILE) VBOX_SINGLE_MAKEFILE= buildserver-additions-affinity-hack
229 endif
230 $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
231 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
232
233 ifeq ($(KBUILD_HOST),win)
234buildserver-additions-affinity-hack:
235 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
236 endif
237endif
238
239
240#
241#
242# Install documentation files (at the moment the .chm) from the build server.
243# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
244# been added to kBuild.
245#
246ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
247## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
248INSTALLS += buildserver-docs
249buildserver-docs_INST = $(INST_BIN)
250buildserver-docs_MODE = 0644
251buildserver-docs_SOURCES = \
252 $(addprefix $(PATH_TARGET)/, \
253 VirtualBox.chm UserManual.pdf \
254 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
255buildserver-docs_CLEANS = \
256 $(buildserver-docs_0_OUTDIR)/unpacked.ts \
257 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
258 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
259 $(addprefix $(PATH_TARGET)/, \
260 VirtualBox.chm UserManual.pdf \
261 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
262
263## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
264include $(KBUILD_PATH)/tools/ZIP.kmk
265
266$$(buildserver-docs_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf \
267$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
268 $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
269 $(call MSG_L1,Unpacking documentation)
270 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
271 $(APPEND) -t $@ "done"
272
273$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
274 $(RM) -f $@ $@.tmp
275 ifneq ($(KBUILD_HOST),win)
276 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $@.tmp
277 else
278 $(KMK) --affinity 1 -f $(MAKEFILE) VBOX_SINGLE_MAKEFILE= buildserver-documentation-affinity-hack
279 endif
280 $(CP) -f $@.tmp $@
281 $(RM) -f $@.tmp
282
283 ifeq ($(KBUILD_HOST),win)
284buildserver-documentation-affinity-hack:
285 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp
286 endif
287endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
288
289
290#
291# Install staged binaries on platforms where we can't cross
292# compile things.
293#
294ifn1of ($(KBUILD_TARGET), l4 linux win)
295 VBOX_PATH_STAGED ?= .
296
297 # Additions.
298 ifndef VBOX_WITH_LINUX_ADDITIONS
299 ifndef VBOX_WITH_WIN32_ADDITIONS
300 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
301 INSTALLS += staged-additions
302 staged-additions_INST = $(INST_ADDITIONS_ISO)
303 staged-additions_MODE = 0644
304 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
305 endif
306 endif
307 endif
308
309 # guesttool.exe
310 ifndef VBOX_WITH_WIN32_ADDITIONS
311 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
312 INSTALLS += staged-guesttool
313 staged-guesttool_INST = $(INST_BIN)
314 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
315 endif
316 endif
317
318endif
319
320endif # !VBOX_ONLY_ADDITIONS
321endif # !VBOX_ONLY_DOCS
322
323
324ifdef VBOX_ONLY_DOCS
325# It may sound a bit odd, but for preparing the documentation package the
326# doxygen documentation isn't needed and increases the build time a lot.
327docs:
328else # !VBOX_ONLY_DOCS
329#
330# Generate documentation.
331# (This should be converted into a separate pass or merged with an existing one later.)
332#
333 ifdef VBOX_SINGLE_MAKEFILE
334 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
335docs: docs.Core
336 endif
337 else # !VBOX_SINGLE_MAKEFILE
338docs: $(if $(VBOX_WITH_ALL_DOXYGEN_TARGETS),docs.Core)
339 $(KMK) -C src/VBox/Main docs.Main
340 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
341 $(KMK) -C src/VBox/Runtime docs.iprt
342 endif
343 endif # !VBOX_SINGLE_MAKEFILE
344endif # !VBOX_ONLY_DOCS
345
346docs.Core docs.core: $(PATH_TARGET)/docs.Core
347
348
349
350#
351# The core (VMM+REM+Devices+Main) documentation.
352#
353# This includes so much because we wish to have the complete CFGM
354# and GCFGM lists.
355#
356OTHER_CLEAN += \
357 $(PATH_TARGET)/Doxyfile.Core \
358 $(PATH_TARGET)/Doxyfile.Core.dep
359
360VBOX_CORE_DOXYFILE_INPUT_DIRS = \
361 include/iprt \
362 include/VBox \
363 include/VBox/com \
364 include/VBox/HostServices \
365 src/VBox/VMM \
366 src/VBox/VMM/VMMR0 \
367 src/VBox/VMM/VMMGC \
368 src/VBox/VMM/VMMAll \
369 src/VBox/VMM/PATM \
370 src/VBox/VMM/PATM/VMMR0 \
371 src/VBox/VMM/PATM/VMMGC \
372 src/VBox/VMM/PATM/VMMAll \
373 src/VBox/VMM/VMMSwitcher \
374 src/VBox/Debugger \
375 src/VBox/Devices \
376 src/VBox/Devices/Audio \
377 src/VBox/Devices/Bus \
378 src/VBox/Devices/Graphics \
379 src/VBox/Devices/Graphics/BIOS \
380 src/VBox/Devices/Input \
381 src/VBox/Devices/Networking \
382 src/VBox/Devices/PC \
383 src/VBox/Devices/PC/BIOS \
384 src/VBox/Devices/Parallel \
385 src/VBox/Devices/Serial \
386 src/VBox/Devices/Storage \
387 src/VBox/Devices/VBoxHDDFormats \
388 src/VBox/Devices/VBoxHDDFormats/StorageCraft \
389 src/VBox/Devices/USB \
390 src/VBox/Devices/USB/darwin \
391 src/VBox/Devices/USB/linux \
392 src/VBox/Devices/USB/os2 \
393 src/VBox/Devices/USB/solaris \
394 src/VBox/Devices/USB/vrdp \
395 src/VBox/Devices/USB/win32 \
396 src/VBox/Devices/VMMDev \
397 src/VBox/Main/include \
398 src/VBox/Main/include/hgcm \
399 src/VBox/Main \
400 src/VBox/Main/glue \
401 src/VBox/Main/hgcm \
402 src/VBox/Main/webservice \
403 src/VBox/Main/xml \
404 src/VBox/Main/darwin \
405 src/VBox/Main/linux \
406 src/VBox/Main/os2 \
407 src/VBox/Main/solaris \
408 src/VBox/Main/win \
409 src/VBox/Main/xpcom \
410 src/VBox/HostServices \
411 src/VBox/HostServices/SharedClipboard \
412 src/VBox/HostServices/SharedFolders \
413 src/VBox/HostServices/SharedInfoServices \
414 src/VBox/HostServices/SharedOpenGL \
415 src/VBox/HostDrivers/Support \
416 src/VBox/HostDrivers/Support/darwin \
417 src/VBox/HostDrivers/Support/freebsd \
418 src/VBox/HostDrivers/Support/l4 \
419 src/VBox/HostDrivers/Support/linux \
420 src/VBox/HostDrivers/Support/os2 \
421 src/VBox/HostDrivers/Support/solaris \
422 src/VBox/HostDrivers/Support/win \
423 src/VBox/HostDrivers/VBoxNetFlt \
424 src/VBox/HostDrivers/VBoxNetFlt/darwin \
425 src/VBox/HostDrivers/VBoxNetFlt/linux \
426 src/VBox/HostDrivers/VBoxNetFlt/solaris \
427 src/VBox/HostDrivers/VBoxNetFlt/win \
428 src/VBox/HostDrivers/VBoxNetNat \
429 src/VBox/HostDrivers/VBoxNetNat/darwin \
430 src/VBox/HostDrivers/VBoxNetNat/linux \
431 src/VBox/HostDrivers/VBoxNetNat/solaris \
432 src/VBox/HostDrivers/VBoxNetNat/win \
433 src/VBox/HostDrivers/VBoxNetAdp \
434 src/VBox/HostDrivers/VBoxNetAdp/darwin \
435 src/VBox/HostDrivers/VBoxNetAdp/linux \
436 src/VBox/HostDrivers/VBoxNetAdp/solaris \
437 src/VBox/HostDrivers/VBoxNetAdp/win \
438 src/VBox/HostDrivers/VBoxUSB \
439 src/VBox/HostDrivers/VBoxUSB/darwin \
440 src/VBox/HostDrivers/VBoxUSB/os2 \
441 src/VBox/HostDrivers/VBoxUSB/solaris \
442 src/VBox/HostDrivers/VBoxUSB/win \
443 src/VBox/HostDrivers/VBoxUSB/win/Device \
444 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
445 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
446 src/VBox/HostDrivers/VBoxUSB/win/Filter \
447 src/VBox/HostDrivers/VBoxUSB/win/Install \
448 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
449 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
450 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
451 src/VBox/HostDrivers/VBoxUSB/win/usbd \
452
453# These must come first in order to make things look nice.
454VBOX_CORE_DOXYFILE_INPUT_FIRST =\
455 $(PATH_ROOT)/doc/VBox-doc.c \
456 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
457 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
458 $(PATH_ROOT)/src/VBox/VMM/VMMCodingGuidelines.cpp \
459 $(PATH_ROOT)/src/VBox/VMM/VMMDocsRawMode.cpp \
460 $(PATH_ROOT)/include/VBox/cdefs.h \
461 $(PATH_ROOT)/include/VBox/vmapi.h \
462 $(PATH_ROOT)/include/VBox/vmm.h \
463 $(PATH_ROOT)/include/VBox/cpum.h \
464 $(PATH_ROOT)/include/VBox/mm.h \
465 $(PATH_ROOT)/include/VBox/pgm.h \
466 $(PATH_ROOT)/include/VBox/selm.h \
467 $(PATH_ROOT)/include/VBox/trpm.h \
468 $(PATH_ROOT)/include/VBox/patm.h \
469 $(PATH_ROOT)/include/VBox/dbgf.h \
470 $(PATH_ROOT)/include/VBox/stam.h \
471 $(PATH_ROOT)/include/VBox/em.h \
472 $(PATH_ROOT)/include/VBox/pdm.h \
473 $(PATH_ROOT)/include/VBox/rem.h \
474 $(PATH_ROOT)/include/VBox/iom.h \
475 $(PATH_ROOT)/include/VBox/cfgm.h \
476 $(PATH_ROOT)/include/VBox/tm.h \
477 $(PATH_ROOT)/include/VBox/csam.h \
478 $(PATH_ROOT)/include/VBox/ssm.h \
479 $(PATH_ROOT)/include/VBox/hwaccm.h \
480 $(PATH_ROOT)/include/VBox/hwacc_svm.h \
481 $(PATH_ROOT)/include/VBox/hwacc_vmx.h \
482 \
483 $(PATH_ROOT)/src/VBox/VMM/CFGMInternal.h \
484 $(PATH_ROOT)/src/VBox/VMM/CPUMInternal.h \
485 $(PATH_ROOT)/src/VBox/VMM/DBGFInternal.h \
486 $(PATH_ROOT)/src/VBox/VMM/EMInternal.h \
487 $(PATH_ROOT)/src/VBox/VMM/HWACCMInternal.h \
488 $(PATH_ROOT)/src/VBox/VMM/IOMInternal.h \
489 $(PATH_ROOT)/src/VBox/VMM/MMInternal.h \
490 $(PATH_ROOT)/src/VBox/VMM/PDMInternal.h \
491 $(PATH_ROOT)/src/VBox/VMM/PGMInternal.h \
492 $(PATH_ROOT)/src/VBox/VMM/PATM/CSAMInternal.h \
493 $(PATH_ROOT)/src/VBox/VMM/PATM/PATMInternal.h \
494 $(PATH_ROOT)/src/VBox/VMM/REMInternal.h \
495 $(PATH_ROOT)/src/VBox/VMM/SELMInternal.h \
496 $(PATH_ROOT)/src/VBox/VMM/SSMInternal.h \
497 $(PATH_ROOT)/src/VBox/VMM/STAMInternal.h \
498 $(PATH_ROOT)/src/VBox/VMM/TMInternal.h \
499 $(PATH_ROOT)/src/VBox/VMM/TRPMInternal.h \
500 $(PATH_ROOT)/src/VBox/VMM/VMInternal.h \
501 $(PATH_ROOT)/src/VBox/VMM/VMMInternal.h \
502 \
503 $(PATH_ROOT)/include/VBox/vm.h \
504 \
505 $(PATH_ROOT)/include/VBox/sup.h \
506 $(PATH_ROOT)/include/VBox/VBoxHDD.h \
507 $(PATH_ROOT)/include/VBox/types.h \
508 $(PATH_ROOT)/include/VBox/err.h \
509 $(PATH_ROOT)/include/VBox/x86.h \
510 $(PATH_ROOT)/include/VBox/cpumdis.h \
511 $(PATH_ROOT)/include/VBox/dbggui.h \
512 $(PATH_ROOT)/include/VBox/dis.h \
513 $(PATH_ROOT)/include/VBox/disopcode.h \
514 $(PATH_ROOT)/include/VBox/intnet.h \
515 $(PATH_ROOT)/include/VBox/settings.h \
516 $(PATH_ROOT)/include/VBox/pci.h \
517 $(PATH_ROOT)/include/VBox/scsi.h \
518 $(PATH_ROOT)/include/VBox/shflsvc.h \
519 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
520 $(PATH_ROOT)/include/VBox/usb.h \
521 $(PATH_ROOT)/include/VBox/vusb.h \
522 \
523 $(PATH_ROOT)/include/VBox/log.h \
524 $(PATH_ROOT)/include/VBox/param.h \
525 $(PATH_ROOT)/include/VBox/version.h
526
527VBOX_CORE_DOXYFILE_INPUT := \
528 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
529 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
530VBOX_CORE_DOXYFILE_INPUT := \
531 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
532 $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
533
534# And some some additional stuff.
535VBOX_CORE_DOXYFILE_INPUT += \
536 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
537 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
538
539
540VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
541BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
542
543-include $(PATH_TARGET)/Doxyfile.Core.dep
544
545# Generate the Doxyfile
546$(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
547 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
548 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
549 | $$(dir $$@)
550 $(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.Core.dep
551 $(CP) -f Doxyfile.Core $@.tmp
552 $(APPEND) $@.tmp
553 $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
554 $(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
555 $(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
556 $(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
557 $(APPEND) $@.tmp
558 $(APPEND) $@.tmp "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
559 $(APPEND) $@.tmp
560 $(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
561 $(APPEND) $@.tmp "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
562 $(APPEND) $@.tmp
563 $(MV) -f $@.tmp $@
564 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
565 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
566
567# Do the actual job.
568$(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) | $(VBOX_CORE_DOXYFILE_OUTPUT)/
569 $(RM) -f $(PATH_TARGET)/docs.Core
570 $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
571 doxygen $(PATH_TARGET)/Doxyfile.Core
572 $(APPEND) $(PATH_TARGET)/docs.Core
573
574
575
576#
577# Build the additions, all of them.
578#
579# This is currently tailored (hardcoded) for the additions
580# build box. Can make it pretty and configurable later.
581#
582# The fetching must be done in serial fashion, while the building
583# should be more flexible wrt to -jN.
584#
585additions-fetch:
586 + $(KMK) -C tools fetch
587 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux
588 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux
589# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2
590 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris
591 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris
592 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win
593 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win
594
595
596## @todo Currently combined solaris additions building assumes that amd64 is
597# built first. The windows amd64 additions need some x86 files, so don't change
598# the order of the windows builds.
599# Do not change the order of dependencies here without testing.
600additions-build: \
601 additions-build-win.x86 \
602 additions-build-win.amd64 \
603 additions-build-solaris.amd64 \
604 additions-build-solaris.x86 \
605 additions-build-os2.x86 \
606 additions-build-linux.amd64 \
607 additions-build-linux.x86
608
609VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
610 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
611 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
612 VBOX_SVN_REV=$(VBOX_SVN_REV) \
613 all packing
614
615VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
616 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
617 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
618 VBOX_SVN_REV=$(VBOX_SVN_REV) \
619 all packing
620
621# Automatically determine the additions build subdir name. Used for figuring
622# out directory names inside the additions building VMs.
623VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
624
625VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
626
627additions-build-win.amd64:
628ifeq ($(KBUILD_TARGET),win)
629 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
630else
631 $(call MSG_L1,Building Windows/amd64 additions)
632 $(VBOX_KMK_TIME) ssh vbox@192.168.27.5 "cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64)"
633endif
634
635additions-build-win.x86:
636ifeq ($(KBUILD_TARGET),win)
637 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
638else
639 $(call MSG_L1,Building Windows/x86 additions)
640 $(VBOX_KMK_TIME) ssh vbox@192.168.27.5 " cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86)"
641endif
642
643additions-build-solaris.amd64:
644ifeq ($(KBUILD_TARGET),solaris)
645 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
646else
647 $(call MSG_L1,Building Solaris/amd64 additions)
648 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)
649 $(VBOX_KMK_TIME) ssh vbox@192.168.27.4 " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
650 rsync -av --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
651endif
652
653# ASSUMES 64-bit is built already. See @todo above.
654additions-build-solaris.x86:
655ifeq ($(KBUILD_TARGET),solaris)
656 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1
657else
658 $(call MSG_L1,Building Solaris/x86 additions)
659 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)
660 $(VBOX_KMK_TIME) ssh vbox@192.168.27.4 " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1"
661 rsync -av --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
662endif
663
664additions-build-os2.x86:
665#ifeq ($(KBUILD_TARGET),os2)
666# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
667#else
668# $(VBOX_KMK_TIME) ssh vbox@192.168.27.3 " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
669#endif
670
671additions-build-linux.amd64:
672ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
673 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
674else
675 $(call MSG_L1,Building Linux/amd64 additions)
676 $(VBOX_KMK_TIME) ssh vbox@192.168.27.12 " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
677endif
678
679additions-build-linux.x86:
680ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
681 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
682else
683 $(call MSG_L1,Building Linux/x86 additions)
684 $(VBOX_KMK_TIME) ssh vbox@192.168.27.2 " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
685endif
686
687
688additions-packing:
689 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
690 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
691 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
692 VBOX_WITH_ADDITIONS_ISO.linux.amd64=1 \
693 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
694 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
695 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
696 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
697 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
698 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
699 -C src/VBox/Additions \
700 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
701
702
703
704#
705# Generate VirtualBox-OSE-x.x.x.tar.bz2 (OSE) tarballs for distribution
706# - includes kBuild
707# - must be executed on an OSE checkout
708#
709
710# the path where to store the tarball
711TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
712# the root directory inside the tarball
713TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
714# the name of the tarball file
715TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
716snapshot-ose:
717 @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
718 @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then \
719 echo; \
720 echo "Found USB stuff, refused to build OSE tarball!"; \
721 echo; \
722 exit 1; \
723 fi; \
724 if [ -z "$(VBOX_OSE)" ]; then \
725 echo; \
726 echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
727 echo; \
728 exit 1; \
729 fi
730 $(QUIET)$(MKDIR) -p $(TARBALLPATH)
731 $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
732 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
733 $(QUIET)tar -cjh --owner 0 --group 0 --totals \
734 --exclude=.svn \
735 --exclude=$(TARBALLROOT)/out \
736 --exclude=$(TARBALLROOT)/env.sh \
737 --exclude=$(TARBALLROOT)/configure.log \
738 --exclude=$(TARBALLROOT)/build.log \
739 --exclude=$(TARBALLROOT)/AutoConfig.kmk \
740 --exclude=$(TARBALLROOT)/LocalConfig.kmk \
741 --exclude=$(TARBALLROOT)/prebuild \
742 -C $(TARBALLPATH) \
743 -f $(TARBALLPATH)/$(TARBALLNAME) \
744 $(TARBALLROOT)
745 $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
746
747
748#
749# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
750# - includes kBuild
751# - must be executed on an PUEL checkout
752#
753
754# the path where to store the zip archive
755ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
756# the root directory inside the zip archive
757ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
758# the name of the zip archive
759ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
760snapshot-puel:
761 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
762 @if [ ! -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then \
763 echo; \
764 echo "Did not find USB stuff, is this an OSE branch?"; \
765 echo; \
766 exit 1; \
767 fi
768 @if [ -z "$(PASSWORD)" ]; then \
769 echo; \
770 echo "Please specify a password with PASSWORD=..."; \
771 echo; \
772 exit 1; \
773 fi
774 $(QUIET)$(MKDIR) -p $(ZIPPATH)
775 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
776 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
777 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
778 $(QUIET)(cd $(ZIPPATH); 7z a \
779 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
780 -xr!.svn \
781 -i!$(ZIPROOT)/Config.kmk \
782 -i!$(ZIPROOT)/Doxyfile.Core \
783 -i!$(ZIPROOT)/Makefile.kmk \
784 -i!$(ZIPROOT)/configure \
785 -i!$(ZIPROOT)/configure.vbs \
786 -i!$(ZIPROOT)/doc \
787 -i!$(ZIPROOT)/include \
788 -i!$(ZIPROOT)/kBuild \
789 -i!$(ZIPROOT)/src \
790 -i!$(ZIPROOT)/tools/env.sh \
791 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
792 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
793 -x!$(ZIPROOT)/doc/Devices \
794 -x!$(ZIPROOT)/doc/\*pdf \
795 -x!$(ZIPROOT)/doc/L4VM \
796 -x!$(ZIPROOT)/doc/VMM \
797 -x!$(ZIPROOT)/doc/licenses_old \
798 -x!$(ZIPROOT)/doc/manual/de_DE \
799 -x!$(ZIPROOT)/doc/manual/fr_FR \
800 -x!$(ZIPROOT)/src/tests \
801 -x!$(ZIPROOT)/src/VBox/Artwork \
802 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
803 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
804 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
805 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
806 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
807 $(ZIPPATH)/$(ZIPNAME))
808 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
809
810
811#
812# Generate ALL the rules.
813#
814include $(KBUILD_PATH)/subfooter.kmk
815
816
817#
818# Generate x86.mac and err.mac.
819#
820incs:
821 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
822 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
823 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
824 $(SED) -f include/VBox/various.sed --output include/VBox/x86.mac include/VBox/x86.h
825 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
826
827
828#
829# Generate Visual SlickEdit tagging #defines.
830#
831vslick.h: include/VBox/cdefs.h include/iprt/cdefs.h $(MAKEFILE)
832 $(RM) -f -- $@ $@.tmp $@.tmp2 $@.tmp3
833 $(APPEND) $@.tmp '// autogenerated'
834 @$(APPEND) $@.tmp '#define RT_C_DECLS_BEGIN '
835 @$(APPEND) $@.tmp '#define RT_C_DECLS_END '
836
837 @$(APPEND) $@.tmp '#define ATL_NO_VTABLE '
838 @$(APPEND) $@.tmp '#define BEGIN_COM_MAP(a) '
839 @$(APPEND) $@.tmp '#define END_COM_MAP(a) '
840
841 @$(APPEND) $@.tmp '#define CHECKREADY if(!isReady()) return E_UNEXPECTED; '
842 @$(APPEND) $@.tmp '#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a) '
843 @$(APPEND) $@.tmp '#define COM_INTERFACE_ENTRY(a) '
844 @$(APPEND) $@.tmp '#define COMGETTER(n) Get##n '
845 @$(APPEND) $@.tmp '#define COMSETTER(n) Set##n '
846 @$(APPEND) $@.tmp '#define ComSafeArrayIn(t,a) t a[] '
847 @$(APPEND) $@.tmp '#define ComSafeArrayOut(t,a) t * a[] '
848 @$(APPEND) $@.tmp '#define DECLARE_NOT_AGGREGATABLE(a) '
849 @$(APPEND) $@.tmp '#define DECLARE_PROTECT_FINAL_CONSTRUCT(a) '
850 @$(APPEND) $@.tmp '#define NS_DECL_ISUPPORTS '
851 @$(APPEND) $@.tmp '#define NS_IMETHOD NS_IMETHOD_(nsresult) '
852 @$(APPEND) $@.tmp '#define NS_IMETHOD_(type) type '
853 @$(APPEND) $@.tmp '#define PARSERS_EXPORT '
854 @$(APPEND) $@.tmp '#define STDMETHOD(a) NS_IMETHOD a '
855
856 @$(APPEND) $@.tmp '#define CTX_SUFF(var) var##R3 '
857 @$(APPEND) $@.tmp '#define CTXAllSUFF(var) var##R3 '
858 @$(APPEND) $@.tmp '#define CTXSUFF(var) var##HC '
859 @$(APPEND) $@.tmp '#define OTHERCTXSUFF(var) var##GC '
860 @$(APPEND) $@.tmp '#define CTXALLMID(first, last) first##R3##last '
861 @$(APPEND) $@.tmp '#define CTXMID(first, last) first##HC##last '
862 @$(APPEND) $@.tmp '#define OTHERCTXMID(first, last) first##GC##last '
863 @$(APPEND) $@.tmp '#define CTXTYPE(GCType, R3Type, R0Type) R3Type '
864 @$(APPEND) $@.tmp '#define RCTYPE(RCType, HCType) RCType '
865 @$(APPEND) $@.tmp '#define GCTYPE(GCType, HCType) GCType '
866 @$(APPEND) $@.tmp '#define RCPTRTYPE(RCType) RCType '
867 @$(APPEND) $@.tmp '#define GCPTRTYPE(GCType) GCType '
868 @$(APPEND) $@.tmp '#define HCPTRTYPE(HCType) HCType '
869 @$(APPEND) $@.tmp '#define R3R0PTRTYPE(HCType) HCType '
870 @$(APPEND) $@.tmp '#define R0PTRTYPE(R3Type) R3Type '
871 @$(APPEND) $@.tmp '#define R3PTRTYPE(R0Type) R0Type '
872 @$(APPEND) $@.tmp '#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ '
873 @$(APPEND) $@.tmp '#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction '
874 @$(APPEND) $@.tmp '#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction '
875 @$(APPEND) $@.tmp '#define RTCALL'
876 @$(APPEND) $@.tmp '#define DECLINLINE(type) inline type '
877
878 @$(APPEND) $@.tmp '#define PDMDEVINSINT_DECLARED 1'
879 @$(APPEND) $@.tmp '#define VBOXCALL'
880
881 $(SED) -e '/__cdecl/d' \
882 -e '/^ *# *define.*DECL/!d' \
883 -e '/DECLS/d' \
884 -e '/DECLARE_CLS_/d' \
885 -e '/_SRC_POS_DECL/d' \
886 -e '/declspec/d' \
887 -e '/__attribute__/d' \
888 -e 's/# */#/g' \
889 -e 's/ */ /g' \
890 -e '/(type) DECLEXPORT/d' \
891 -e '/ DECLEXPORT_CLASS/d' \
892 -e 's/ *VBOXCALL//' \
893 -e 's/ *RTCALL//' \
894 -e 's/(type) DECLIMPORT(type)/(type) type/' \
895 -e '/ DECLASM(type) type/d' \
896 -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
897 -e '/define *DECLINLINE(type)/d' \
898 -e '/define RT[DATGRC03]*DECL(type) *DECLHIDDEN(type)/d' \
899 \
900 --append $@.tmp \
901 $(filter-out include/VBox/err.h, $(wildcard include/VBox/*.h)) \
902 include/iprt/cdefs.h
903 $(CAT_EXT) $@.tmp | sort | $(SED_EXT) -e 's/$$/\n/' --output $@.tmp2
904 $(MV) -f $@.tmp2 $@
905 $(RM) -f $@.tmp $@.tmp2 $@.tmp3
906ifeq ($(KBUILD_HOST),win)
907 @$(ECHO) 'TODO: Merge vslick.h with your "$(HOMEDRIVE)$(HOMEPATH)\Documents\My SlickEdit Config\x.y.z\usercpp.h" file.'
908else
909 @$(ECHO) "TODO: Merge ./vslick.h with your ~/.slickedit/x.y.z/unxcpp.h file."
910endif
911
912
913#
914# Add fetching of the tools to the 'up[date][2]' targets.
915#
916up update up2 update2::
917ifndef VBOX_OSE
918 +$(MAKE) -C tools fetch
919else
920 $(MAKE) -C tools -f Makefile-ose.kmk fetch
921endif
922
923
924
925#
926# Aliases for building the SDK.
927#
928.NOTPARALLEL: sdk sdk-fetch
929sdk:
930 + $(KMK) VBOX_ONLY_SDK=1 \
931 pass_bldprogs pass_others pass_installs pass_packing
932
933sdk-fetch:
934 + $(KMK) KBUILD_TARGET=win KBUILD_TARGET_ARCH=x86 -C tools fetch
935
936
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