2020-08-11 17:38:42 +00:00
|
|
|
.PHONY: all run clean latest $(ALL)
|
|
|
|
|
|
|
|
ALL = $(basename $(notdir $(shell find tests/. -name "*.c")))
|
|
|
|
|
|
|
|
all: $(addprefix Makefile., $(ALL))
|
|
|
|
@echo "" $(ALL)
|
|
|
|
|
|
|
|
$(ALL): %: Makefile.%
|
|
|
|
|
|
|
|
Makefile.%: tests/%.c latest
|
|
|
|
@/bin/echo -e "NAME = $*\nSRCS = $<\nLIBS += klib\ninclude $${AM_HOME}/Makefile" > $@
|
|
|
|
-@make -s -f $@ ARCH=$(ARCH) $(MAKECMDGOALS)
|
|
|
|
-@rm -f Makefile.$*
|
|
|
|
|
2021-07-03 12:36:04 +00:00
|
|
|
run: all
|
2020-08-11 17:38:42 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf Makefile.* build/
|
|
|
|
|
|
|
|
latest:
|