metal-cos/bin/true/SConscript
2023-10-02 19:33:47 -04:00

24 lines
411 B
Python

import sys
Import('env')
true_env = env.Clone()
src = [ ]
src_common = [
"true.c"
]
src.append(env["CRTBEGIN"])
src.append(src_common)
src.append(env["CRTEND"])
true_env.Append(LINKFLAGS = ['-nostdlib'])
true_env.Append(CPPFLAGS = ['-fno-builtin', '-nostdinc'])
true_env.Append(CPPPATH = ['#build/include'])
true_env.Append(LIBPATH = ['#build/lib/libc'], LIBS = ['c'])
true_env.Program("true", src)