Index: /trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk	(revision 9207)
+++ /trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk	(revision 9208)
@@ -678,4 +678,6 @@
 XIDLFILE            = ../../Main/idl/VirtualBox.xidl
 
+VirtualBox_INTERMEDIATES = $(WRAPPERSFILE)
+
 
 # generated files we need to clean manually
@@ -801,4 +803,5 @@
 
 $(target)_GENSRCS_REAL += $(mocsrc)
+## @todo The source should be added to GEN_SOURCES: $ (target)_GEN_SOURCES += $ (mocsrc)
 
 $(mocsrc): $(mochdr)
@@ -822,8 +825,8 @@
 
 $(target)_GENHDRS_REAL += $(mocinc)
+$(target)_INTERMEDIATES += $(mocinc)
 
 $(mocobj): $(mocinc)
 
-.NOTPARALLEL: $(mocinc)
 $(mocinc): $(mocsrc)
 	$$(call MSG_TOOL,moc,$(target),$(mocsrc),$$@)
@@ -847,6 +850,6 @@
 
 $(target)_GENHDRS_REAL += $(mocuiinc)
-
-.NOTPARALLEL: $(mocuiinc)
+$(target)_INTERMEDIATES += $(mocuiinc)
+
 $(uisrc): $(mocuiinc)
 $(mocuiinc): $(mocuihdr)
@@ -869,8 +872,10 @@
 $(eval mocsrc := $(PATH_$(target))/moc/moc_$(notdir $(basename $(uifile))).cpp)
 
+
 $(target)_GENSRCS_REAL += $(uisrc) $(mocsrc)
 $(target)_GENHDRS_REAL += $(uihdr)
-
-.NOTPARALLEL: $(uihdr)
+$(target)_INTERMEDIATES += $(uihdr)
+## @todo The source should be added to GEN_SOURCES: $ (target)_GEN_SOURCES += $ (uisrc) $ (mocsrc)
+
 $(uihdr): $(uifile) | $$(call DIRDEP,$(dir $(uihdr)))
 	$$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
@@ -900,6 +905,6 @@
 
 $(target)_GENHDRS_REAL += $(uihdr)
-
-.NOTPARALLEL: $(uihdr)
+$(target)_INTERMEDIATES += $(uihdr)
+
 $(uihdr): $(uifile) | $$(call DIRDEP,$(dir $(uihdr)))
 	$$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
@@ -965,6 +970,4 @@
 
 # Generate COM Wrappers
-.NOTPARALLEL: $(WRAPPERSFILE) $(WRAPPERSINCFILE)
-
 $(WRAPPERSINCFILE): $(WRAPPERSFILE)
 
@@ -976,11 +979,4 @@
 	$(call MSG_MKDIR,$@)
 	$(QUIET)$(MKDIR) -p $@
-
-# this is actually necessary only for Win32 target with disabled dependencies
-define def_wrapper_deps
-$(src): $(WRAPPERSFILE) $(WRAPPERSINCFILE)
-endef
-
-$(foreach src,$(VirtualBox_SOURCES),$(eval $(def_wrapper_deps)))
 
 # rules for resources file creation
