summaryrefslogtreecommitdiff
path: root/digital/avr/common/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'digital/avr/common/test/Makefile')
-rw-r--r--digital/avr/common/test/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/digital/avr/common/test/Makefile b/digital/avr/common/test/Makefile
new file mode 100644
index 00000000..b4f7e3db
--- /dev/null
+++ b/digital/avr/common/test/Makefile
@@ -0,0 +1,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/' > $@