2015-01-18 23:15:55 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
|
|
|
|
test_env = env.Clone()
|
|
|
|
|
|
|
|
test_env.Append(LINKFLAGS = ['-nostdlib'])
|
|
|
|
test_env.Append(CPPFLAGS = ['-fno-builtin', '-nostdinc'])
|
|
|
|
test_env.Append(CPPPATH = ['#build/include'])
|
|
|
|
test_env.Append(LIBPATH = ['#build/lib/libc'], LIBS = ['c'])
|
|
|
|
|
|
|
|
test_env.Program("threadtest", ["threadtest.c"])
|
2015-02-02 07:56:45 +00:00
|
|
|
test_env.Program("pthreadtest", ["pthreadtest.c"])
|
2015-01-18 23:15:55 +00:00
|
|
|
|
2015-02-03 22:07:22 +00:00
|
|
|
test_netenv = env.Clone()
|
|
|
|
|
|
|
|
test_netenv.Append(LINKFLAGS = ['-nostdlib'])
|
|
|
|
test_netenv.Append(CPPFLAGS = ['-fno-builtin', '-nostdinc'])
|
|
|
|
test_netenv.Append(CPPPATH = ['#build/include', '#build/include/ipv4'])
|
|
|
|
test_netenv.Append(LIBPATH = ['#build/lib/libc', '#build/lib/liblwip'],
|
|
|
|
LIBS = ['lwip', 'c'])
|
|
|
|
|
|
|
|
test_netenv.Program("lwiptest", ["lwiptest.c"])
|
|
|
|
|