summaryrefslogtreecommitdiffstats
path: root/sha1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sha1/Makefile')
-rw-r--r--sha1/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/sha1/Makefile b/sha1/Makefile
index b2635cc..52805c3 100644
--- a/sha1/Makefile
+++ b/sha1/Makefile
@@ -14,6 +14,8 @@ AFLAGS=-i ../include/dl150 -cpu datalink
AS=${CROSS}asl ${AFLAGS}
P2BIN=${CROSS}p2bin
+EMUL=../../sim68xx/src/boards/sim6805
+
default:${APP} ${LSTS} ${S19}
.PRECIOUS:${APP} ${LSTS}
@@ -30,10 +32,16 @@ default:${APP} ${LSTS} ${S19}
${P2BIN} $< $@ -r 0x110-\$$
%.lst %.p:%.asm
- ${AS} -L ${@:%.p=%.lst} -o $@ $<
+ ${AS} -g -L ${@:%.p=%.lst} -o $@ $<
+ ${CROSS}/process_map ${@:%.p=%.map}
+
+
%.l:%.lst
awk '{ if (($$1!="(1)") && ($$1!=" ") && NF) { print }}' < $< > $@ || /bin/rm -f $@
+do_test: ${PROG}.srec
+ ${EMUL} $< < emul.script
+
clean:
/bin/rm -f ${APP} ${PS} ${LSTS} ${RLSTS} ${S19}