Merge "hugepage_doc: Add hugepage configuration info to installation doc"
[vswitchperf.git] / src / Makefile
index d16b093..4297028 100644 (file)
 # Contributors:
 #   Aihua Li, Huawei Technologies.
 
-include mk/master.mk
+SUBBUILDS = src_cuse src_vanilla
+.PHONY: vhost subbuilds $(SUBBUILDS)
 
-export VHOST_USER
+all clean distclean: vhost subbuilds
 
-# specify upstream package as SUBDIRS - common terms as suggest by gnu-make
+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)
+
+vhost:
+export VHOST_USER
+include mk/master.mk
 SUBDIRS =
 SUBDIRS += l2fwd
 SUBDIRS += dpdk
 SUBDIRS += ovs
-
-# specify package dependency here if needed
+SUBDIRS += qemu
 ovs: dpdk
-
+WITH_LINUX =
+VHOST_USER = y
 include mk/make-subsys.mk