summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2019-05-27 03:25:05 +0100
committerfishsoupisgood <github@madingley.org>2019-05-27 03:25:05 +0100
commite070d1885626a365099fac3caf0b537d04f4900e (patch)
treed64cb21715b8c8aa7d5082f739d62748aa757ad1 /Makefile
downloadwristapps-e070d1885626a365099fac3caf0b537d04f4900e.tar.gz
wristapps-e070d1885626a365099fac3caf0b537d04f4900e.tar.bz2
wristapps-e070d1885626a365099fac3caf0b537d04f4900e.zip
first batch of wristapps working with new assembler
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e06b22c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+
+
+APPDIRS=hello number update flash password dayfind 3ball
+
+APPS=${foreach appdir,${APPDIRS},${appdir}/${appdir}.app}
+PS=${APPS:%.app=%.p}
+LSTS=${APPS:%.app=%.lst}
+
+CROSS=../asl/
+
+AFLAGS=-i include -cpu datalink
+AS=${CROSS}asl ${AFLAGS}
+
+P2BIN=${CROSS}p2bin
+
+
+default:${APPS}
+
+%.app:%.p
+ ${P2BIN} $< $@ -r 0x110-\$$
+
+%.p:%.asm
+ ${AS} -L ${@:%.p=%.lst} -o $@ $<
+
+clean:
+ /bin/rm -f ${APPS} ${PS} ${LSTS}