Revamp build system: build src and test into libs and link to make binaries

This commit is contained in:
Eryn Wells 2013-09-08 13:57:05 -07:00
parent 926247002b
commit f81e403b16
3 changed files with 27 additions and 14 deletions

View file

@ -8,8 +8,11 @@
Import('env')
files = Split("""
test_basics.c
test_charles.c
""")
test = env.Program('test_charles', files)
env.Alias('test', test)
test_env = env.Clone()
test_env.Append(LIBS=['check'])
lib = test_env.Library('test_charles', files, libs=['check'])
Return('lib')