export CC LD CPP INSTALL INSTALL_DATA INSTALL_DIR INSTALL_PROGRAM OBJCOPY PYTHON
+# By default enable all the tests
+TESTS ?= $(wildcard $(ROOT)/tests/*)
+
.PHONY: all
all:
- @set -e; for D in $(wildcard tests/*); do \
+ @set -e; for D in $(TESTS); do \
[ ! -e $$D/Makefile ] && continue; \
$(MAKE) -C $$D build; \
done
install:
@$(INSTALL_DIR) $(DESTDIR)$(xtfdir)
$(INSTALL_PROGRAM) xtf-runner $(DESTDIR)$(xtfdir)
- @set -e; for D in $(wildcard tests/*); do \
+ @set -e; for D in $(TESTS); do \
[ ! -e $$D/Makefile ] && continue; \
$(MAKE) -C $$D install; \
done
$$(obj-perarch:%.o=%-$($(1)_arch).o) \
$$(obj-$(1):%.o=%-$(1).o) $$(obj-perenv:%.o=%-$(1).o)
-# Generate .lds with approprate flags
+# Generate .lds with appropriate flags
%/link-$(1).lds: %/link.lds.S
$$(CPP) $$(AFLAGS_$(1)) -P -C $$< -o $$@