From 9733faf62bad9e254a5618cc868e8a26e6bc010d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Mon, 30 May 2016 04:03:41 +0200 Subject: [PATCH] Using makefiles. --- Makefile | 15 +++++++++++++++ MaxValue.asm => src/MaxValue.asm | 0 2 files changed, 15 insertions(+) create mode 100644 Makefile rename MaxValue.asm => src/MaxValue.asm (100%) diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ec6d3df --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +AS=as +LINKER=ld +OBJ=src/MaxValue.o + +%.o: %.asm + $(AS) -o $@ $< + +maxvalue: $(OBJ) + mkdir bin/ + $(LINKER) -o bin/$@ $^ + +.PHONY: clean + +clean: + rm $(OBJ) diff --git a/MaxValue.asm b/src/MaxValue.asm similarity index 100% rename from MaxValue.asm rename to src/MaxValue.asm