metal-cos/sbin/sysctl/SConscript
2015-11-15 15:17:18 -08:00

24 lines
411 B
Python

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