35 lines
481 B
Makefile
35 lines
481 B
Makefile
AS = as
|
|
LINKER = ld
|
|
|
|
%.o: %.s
|
|
$(AS) $^ -o $@
|
|
|
|
tutorial: tutorial.o
|
|
$(LINKER) $^ -o $@
|
|
|
|
tutorial2: tutorial2.o tutorial2p2.o
|
|
$(LINKER) $^ -o $@
|
|
|
|
helloworld: helloworld.o
|
|
$(LINKER) $^ -o $@
|
|
|
|
inputexample: inputexample.o
|
|
$(LINKER) $^ -o $@
|
|
|
|
instructions: instructions.o
|
|
$(LINKER) $^ -o $@
|
|
|
|
branching: branching.o
|
|
$(LINKER) $^ -o $@
|
|
|
|
conditionaljump: conditionaljump.o
|
|
$(LINKER) $^ -o $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm *.o
|
|
rm tutorial
|
|
rm tutorial2
|
|
rm helloworld
|
|
rm inputexample
|