Commit 092eb221 authored by Jim Harris's avatar Jim Harris
Browse files

build: don't include spdk.app.mk in test/cpp_headers



This Makefile doesn't depend on anything in spdk.app.mk,
and provides its own rules that are different than any
of the other applications (including unit tests).

The exception here is the simple "install : app" rule.
Just add that rule to the cpp_headers Makefile instead
of including spdk.app.mk just for that rule.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I684dfba9108dfa7f06d7eb4acecd6806e5797312

Reviewed-on: https://review.gerrithub.io/434282


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 5f03a9c1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -33,11 +33,12 @@

SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
include $(SPDK_ROOT_DIR)/mk/spdk.app.mk

HEADERS := $(wildcard $(SPDK_ROOT_DIR)/include/spdk/*.h)
CXX_SRCS := $(patsubst %.h,%.cpp,$(notdir $(HEADERS)))

install : all

%.cpp: $(SPDK_ROOT_DIR)/include/spdk/%.h
	$(Q)echo "  TEST_HEADER include/spdk/$(notdir $<)"; \
	echo '#include "spdk/$(notdir $<)"' > $@