1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright (c) 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)) 14CXX_SRCS := $(patsubst %.h,%.cpp,$(notdir $(HEADERS))) 15 16install : all 17 18%.cpp: $(SPDK_ROOT_DIR)/include/spdk/%.h 19 $(Q)echo " TEST_HEADER include/spdk/$(notdir $<)"; \ 20 echo '#include "spdk/$(notdir $<)"' > $@ 21 22all : $(CXX_SRCS) $(OBJS) 23 @: 24 25clean : 26 $(CLEAN_C) $(CXX_SRCS) 27 28include $(SPDK_ROOT_DIR)/mk/spdk.deps.mk 29 30uninstall: 31 @: 32