diff options
author | fishsoupisgood <github@madingley.org> | 2019-05-28 12:09:03 +0100 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2019-05-28 12:09:03 +0100 |
commit | ee33718ab57c5a041b55c70c0ae7e046b3d1592b (patch) | |
tree | 118fa6880cb9f8d592516c5b40325f9b7448d0af /from_others/numpad/Makefile | |
parent | 8110dec1577d9a9002119c15467d71d8a1f51bc8 (diff) | |
download | wristapps-ee33718ab57c5a041b55c70c0ae7e046b3d1592b.tar.gz wristapps-ee33718ab57c5a041b55c70c0ae7e046b3d1592b.tar.bz2 wristapps-ee33718ab57c5a041b55c70c0ae7e046b3d1592b.zip |
general tidy up add all the timex apps and the toebes apps and numpad
Diffstat (limited to 'from_others/numpad/Makefile')
-rw-r--r-- | from_others/numpad/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/from_others/numpad/Makefile b/from_others/numpad/Makefile new file mode 100644 index 0000000..18b7788 --- /dev/null +++ b/from_others/numpad/Makefile @@ -0,0 +1,58 @@ +VERSIONS=a b c d +PROG=numpad + +APPS=${VERSIONS:%=${PROG}-%.app} +ASMS=${VERSIONS:%=${PROG}-%.asm} numpad.asm +LSTS=${VERSIONS:%=${PROG}-%.p} +LSTS=${VERSIONS:%=${PROG}-%.lst} +ZAPS=${VERSIONS:%=${PROG}-%.zap} +STAMPS=${VERSIONS:%=${PROG}-%.stamp} +HEX=${APPS:%.app=%.app.hex} ${APPS:%.app=%.zap.app.hex} +ZAPAPPS=${ZAPS:%.zap=%.zap.app} + +CROSS=../../../asl/ + +ZAP2APP=../../tools/zap2app +AFLAGS=-i ../../include/dl150 -cpu datalink +AS=${CROSS}asl ${AFLAGS} +P2BIN=${CROSS}p2bin + +default:${STAMPS} + +numpad.asm:numpad.zsm + sed -e 's/^INCLUDE/ INCLUDE/' < $< > $@ || /bin/rm -f $@ + +numpad-a.asm:numpad.asm + sed -e '/?C{/,/?C}/d' < $< | sed -e '/?A{/,/?A}/d' > $@ || /bin/rm -f $@ + +numpad-b.asm:numpad.asm + sed -e '/?C{/,/?C}/d' < $< > $@ || /bin/rm -f $@ + +numpad-c.asm:numpad.asm + sed -e '/?B{/,/?B}/d' < $< > $@ || /bin/rm -f $@ + +numpad-d.asm:numpad.asm + sed -e '/?C{/,/?C}/d' < $< | sed -e '/?W{/,/?W}/d' > $@ || /bin/rm -f $@ + +%.p:%.asm + ${AS} -L ${@:%.p=%.lst} -o $@ $< + +%.app:%.p + ${P2BIN} $< $@ -r 0x110-\$$ + + +%.hex:% + yes '' | dd bs=272 count=1 | cat - $< | hexdump -C > $@ || /bin/rm -f $@ + + +%.stamp:%.app.hex %.zap.app.hex + diff -uN ${@:%.stamp=%.app.hex} ${@:%.stamp=%.zap.app.hex} && touch $@ + +%.zap.app:%.zap + ${ZAP2APP} $< $@ + +.PRECIOUS:${APPS} + +clean: + /bin/rm -f ${APPS} ${PS} ${LSTS} ${HEX} ${STAMPS} ${ZAPAPPS} ${ASMS} + |