Added support for makefile language.

Signed-off-by: Aingeru <aingeru.develop@gmail.com>
This commit is contained in:
Aingeru
2024-03-12 12:49:15 +01:00
parent e1fcaabf3b
commit 2bda10fabb
5 changed files with 53 additions and 2 deletions

View File

@@ -416,4 +416,22 @@ index 0000000..a6c6cb0
+ TODO fill this with something useful
+ */
+}
+
+
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 0000000..2996176
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,12 @@
+# TODO change name.
+NAME = asm
+
+# TODO source files must be explicitly named.
+SRC = $(shell find mandatory/src -name "*.asm")
+OBJ = $(patsubst src/%.asm, obj/%.o, $(SRC))
+.PHONY: all
+all: $(NAME)
+$(NAME): $(OBJ)
+ # TODO create the directory.
+ $(AR) rc $@ $(OBJ)
+