xref: /spdk/module/event/subsystems/Makefile (revision 488570ebd418ba07c9e69e65106dcc964f3bb41b)
1#  SPDX-License-Identifier: BSD-3-Clause
2#  Copyright (c) Intel Corporation.
3#  All rights reserved.
4#
5
6SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../..)
7include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
8
9DIRS-y += bdev accel scheduler iscsi nvmf scsi vmd sock
10
11ifeq ($(OS),Linux)
12DIRS-y += nbd
13endif
14
15DIRS-$(CONFIG_VHOST) += vhost_blk vhost_scsi
16
17# These dependencies are not based specifically on symbols, but rather
18# the subsystem dependency tree defined within the event subsystem C files
19# themselves. Should that tree change, these dependencies should change
20# accordingly.
21DEPDIRS-bdev := accel vmd sock
22DEPDIRS-iscsi := scsi
23DEPDIRS-nbd := bdev
24DEPDIRS-nvmf := bdev
25DEPDIRS-scsi := bdev
26DEPDIRS-vhost_scsi := scsi
27
28.PHONY: all clean $(DIRS-y)
29
30all: $(DIRS-y)
31clean: $(DIRS-y)
32
33include $(SPDK_ROOT_DIR)/mk/spdk.subdirs.mk
34