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]
To Artifact [a535931ecd]:
- File kcore/makefile — part of check-in [a14ceee056] at 2019-06-27 21:39:17 on branch trunk — development milestone (user: lexi, size: 1074) [annotate] [blame] [check-ins using]
1 |
include ../modmake |
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
## kcore/makefile # kcore has to include, among other things, a replacement # for stddef.h, and that can't be written in portable C, # so we're generating it at build time. # # look, imma just be straight with you. the mechanism we're # using to generate these headers is unbelievably heinous. # it's inelegant, it's gross, and it's horrible. in the long # term this NEEDS to be replaced with a bespoke solution # instead of makefile gibberish. hopefully tho this will be # enough in the short term for libk to get going, enough that # someone more competent than me will someday be interested # in fixing this horrorshow. # # until them: i'm sorry. # very sincerely yours, lexi hale gen-headers = type.h include ../modmake ${OUT}/k/type.h: ${TMP}/type.${TARGET}.i cp $< $@ # generating C source in makeā¦ yaaay define arch = ${TMP}/type.$(1).%.$(2).i: type.$(1).$(2).i def.%.i ${TMP} echo '#ifndef KItype' > $$@ echo '#define KItype' >> $$@ cat def.$$*.i >> $$@ cat $$< >> $$@ echo '#endif' >> $$@ endef $(eval $(call arch,x86,32)) $(eval $(call arch,x86,64)) |