metal-cos/bin/date/SConscript
2022-12-10 01:01:38 -05:00

24 lines
417 B
Python

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