summaryrefslogtreecommitdiff
path: root/digital/avr/common/test/Makefile
blob: b4f7e3dbf123f348c1acc5d550cf1c4026e093f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
BASE = ../..
PROGS = test_io_bus
ASM_FILES = test_asm_bus.lst test_asm_manual.lst
EXTRA_CLEAN_FILES = $(ASM_FILES)
test_io_bus_SOURCES = test_io_bus.c
MODULES = math/random
CONFIGFILE = /dev/null
AVR_MCU = atmega128
# -O2 : speed
# -Os : size
OPTIMIZE =

include $(BASE)/make/Makefile.gen

avr: $(ASM_FILES)
test_asm_%.lst: test_io_bus.avr.lst
	sed -ne '/test_asm_$*>:$$/,/ret$$/p' < $< \
		| sed -e 's/^[ 0-9a-f]\{4\}:\t[ 0-9a-f]\{5\}/\t/' > $@