metal-cos/lib/libc/SConscript
2014-09-04 18:22:04 -07:00

28 lines
377 B
Python

import sys
Import('env')
libc_env = env.Clone()
src = [ ]
src_common = [
"exit.c",
"syscall.c",
]
src_amd64 = [
"amd64/entry.S",
"amd64/syscall.S",
]
if (env["ARCH"] == "amd64"):
src.append(src_amd64)
src.append(src_common)
libc_env.Append(CPPFLAGS = ['-nostdinc'])
libc_env.Append(CPPPATH = ['#build/include'])
libc_env.StaticLibrary("libc", src)