This patch enables parallel build from the command line.

If vstudio_config is defined change from:
make ovsext_make to make ovsext and also update the dependecy for it,
since the project requires OvsDpInterface.h to be built.

Signed-off-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com>
---
 Makefile.am | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 75ccadf..e882d68 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -383,17 +383,17 @@ $(srcdir)/manpages.mk: $(MAN_ROOTS) build-aux/sodepends.pl
 CLEANFILES += manpage-dep-check
 
 if VSTUDIO_DDK
-ALL_LOCAL += ovsext_make
-ovsext_make: datapath-windows/ovsext.sln
-       MSBuild.exe datapath-windows/ovsext.sln /target:Build 
/property:Configuration="Win8$(VSTUDIO_CONFIG)"
-       MSBuild.exe datapath-windows/ovsext.sln /target:Build 
/property:Configuration="Win8.1$(VSTUDIO_CONFIG)"
+ALL_LOCAL += ovsext
+ovsext: datapath-windows/ovsext.sln 
$(srcdir)/datapath-windows/include/OvsDpInterface.h
+       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Build 
/property:Configuration="Win8$(VSTUDIO_CONFIG)"
+       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Build 
/property:Configuration="Win8.1$(VSTUDIO_CONFIG)"
 
 CLEAN_LOCAL += ovsext_clean
 ovsext_clean: datapath-windows/ovsext.sln
-       MSBuild.exe datapath-windows/ovsext.sln /target:Clean 
/property:Configuration="Win8$(VSTUDIO_CONFIG)"
-       MSBuild.exe datapath-windows/ovsext.sln /target:Clean 
/property:Configuration="Win8.1$(VSTUDIO_CONFIG)"
+       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Clean 
/property:Configuration="Win8$(VSTUDIO_CONFIG)"
+       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Clean 
/property:Configuration="Win8.1$(VSTUDIO_CONFIG)"
 endif
-.PHONY: ovsext_make
+.PHONY: ovsext
 
 dist-hook: $(DIST_HOOKS)
 all-local: $(ALL_LOCAL)
-- 
1.9.5.msysgit.0
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to