2022-06-03 19:15:11 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-11-01 20:26:26 +00:00
|
|
|
# Copyright (C) 2015 Intel Corporation.
|
2017-06-06 20:26:04 +00:00
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
|
|
|
|
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../..)
|
|
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
|
|
|
|
2021-11-12 16:05:03 +00:00
|
|
|
DIRS-y += bdev accel scheduler iscsi nvmf scsi vmd sock
|
2019-08-16 23:20:15 +00:00
|
|
|
|
|
|
|
ifeq ($(OS),Linux)
|
|
|
|
DIRS-y += nbd
|
|
|
|
endif
|
|
|
|
|
2021-08-31 09:28:29 +00:00
|
|
|
DIRS-$(CONFIG_VHOST) += vhost_blk vhost_scsi
|
2022-04-12 08:51:29 +00:00
|
|
|
DIRS-$(CONFIG_VFIO_USER) += vfu_tgt
|
2017-06-06 20:26:04 +00:00
|
|
|
|
2019-08-22 22:06:05 +00:00
|
|
|
# These dependencies are not based specifically on symbols, but rather
|
|
|
|
# the subsystem dependency tree defined within the event subsystem C files
|
|
|
|
# themselves. Should that tree change, these dependencies should change
|
|
|
|
# accordingly.
|
2020-01-28 21:47:46 +00:00
|
|
|
DEPDIRS-bdev := accel vmd sock
|
2019-08-22 22:06:05 +00:00
|
|
|
DEPDIRS-iscsi := scsi
|
|
|
|
DEPDIRS-nbd := bdev
|
|
|
|
DEPDIRS-nvmf := bdev
|
|
|
|
DEPDIRS-scsi := bdev
|
2021-08-31 09:28:29 +00:00
|
|
|
DEPDIRS-vhost_scsi := scsi
|
2019-08-22 22:06:05 +00:00
|
|
|
|
2017-06-06 20:26:04 +00:00
|
|
|
.PHONY: all clean $(DIRS-y)
|
|
|
|
|
|
|
|
all: $(DIRS-y)
|
|
|
|
clean: $(DIRS-y)
|
|
|
|
|
|
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.subdirs.mk
|