Import('env');

import glob;
import os;

ignorefiles = set(['DSP2833x_SWPrioritizedDefaultIsr.c', 'DSP2833x_SWPrioritizedPieVect.c']);
sourcefiles_raw = env.Glob('*.c'); 
sourcefiles_raw += env.Glob('*.asm');
sourcefiles = [x for x in sourcefiles_raw if (x.name not in ignorefiles)];
objects = env.Object(sourcefiles);
Depends(objects, env.Glob('*.h'));

# prevent implicit building
env.Ignore('.', objects);

Return('objects');