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 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 20 21# These dependencies are not based specifically on symbols, but rather 22# the subsystem dependency tree defined within the event subsystem C files 23# themselves. Should that tree change, these dependencies should change 24# accordingly. 25DEPDIRS-accel := iobuf 26DEPDIRS-bdev := accel vmd sock iobuf 27DEPDIRS-iscsi := scsi 28DEPDIRS-nbd := bdev 29DEPDIRS-ublk := bdev 30DEPDIRS-nvmf := bdev 31DEPDIRS-scsi := bdev 32DEPDIRS-vhost_scsi := scsi 33 34.PHONY: all clean $(DIRS-y) 35 36all: $(DIRS-y) 37clean: $(DIRS-y) 38 39include $(SPDK_ROOT_DIR)/mk/spdk.subdirs.mk 40