metal-cos/sbin/ifconfig/SConscript
2015-02-27 15:57:07 -08:00

24 lines
427 B
Python

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