7c6c17cc5703cc68307f22cb9397505860dc54f4
[barometer.git] / src / Makefile
1 # Top Makefile to build upstream packages.
2 #
3
4 # Copyright 2016 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 #   Maryam Tahhan, Intel Corporation.
22
23 all clean distclean: subbuilds
24
25 subbuilds: $(SUBBUILDS)
26 $(SUBBUILDS):
27         $(AT)mkdir -p ../$@/mk
28         $(AT)cp -rf mk/* ../$@/mk
29         $(AT)cp -rf package-list.mk ../$@/
30         $(AT)cp Makefile.$@ ../$@/Makefile
31         $(AT)$(MAKE) -C ../$@ $(MAKECMDGOALS)
32
33 with-dpdk:
34 export WITH_DPDK
35
36 include mk/master.mk
37 SUBDIRS =
38 ifdef WITH_DPDK
39 SUBDIRS += dpdk
40 endif
41 SUBDIRS += libpqos
42 SUBDIRS += pmu-tools
43 SUBDIRS += librdkafka
44 SUBDIRS += collectd
45 SUBDIRS += collectd-openstack-plugins
46
47 include mk/make-subsys.mk