Merge "rstp-stp: Add basic functions for stp/rstp enable on ovs"
[vswitchperf.git] / src / Makefile
index 496b717..4297028 100644 (file)
 # Contributors:
 #   Aihua Li, Huawei Technologies.
 
-include mk/master.mk
+SUBBUILDS = src_cuse src_vanilla
+.PHONY: vhost subbuilds $(SUBBUILDS)
+
+all clean distclean: vhost subbuilds
+
+subbuilds: $(SUBBUILDS)
+$(SUBBUILDS): vhost
+       $(AT)mkdir -p ../$@/mk
+       $(AT)cp -rf mk/* ../$@/mk
+       $(AT)cp -rf package-list.mk ../$@/
+       $(AT)cp Makefile.$@ ../$@/Makefile
+       $(AT)$(MAKE) -C ../$@ $(MAKECMDGOALS)
 
-# specify upstream package as SUBDIRS - common terms as suggest by gnu-make
+vhost:
+export VHOST_USER
+include mk/master.mk
 SUBDIRS =
 SUBDIRS += l2fwd
 SUBDIRS += dpdk
 SUBDIRS += ovs
 SUBDIRS += qemu
-
-# specify package dependency here if needed
 ovs: dpdk
-
+WITH_LINUX =
+VHOST_USER = y
 include mk/make-subsys.mk