diff options
Diffstat (limited to 'test/Object.py')
-rw-r--r-- | test/Object.py | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/test/Object.py b/test/Object.py index cde1391..9ed7a15 100644 --- a/test/Object.py +++ b/test/Object.py @@ -39,10 +39,11 @@ env = Environment() f1 = env.Object(target = 'f1', source = 'f1.c') f2 = Object(target = 'f2', source = 'f2.cpp') f3 = env.Object(target = 'f3', source = 'f3.c') -env.Program(target = 'prog1', source = Split('f1%s f2%s f3%s prog.cpp')) -env.Program(target = 'prog2', source = [f1, f2, f3, 'prog.cpp']) +mult_o = env.Object(['f4.c', 'f5.c']) +env.Program(target = 'prog1', source = Split('f1%s f2%s f3%s f4%s prog.cpp')) +env.Program(target = 'prog2', source = mult_o + [f1, f2, f3, 'prog.cpp']) env.Program(target = 'prog3', source = ['f1%s', f2, 'f3%s', 'prog.cpp']) -""" % (_obj, _obj, _obj, _obj, _obj)) +""" % (_obj, _obj, _obj, _obj, _obj, _obj)) test.write('f1.c', r""" void @@ -70,6 +71,22 @@ f3(void) } """) +test.write('f4.c', r""" +void +f4(void) +{ + printf("f4.c\n"); +} +""") + +test.write('f5.c', r""" +void +f5(void) +{ + printf("f5.c\n"); +} +""") + test.write('prog.cpp', r""" #include <stdio.h> |