X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2FMakefile;h=23ecaf706dc4750f0562ec67846b9ced1abd73ca;hb=c23eb53a452d0aea1a26ba60fe8ce9abcb77ea02;hp=f6e3402352bbab6329e3c3bf30bcfd80640fec33;hpb=48bddd6acbfceed71f699e937c750f0994cc00fc;p=mTask.git diff --git a/int/Makefile b/int/Makefile old mode 100644 new mode 100755 index f6e3402..23ecaf7 --- a/int/Makefile +++ b/int/Makefile @@ -1,6 +1,34 @@ -CFLAGS:=-g -Wall -Wextra -Werror -all: mTaskSymbols.h int - -mTaskSymbols.h: - CLMFLAGS=-nr make -BC .. mTaskInterpret - ../mTaskInterpret > $@ +export +SHOWPJ = 1 +AUTOJ = 1 +MAKES = $(wildcard */Makefile) +DIRS = $(patsubst %/Makefile,%,$(MAKES)) +CLNS = $(patsubst %,%/cln,$(DIRS)) +BINS = $(foreach a,$(DIRS),$(a)/$(a).bin) + +all: $(BINS) +# -test -d com/tools && make -C com/tools all +# @echo made $(BINS) + +hb: $(filter homebus-%,$(BINS)) + +tools: + -test -d com/tools && make -C com/tools all + +info: + $(info $(BINS)) + $(info $(CLNS)) + $(info $(dir $(BINS))) + +$(BINS): + @${MAKE} -C $(dir $@) + +clean: $(CLNS) + -test -d com/tools && make -C com/tools clean +# -test -d com/homebus-bpi && make -C homebus-bpi clean + find . -name *.d -o -name *.o -o -name *.a -o -name *.bin -o -name *.out -o -name *.list -o -name *.map -o -name *.hex -o -name *.s19 -o -name *.sl |xargs rm -fv + -rm -rfv */o/* */filelist + +$(CLNS): + @${MAKE} -C $(dir $@) clean + @touch $@