Differences From
Artifact [f0df06fe05]:
- File
kbuild/makefile
— part of check-in
[a8d93823f1]
at
2019-08-18 13:42:35
on branch trunk
— add functions, generate C syscall table
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kcli/makefile
— part of check-in
[ec9b2b74b3]
at
2019-06-27 22:14:56
on branch trunk
— fixes for shared building
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kconf/makefile
— part of check-in
[6479e060a3]
at
2019-07-26 09:51:02
on branch trunk
— major update. fix ridiculous old type size determination mechanism. mmap is still broken and i'm not sure why; the syscall does not appear to be going through correctly - see posix_mmap, kmheapa, and kcore/testbin.exe.fn
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kcore/makefile
— part of check-in
[21467a6dc9]
at
2019-06-27 12:13:43
on branch trunk
— updates
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kdb/makefile
— part of check-in
[6479e060a3]
at
2019-07-26 09:51:02
on branch trunk
— major update. fix ridiculous old type size determination mechanism. mmap is still broken and i'm not sure why; the syscall does not appear to be going through correctly - see posix_mmap, kmheapa, and kcore/testbin.exe.fn
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kdbg/makefile
— part of check-in
[a8d93823f1]
at
2019-08-18 13:42:35
on branch trunk
— add functions, generate C syscall table
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kfile/makefile
— part of check-in
[f5b7fa5762]
at
2019-06-27 05:52:40
on branch trunk
— updates
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kgraft/makefile
— part of check-in
[f5b7fa5762]
at
2019-06-27 05:52:40
on branch trunk
— updates
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kio/makefile
— part of check-in
[f5b7fa5762]
at
2019-06-27 05:52:40
on branch trunk
— updates
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kmath/makefile
— part of check-in
[85a8c60bd2]
at
2019-07-26 21:56:33
on branch trunk
— add kmath module stub
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kmem/makefile
— part of check-in
[f5b7fa5762]
at
2019-06-27 05:52:40
on branch trunk
— updates
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kmsg/makefile
— part of check-in
[f5b7fa5762]
at
2019-06-27 05:52:40
on branch trunk
— updates
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
knet/makefile
— part of check-in
[f5b7fa5762]
at
2019-06-27 05:52:40
on branch trunk
— updates
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
knum/makefile
— part of check-in
[b5f6f19923]
at
2019-08-19 01:46:21
on branch trunk
— updates, begin putting together error-handling mechanism
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kproc/makefile
— part of check-in
[f5b7fa5762]
at
2019-06-27 05:52:40
on branch trunk
— updates
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kstr/makefile
— part of check-in
[f5b7fa5762]
at
2019-06-27 05:52:40
on branch trunk
— updates
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
kterm/makefile
— part of check-in
[f5b7fa5762]
at
2019-06-27 05:52:40
on branch trunk
— updates
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/kbuild.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/kconf.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/kdb.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/kdbg.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/kfile.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/kgraft.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/kmem.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/kmsg.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/knet.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/knum.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/kproc.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/kstr.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
- File
legacy/kterm.makefile
— part of check-in
[34c625a47b]
at
2019-08-19 05:42:02
on branch trunk
— switch over to new build mechanism and formally deprecate makefiles
(user:
lexi,
size: 19)
[annotate]
[blame]
[check-ins using]
1 +## kcore/makefile
2 +# kcore has to include, among other things, a replacement
3 +# for stddef.h, and that can't be written in portable C,
4 +# so we're generating it at build time.
5 +#
6 +# look, imma just be straight with you. the mechanism we're
7 +# using to generate these headers is unbelievably heinous.
8 +# it's inelegant, it's gross, and it's horrible. in the long
9 +# term this NEEDS to be replaced with a bespoke solution
10 +# instead of makefile gibberish. hopefully tho this will be
11 +# enough in the short term for libk to get going, enough that
12 +# someone more competent than me will someday be interested
13 +# in fixing this horrorshow.
14 +#
15 +# until them: i'm sorry.
16 +# very sincerely yours, lexi hale
17 +
18 +gen-headers = type.h
19 +
1 20 include ../modmake
21 +
22 +${OUT}/k/type.h: ${TMP}/type.${TARGET}.i
23 + cp $< $@
24 +
25 +# generating C source in makeā¦ yaaay
26 +define arch =
27 +${TMP}/type.$(1).%.$(2).i: type.$(1).$(2).i def.%.i ${TMP}
28 + echo '#ifndef KItype' > $$@
29 + echo '#define KItype' >> $$@
30 + cat def.$$*.i >> $$@
31 + cat $$< >> $$@
32 + echo '#endif' >> $$@
33 +endef
34 +
35 +$(eval $(call arch,x86,32))
36 +$(eval $(call arch,x86,64))
37 +