@@ -13,10 +13,8 @@ export TARGET = $(ARCH).$(OS) endif export m4 = m4 -export lin-headers = /usr/include/asm -export fbsd-headers = /usr/include/sys moddirs = $(wildcard k*) binaries = $(wildcard k*/*.exe.c) functions = $(wildcard k*/*.fn.c) @@ -95,9 +93,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 $(TMP)/calls.h $(TMP)/calls.s $(OUT) +%.obj: %/makefile $(TMP)/system_calls.h $(TMP)/system_calls.s $(OUT) cd $* && $(MAKE) obj %.tool: %/makefile $(OUT) cd $* && $(MAKE) tool @@ -107,10 +105,10 @@ %.def: %/makefile $(TMP)/typesize.def $(OUT) $(OUT)/k cd $* && $(MAKE) def -.PRECIOUS: $(TMP)/calls.% -$(TMP)/calls.%: arch/makefile +.PRECIOUS: $(TMP)/system_calls.% +$(TMP)/system_calls.%: arch/makefile $(MAKE) -C arch $@ $(TMP)/typesize.def: arch/makefile $(TMP) $(MAKE) -C arch $@