summaryrefslogtreecommitdiffhomepage
path: root/digital/avr/common/test/Makefile
diff options
context:
space:
mode:
authorNicolas Schodet2010-12-24 18:50:48 +0100
committerNicolas Schodet2010-12-24 18:50:48 +0100
commit2f33fc36b3aa6b53d7e0b1827401303ae7d67c02 (patch)
tree4a0ff98b596948e71d4cc570e31a60b2ed70aa9d /digital/avr/common/test/Makefile
parent948c655985dcbe6f8abcc7da850b91e8caa73080 (diff)
digital/avr/common: add bus macros
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/' > $@