Spdk/xnvmebuild/Makefile

25 lines
592 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) Samsung Electronics Co., Ltd.
# All rights reserved.
#
SPDK_ROOT_DIR := $(abspath $(CURDIR)/..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
.PHONY: all clean install uninstall
all:
(cd $(SPDK_ROOT_DIR)/xnvme && \
export PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/usr/lib64/pkgconfig && \
meson setup builddir -Dwith-spdk=false -Dwith-fio=false -Dshared_library=false && \
meson compile -C builddir && \
cd -)
install: all
uninstall:
@:
clean:
(cd $(SPDK_ROOT_DIR)/xnvme && rm -fr builddir || true && cd -)