summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 7ad317daa8443fd92f2dc54a0bb886b514593e1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 >> $@