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