diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 28 |
1 files changed, 20 insertions, 8 deletions
@@ -1,11 +1,23 @@ -.PHONY: all -all: lab1upg2.out lab1upg3.out lab1ucode.out +PYTHON := python3.10 -lab1upg2.out: lab1asm.py lab1upg2.in - python3.10 lab1asm.py < lab1upg2.in > lab1upg2.out +.PHONY: all clean +all: lab1-upg2.mia lab1-upg3.mia lab1-test.mia -lab1upg3.out: lab1asm.py lab1upg3.in - python3.10 lab1asm.py < lab1upg3.in > lab1upg3.out +clean: + rm -f *.out -lab1ucode.out: lab1ucode.py lab1ucode.in - python3.10 lab1ucode.py < lab1ucode.in > lab1ucode.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 >> $@ |
