# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018-2022, Intel Corporation
#
# Makefile -- top Makefile for daxio
#

TOP = ../../..
include $(TOP)/src/common.inc

INCS += -I$(TOP)/src/libpmem2

ifeq ($(NDCTL_ENABLE),y)

TARGET = daxio
OBJS = daxio.o

LIBPMEM=y
LIBPMEMCOMMON=y

CFLAGS += $(LIBNDCTL_CFLAGS)
LIBS += $(LIBNDCTL_LIBS)

MANPAGES = $(TOP)/doc/daxio.1

# XXX: to be done
# BASH_COMP_FILES = daxio.sh

else
$(info NOTE: Skipping daxio because ndctl is not available)
endif

include ../Makefile.inc

.PHONY: test check
