Differences From
Artifact [e2aa0ec204]:
20 20 defs: $(headers)
21 21 tool: $(binmods:%=%.tool)
22 22
23 23 lists = moddirs modules headers objects makefiles binaries binmods
24 24 dbg:
25 25 @echo -e lists: $(foreach var, $(lists), "\\n - \\e[1m$(var)\\e[m = $($(var))")
26 26
27 -%.obj: %/makefile $(OUT)
27 +%.obj: %/makefile ${TARGET}.calls $(OUT)
28 28 cd $* && $(MAKE) obj
29 29
30 30 %.tool: %/makefile $(OUT)
31 31 cd $* && $(MAKE) tool
32 32
33 33 %.dbg: %/makefile $(OUT)
34 34 cd $* && $(MAKE) dbg
35 35
36 +%.calls: arch/makefile
37 + cd arch && make calls.$*.s
38 +
36 39 $(OUT)/libk.so: mods $(OUT)
37 40 $(CC) -shared -o $@ $(objects)
38 41
39 42 $(OUT)/libk.a: mods $(OUT)
40 43 # using `ar c` and ranlib here instead of
41 44 # `ar cs` in case `ar` isn't the GNU version
42 45 ar c $@ $(objects)