xref: /spdk/module/scheduler/Makefile (revision ae3ae309db78b63e8c875d316f7aaf95914b79d0)
1#  SPDX-License-Identifier: BSD-3-Clause
2#  Copyright (C) 2015 Intel Corporation.
3#  All rights reserved.
4#
5
6SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
7include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
8
9DIRS-y = dynamic
10
11# When DPDK rte_power is missing, do not compile schedulers
12# and governors based on it.
13ifeq (y,$(DPDK_POWER))
14DIRS-y += dpdk_governor gscheduler
15else
16ifneq ($(filter %clean%,$(MAKECMDGOALS)),)
17$(warning Skipping building dpdk_governor and gscheduler, due to missing rte_power)
18endif
19endif
20
21.PHONY: all clean $(DIRS-y)
22
23all: $(DIRS-y)
24clean: $(DIRS-y)
25
26include $(SPDK_ROOT_DIR)/mk/spdk.subdirs.mk
27