24 lines
534 B
Makefile
24 lines
534 B
Makefile
include $(AM_HOME)/Makefile.check
|
|
.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.app" > $@
|
|
-@make -s -f $@ ARCH=$(ARCH) $(MAKECMDGOALS)
|
|
-@rm -f Makefile.$*
|
|
|
|
#cancel rules included by $(AM_HOME)/Makefile.check
|
|
image: ;
|
|
default $(MAKECMDGOALS): all ;
|
|
|
|
clean:
|
|
rm -rf Makefile.* build/
|
|
|
|
latest:
|