1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright (C) 2015 Intel Corporation. 3# All rights reserved. 4# 5 6SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..) 7CONFIG_COVERAGE=n 8include $(SPDK_ROOT_DIR)/mk/spdk.common.mk 9 10HEADERS := $(wildcard $(SPDK_ROOT_DIR)/include/spdk/*.h) 11 12# On Linux, queue_extras.h is pulled in with queue.h, 13# on FreeBSD, we want to ignore queue_extras.h entirely. 14HEADERS := $(filter-out $(SPDK_ROOT_DIR)/include/spdk/queue_extras.h,$(HEADERS)) 15HEADERS := $(filter-out $(SPDK_ROOT_DIR)/include/spdk/vfu_target.h,$(HEADERS)) 16CXX_SRCS := $(patsubst %.h,%.cpp,$(notdir $(HEADERS))) 17 18install : all 19 20%.cpp: $(SPDK_ROOT_DIR)/include/spdk/%.h 21 $(Q)echo " TEST_HEADER include/spdk/$(notdir $<)"; \ 22 echo '#include "spdk/$(notdir $<)"' > $@ 23 24all : $(CXX_SRCS) $(OBJS) 25 @: 26 27clean : 28 $(CLEAN_C) $(CXX_SRCS) 29 30include $(SPDK_ROOT_DIR)/mk/spdk.deps.mk 31 32uninstall: 33 @: 34