1# for module compiling
2import os
3Import('RTT_ROOT')
4Import('env')
5from building import *
6
7cwd = GetCurrentDir()
8objs = []
9list = os.listdir(cwd)
10
11env.Append(CPPDEFINES = ['STM32F407xx'])
12
13for d in list:
14    path = os.path.join(cwd, d)
15    if os.path.isfile(os.path.join(path, 'SConscript')):
16        objs = objs + SConscript(os.path.join(d, 'SConscript'))
17
18Return('objs')
19