metal-cos/lib/libc/SConscript

39 lines
557 B
Python
Raw Normal View History

2014-07-28 00:09:31 +00:00
import sys
Import('env')
libc_env = env.Clone()
src = [ ]
src_common = [
"abort.c",
2014-10-14 19:39:26 +00:00
"assert.c",
"dir.c",
"exit.c",
"file.c",
"malloc.c",
2015-01-16 22:51:03 +00:00
"printf.c",
"process.c",
"posix/mman.c",
"posix/pthread.c",
2014-10-15 02:07:19 +00:00
"string.c",
"syscall.c",
"time.c",
2014-07-28 00:09:31 +00:00
]
src_amd64 = [
2014-09-05 01:22:04 +00:00
"amd64/entry.S",
"amd64/syscall.S",
]
if (env["ARCH"] == "amd64"):
src.append(src_amd64)
2014-07-28 00:09:31 +00:00
src.append(src_common)
libc_env.Append(CPPFLAGS = ['-nostdinc'])
libc_env.Append(CPPPATH = ['#build/include'])
libc_env.StaticLibrary("libc", src)