diff options
author | Your Name <you@example.com> | 2019-07-15 03:25:45 +0100 |
---|---|---|
committer | Your Name <you@example.com> | 2019-07-15 03:25:45 +0100 |
commit | 8013d11d63ffa33ebafd014314e343fe3df8d46f (patch) | |
tree | 4bcf80ca440a7004a524d5d49cf0b1b91ddbc142 /sha1/Makefile | |
parent | 6a553cdca127c717bdc44e237c7d1abb92db29e3 (diff) | |
download | wristapps-8013d11d63ffa33ebafd014314e343fe3df8d46f.tar.gz wristapps-8013d11d63ffa33ebafd014314e343fe3df8d46f.tar.bz2 wristapps-8013d11d63ffa33ebafd014314e343fe3df8d46f.zip |
first cut at sha1
Diffstat (limited to 'sha1/Makefile')
-rw-r--r-- | sha1/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sha1/Makefile b/sha1/Makefile new file mode 100644 index 0000000..b2635cc --- /dev/null +++ b/sha1/Makefile @@ -0,0 +1,39 @@ +PROG=msauth +ASRCS=msauth.asm + +APP=${PROG}.app +PS=${ASRCS:%.asm=%.p} +RLSTS=${ASRCS:%.asm=%.lst} +LSTS=${ASRCS:%.asm=%.l} +IMG=${PROG}.img +S19=${PROG}.srec + +CROSS=../../asl/ + +AFLAGS=-i ../include/dl150 -cpu datalink +AS=${CROSS}asl ${AFLAGS} +P2BIN=${CROSS}p2bin + +default:${APP} ${LSTS} ${S19} + +.PRECIOUS:${APP} ${LSTS} + +%.srec:%.img + srec_cat $< -binary -o $@ + head -n -1 $@ > $@.tmp + mv -f $@.tmp $@ + +%.img:%.p + ${P2BIN} $< $@ -r 0x0-\$$ + +%.app:%.p + ${P2BIN} $< $@ -r 0x110-\$$ + +%.lst %.p:%.asm + ${AS} -L ${@:%.p=%.lst} -o $@ $< + +%.l:%.lst + awk '{ if (($$1!="(1)") && ($$1!="") && NF) { print }}' < $< > $@ || /bin/rm -f $@ + +clean: + /bin/rm -f ${APP} ${PS} ${LSTS} ${RLSTS} ${S19} |