summaryrefslogtreecommitdiffstats
path: root/lab1/Makefile
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2022-02-04 08:58:45 +0100
committerGustav Sörnäs <gustav@sornas.net>2022-02-04 08:58:45 +0100
commit63a6a21f1f728a131b599fca7bc20e2001b2ad33 (patch)
tree85e7ed116c2a567d1017a30381322e3cabd89303 /lab1/Makefile
parentf3eae905ca1e378948ee228e93f3c697cb879605 (diff)
downloadtsea83-63a6a21f1f728a131b599fca7bc20e2001b2ad33.tar.gz
move to dir
Diffstat (limited to 'lab1/Makefile')
-rw-r--r--lab1/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/lab1/Makefile b/lab1/Makefile
new file mode 100644
index 0000000..7ad317d
--- /dev/null
+++ b/lab1/Makefile
@@ -0,0 +1,23 @@
+PYTHON := python3.10
+
+.PHONY: all clean
+all: lab1-upg2.mia lab1-upg3.mia lab1-test.mia
+
+clean:
+ rm -f *.out
+
+lab1-%.out: lab1-%.in lab1asm.py
+ $(info compiling $@)
+ @${PYTHON} lab1asm.py < $< > $@
+
+lab1ucode.out: lab1ucode.in lab1ucode.py
+ $(info compiling ucode)
+ @${PYTHON} lab1ucode.py < $< > $@
+
+lab1-%.mia: lab1-%.out lab1ucode.out lab1-postamble.mia
+ $(info linking $@)
+ @cat $< > $@
+ @echo "" >> $@
+ @cat lab1ucode.out >> $@
+ @echo "" >> $@
+ @cat lab1-postamble.mia >> $@