xref: /spdk/module/event/subsystems/Makefile (revision 2b435d1a2198010709325955137317b22c0a643b)
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 += bdev accel scheduler iscsi nvmf scsi vmd sock iobuf keyring
10
11ifeq ($(OS),Linux)
12DIRS-y += nbd
13ifeq ($(CONFIG_UBLK),y)
14DIRS-y += ublk
15endif
16endif
17
18DIRS-$(CONFIG_VHOST) += vhost_blk vhost_scsi
19DIRS-$(CONFIG_VFIO_USER) += vfu_tgt
20DIRS-$(CONFIG_FSDEV) += fsdev
21
22# These dependencies are not based specifically on symbols, but rather
23# the subsystem dependency tree defined within the event subsystem C files
24# themselves. Should that tree change, these dependencies should change
25# accordingly.
26DEPDIRS-accel := iobuf
27DEPDIRS-bdev := accel vmd sock iobuf keyring
28DEPDIRS-iscsi := scsi
29DEPDIRS-nbd := bdev
30DEPDIRS-ublk := bdev
31DEPDIRS-nvmf := bdev
32DEPDIRS-scsi := bdev
33DEPDIRS-vhost_scsi := scsi
34
35.PHONY: all clean $(DIRS-y)
36
37all: $(DIRS-y)
38clean: $(DIRS-y)
39
40include $(SPDK_ROOT_DIR)/mk/spdk.subdirs.mk
41