foxygit / xexkit Log in
commits tags

/Makefile · 783 B

raw
#---------------------------------------------------------------------------------
# xexkit's own build: the hardware tests (build/tests/<name>/default.xex) and
# the minimal example. Run inside the free60/libxenon docker image, see README.
#---------------------------------------------------------------------------------
XEXKIT := $(CURDIR)
TESTS  := hello fs video audio fault

.PHONY: all tests example clean
all: tests example

tests:
	@for t in $(TESTS); do \
	  $(MAKE) --no-print-directory -f $(XEXKIT)/mk/one-title.mk XEXKIT=$(XEXKIT) TITLE=tests/$$t \
	    TITLE_SRC="$$(ls tests/$$t/*.cpp)" TITLE_TOML=tests/$$t/xex.toml title || exit 1; \
	done

example:
	@$(MAKE) --no-print-directory -C examples/minimal XEXKIT=$(XEXKIT)

clean:
	rm -r -f build examples/minimal/build