about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index 155466b889..7ef49ba83a 100644
--- a/Makerules
+++ b/Makerules
@@ -1035,6 +1035,12 @@ ALL_BUILD_CFLAGS = $(BUILD_CFLAGS) -include $(..)config.h
 # Support the GNU standard name for this target.
 .PHONY: check
 check: tests
+
+ifneq (,$(tests))
+cpp-srcs-left = $(tests)
+lib = tests
+include $(patsubst %,$(..)cppflags-iterator.mk,$(tests))
+endif
 
 .PHONY: TAGS
 TAGS: $(objpfx)distinfo $(..)MakeTAGS