1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright (c) Samsung Electronics Co., Ltd. 3# All rights reserved. 4# 5 6SPDK_ROOT_DIR := $(abspath $(CURDIR)/..) 7include $(SPDK_ROOT_DIR)/mk/spdk.common.mk 8 9.PHONY: all clean install uninstall 10 11all: 12 (cd $(SPDK_ROOT_DIR)/xnvme && \ 13 export PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/usr/lib64/pkgconfig && \ 14 meson setup builddir \ 15 -Dwith-libaio=enabled \ 16 -Dwith-liburing=enabled \ 17 -Dwith-libvfn=disabled \ 18 -Dwith-spdk=disabled \ 19 -Dexamples=false \ 20 -Dtests=false \ 21 -Dtools=false && \ 22 meson compile -C builddir && \ 23 cd -) 24 25install: all 26 27uninstall: 28 @: 29 30clean: 31 (cd $(SPDK_ROOT_DIR)/xnvme && rm -fr builddir || true && cd -) 32