info: Updated key project facts
[vswitchperf.git] / src / Makefile
1 # Top Makefile to build upstream packages.
2 #
3
4 # Copyright 2015 OPNFV
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #     http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 #
19 # Contributors:
20 #   Aihua Li, Huawei Technologies.
21
22 SUBBUILDS = src_vanilla
23 .PHONY: vhost subbuilds $(SUBBUILDS)
24
25 all clean distclean: vhost subbuilds
26
27 subbuilds: $(SUBBUILDS)
28 $(SUBBUILDS): vhost
29         $(AT)mkdir -p ../$@/mk
30         $(AT)cp -rf mk/* ../$@/mk
31         $(AT)cp -rf package-list.mk ../$@/
32         $(AT)cp Makefile.$@ ../$@/Makefile
33         $(AT)$(MAKE) -C ../$@ $(MAKECMDGOALS)
34
35 vhost:
36 export VHOST_USER
37 include mk/master.mk
38 SUBDIRS =
39 SUBDIRS += l2fwd
40 SUBDIRS += dpdk
41 SUBDIRS += ovs
42 SUBDIRS += qemu
43 ovs: dpdk
44 WITH_LINUX =
45 VHOST_USER = y
46 include mk/make-subsys.mk