Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com> Change-Id: I5364e09e0e501443ac6e99df5d814cc5fac397e8 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13290 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
36 lines
733 B
Makefile
36 lines
733 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (c) Intel Corporation.
|
|
# All rights reserved.
|
|
#
|
|
|
|
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
|
|
|
SO_VER := 5
|
|
SO_MINOR := 0
|
|
|
|
CFLAGS += -I.
|
|
|
|
FTL_SUBDIRS := mngt utils
|
|
|
|
C_SRCS = ftl_core.c
|
|
C_SRCS += mngt/ftl_mngt.c
|
|
C_SRCS += utils/ftl_conf.c
|
|
|
|
SPDK_MAP_FILE = $(abspath $(CURDIR)/spdk_ftl.map)
|
|
|
|
LIBNAME = ftl
|
|
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk
|
|
|
|
# TODO: This should be handled by spdk.subdirs.mk
|
|
CLEAN_FTL_SUBDIRS = $(addprefix clean_ftl_, $(FTL_SUBDIRS))
|
|
|
|
clean: $(CLEAN_FTL_SUBDIRS)
|
|
|
|
.PHONY: $(CLEAN_FTL_SUBDIRS)
|
|
$(CLEAN_FTL_SUBDIRS): _Q := $(Q)
|
|
$(CLEAN_FTL_SUBDIRS): Q :=
|
|
$(CLEAN_FTL_SUBDIRS): clean_ftl_%:%
|
|
$(_Q)cd $< && $(CLEAN_C)
|