# Import environment set for target. Import('env_target') # Define target name. TARGET = 'usart' # Define source files. if env_target['MCU'] == 'atmega328p': sources = [ 'usart0_m328.c' ] elif env_target['MCU'] == 'atmega2560': sources = [ 'usart0_m2560.c' ] # Build library. env_target.BuildLibrary(sources, TARGET)