Differences From
Artifact [47b194b965]:
10 10 ifneq ($(BITS),)
11 11 export TARGET = $(ARCH).$(OS).$(BITS)
12 12 else
13 13 export TARGET = $(ARCH).$(OS)
14 14 endif
15 15
16 16 export m4 = m4
17 -export lin-headers = /usr/include/asm
18 -export fbsd-headers = /usr/include/sys
19 17
20 18 moddirs = $(wildcard k*)
21 19 binaries = $(wildcard k*/*.exe.c)
22 20 functions = $(wildcard k*/*.fn.c)
23 21 assemblies = $(wildcard k*/*.fn.$(TARGET).s)
24 22 binmods = $(sort $(dir $(binaries)))
25 23
................................................................................
92 90 uninstall: $(header-dir)/k $(lib-dir)/k
93 91 rm -rf $^
94 92
95 93 lists = moddirs functions assemblies fnobjects rtobjects binaries binmods POSIX
96 94 dbg:
97 95 @echo -e lists: $(foreach var, $(lists), "\\n - \\e[1m$(var)\\e[m = $($(var))")
98 96
99 -%.obj: %/makefile $(TMP)/calls.h $(TMP)/calls.s $(OUT)
97 +%.obj: %/makefile $(TMP)/system_calls.h $(TMP)/system_calls.s $(OUT)
100 98 cd $* && $(MAKE) obj
101 99
102 100 %.tool: %/makefile $(OUT)
103 101 cd $* && $(MAKE) tool
104 102
105 103 %.dbg: %/makefile $(OUT)
106 104 cd $* && $(MAKE) dbg
107 105
108 106 %.def: %/makefile $(TMP)/typesize.def $(OUT) $(OUT)/k
109 107 cd $* && $(MAKE) def
110 108
111 -.PRECIOUS: $(TMP)/calls.%
112 -$(TMP)/calls.%: arch/makefile
109 +.PRECIOUS: $(TMP)/system_calls.%
110 +$(TMP)/system_calls.%: arch/makefile
113 111 $(MAKE) -C arch $@
114 112
115 113 $(TMP)/typesize.def: arch/makefile $(TMP)
116 114 $(MAKE) -C arch $@
117 115
118 116 $(OUT)/libk.so: $(fnobjects)
119 117 ld -shared $(COMPLIB) -o $@ $^