@@ -95,9 +95,9 @@ lists = moddirs functions assemblies fnobjects rtobjects binaries binmods POSIX dbg: @echo -e lists: $(foreach var, $(lists), "\\n - \\e[1m$(var)\\e[m = $($(var))") -%.obj: %/makefile $(TARGET).calls $(OUT) +%.obj: %/makefile $(TMP)/calls.h $(TMP)/calls.s $(OUT) cd $* && $(MAKE) obj %.tool: %/makefile $(OUT) cd $* && $(MAKE) tool @@ -107,13 +107,14 @@ %.def: %/makefile $(TMP)/typesize.def $(OUT) $(OUT)/k cd $* && $(MAKE) def -%.calls: arch/makefile - cd arch && $(MAKE) $(TMP)/calls.$*.s +.PRECIOUS: $(TMP)/calls.% +$(TMP)/calls.%: arch/makefile + $(MAKE) -C arch $@ $(TMP)/typesize.def: arch/makefile $(TMP) - cd arch && $(MAKE) $@ + $(MAKE) -C arch $@ $(OUT)/libk.so: $(fnobjects) ld -shared $(COMPLIB) -o $@ $^ @# $(CC) -shared -fPIC -nostdlib $(COMPLIB) -o $@ $(OUT)/*.o