summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2026-06-10 04:58:13 +0000
committeronelin <oscar@nelin.dk>2026-06-10 04:58:13 +0000
commit7cc1a2e6ccc8f4a87e73c35672e7bb973e965470 (patch)
treece65f72b384f9d75d15cc68ed2f0225e2b21ae0b /Makefile
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9f3c9a5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+.PHONY: fmt
+
+write-elf: main.c write_elf.c registers.h instructions.h
+ gcc -static-pie main.c -o write-elf
+
+tiny: tiny.s
+ nasm -f elf64 tiny.s
+
+fmt: main.c write_elf.c registers.h instructions.h
+ clang-format -i $^