[libj6] Move remaining j6 headers out of src/include

This means the kernel now depends on libj6. I've added the macro
definition __j6kernel when building for the kernel target, so I can
remove parts with #ifdefs.
This commit is contained in:
Justin C. Miller
2022-01-12 16:04:16 -08:00
parent 2ff7a0864b
commit 950360fddc
19 changed files with 31 additions and 14 deletions

View File

@@ -23,7 +23,8 @@ variables:
"-ggdb",
"-D__ELF__",
"-D__JSIX__",
"-D__jsix__",
"-D__j6kernel",
"-U__linux",
"-U__linux__",
"-DPRINTF_ALIAS_STANDARD_FUNCTION_NAMES=1",

View File

@@ -37,7 +37,7 @@ rule compile_asm
deps = gcc
rule parse_cog
command = $cog -o $out -d $cogflags $in
command = $cog -o $out -d -D target=$target $cogflags $in
description = Parsing $name
rule exe

View File

@@ -11,7 +11,7 @@ variables:
"-g",
"-D__ELF__",
"-D__JSIX__",
"-D__jsix__",
"-U__linux",
"-U__linux__",