diff options
| author | Andreas Kapp Lindquist <alind24@student.sdu.dk> | 2025-10-03 13:21:57 +0200 |
|---|---|---|
| committer | mithe24 <mithe24@student.sdu.dk> | 2025-10-29 13:49:57 +0100 |
| commit | 8b8f617d5c5daa621cd94770275da2b46f618f3f (patch) | |
| tree | 8b5d1ef0427e27e2cf81426c049f88dd305df7b1 /Makefile | |
| parent | 41c7279e634c1a9e9087d237ba316d13ecae2680 (diff) | |
| download | sorter-8b8f617d5c5daa621cd94770275da2b46f618f3f.tar.gz sorter-8b8f617d5c5daa621cd94770275da2b46f618f3f.zip | |
refactor(Makefile): Attempt at making Makefile
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c22f059 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +# SRCDIR = "src/"
+# SRCFILES = coordinateManager.s insertion_sort.s sorter.s main.s file_parser.s
+# SRC = $(foreach program, $(SRCFILES), $(SRCDIR)$(program))
+#
+# SNIPDIR = "snippets/"
+# SNIPFILES = allocate.s fileHandling.s parsing.s utils.s
+# SNIP = $(foreach program, $(SNIPFILES), $(SNIPDIR)$(program))
+
+OBJS = coordinateManager.o insertion_sort.o sorter.o main.o file_parser.o allocate.o fileHandling.o parsing.o utils.o
+
+ASFLAGS = -g
+
+main: $(OBJS)
+ ld -o main $^
+
+.PHONY: clean
+clean:
+ rm *.o main
+
+# as src/coordinateManager.s -o obj/coordinateManager.o -g
+# as src/insertion_sort.s -o obj/insertion_sort.o -g
+# as src/sorter.s -o obj/sorter.o -g
+# as src/main.s -o obj/main.o -g
+# as src/file_parser.s -o obj/file_parser.o -g
+# as snippets/allocate.s -o obj/allocate.o -g
+# as snippets/fileHandling.s -o obj/fileHandling.o -g
+# as snippets/parsing.s -o obj/parsing.o -g
+# as snippets/utils.s -o obj/utils.o -g
+# ld obj/coordinateManager.o obj/insertion_sort.o obj/sorter.o obj/main.o obj/allocate.o obj/fileHandling.o obj/parsing.o obj/utils.o obj/file_parser.o -o main -g
|