]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/examples/nvme/perf/Makefile
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / examples / nvme / perf / Makefile
index 573f56a0351ae2b5b28ff8126d99817ec1edf017..ef1127655238ed37dee3f7cf9d2fe139c128b9f9 100644 (file)
@@ -32,7 +32,6 @@
 #
 
 SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../..)
-include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
 
 APP = perf
 
@@ -41,4 +40,20 @@ SYS_LIBS += -laio
 CFLAGS += -DHAVE_LIBAIO
 endif
 
+ifeq ($(CONFIG_URING),y)
+SYS_LIBS += -luring
+CFLAGS += -DHAVE_URING
+ifeq ($(strip $(CONFIG_URING_PATH)),)
+else
+CFLAGS += -I$(CONFIG_URING_PATH)
+LDFLAGS += -L$(CONFIG_URING_PATH)
+endif
+endif
+
+install: $(APP)
+       $(INSTALL_EXAMPLE)
+
+uninstall:
+       $(UNINSTALL_EXAMPLE)
+
 include $(SPDK_ROOT_DIR)/mk/nvme.libtest.mk