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